app-yml-rails 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 (48) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +64 -0
  4. data/Rakefile +11 -0
  5. data/lib/app_yml.rb +6 -0
  6. data/lib/app_yml/application_controller_ext.rb +20 -0
  7. data/lib/app_yml/core_ext.rb +45 -0
  8. data/lib/app_yml/version.rb +3 -0
  9. data/lib/generators/app_yml/install/install_generator.rb +25 -0
  10. data/lib/generators/app_yml/install/templates/app.rb +39 -0
  11. data/lib/generators/app_yml/install/templates/app.yml +42 -0
  12. data/test/app_yml_test.rb +5 -0
  13. data/test/core_ext_test.rb +47 -0
  14. data/test/dummy/README.rdoc +261 -0
  15. data/test/dummy/Rakefile +7 -0
  16. data/test/dummy/app/assets/javascripts/application.js +13 -0
  17. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  18. data/test/dummy/app/controllers/application_controller.rb +5 -0
  19. data/test/dummy/app/controllers/landing_controller.rb +6 -0
  20. data/test/dummy/app/views/landing/index.html.erb +15 -0
  21. data/test/dummy/app/views/landing/missing_initializer.html.erb +6 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +12 -0
  23. data/test/dummy/config.ru +4 -0
  24. data/test/dummy/config/app.yml +42 -0
  25. data/test/dummy/config/application.rb +62 -0
  26. data/test/dummy/config/boot.rb +10 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +30 -0
  29. data/test/dummy/config/environments/production.rb +63 -0
  30. data/test/dummy/config/environments/test.rb +34 -0
  31. data/test/dummy/config/initializers/app.rb +39 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/inflections.rb +15 -0
  34. data/test/dummy/config/initializers/mime_types.rb +5 -0
  35. data/test/dummy/config/initializers/secret_token.rb +7 -0
  36. data/test/dummy/config/initializers/session_store.rb +8 -0
  37. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  38. data/test/dummy/config/routes.rb +3 -0
  39. data/test/dummy/log/development.log +1740 -0
  40. data/test/dummy/log/test.log +0 -0
  41. data/test/dummy/public/404.html +26 -0
  42. data/test/dummy/public/422.html +26 -0
  43. data/test/dummy/public/500.html +25 -0
  44. data/test/dummy/public/favicon.ico +0 -0
  45. data/test/dummy/script/rails +6 -0
  46. data/test/dummy/tmp/pids/server.pid +1 -0
  47. data/test/test_helper.rb +15 -0
  48. metadata +141 -0
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1 @@
1
+ 51049
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: app-yml-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Graham Swan
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70289267373220 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70289267373220
25
+ description: An awesome app.yml gem for Rails. Supports App.settings.nested_setting
26
+ syntax, all/production/staging/development/test environments, and auto-reloads app.yml
27
+ changes without requiring an application restart.
28
+ email: thinkswan@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/app_yml/application_controller_ext.rb
34
+ - lib/app_yml/core_ext.rb
35
+ - lib/app_yml/version.rb
36
+ - lib/app_yml.rb
37
+ - lib/generators/app_yml/install/install_generator.rb
38
+ - lib/generators/app_yml/install/templates/app.rb
39
+ - lib/generators/app_yml/install/templates/app.yml
40
+ - MIT-LICENSE
41
+ - Rakefile
42
+ - README.md
43
+ - CHANGELOG.md
44
+ - test/app_yml_test.rb
45
+ - test/core_ext_test.rb
46
+ - test/dummy/app/assets/javascripts/application.js
47
+ - test/dummy/app/assets/stylesheets/application.css
48
+ - test/dummy/app/controllers/application_controller.rb
49
+ - test/dummy/app/controllers/landing_controller.rb
50
+ - test/dummy/app/views/landing/index.html.erb
51
+ - test/dummy/app/views/landing/missing_initializer.html.erb
52
+ - test/dummy/app/views/layouts/application.html.erb
53
+ - test/dummy/config/app.yml
54
+ - test/dummy/config/application.rb
55
+ - test/dummy/config/boot.rb
56
+ - test/dummy/config/environment.rb
57
+ - test/dummy/config/environments/development.rb
58
+ - test/dummy/config/environments/production.rb
59
+ - test/dummy/config/environments/test.rb
60
+ - test/dummy/config/initializers/app.rb
61
+ - test/dummy/config/initializers/backtrace_silencers.rb
62
+ - test/dummy/config/initializers/inflections.rb
63
+ - test/dummy/config/initializers/mime_types.rb
64
+ - test/dummy/config/initializers/secret_token.rb
65
+ - test/dummy/config/initializers/session_store.rb
66
+ - test/dummy/config/initializers/wrap_parameters.rb
67
+ - test/dummy/config/routes.rb
68
+ - test/dummy/config.ru
69
+ - test/dummy/log/development.log
70
+ - test/dummy/log/test.log
71
+ - test/dummy/public/404.html
72
+ - test/dummy/public/422.html
73
+ - test/dummy/public/500.html
74
+ - test/dummy/public/favicon.ico
75
+ - test/dummy/Rakefile
76
+ - test/dummy/README.rdoc
77
+ - test/dummy/script/rails
78
+ - test/dummy/tmp/pids/server.pid
79
+ - test/test_helper.rb
80
+ homepage: https://github.com/thinkswan/app-yml-rails
81
+ licenses: []
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 1.8.11
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: ! 'The easiest way to maintain project-wide settings. (Eg: App.emails.sales_email
104
+ will return ''sales@example.com'' anywhere in your app)'
105
+ test_files:
106
+ - test/app_yml_test.rb
107
+ - test/core_ext_test.rb
108
+ - test/dummy/app/assets/javascripts/application.js
109
+ - test/dummy/app/assets/stylesheets/application.css
110
+ - test/dummy/app/controllers/application_controller.rb
111
+ - test/dummy/app/controllers/landing_controller.rb
112
+ - test/dummy/app/views/landing/index.html.erb
113
+ - test/dummy/app/views/landing/missing_initializer.html.erb
114
+ - test/dummy/app/views/layouts/application.html.erb
115
+ - test/dummy/config/app.yml
116
+ - test/dummy/config/application.rb
117
+ - test/dummy/config/boot.rb
118
+ - test/dummy/config/environment.rb
119
+ - test/dummy/config/environments/development.rb
120
+ - test/dummy/config/environments/production.rb
121
+ - test/dummy/config/environments/test.rb
122
+ - test/dummy/config/initializers/app.rb
123
+ - test/dummy/config/initializers/backtrace_silencers.rb
124
+ - test/dummy/config/initializers/inflections.rb
125
+ - test/dummy/config/initializers/mime_types.rb
126
+ - test/dummy/config/initializers/secret_token.rb
127
+ - test/dummy/config/initializers/session_store.rb
128
+ - test/dummy/config/initializers/wrap_parameters.rb
129
+ - test/dummy/config/routes.rb
130
+ - test/dummy/config.ru
131
+ - test/dummy/log/development.log
132
+ - test/dummy/log/test.log
133
+ - test/dummy/public/404.html
134
+ - test/dummy/public/422.html
135
+ - test/dummy/public/500.html
136
+ - test/dummy/public/favicon.ico
137
+ - test/dummy/Rakefile
138
+ - test/dummy/README.rdoc
139
+ - test/dummy/script/rails
140
+ - test/dummy/tmp/pids/server.pid
141
+ - test/test_helper.rb