batman-rails 0.16.0 → 0.16.1

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/lib/batman-rails/version.rb +1 -1
  4. data/lib/generators/batman/app_generator.rb +1 -1
  5. data/lib/templates/rails/controller.rb +1 -1
  6. data/test/define_view_helper_test.rb +1 -1
  7. data/test/sample/.gitignore +16 -5
  8. data/test/sample/Gemfile +30 -20
  9. data/test/sample/README.rdoc +28 -0
  10. data/test/sample/Rakefile +1 -2
  11. data/test/sample/app/{mailers/.gitkeep → assets/images/.keep} +0 -0
  12. data/test/sample/app/assets/javascripts/application.js +11 -4
  13. data/test/sample/app/assets/stylesheets/application.css +13 -5
  14. data/test/sample/app/controllers/application_controller.rb +3 -1
  15. data/test/sample/app/{models/.gitkeep → controllers/concerns/.keep} +0 -0
  16. data/test/sample/{lib/assets/.gitkeep → app/mailers/.keep} +0 -0
  17. data/test/sample/{lib/tasks/.gitkeep → app/models/.keep} +0 -0
  18. data/test/sample/{log/.gitkeep → app/models/concerns/.keep} +0 -0
  19. data/test/sample/app/views/layouts/application.html.erb +2 -2
  20. data/test/sample/bin/bundle +3 -0
  21. data/test/sample/bin/rails +8 -0
  22. data/test/sample/bin/rake +8 -0
  23. data/test/sample/bin/spring +18 -0
  24. data/test/sample/config.ru +1 -1
  25. data/test/sample/config/application.rb +3 -28
  26. data/test/sample/config/boot.rb +1 -3
  27. data/test/sample/config/database.yml +8 -8
  28. data/test/sample/config/environment.rb +3 -3
  29. data/test/sample/config/environments/development.rb +21 -14
  30. data/test/sample/config/environments/production.rb +48 -25
  31. data/test/sample/config/environments/test.rb +18 -21
  32. data/test/sample/config/initializers/cookies_serializer.rb +3 -0
  33. data/test/sample/config/initializers/filter_parameter_logging.rb +4 -0
  34. data/test/sample/config/initializers/inflections.rb +9 -3
  35. data/test/sample/config/initializers/mime_types.rb +0 -1
  36. data/test/sample/config/initializers/session_store.rb +1 -6
  37. data/test/sample/config/initializers/wrap_parameters.rb +6 -6
  38. data/test/sample/config/locales/en.yml +20 -2
  39. data/test/sample/config/routes.rb +23 -25
  40. data/test/sample/config/secrets.yml +22 -0
  41. data/test/sample/db/seeds.rb +2 -2
  42. data/test/sample/{test/fixtures/.gitkeep → lib/assets/.keep} +0 -0
  43. data/test/sample/{test/functional/.gitkeep → lib/tasks/.keep} +0 -0
  44. data/test/sample/{test/integration/.gitkeep → log/.keep} +0 -0
  45. data/test/sample/public/404.html +54 -13
  46. data/test/sample/public/422.html +54 -13
  47. data/test/sample/public/500.html +53 -13
  48. data/test/sample/public/robots.txt +2 -2
  49. data/test/sample/test/{unit/.gitkeep → controllers/.keep} +0 -0
  50. data/test/sample/{vendor/assets/stylesheets/.gitkeep → test/fixtures/.keep} +0 -0
  51. data/test/sample/{vendor/plugins/.gitkeep → test/helpers/.keep} +0 -0
  52. data/test/sample/test/integration/.keep +0 -0
  53. data/test/sample/test/mailers/.keep +0 -0
  54. data/test/sample/test/models/.keep +0 -0
  55. data/test/sample/test/test_helper.rb +2 -2
  56. data/test/sample/vendor/assets/javascripts/.keep +0 -0
  57. data/test/sample/vendor/assets/stylesheets/.keep +0 -0
  58. metadata +64 -52
  59. data/test/sample/README +0 -261
  60. data/test/sample/app/assets/images/rails.png +0 -0
  61. data/test/sample/config/initializers/secret_token.rb +0 -7
  62. data/test/sample/doc/README_FOR_APP +0 -2
  63. data/test/sample/public/index.html +0 -241
  64. data/test/sample/script/rails +0 -6
  65. data/test/sample/test/performance/browsing_test.rb +0 -12
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/422.html -->
21
59
  <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>
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,25 +2,65 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/500.html -->
21
59
  <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
24
64
  </div>
25
65
  </body>
26
66
  </html>
@@ -1,5 +1,5 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
2
  #
3
3
  # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
4
+ # User-agent: *
5
5
  # Disallow: /
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
- ENV["RAILS_ENV"] = "test"
1
+ ENV['RAILS_ENV'] ||= 'test'
2
2
  require File.expand_path('../../config/environment', __FILE__)
3
3
  require 'rails/test_help'
4
4
 
5
5
  class ActiveSupport::TestCase
6
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
6
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
7
  #
8
8
  # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
9
  # -- they do not yet inherit this setting
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batman-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Small
@@ -11,76 +11,76 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-05-10 00:00:00.000000000 Z
14
+ date: 2014-07-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.2'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: rails
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - '>='
48
+ - - ">="
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mocha
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: sqlite3
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  description: Quickly get started with batman.js in a Rails app. Provides generators
@@ -91,7 +91,7 @@ executables: []
91
91
  extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
- - .gitignore
94
+ - ".gitignore"
95
95
  - Gemfile
96
96
  - LICENSE.txt
97
97
  - README.md
@@ -130,16 +130,22 @@ files:
130
130
  - test/model_generator_test.rb
131
131
  - test/sample/.gitignore
132
132
  - test/sample/Gemfile
133
- - test/sample/README
133
+ - test/sample/README.rdoc
134
134
  - test/sample/Rakefile
135
- - test/sample/app/assets/images/rails.png
135
+ - test/sample/app/assets/images/.keep
136
136
  - test/sample/app/assets/javascripts/application.js
137
137
  - test/sample/app/assets/stylesheets/application.css
138
138
  - test/sample/app/controllers/application_controller.rb
139
+ - test/sample/app/controllers/concerns/.keep
139
140
  - test/sample/app/helpers/application_helper.rb
140
- - test/sample/app/mailers/.gitkeep
141
- - test/sample/app/models/.gitkeep
141
+ - test/sample/app/mailers/.keep
142
+ - test/sample/app/models/.keep
143
+ - test/sample/app/models/concerns/.keep
142
144
  - test/sample/app/views/layouts/application.html.erb
145
+ - test/sample/bin/bundle
146
+ - test/sample/bin/rails
147
+ - test/sample/bin/rake
148
+ - test/sample/bin/spring
143
149
  - test/sample/config.ru
144
150
  - test/sample/config/application.rb
145
151
  - test/sample/config/boot.rb
@@ -149,33 +155,33 @@ files:
149
155
  - test/sample/config/environments/production.rb
150
156
  - test/sample/config/environments/test.rb
151
157
  - test/sample/config/initializers/backtrace_silencers.rb
158
+ - test/sample/config/initializers/cookies_serializer.rb
159
+ - test/sample/config/initializers/filter_parameter_logging.rb
152
160
  - test/sample/config/initializers/inflections.rb
153
161
  - test/sample/config/initializers/mime_types.rb
154
- - test/sample/config/initializers/secret_token.rb
155
162
  - test/sample/config/initializers/session_store.rb
156
163
  - test/sample/config/initializers/wrap_parameters.rb
157
164
  - test/sample/config/locales/en.yml
158
165
  - test/sample/config/routes.rb
166
+ - test/sample/config/secrets.yml
159
167
  - test/sample/db/seeds.rb
160
- - test/sample/doc/README_FOR_APP
161
- - test/sample/lib/assets/.gitkeep
162
- - test/sample/lib/tasks/.gitkeep
163
- - test/sample/log/.gitkeep
168
+ - test/sample/lib/assets/.keep
169
+ - test/sample/lib/tasks/.keep
170
+ - test/sample/log/.keep
164
171
  - test/sample/public/404.html
165
172
  - test/sample/public/422.html
166
173
  - test/sample/public/500.html
167
174
  - test/sample/public/favicon.ico
168
- - test/sample/public/index.html
169
175
  - test/sample/public/robots.txt
170
- - test/sample/script/rails
171
- - test/sample/test/fixtures/.gitkeep
172
- - test/sample/test/functional/.gitkeep
173
- - test/sample/test/integration/.gitkeep
174
- - test/sample/test/performance/browsing_test.rb
176
+ - test/sample/test/controllers/.keep
177
+ - test/sample/test/fixtures/.keep
178
+ - test/sample/test/helpers/.keep
179
+ - test/sample/test/integration/.keep
180
+ - test/sample/test/mailers/.keep
181
+ - test/sample/test/models/.keep
175
182
  - test/sample/test/test_helper.rb
176
- - test/sample/test/unit/.gitkeep
177
- - test/sample/vendor/assets/stylesheets/.gitkeep
178
- - test/sample/vendor/plugins/.gitkeep
183
+ - test/sample/vendor/assets/javascripts/.keep
184
+ - test/sample/vendor/assets/stylesheets/.keep
179
185
  - test/test_helper.rb
180
186
  - test/view_generator_test.rb
181
187
  - vendor.sh
@@ -200,17 +206,17 @@ require_paths:
200
206
  - lib
201
207
  required_ruby_version: !ruby/object:Gem::Requirement
202
208
  requirements:
203
- - - '>='
209
+ - - ">="
204
210
  - !ruby/object:Gem::Version
205
211
  version: '0'
206
212
  required_rubygems_version: !ruby/object:Gem::Requirement
207
213
  requirements:
208
- - - '>='
214
+ - - ">="
209
215
  - !ruby/object:Gem::Version
210
216
  version: '0'
211
217
  requirements: []
212
218
  rubyforge_project:
213
- rubygems_version: 2.0.14
219
+ rubygems_version: 2.2.2
214
220
  signing_key:
215
221
  specification_version: 4
216
222
  summary: Use batman.js with Rails
@@ -223,16 +229,22 @@ test_files:
223
229
  - test/model_generator_test.rb
224
230
  - test/sample/.gitignore
225
231
  - test/sample/Gemfile
226
- - test/sample/README
232
+ - test/sample/README.rdoc
227
233
  - test/sample/Rakefile
228
- - test/sample/app/assets/images/rails.png
234
+ - test/sample/app/assets/images/.keep
229
235
  - test/sample/app/assets/javascripts/application.js
230
236
  - test/sample/app/assets/stylesheets/application.css
231
237
  - test/sample/app/controllers/application_controller.rb
238
+ - test/sample/app/controllers/concerns/.keep
232
239
  - test/sample/app/helpers/application_helper.rb
233
- - test/sample/app/mailers/.gitkeep
234
- - test/sample/app/models/.gitkeep
240
+ - test/sample/app/mailers/.keep
241
+ - test/sample/app/models/.keep
242
+ - test/sample/app/models/concerns/.keep
235
243
  - test/sample/app/views/layouts/application.html.erb
244
+ - test/sample/bin/bundle
245
+ - test/sample/bin/rails
246
+ - test/sample/bin/rake
247
+ - test/sample/bin/spring
236
248
  - test/sample/config.ru
237
249
  - test/sample/config/application.rb
238
250
  - test/sample/config/boot.rb
@@ -242,32 +254,32 @@ test_files:
242
254
  - test/sample/config/environments/production.rb
243
255
  - test/sample/config/environments/test.rb
244
256
  - test/sample/config/initializers/backtrace_silencers.rb
257
+ - test/sample/config/initializers/cookies_serializer.rb
258
+ - test/sample/config/initializers/filter_parameter_logging.rb
245
259
  - test/sample/config/initializers/inflections.rb
246
260
  - test/sample/config/initializers/mime_types.rb
247
- - test/sample/config/initializers/secret_token.rb
248
261
  - test/sample/config/initializers/session_store.rb
249
262
  - test/sample/config/initializers/wrap_parameters.rb
250
263
  - test/sample/config/locales/en.yml
251
264
  - test/sample/config/routes.rb
265
+ - test/sample/config/secrets.yml
252
266
  - test/sample/db/seeds.rb
253
- - test/sample/doc/README_FOR_APP
254
- - test/sample/lib/assets/.gitkeep
255
- - test/sample/lib/tasks/.gitkeep
256
- - test/sample/log/.gitkeep
267
+ - test/sample/lib/assets/.keep
268
+ - test/sample/lib/tasks/.keep
269
+ - test/sample/log/.keep
257
270
  - test/sample/public/404.html
258
271
  - test/sample/public/422.html
259
272
  - test/sample/public/500.html
260
273
  - test/sample/public/favicon.ico
261
- - test/sample/public/index.html
262
274
  - test/sample/public/robots.txt
263
- - test/sample/script/rails
264
- - test/sample/test/fixtures/.gitkeep
265
- - test/sample/test/functional/.gitkeep
266
- - test/sample/test/integration/.gitkeep
267
- - test/sample/test/performance/browsing_test.rb
275
+ - test/sample/test/controllers/.keep
276
+ - test/sample/test/fixtures/.keep
277
+ - test/sample/test/helpers/.keep
278
+ - test/sample/test/integration/.keep
279
+ - test/sample/test/mailers/.keep
280
+ - test/sample/test/models/.keep
268
281
  - test/sample/test/test_helper.rb
269
- - test/sample/test/unit/.gitkeep
270
- - test/sample/vendor/assets/stylesheets/.gitkeep
271
- - test/sample/vendor/plugins/.gitkeep
282
+ - test/sample/vendor/assets/javascripts/.keep
283
+ - test/sample/vendor/assets/stylesheets/.keep
272
284
  - test/test_helper.rb
273
285
  - test/view_generator_test.rb