acts_as_monitor 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. data/app/helpers/acts_as_monitor_helper.rb +1 -1
  2. data/lib/acts_as_monitor/engine.rb +1 -1
  3. data/lib/acts_as_monitor/version.rb +1 -1
  4. metadata +18 -141
  5. data/.gitignore +0 -18
  6. data/acts_as_monitor.gemspec +0 -22
  7. data/test/acts_as_monitor_helper_test.rb +0 -16
  8. data/test/acts_as_monitor_test.rb +0 -35
  9. data/test/database.yml +0 -3
  10. data/test/dummy/Rakefile +0 -7
  11. data/test/dummy/app/controllers/application_controller.rb +0 -3
  12. data/test/dummy/app/controllers/homes_controller.rb +0 -4
  13. data/test/dummy/app/helpers/application_helper.rb +0 -2
  14. data/test/dummy/app/helpers/homes_helper.rb +0 -2
  15. data/test/dummy/app/models/test_class.rb +0 -33
  16. data/test/dummy/app/models/test_class_no_monitor.rb +0 -2
  17. data/test/dummy/app/views/homes/index.html.erb +0 -8
  18. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  19. data/test/dummy/config/application.rb +0 -45
  20. data/test/dummy/config/boot.rb +0 -10
  21. data/test/dummy/config/database.yml +0 -22
  22. data/test/dummy/config/environment.rb +0 -5
  23. data/test/dummy/config/environments/development.rb +0 -26
  24. data/test/dummy/config/environments/production.rb +0 -49
  25. data/test/dummy/config/environments/test.rb +0 -35
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  27. data/test/dummy/config/initializers/inflections.rb +0 -10
  28. data/test/dummy/config/initializers/mime_types.rb +0 -5
  29. data/test/dummy/config/initializers/secret_token.rb +0 -7
  30. data/test/dummy/config/initializers/session_store.rb +0 -8
  31. data/test/dummy/config/locales/acts_as_monitor.it.yml +0 -14
  32. data/test/dummy/config/locales/en.yml +0 -5
  33. data/test/dummy/config/routes.rb +0 -58
  34. data/test/dummy/config.ru +0 -4
  35. data/test/dummy/db/development.sqlite3 +0 -0
  36. data/test/dummy/db/migrate/20120523110000_add_test_tables.rb +0 -12
  37. data/test/dummy/db/schema.rb +0 -19
  38. data/test/dummy/db/test.sqlite3 +0 -0
  39. data/test/dummy/log/development.log +0 -4537
  40. data/test/dummy/log/production.log +0 -0
  41. data/test/dummy/log/server.log +0 -0
  42. data/test/dummy/log/test.log +0 -188
  43. data/test/dummy/public/404.html +0 -26
  44. data/test/dummy/public/422.html +0 -26
  45. data/test/dummy/public/500.html +0 -26
  46. data/test/dummy/public/favicon.ico +0 -0
  47. data/test/dummy/public/images/acts_as_monitor_green.png +0 -0
  48. data/test/dummy/public/images/acts_as_monitor_red.png +0 -0
  49. data/test/dummy/public/images/acts_as_monitor_yellow.png +0 -0
  50. data/test/dummy/public/javascripts/acts_as_monitor_javascript.js +0 -66
  51. data/test/dummy/public/javascripts/application.js +0 -2
  52. data/test/dummy/public/javascripts/builder.js +0 -136
  53. data/test/dummy/public/javascripts/controls.js +0 -965
  54. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  55. data/test/dummy/public/javascripts/effects.js +0 -1123
  56. data/test/dummy/public/javascripts/prototype.js +0 -6001
  57. data/test/dummy/public/javascripts/rails.js +0 -191
  58. data/test/dummy/public/javascripts/scriptaculous.js +0 -68
  59. data/test/dummy/public/javascripts/slider.js +0 -275
  60. data/test/dummy/public/javascripts/sound.js +0 -59
  61. data/test/dummy/public/javascripts/unittest.js +0 -568
  62. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  63. data/test/dummy/public/stylesheets/acts_as_monitor.css +0 -30
  64. data/test/dummy/script/rails +0 -6
  65. data/test/integration/navigation_test.rb +0 -7
  66. data/test/support/integration_case.rb +0 -5
  67. data/test/test_helper.rb +0 -22
@@ -11,7 +11,7 @@ module ActsAsMonitorHelper
11
11
  end
12
12
 
13
13
  def monitor_tag_js()
14
- content_tag(:div, "/#{Rails.root.to_s.split('/').last}", :id => 'acts_as_monitor_status_window') +
14
+ content_tag(:div, "/#{root_path}", :id => 'acts_as_monitor_status_window', :style => "display: none;") +
15
15
  javascript_include_tag("acts_as_monitor_javascript.js") +
16
16
  stylesheet_link_tag('acts_as_monitor.css')
17
17
  end
@@ -11,7 +11,7 @@ module ActsAsMonitor
11
11
  # end
12
12
  #
13
13
  #Includes models, controllers, helpers, config/routes.rb, config/locales/*, tasks in lib/tasks/*
14
- engine_name :acts_as_monitor
14
+ #engine_name :acts_as_monitor
15
15
 
16
16
  initializer 'acts_as_monitor.helper' do |app|
17
17
  #ActionView::Base.send :include, ActsAsMonitorHelper
@@ -1,3 +1,3 @@
1
1
  module ActsAsMonitor
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_monitor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 0.0.9
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrea Bignozzi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-28 00:00:00 +02:00
18
+ date: 2012-06-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -72,91 +72,28 @@ extensions: []
72
72
  extra_rdoc_files: []
73
73
 
74
74
  files:
75
- - .gitignore
76
- - CHANGELOG.md
77
- - Gemfile
78
- - LICENSE
79
- - README.md
80
- - Rakefile
81
- - acts_as_monitor.gemspec
82
- - app/controllers/acts_as_monitor/monitors_controller.rb
83
- - app/helpers/acts_as_monitor_helper.rb
84
75
  - app/views/acts_as_monitor/monitors/show.html.erb
85
- - config/routes.rb
76
+ - app/helpers/acts_as_monitor_helper.rb
77
+ - app/controllers/acts_as_monitor/monitors_controller.rb
86
78
  - lib/acts_as_monitor.rb
87
79
  - lib/acts_as_monitor/engine.rb
88
80
  - lib/acts_as_monitor/exceptions.rb
89
- - lib/acts_as_monitor/monitor.rb
90
81
  - lib/acts_as_monitor/version.rb
82
+ - lib/acts_as_monitor/monitor.rb
91
83
  - lib/generators/acts_as_monitor/install/install_generator.rb
92
- - lib/generators/acts_as_monitor/install/templates/acts_as_monitor.css
93
84
  - lib/generators/acts_as_monitor/install/templates/acts_as_monitor.it.yml
94
85
  - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_green.png
95
- - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_javascript.js
86
+ - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_yellow.png
96
87
  - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_loading.gif
97
88
  - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_red.png
98
- - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_yellow.png
99
- - test/acts_as_monitor_helper_test.rb
100
- - test/acts_as_monitor_test.rb
101
- - test/database.yml
102
- - test/dummy/Rakefile
103
- - test/dummy/app/controllers/application_controller.rb
104
- - test/dummy/app/controllers/homes_controller.rb
105
- - test/dummy/app/helpers/application_helper.rb
106
- - test/dummy/app/helpers/homes_helper.rb
107
- - test/dummy/app/models/test_class.rb
108
- - test/dummy/app/models/test_class_no_monitor.rb
109
- - test/dummy/app/views/homes/index.html.erb
110
- - test/dummy/app/views/layouts/application.html.erb
111
- - test/dummy/config.ru
112
- - test/dummy/config/application.rb
113
- - test/dummy/config/boot.rb
114
- - test/dummy/config/database.yml
115
- - test/dummy/config/environment.rb
116
- - test/dummy/config/environments/development.rb
117
- - test/dummy/config/environments/production.rb
118
- - test/dummy/config/environments/test.rb
119
- - test/dummy/config/initializers/backtrace_silencers.rb
120
- - test/dummy/config/initializers/inflections.rb
121
- - test/dummy/config/initializers/mime_types.rb
122
- - test/dummy/config/initializers/secret_token.rb
123
- - test/dummy/config/initializers/session_store.rb
124
- - test/dummy/config/locales/acts_as_monitor.it.yml
125
- - test/dummy/config/locales/en.yml
126
- - test/dummy/config/routes.rb
127
- - test/dummy/db/development.sqlite3
128
- - test/dummy/db/migrate/20120523110000_add_test_tables.rb
129
- - test/dummy/db/schema.rb
130
- - test/dummy/db/test.sqlite3
131
- - test/dummy/log/development.log
132
- - test/dummy/log/production.log
133
- - test/dummy/log/server.log
134
- - test/dummy/log/test.log
135
- - test/dummy/public/404.html
136
- - test/dummy/public/422.html
137
- - test/dummy/public/500.html
138
- - test/dummy/public/favicon.ico
139
- - test/dummy/public/images/acts_as_monitor_green.png
140
- - test/dummy/public/images/acts_as_monitor_red.png
141
- - test/dummy/public/images/acts_as_monitor_yellow.png
142
- - test/dummy/public/javascripts/acts_as_monitor_javascript.js
143
- - test/dummy/public/javascripts/application.js
144
- - test/dummy/public/javascripts/builder.js
145
- - test/dummy/public/javascripts/controls.js
146
- - test/dummy/public/javascripts/dragdrop.js
147
- - test/dummy/public/javascripts/effects.js
148
- - test/dummy/public/javascripts/prototype.js
149
- - test/dummy/public/javascripts/rails.js
150
- - test/dummy/public/javascripts/scriptaculous.js
151
- - test/dummy/public/javascripts/slider.js
152
- - test/dummy/public/javascripts/sound.js
153
- - test/dummy/public/javascripts/unittest.js
154
- - test/dummy/public/stylesheets/.gitkeep
155
- - test/dummy/public/stylesheets/acts_as_monitor.css
156
- - test/dummy/script/rails
157
- - test/integration/navigation_test.rb
158
- - test/support/integration_case.rb
159
- - test/test_helper.rb
89
+ - lib/generators/acts_as_monitor/install/templates/acts_as_monitor.css
90
+ - lib/generators/acts_as_monitor/install/templates/acts_as_monitor_javascript.js
91
+ - config/routes.rb
92
+ - Rakefile
93
+ - Gemfile
94
+ - README.md
95
+ - CHANGELOG.md
96
+ - LICENSE
160
97
  has_rdoc: true
161
98
  homepage:
162
99
  licenses: []
@@ -191,65 +128,5 @@ rubygems_version: 1.3.7
191
128
  signing_key:
192
129
  specification_version: 3
193
130
  summary: Monitor models
194
- test_files:
195
- - test/acts_as_monitor_helper_test.rb
196
- - test/acts_as_monitor_test.rb
197
- - test/database.yml
198
- - test/dummy/Rakefile
199
- - test/dummy/app/controllers/application_controller.rb
200
- - test/dummy/app/controllers/homes_controller.rb
201
- - test/dummy/app/helpers/application_helper.rb
202
- - test/dummy/app/helpers/homes_helper.rb
203
- - test/dummy/app/models/test_class.rb
204
- - test/dummy/app/models/test_class_no_monitor.rb
205
- - test/dummy/app/views/homes/index.html.erb
206
- - test/dummy/app/views/layouts/application.html.erb
207
- - test/dummy/config.ru
208
- - test/dummy/config/application.rb
209
- - test/dummy/config/boot.rb
210
- - test/dummy/config/database.yml
211
- - test/dummy/config/environment.rb
212
- - test/dummy/config/environments/development.rb
213
- - test/dummy/config/environments/production.rb
214
- - test/dummy/config/environments/test.rb
215
- - test/dummy/config/initializers/backtrace_silencers.rb
216
- - test/dummy/config/initializers/inflections.rb
217
- - test/dummy/config/initializers/mime_types.rb
218
- - test/dummy/config/initializers/secret_token.rb
219
- - test/dummy/config/initializers/session_store.rb
220
- - test/dummy/config/locales/acts_as_monitor.it.yml
221
- - test/dummy/config/locales/en.yml
222
- - test/dummy/config/routes.rb
223
- - test/dummy/db/development.sqlite3
224
- - test/dummy/db/migrate/20120523110000_add_test_tables.rb
225
- - test/dummy/db/schema.rb
226
- - test/dummy/db/test.sqlite3
227
- - test/dummy/log/development.log
228
- - test/dummy/log/production.log
229
- - test/dummy/log/server.log
230
- - test/dummy/log/test.log
231
- - test/dummy/public/404.html
232
- - test/dummy/public/422.html
233
- - test/dummy/public/500.html
234
- - test/dummy/public/favicon.ico
235
- - test/dummy/public/images/acts_as_monitor_green.png
236
- - test/dummy/public/images/acts_as_monitor_red.png
237
- - test/dummy/public/images/acts_as_monitor_yellow.png
238
- - test/dummy/public/javascripts/acts_as_monitor_javascript.js
239
- - test/dummy/public/javascripts/application.js
240
- - test/dummy/public/javascripts/builder.js
241
- - test/dummy/public/javascripts/controls.js
242
- - test/dummy/public/javascripts/dragdrop.js
243
- - test/dummy/public/javascripts/effects.js
244
- - test/dummy/public/javascripts/prototype.js
245
- - test/dummy/public/javascripts/rails.js
246
- - test/dummy/public/javascripts/scriptaculous.js
247
- - test/dummy/public/javascripts/slider.js
248
- - test/dummy/public/javascripts/sound.js
249
- - test/dummy/public/javascripts/unittest.js
250
- - test/dummy/public/stylesheets/.gitkeep
251
- - test/dummy/public/stylesheets/acts_as_monitor.css
252
- - test/dummy/script/rails
253
- - test/integration/navigation_test.rb
254
- - test/support/integration_case.rb
255
- - test/test_helper.rb
131
+ test_files: []
132
+
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .svn
4
- .bundle
5
- .config
6
- .yardoc
7
- Gemfile.lock
8
- InstalledFiles
9
- _yardoc
10
- coverage
11
- doc/
12
- lib/bundler/man
13
- pkg
14
- rdoc
15
- spec/reports
16
- test/tmp
17
- test/version_tmp
18
- tmp
@@ -1,22 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/acts_as_monitor/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Andrea Bignozzi"]
6
- gem.email = ["skylord73@gmail.com"]
7
- gem.description = %q{Monitor model via private methods warn_*? and error_*?}
8
- gem.summary = %q{Monitor models }
9
-
10
- gem.files = `git ls-files`.split($\)
11
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
- gem.name = "acts_as_monitor"
14
- gem.require_paths = ["lib"]
15
- gem.version = ActsAsMonitor::VERSION
16
-
17
- gem.add_dependency "rails", "3.0.9"
18
-
19
- gem.add_development_dependency "rake"
20
- gem.add_development_dependency "rspec"
21
-
22
- end
@@ -1,16 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ActsAsMonitorHelperTest < ActionView::TestCase
4
- test "monitor_tag return image" do
5
- @test_class = TestClass.new
6
- @image = image_tag("acts_as_monitor_#{@test_class.status_flag.to_s}.png" , :alt => "Click to view details")
7
- assert monitor_tag(@test_class) == @image , "fail monitor tag :#{monitor_tag(TestClass.new)}"
8
- end
9
-
10
- test "monitor_tag Rise exception" do
11
- assert_raise ActsAsMonitor::MissingMethod do
12
- monitor_tag(TestClassNoMonitor.new)
13
- end
14
- end
15
- end
16
-
@@ -1,35 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ActsAsMonitorTest < ActiveSupport::TestCase
4
- test "Methods exists!" do
5
- @test_class = TestClass.new
6
- assert TestClass.respond_to?(:acts_as_monitor), "acts_as_monitor missing!"
7
- assert @test_class.respond_to?(:status), "status missing!"
8
- assert @test_class.respond_to?(:status_flag), "status_flag missing!"
9
- end
10
-
11
- test "Status ok" do
12
- @test_class = TestClass.new()
13
- assert @test_class.status == {:warn => [], :error => []} , "Error: #{@test_class.status.inspect}"
14
- assert @test_class.status_flag == :green , "Error: #{@test_class.status_flag.inspect}"
15
- end
16
-
17
- test "Status warn" do
18
- @test_class = TestClass.new(:warn => true)
19
- assert @test_class.status == {:warn => [:warn_test ], :error => []} , "Error: #{@test_class.status.inspect}"
20
- assert @test_class.status_flag == :yellow , "Error: #{@test_class.status_flag.inspect}"
21
- end
22
-
23
- test "Status error" do
24
- @test_class = TestClass.new(:error => true)
25
- assert @test_class.status == {:warn => [], :error => [:error_test ]}, "Error: #{@test_class.status.inspect}"
26
- assert @test_class.status_flag == :red , "Error: #{@test_class.status_flag.inspect}"
27
- end
28
-
29
- test "Status error & warn " do
30
- @test_class = TestClass.new(:error => true, :warn => true)
31
- assert @test_class.status == {:warn => [:warn_test ], :error => [:error_test ]}, "Error: #{@test_class.status.inspect}"
32
- assert @test_class.status_flag == :red , "Error: #{@test_class.status_flag.inspect}"
33
- end
34
-
35
- end
data/test/database.yml DELETED
@@ -1,3 +0,0 @@
1
- sqlite3:
2
- adapter: sqlite3
3
- database: test/acts_as_monitor.sqlite3.db
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,4 +0,0 @@
1
- class HomesController < ApplicationController
2
- def index
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module HomesHelper
2
- end
@@ -1,33 +0,0 @@
1
- class TestClass < ActiveRecord::Base
2
- acts_as_monitor
3
- attr_accessor :warn, :error
4
-
5
- after_initialize do
6
- @warn ||= false
7
- @error ||= false
8
- end
9
-
10
-
11
- private
12
-
13
- def warn_test?
14
- @warn
15
- end
16
-
17
- def error_test?
18
- @error
19
- end
20
-
21
- def warn_paperino?
22
- return true if self.name == 'Paperino'
23
- end
24
-
25
- def error_pippo?
26
- return true if self.name == 'Pippo'
27
- end
28
-
29
- def error_id?
30
- return true if self.id == 1
31
- end
32
-
33
- end
@@ -1,2 +0,0 @@
1
- class TestClassNoMonitor
2
- end
@@ -1,8 +0,0 @@
1
- <p>Home Page</p>
2
- <%= javascript_include_tag :defaults %>
3
- <%= monitor_tag_js %>
4
- <ul>
5
- <% TestClass.all.each do |u| %>
6
- <li><p><%= u.name %></p><p><%= u.status_flag %></p><%=monitor_tag(u) %></li>
7
- <% end %>
8
- </ul>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,45 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "active_model/railtie"
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_view/railtie"
7
- require "action_mailer/railtie"
8
-
9
- Bundler.require
10
- require "acts_as_monitor"
11
-
12
- module Dummy
13
- class Application < Rails::Application
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- # config.autoload_paths += %W(#{config.root}/extras)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # JavaScript files you want as :defaults (application.js is always included).
37
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
38
-
39
- # Configure the default encoding used in templates for Ruby 1.9.
40
- config.encoding = "utf-8"
41
-
42
- # Configure sensitive parameters which will be filtered from the log file.
43
- config.filter_parameters += [:password]
44
- end
45
- end
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,22 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
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
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,26 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
@@ -1,49 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,35 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '2e7b0143b08c10f46a527377cecda39956ad9c16ef26e985822f14573c33da08db078989e889824819fa51d115d34006cf58e441f509cbe1cde284b890c594a1'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store