heroku-true-relic 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +39 -0
  3. data/Rakefile +56 -0
  4. data/lib/heroku-true-relic.rb +5 -0
  5. data/lib/heroku-true-relic/queue_time_logger.rb +32 -0
  6. data/lib/heroku-true-relic/rails2.rb +13 -0
  7. data/lib/heroku-true-relic/railtie.rb +7 -0
  8. data/lib/heroku-true-relic/version.rb +3 -0
  9. data/lib/tasks/heroku-true-relic_tasks.rake +4 -0
  10. data/spec/rails-2.3/Gemfile +14 -0
  11. data/spec/rails-2.3/Gemfile.lock +82 -0
  12. data/spec/rails-2.3/Rakefile +10 -0
  13. data/spec/rails-2.3/app_root/config/boot.rb +114 -0
  14. data/spec/rails-2.3/app_root/config/database.yml +22 -0
  15. data/spec/rails-2.3/app_root/config/environment.rb +45 -0
  16. data/spec/rails-2.3/app_root/config/environments/development.rb +17 -0
  17. data/spec/rails-2.3/app_root/config/environments/production.rb +28 -0
  18. data/spec/rails-2.3/app_root/config/environments/test.rb +28 -0
  19. data/spec/rails-2.3/app_root/config/initializers/backtrace_silencers.rb +7 -0
  20. data/spec/rails-2.3/app_root/config/initializers/cookie_verification_secret.rb +7 -0
  21. data/spec/rails-2.3/app_root/config/initializers/inflections.rb +10 -0
  22. data/spec/rails-2.3/app_root/config/initializers/mime_types.rb +5 -0
  23. data/spec/rails-2.3/app_root/config/initializers/new_rails_defaults.rb +21 -0
  24. data/spec/rails-2.3/app_root/config/initializers/session_store.rb +15 -0
  25. data/spec/rails-2.3/app_root/config/locales/en.yml +5 -0
  26. data/spec/rails-2.3/app_root/config/routes.rb +4 -0
  27. data/spec/rails-2.3/app_root/db/development.sqlite3 +0 -0
  28. data/spec/rails-2.3/app_root/db/seeds.rb +7 -0
  29. data/spec/rails-2.3/app_root/db/test.sqlite3 +0 -0
  30. data/spec/rails-2.3/app_root/doc/README_FOR_APP +2 -0
  31. data/spec/rails-2.3/app_root/log/development.log +43 -0
  32. data/spec/rails-2.3/app_root/log/production.log +0 -0
  33. data/spec/rails-2.3/app_root/log/server.log +0 -0
  34. data/spec/rails-2.3/app_root/log/test.log +380 -0
  35. data/spec/rails-2.3/app_root/public/404.html +30 -0
  36. data/spec/rails-2.3/app_root/public/422.html +30 -0
  37. data/spec/rails-2.3/app_root/public/500.html +30 -0
  38. data/spec/rails-2.3/app_root/public/favicon.ico +0 -0
  39. data/spec/rails-2.3/app_root/public/images/rails.png +0 -0
  40. data/spec/rails-2.3/app_root/public/javascripts/application.js +2 -0
  41. data/spec/rails-2.3/app_root/public/javascripts/controls.js +963 -0
  42. data/spec/rails-2.3/app_root/public/javascripts/dragdrop.js +973 -0
  43. data/spec/rails-2.3/app_root/public/javascripts/effects.js +1128 -0
  44. data/spec/rails-2.3/app_root/public/javascripts/prototype.js +4320 -0
  45. data/spec/rails-2.3/app_root/public/robots.txt +5 -0
  46. data/spec/rails-2.3/app_root/script/about +4 -0
  47. data/spec/rails-2.3/app_root/script/console +3 -0
  48. data/spec/rails-2.3/app_root/script/dbconsole +3 -0
  49. data/spec/rails-2.3/app_root/script/destroy +3 -0
  50. data/spec/rails-2.3/app_root/script/generate +3 -0
  51. data/spec/rails-2.3/app_root/script/performance/benchmarker +3 -0
  52. data/spec/rails-2.3/app_root/script/performance/profiler +3 -0
  53. data/spec/rails-2.3/app_root/script/plugin +3 -0
  54. data/spec/rails-2.3/app_root/script/runner +3 -0
  55. data/spec/rails-2.3/app_root/script/server +3 -0
  56. data/spec/rails-2.3/app_root/test/performance/browsing_test.rb +9 -0
  57. data/spec/rails-2.3/app_root/test/test_helper.rb +38 -0
  58. data/spec/rails-2.3/spec/spec.opts +4 -0
  59. data/spec/rails-2.3/spec/spec_helper.rb +59 -0
  60. data/spec/rails-3.2/Gemfile +14 -0
  61. data/spec/rails-3.2/Gemfile.lock +146 -0
  62. data/spec/rails-3.2/Rakefile +10 -0
  63. data/spec/rails-3.2/app_root/README.rdoc +261 -0
  64. data/spec/rails-3.2/app_root/config.ru +4 -0
  65. data/spec/rails-3.2/app_root/config/application.rb +59 -0
  66. data/spec/rails-3.2/app_root/config/boot.rb +10 -0
  67. data/spec/rails-3.2/app_root/config/database.yml +25 -0
  68. data/spec/rails-3.2/app_root/config/environment.rb +5 -0
  69. data/spec/rails-3.2/app_root/config/environments/development.rb +37 -0
  70. data/spec/rails-3.2/app_root/config/environments/production.rb +67 -0
  71. data/spec/rails-3.2/app_root/config/environments/test.rb +37 -0
  72. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +7 -0
  73. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +15 -0
  74. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +5 -0
  75. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +7 -0
  76. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +8 -0
  77. data/spec/rails-3.2/app_root/config/initializers/wrap_parameters.rb +14 -0
  78. data/spec/rails-3.2/app_root/config/locales/en.yml +5 -0
  79. data/spec/rails-3.2/app_root/config/routes.rb +61 -0
  80. data/spec/rails-3.2/app_root/db/development.sqlite3 +0 -0
  81. data/spec/rails-3.2/app_root/db/test.sqlite3 +0 -0
  82. data/spec/rails-3.2/app_root/log/development.log +75 -0
  83. data/spec/rails-3.2/app_root/log/test.log +883 -0
  84. data/spec/rails-3.2/app_root/public/404.html +26 -0
  85. data/spec/rails-3.2/app_root/public/422.html +26 -0
  86. data/spec/rails-3.2/app_root/public/500.html +25 -0
  87. data/spec/rails-3.2/app_root/public/favicon.ico +0 -0
  88. data/spec/rails-3.2/app_root/script/rails +6 -0
  89. data/spec/rails-3.2/spec/spec_helper.rb +47 -0
  90. data/spec/shared/app_root/app/assets/javascripts/application.js +15 -0
  91. data/spec/shared/app_root/app/assets/stylesheets/application.css +13 -0
  92. data/spec/shared/app_root/app/controllers/application_controller.rb +3 -0
  93. data/spec/shared/app_root/app/controllers/dummy_controller.rb +5 -0
  94. data/spec/shared/app_root/app/controllers/env_controller.rb +5 -0
  95. data/spec/shared/app_root/app/helpers/application_helper.rb +2 -0
  96. data/spec/shared/app_root/app/views/layouts/application.html.erb +14 -0
  97. data/spec/shared/heroku-true-relic/heroku-true-relic_spec.rb +44 -0
  98. metadata +366 -0
@@ -0,0 +1,20 @@
1
+ Copyright 2013 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ heroku-true-relic
2
+ =================
3
+ Show accurate heroku queue time numbers in new relic
4
+
5
+ ## Disclaimer
6
+
7
+ This is still a work in progress - please let me know if you're having trouble getting this working!
8
+
9
+ ## Usage
10
+
11
+ ### Rails 3
12
+ ```ruby
13
+ gem 'heroku-true-relic'
14
+ ```
15
+
16
+ ### Rails 2
17
+
18
+ ```ruby
19
+ gem 'heroku-true-relic', :require => 'heroku-true-relic/rails2'
20
+ ```
21
+
22
+
23
+ ### Rack apps (not tested, but should work fine)
24
+
25
+ ```ruby
26
+ require 'heroku-true-relic'
27
+
28
+ ...
29
+
30
+ use HerokuTrueRelic::QueueTimeLogger
31
+ ```
32
+
33
+ ## Running the specs
34
+
35
+ * Install [rvm](http://rvm.io)
36
+ * Git clone this repository
37
+ * cd into the directory (make sure the `.rmvrc` file is read properly
38
+ * `rake all:bundle`
39
+ * `rake all:spec`
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'HerokuTrueRelic'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ Bundler::GemHelper.install_tasks
24
+
25
+ desc 'Default: Run all specs.'
26
+ task :default => 'all:spec'
27
+
28
+ namespace :all do
29
+ desc "Run specs on all spec apps"
30
+ task :spec do
31
+ for_each_directory_of('spec/**/Rakefile', "Failed to run specs") do |directory|
32
+ system("BUNDLE_GEMFILE='./Gemfile' bundle exec rake spec")
33
+ end
34
+ end
35
+
36
+ desc "Bundle all spec apps"
37
+ task :bundle do
38
+ for_each_directory_of('spec/**/Gemfile', 'Failed to bundle') do |directory|
39
+ system("BUNDLE_GEMFILE='./Gemfile' bundle install")
40
+ end
41
+ end
42
+ end
43
+
44
+ def for_each_directory_of(path, fail_msg, &block)
45
+ results = Dir[path].sort.map do |file|
46
+ directory = File.dirname(file)
47
+ puts '', "\033[44m#{directory}\033[0m", ''
48
+ result = nil
49
+ Dir.chdir(directory) do
50
+ result = block.call(directory)
51
+ end
52
+ result
53
+ end
54
+
55
+ fail fail_msg unless results.all?
56
+ end
@@ -0,0 +1,5 @@
1
+ require 'heroku-true-relic/queue_time_logger'
2
+ require 'heroku-true-relic/railtie' if defined?(Rails::Railtie)
3
+
4
+ module HerokuTrueRelic
5
+ end
@@ -0,0 +1,32 @@
1
+ module HerokuTrueRelic
2
+ # combination of https://gist.github.com/daveyeu/4960893
3
+ # and https://gist.github.com/jasonrclark/d82a1ea7695daac0b9ee
4
+ class QueueTimeLogger
5
+ attr_reader :app
6
+
7
+ def initialize(app, options = {})
8
+ @app = app
9
+ end
10
+
11
+ def call(env)
12
+ now = Time.now.to_f
13
+
14
+ # Delete Heroku's queue time header because it's incorrect and useless
15
+ env.delete("HTTP_X_HEROKU_QUEUE_WAIT_TIME")
16
+
17
+ microseconds = (now * 1_000_000).to_i
18
+ env["HTTP_X_MIDDLEWARE_START"] = "t=#{microseconds}"
19
+
20
+ if env["HTTP_X_REQUEST_START"]
21
+ # HTTP_X_REQUEST_START is expected by New Relic to have a t= leading
22
+ # but currently doesn't, so it can just get to_i applied.
23
+ request_start_microseconds = env["HTTP_X_REQUEST_START"].to_i * 1_000
24
+ queue_time_microseconds = [microseconds - request_start_microseconds, 0].max
25
+
26
+ env["HTTP_X_QUEUE_TIME"] = "t=#{queue_time_microseconds}"
27
+ end
28
+
29
+ app.call(env)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
1
+ require 'heroku-true-relic'
2
+
3
+ module HerokuTrueRelic
4
+ class Rails2
5
+ def self.add_middleware
6
+ if defined?(::Rails.configuration) && ::Rails.configuration.respond_to?(:middleware)
7
+ ::Rails.configuration.middleware.insert_after 'Rack::Lock', HerokuTrueRelic::QueueTimeLogger
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ HerokuTrueRelic::Rails2.add_middleware
@@ -0,0 +1,7 @@
1
+ module HerokuTrueRelic
2
+ class Railtie < Rails::Railtie
3
+ initializer 'heroku_true_relic.add_queue_time_logger' do |app|
4
+ app.config.middleware.insert_after 'Rack::Lock', "HerokuTrueRelic::QueueTimeLogger"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module HerokuTrueRelic
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :heroku-true-relic do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,14 @@
1
+ source :rubygems
2
+
3
+ gem "rails", "~> 2.3.17"
4
+ gem "sqlite3"
5
+ gem 'heroku-true-relic', :path => '../..'
6
+
7
+ group :test, :development do
8
+ gem "rspec", '1.3.2'
9
+ gem "rspec-rails", '1.3.4'
10
+ gem "pry"
11
+ gem "capybara"
12
+ gem "timecop"
13
+ gem 'test-unit', '1.2.3'
14
+ end
@@ -0,0 +1,82 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ heroku-true-relic (0.0.1)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (2.3.17)
10
+ actionpack (= 2.3.17)
11
+ actionpack (2.3.17)
12
+ activesupport (= 2.3.17)
13
+ rack (~> 1.1.0)
14
+ activerecord (2.3.17)
15
+ activesupport (= 2.3.17)
16
+ activeresource (2.3.17)
17
+ activesupport (= 2.3.17)
18
+ activesupport (2.3.17)
19
+ capybara (2.0.2)
20
+ mime-types (>= 1.16)
21
+ nokogiri (>= 1.3.3)
22
+ rack (>= 1.0.0)
23
+ rack-test (>= 0.5.4)
24
+ selenium-webdriver (~> 2.0)
25
+ xpath (~> 1.0.0)
26
+ childprocess (0.3.8)
27
+ ffi (~> 1.0, >= 1.0.11)
28
+ coderay (1.0.8)
29
+ ffi (1.4.0)
30
+ hoe (3.5.0)
31
+ rake (>= 0.8, < 11.0)
32
+ method_source (0.8.1)
33
+ mime-types (1.21)
34
+ multi_json (1.6.1)
35
+ nokogiri (1.5.6)
36
+ pry (0.9.12)
37
+ coderay (~> 1.0.5)
38
+ method_source (~> 0.8)
39
+ slop (~> 3.4)
40
+ rack (1.1.6)
41
+ rack-test (0.6.2)
42
+ rack (>= 1.0)
43
+ rails (2.3.17)
44
+ actionmailer (= 2.3.17)
45
+ actionpack (= 2.3.17)
46
+ activerecord (= 2.3.17)
47
+ activeresource (= 2.3.17)
48
+ activesupport (= 2.3.17)
49
+ rake (>= 0.8.3)
50
+ rake (10.0.3)
51
+ rspec (1.3.2)
52
+ rspec-rails (1.3.4)
53
+ rack (>= 1.0.0)
54
+ rspec (~> 1.3.1)
55
+ rubyzip (0.9.9)
56
+ selenium-webdriver (2.29.0)
57
+ childprocess (>= 0.2.5)
58
+ multi_json (~> 1.0)
59
+ rubyzip
60
+ websocket (~> 1.0.4)
61
+ slop (3.4.3)
62
+ sqlite3 (1.3.7)
63
+ test-unit (1.2.3)
64
+ hoe (>= 1.5.1)
65
+ timecop (0.5.9.2)
66
+ websocket (1.0.7)
67
+ xpath (1.0.0)
68
+ nokogiri (~> 1.3)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ capybara
75
+ heroku-true-relic!
76
+ pry
77
+ rails (~> 2.3.17)
78
+ rspec (= 1.3.2)
79
+ rspec-rails (= 1.3.4)
80
+ sqlite3
81
+ test-unit (= 1.2.3)
82
+ timecop
@@ -0,0 +1,10 @@
1
+ require 'rake'
2
+ require 'spec/rake/spectask'
3
+
4
+ desc 'Default: Run all specs for a specific rails version.'
5
+ task :default => :spec
6
+
7
+ desc "Run all specs for a specific rails version"
8
+ Spec::Rake::SpecTask.new() do |t|
9
+ t.spec_files = FileList['**/*_spec.rb', '../shared/**/*_spec.rb']
10
+ end
@@ -0,0 +1,114 @@
1
+ # Don't change this file!
2
+ # Configure your app in config/environment.rb and config/environments/*.rb
3
+
4
+ RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
+
6
+ module Rails
7
+ class << self
8
+ def boot!
9
+ unless booted?
10
+ preinitialize
11
+ pick_boot.run
12
+ end
13
+ end
14
+
15
+ def booted?
16
+ defined? Rails::Initializer
17
+ end
18
+
19
+ def pick_boot
20
+ (vendor_rails? ? VendorBoot : GemBoot).new
21
+ end
22
+
23
+ def vendor_rails?
24
+ File.exist?("#{RAILS_ROOT}/vendor/rails")
25
+ end
26
+
27
+ def preinitialize
28
+ load(preinitializer_path) if File.exist?(preinitializer_path)
29
+ end
30
+
31
+ def preinitializer_path
32
+ "#{RAILS_ROOT}/config/preinitializer.rb"
33
+ end
34
+ end
35
+
36
+ class Boot
37
+ def run
38
+ load_initializer
39
+ Rails::Initializer.run(:set_load_path)
40
+ end
41
+ end
42
+
43
+ class VendorBoot < Boot
44
+ def load_initializer
45
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46
+ Rails::Initializer.run(:install_gem_spec_stubs)
47
+ Rails::GemDependency.add_frozen_gem_path
48
+ end
49
+ end
50
+
51
+ class GemBoot < Boot
52
+ def load_initializer
53
+ self.class.load_rubygems
54
+ load_rails_gem
55
+ require 'initializer'
56
+ end
57
+
58
+ def load_rails_gem
59
+ if version = self.class.gem_version
60
+ gem 'rails', version
61
+ else
62
+ gem 'rails'
63
+ end
64
+ rescue Gem::LoadError => load_error
65
+ if load_error.message =~ /Could not find RubyGem rails/
66
+ STDERR.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
67
+ exit 1
68
+ else
69
+ raise
70
+ end
71
+ end
72
+
73
+ class << self
74
+ def rubygems_version
75
+ Gem::RubyGemsVersion rescue nil
76
+ end
77
+
78
+ def gem_version
79
+ if defined? RAILS_GEM_VERSION
80
+ RAILS_GEM_VERSION
81
+ elsif ENV.include?('RAILS_GEM_VERSION')
82
+ ENV['RAILS_GEM_VERSION']
83
+ else
84
+ parse_gem_version(read_environment_rb)
85
+ end
86
+ end
87
+
88
+ def load_rubygems
89
+ min_version = '1.3.2'
90
+ require 'rubygems'
91
+ unless rubygems_version >= min_version
92
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
93
+ exit 1
94
+ end
95
+
96
+ rescue LoadError
97
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
98
+ exit 1
99
+ end
100
+
101
+ def parse_gem_version(text)
102
+ $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
103
+ end
104
+
105
+ private
106
+ def read_environment_rb
107
+ File.read("#{RAILS_ROOT}/config/environment.rb")
108
+ end
109
+ end
110
+ end
111
+ end
112
+
113
+ # All that for this:
114
+ Rails.boot!
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,45 @@
1
+ # Be sure to restart your server when you modify this file
2
+
3
+ # Specifies gem version of Rails to use when vendor/rails is not present
4
+ RAILS_GEM_VERSION = '2.3.17' unless defined? RAILS_GEM_VERSION
5
+
6
+ # Bootstrap the Rails environment, frameworks, and default configuration
7
+ require File.join(File.dirname(__FILE__), 'boot')
8
+
9
+ Bundler.require
10
+
11
+ Rails::Initializer.run do |config|
12
+ # Settings in config/environments/* take precedence over those specified here.
13
+ # Application configuration should go into files in config/initializers
14
+ # -- all .rb files in that directory are automatically loaded.
15
+
16
+ # Add additional load paths for your own custom dirs
17
+ # config.autoload_paths += %W( #{RAILS_ROOT}/extras )
18
+
19
+ # Specify gems that this application depends on and have them installed with rake gems:install
20
+ # config.gem "bj"
21
+ # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
22
+ # config.gem "sqlite3-ruby", :lib => "sqlite3"
23
+ # config.gem "aws-s3", :lib => "aws/s3"
24
+
25
+ # Only load the plugins named here, in the order given (default is alphabetical).
26
+ # :all can be used as a placeholder for all plugins not explicitly named
27
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
28
+
29
+ # Skip frameworks you're not going to use. To use Rails without a database,
30
+ # you must remove the Active Record framework.
31
+ # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
32
+
33
+ # Activate observers that should always be running
34
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
35
+
36
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
37
+ # Run "rake -D time" for a list of tasks for finding time zone names.
38
+ config.time_zone = 'UTC'
39
+
40
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
41
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
42
+ # config.i18n.default_locale = :de
43
+ end
44
+
45
+ require "heroku-true-relic/rails2"