Skip to content

Commit 1558383

Browse files
committed
First public version
0 parents  commit 1558383

File tree

128 files changed

+2038
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2038
-0
lines changed

.gitignore

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#----------------------------------------------------------------------------
2+
# Ignore these files when commiting to a git repository.
3+
#
4+
# See http://help.github.com/ignore-files/ for more about ignoring files.
5+
#
6+
# The original version of this file is found here:
7+
# https://github.com/RailsApps/rails-composer/blob/master/files/gitignore.txt
8+
#
9+
# Corrections? Improvements? Create a GitHub issue:
10+
# http://github.com/RailsApps/rails-composer/issues
11+
#----------------------------------------------------------------------------
12+
13+
# bundler state
14+
/.bundle
15+
/vendor/bundle/
16+
/vendor/ruby/
17+
18+
# minimal Rails specific artifacts
19+
db/*.sqlite3
20+
/log/*
21+
/tmp/*
22+
23+
# various artifacts
24+
**.war
25+
*.rbc
26+
*.sassc
27+
.rspec
28+
.redcar/
29+
.sass-cache
30+
/config/config.yml
31+
/coverage.data
32+
/coverage/
33+
/db/*.javadb/
34+
/db/*.sqlite3
35+
/doc/api/
36+
/doc/app/
37+
/doc/guides/
38+
/doc/features.html
39+
/doc/specs.html
40+
/public/cache
41+
/public/stylesheets/compiled
42+
/public/system/*
43+
/spec/tmp/*
44+
/cache
45+
/capybara*
46+
/capybara-*.html
47+
/gems
48+
/specifications
49+
rerun.txt
50+
pickle-email-*.html
51+
52+
# If you find yourself ignoring temporary files generated by your text editor
53+
# or operating system, you probably want to add a global ignore instead:
54+
# git config --global core.excludesfile ~/.gitignore_global
55+
#
56+
# Here are some files you may want to ignore globally:
57+
58+
# scm revert files
59+
**.orig
60+
61+
# Mac finder artifacts
62+
.DS_Store
63+
64+
# Netbeans project directory
65+
/nbproject/
66+
67+
# RubyMine project files
68+
.idea
69+
70+
# Textmate project files
71+
/*.tmproj
72+
73+
# vim artifacts
74+
**.swp

Gemfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
source 'https://rubygems.org'
2+
gem 'rails', '3.2.12'
3+
group :assets do
4+
gem 'sass-rails', '~> 3.2.3'
5+
gem 'coffee-rails', '~> 3.2.1'
6+
gem 'uglifier', '>= 1.0.3'
7+
end
8+
gem 'jquery-rails'
9+
gem "bootstrap-sass", ">= 2.3.0.0"
10+
gem 'nokogiri'
11+
gem 'httparty'
12+
gem 'dalli'
13+
14+
gem 'newrelic_rpm', '>=3.5'
15+
gem "pg", ">= 0.14.1"
16+
17+
group :production do
18+
end
19+
20+
group :development do
21+
gem 'RedCloth'
22+
end

Gemfile.lock

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
RedCloth (4.2.9)
5+
actionmailer (3.2.12)
6+
actionpack (= 3.2.12)
7+
mail (~> 2.4.4)
8+
actionpack (3.2.12)
9+
activemodel (= 3.2.12)
10+
activesupport (= 3.2.12)
11+
builder (~> 3.0.0)
12+
erubis (~> 2.7.0)
13+
journey (~> 1.0.4)
14+
rack (~> 1.4.5)
15+
rack-cache (~> 1.2)
16+
rack-test (~> 0.6.1)
17+
sprockets (~> 2.2.1)
18+
activemodel (3.2.12)
19+
activesupport (= 3.2.12)
20+
builder (~> 3.0.0)
21+
activerecord (3.2.12)
22+
activemodel (= 3.2.12)
23+
activesupport (= 3.2.12)
24+
arel (~> 3.0.2)
25+
tzinfo (~> 0.3.29)
26+
activeresource (3.2.12)
27+
activemodel (= 3.2.12)
28+
activesupport (= 3.2.12)
29+
activesupport (3.2.12)
30+
i18n (~> 0.6)
31+
multi_json (~> 1.0)
32+
arel (3.0.2)
33+
bootstrap-sass (2.3.0.0)
34+
sass (~> 3.2)
35+
builder (3.0.4)
36+
coffee-rails (3.2.2)
37+
coffee-script (>= 2.2.0)
38+
railties (~> 3.2.0)
39+
coffee-script (2.2.0)
40+
coffee-script-source
41+
execjs
42+
coffee-script-source (1.4.0)
43+
dalli (2.6.0)
44+
erubis (2.7.0)
45+
execjs (1.4.0)
46+
multi_json (~> 1.0)
47+
hike (1.2.1)
48+
httparty (0.10.2)
49+
multi_json (~> 1.0)
50+
multi_xml (>= 0.5.2)
51+
i18n (0.6.1)
52+
journey (1.0.4)
53+
jquery-rails (2.2.1)
54+
railties (>= 3.0, < 5.0)
55+
thor (>= 0.14, < 2.0)
56+
json (1.7.7)
57+
mail (2.4.4)
58+
i18n (>= 0.4.0)
59+
mime-types (~> 1.16)
60+
treetop (~> 1.4.8)
61+
mime-types (1.21)
62+
multi_json (1.6.1)
63+
multi_xml (0.5.3)
64+
newrelic_rpm (3.5.7.59)
65+
nokogiri (1.5.6)
66+
pg (0.14.1)
67+
polyglot (0.3.3)
68+
rack (1.4.5)
69+
rack-cache (1.2)
70+
rack (>= 0.4)
71+
rack-ssl (1.3.3)
72+
rack
73+
rack-test (0.6.2)
74+
rack (>= 1.0)
75+
rails (3.2.12)
76+
actionmailer (= 3.2.12)
77+
actionpack (= 3.2.12)
78+
activerecord (= 3.2.12)
79+
activeresource (= 3.2.12)
80+
activesupport (= 3.2.12)
81+
bundler (~> 1.0)
82+
railties (= 3.2.12)
83+
railties (3.2.12)
84+
actionpack (= 3.2.12)
85+
activesupport (= 3.2.12)
86+
rack-ssl (~> 1.3.2)
87+
rake (>= 0.8.7)
88+
rdoc (~> 3.4)
89+
thor (>= 0.14.6, < 2.0)
90+
rake (10.0.3)
91+
rdoc (3.12.1)
92+
json (~> 1.4)
93+
sass (3.2.5)
94+
sass-rails (3.2.6)
95+
railties (~> 3.2.0)
96+
sass (>= 3.1.10)
97+
tilt (~> 1.3)
98+
sprockets (2.2.2)
99+
hike (~> 1.2)
100+
multi_json (~> 1.0)
101+
rack (~> 1.0)
102+
tilt (~> 1.1, != 1.3.0)
103+
thor (0.17.0)
104+
tilt (1.3.3)
105+
treetop (1.4.12)
106+
polyglot
107+
polyglot (>= 0.3.1)
108+
tzinfo (0.3.35)
109+
uglifier (1.3.0)
110+
execjs (>= 0.3.0)
111+
multi_json (~> 1.0, >= 1.0.2)
112+
113+
PLATFORMS
114+
ruby
115+
116+
DEPENDENCIES
117+
RedCloth
118+
bootstrap-sass (>= 2.3.0.0)
119+
coffee-rails (~> 3.2.1)
120+
dalli
121+
httparty
122+
jquery-rails
123+
newrelic_rpm (>= 3.5)
124+
nokogiri
125+
pg (>= 0.14.1)
126+
rails (= 3.2.12)
127+
sass-rails (~> 3.2.3)
128+
uglifier (>= 1.0.3)

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2013 New Relic, Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+

README-railscomposer

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Newrelic Ruby Kata
2+
========================
3+
4+
This application was generated with the rails_apps_composer gem:
5+
https://github.com/RailsApps/rails_apps_composer
6+
provided by the RailsApps Project:
7+
http://railsapps.github.com/
8+
9+
________________________
10+
11+
Recipes:
12+
["controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "saas", "setup", "testing", "views"]
13+
14+
Preferences:
15+
{:git=>true, :railsapps=>"none", :dev_webserver=>"webrick", :database=>"postgresql", :templates=>"erb", :unit_test=>"test_unit", :integration=>"none", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"none", :authentication=>"none", :authorization=>"none", :form_builder=>"none", :starter_app=>"none", :ban_spiders=>true}
16+
17+
________________________
18+
19+
License

README-railscomposer.textile

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
h1. Newrelic Ruby Kata
2+
3+
This application was generated with the "rails_apps_composer":https://github.com/RailsApps/rails_apps_composer gem provided by the "RailsApps Project":http://railsapps.github.com/.
4+
5+
h2. Diagnostics
6+
7+
This application was built with recipes that are known to work together.
8+
9+
This application was built with preferences that are NOT known to work together.
10+
11+
If the application doesn't work as expected, please "report an issue":https://github.com/RailsApps/rails_apps_composer/issues and include these diagnostics:
12+
13+
We'd also like to know if you've found combinations of recipes or preferences that do work together.
14+
15+
Recipes:
16+
["controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "saas", "setup", "testing", "views"]
17+
18+
Preferences:
19+
{:git=>true, :railsapps=>"none", :dev_webserver=>"webrick", :database=>"postgresql", :templates=>"erb", :unit_test=>"test_unit", :integration=>"none", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"none", :authentication=>"none", :authorization=>"none", :form_builder=>"none", :starter_app=>"none", :ban_spiders=>true}
20+
21+
h2. Ruby on Rails
22+
23+
This application requires:
24+
25+
* Ruby version 1.9.3
26+
* Rails version 3.2.12
27+
28+
Learn more about "Installing Rails":http://railsapps.github.com/installing-rails.html.
29+
30+
h2. Database
31+
32+
This application uses PostgreSQL with ActiveRecord.
33+
34+
h2. Development
35+
36+
* Template Engine: ERB
37+
* Testing Framework: Test::Unit
38+
* Front-end Framework: Twitter Bootstrap (Sass)
39+
* Form Builder: None
40+
* Authentication: None
41+
* Authorization: None
42+
43+
44+
45+
46+
47+
h2. Getting Started
48+
49+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
50+
51+
h2. Documentation and Support
52+
53+
This is the only documentation.
54+
55+
h4. Issues
56+
57+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
58+
59+
h2. Similar Projects
60+
61+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
62+
63+
h2. Contributing
64+
65+
If you make improvements to this application, please share with others.
66+
67+
* Fork the project on GitHub.
68+
* Make your feature addition or bug fix.
69+
* Commit with Git.
70+
* Send the author a pull request.
71+
72+
If you add functionality to this application, create an alternative implementation, or build an application that is similar, please contact me and I'll add a note to the README so that others can find your work.
73+
74+
h2. Credits
75+
76+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
77+
78+
h2. License
79+
80+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
newrelic-ruby-kata
2+
==================
3+
4+
Using New Relic and Heroku see how many things you can find and fix to make this app perform fast!
5+
6+
Step 1
7+
-------
8+
Get the code. The code is waiting to be forked on [github](https://github.com/newrelic/newrelic-ruby-kata)
9+
10+
Load the sample DB locally:
11+
12+
rake db:create
13+
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump`
14+
15+
Step 2
16+
-------
17+
Deploy your app to Heroku and load the database there
18+
19+
heroku apps:create
20+
heroky addons:add pgbackups:plus newrelic:standard memcache:5mb
21+
heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'
22+
23+
24+
Step 3
25+
-------
26+
You can watch a [video on getting started](http://newrelic.com/resources/training) with the New Relic agent to help get you started. The New Relic agent will help you find and solve the performance issues in this application as well as help you see the complete impact of your changes.
27+
28+
Step 4
29+
-------
30+
Fix the code / Solve as many of the Katas as you can. There are seven distinct Katas in this application that can be torn apart and fixed by using your awesome dev abilities and the deep metrics that New Relic provides.
31+
32+
Step 5
33+
-------
34+
Let us know how you did, what you liked or disliked, what helped you find problems or what were the challenges, what you like about New Relic and what you don't - we just want to hear from you and see what we can do to get better. We'll even send you something for demonstrating your geek super powers when you complete the Kata - just provide us with your [thoughts and a link to your forked repo](https://support.newrelic.com/home).

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
NewrelicRubyKata::Application.load_tasks
39.8 KB
Loading

0 commit comments

Comments
 (0)