ruby_badger 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +6 -6
  4. data/lib/ruby_badger/engine.rb +1 -1
  5. data/lib/ruby_badger/version.rb +1 -1
  6. data/ruby_badger.gemspec +6 -6
  7. data/spec/dummy/config/application.rb +0 -6
  8. data/spec/dummy/config/environments/development.rb +2 -3
  9. data/spec/dummy/config/environments/production.rb +3 -1
  10. data/spec/dummy/config/environments/test.rb +3 -4
  11. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  12. data/spec/dummy/db/test.sqlite3 +0 -0
  13. data/spec/dummy/log/test.log +12 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5b/5biB1oTgrUThsLmIz7bYoWfqDLxiUQmm80jkaWbJTXI.cache +2 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HW/HWGb0pve65JcnaSHyyfeCsKC7TU5ZcMAbCErnvnP1MY.cache +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lv/Lv5egkhMqGx5gnnPDsts9J4rM4VWRg1zai_7iBbGMq4.cache +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hT/hTbRVVSF64dfvoaoab7BP6jRmnTLM8xaH-73_JaufO0.cache +1 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfHTToEKlxxpSOu2FACdLNZOq7jtyMkfT2rU5UU8dwk.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mL/mLqQ9QSgDU5zOKdPWAg6q5_YCgUOQ04li9mPyEJAa04.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXfL_uG0PGIJgyvZTh7pt9eikyViqfIbmWc1ULTHiLM.cache +3 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yY/yYGx7JZOLkGdhd7OPJ5uJsukUR43Uz5ifcX8IT_k7H0.cache +2 -0
  22. data/spec/integration/ruby_badger_assets_integration_spec.rb +1 -1
  23. data/spec/spec_helper.rb +1 -2
  24. metadata +70 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0117883af4cf4c3bd8a8067891a39df9a495cc5bdc6b3870313b5fda0239d2d2'
4
- data.tar.gz: c7494197646daccb66bf751da471e57a6b8baeca79be283d8cc4c02fb4701252
3
+ metadata.gz: d14675dd254763492d867ae8e43bd2659f73457a1be482d0c0683328ccbae847
4
+ data.tar.gz: 6ad7b0a1629c0a7e093e21e0e8af0d1d80d465b42359df0b1274f363ad198852
5
5
  SHA512:
6
- metadata.gz: 7c269bf39f26566deec1ade32b100a45dc37a6951ed2cbdd32931c2f9f13b0026498df97a0bb30b7e33d725100963b7a357caa0b38a73a2ca17e32742c965d3f
7
- data.tar.gz: db18fa87de8b973a610d86563622e79bd01973fd5af31c155cc3df969f4a390bb049949ec5aef4882f1ae76f4bd65b528d3f83d19aaecf74064dba116def121d
6
+ metadata.gz: bf775bb247f33ad0c69629c35c3d4a3006aac3679481df70fc12b0d4fbf51817a01da8274f07d97264255a874e824d5456b5c23a4023d8cf6f960370ad79a454
7
+ data.tar.gz: d90a3877cab582732a0b747e11f63903c42e1662527648bdc95f8945c59229512187e2f701cc3fa8f7002999e820544e2f69b8c7fd8ed6d9f90d768bce68d71e
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ gemspec
9
9
  gem "jquery-rails"
10
10
  gem "rails"
11
11
  gem 'sqlite3'
12
+
12
13
  # Declare any dependencies that are still in development here instead of in
13
14
  # your gemspec. These might include edge Rails or gems from your path or
14
15
  # Git. Remember to move these dependencies to your gemspec before releasing
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_badger (4.2.0)
4
+ ruby_badger (4.2.2)
5
5
  rails (~> 4.2, >= 4.2)
6
6
 
7
7
  GEM
@@ -56,10 +56,10 @@ GEM
56
56
  crass (1.0.3)
57
57
  diff-lcs (1.3)
58
58
  erubis (2.7.0)
59
- factory_girl (4.9.0)
59
+ factory_bot (4.8.2)
60
60
  activesupport (>= 3.0.0)
61
- factory_girl_rails (4.9.0)
62
- factory_girl (~> 4.9.0)
61
+ factory_bot_rails (4.8.2)
62
+ factory_bot (~> 4.8.2)
63
63
  railties (>= 3.0.0)
64
64
  ffi (1.9.23)
65
65
  fuubar (2.3.1)
@@ -166,11 +166,11 @@ PLATFORMS
166
166
  DEPENDENCIES
167
167
  bundler (~> 1.8, >= 1.8)
168
168
  capybara
169
- factory_girl_rails
169
+ factory_bot_rails
170
170
  fuubar
171
171
  jquery-rails
172
172
  rails
173
- rake
173
+ rake (~> 12.3.0, >= 12.3)
174
174
  rspec-rails
175
175
  ruby_badger!
176
176
  sass-rails
@@ -2,7 +2,7 @@ module RubyBadger
2
2
  class Engine < Rails::Engine
3
3
  config.generators do |g|
4
4
  g.test_framework :rspec, :fixture => false
5
- g.fixture_replacement :factory_girl, :dir => 'spec/factories'
5
+ g.fixture_replacement :factory_bot, :dir => 'spec/factories'
6
6
  g.assets false
7
7
  g.helper false
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module RubyBadger
2
- VERSION = "4.2.1"
2
+ VERSION = "4.2.2"
3
3
  end
data/ruby_badger.gemspec CHANGED
@@ -25,13 +25,13 @@ Gem::Specification.new do |spec|
25
25
  spec.add_runtime_dependency "rails", '~> 4.2', '>= 4.2'
26
26
 
27
27
  spec.add_development_dependency "bundler", '~> 1.8', ">= 1.8"
28
- spec.add_development_dependency "rake"
28
+ spec.add_development_dependency "rake", '~> 12.3.0', ">= 12.3"
29
29
 
30
- spec.add_development_dependency 'rspec-rails'
31
- spec.add_development_dependency 'capybara'
32
- spec.add_development_dependency 'factory_girl_rails'
33
- spec.add_development_dependency 'fuubar'
34
- spec.add_development_dependency 'sass-rails'
30
+ spec.add_development_dependency 'rspec-rails', "~> 3.7.2", ">= 3.7"
31
+ spec.add_development_dependency 'capybara', "~> 2.18.0", ">= 2.18"
32
+ spec.add_development_dependency 'factory_bot_rails', '~> 4.8.2', ">= 4.8"
33
+ spec.add_development_dependency 'fuubar', '~> 2.3.1', ">= 2.3"
34
+ spec.add_development_dependency 'sass-rails', '~> 5.0.7', ">= 5.0"
35
35
 
36
36
  spec.test_files = Dir["spec/**/*"]
37
37
  end
@@ -45,12 +45,6 @@ module Dummy
45
45
  # like if you have constraints or database-specific column types
46
46
  # config.active_record.schema_format = :sql
47
47
 
48
- # Enforce whitelist mode for mass assignment.
49
- # This will create an empty whitelist of attributes available for mass-assignment for all models
50
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
51
- # parameters by using an attr_accessible or attr_protected declaration.
52
- config.active_record.whitelist_attributes = true
53
-
54
48
  # Enable the asset pipeline
55
49
  config.assets.enabled = true
56
50
 
@@ -22,9 +22,6 @@ Dummy::Application.configure do
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
24
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
25
  # Log the query plan for queries taking more than this (works
29
26
  # with SQLite, MySQL, and PostgreSQL)
30
27
  config.active_record.auto_explain_threshold_in_seconds = 0.5
@@ -34,4 +31,6 @@ Dummy::Application.configure do
34
31
 
35
32
  # Expands the lines which load the assets
36
33
  config.assets.debug = true
34
+
35
+ config.eager_load = false
37
36
  end
@@ -9,7 +9,7 @@ Dummy::Application.configure do
9
9
  config.action_controller.perform_caching = true
10
10
 
11
11
  # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
12
+ config.serve_static_files = false
13
13
 
14
14
  # Compress JavaScripts and CSS
15
15
  config.assets.compress = true
@@ -64,4 +64,6 @@ Dummy::Application.configure do
64
64
  # Log the query plan for queries taking more than this (works
65
65
  # with SQLite, MySQL, and PostgreSQL)
66
66
  # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+
68
+ config.eager_load = true
67
69
  end
@@ -8,7 +8,7 @@ Dummy::Application.configure do
8
8
  config.cache_classes = true
9
9
 
10
10
  # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
11
+ config.serve_static_files = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
14
  # Log error messages when you accidentally call methods on nil
@@ -29,9 +29,8 @@ Dummy::Application.configure do
29
29
  # ActionMailer::Base.deliveries array.
30
30
  config.action_mailer.delivery_method = :test
31
31
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
32
  # Print deprecation notices to the stderr
36
33
  config.active_support.deprecation = :stderr
34
+
35
+ config.eager_load = false
37
36
  end
@@ -5,3 +5,4 @@
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
7
  Dummy::Application.config.secret_token = '610b95690072e7a2c0251bf885d70d9b814393b37c28d0bf3ce293e0cf8cc8207774cc044557737c7668c483e3ab050f2a45697030f1dd644fa7fdafdbc68fe0'
8
+ Dummy::Application.config.secret_key_base = '5b8ef00a603c8fc9d8ae53f85b892df9783c96e3e402d01a92bc4a298e43fcb0a6543df7b106fcdfe99c12b0c74f87a961b78ffac01d7d4d36de978d3b352bd0'
File without changes
@@ -0,0 +1,12 @@
1
+  (0.2ms) begin transaction
2
+ Started GET "/assets/ruby_badger.css" for 127.0.0.1 at 2018-03-09 10:52:12 -0600
3
+  (0.1ms) rollback transaction
4
+  (0.2ms) begin transaction
5
+ Started GET "/assets/ruby_badger.css" for 127.0.0.1 at 2018-03-09 10:52:34 -0600
6
+  (0.1ms) rollback transaction
7
+  (0.2ms) begin transaction
8
+ Started GET "/assets/ruby_badger.css" for 127.0.0.1 at 2018-03-09 10:56:08 -0600
9
+  (0.1ms) rollback transaction
10
+  (0.2ms) begin transaction
11
+ Started GET "/assets/ruby_badger.css" for 127.0.0.1 at 2018-03-09 10:56:21 -0600
12
+  (0.1ms) rollback transaction
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&engines=.scss;TTI"pfile-digest:///Users/dsouthard/Documents/random/ruby/ruby_badger/vendor/assets/stylesheets/ruby_badger.scss;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dsouthard/Documents/random/ruby/ruby_badger/vendor/assets/stylesheets/ruby_badger.scss?type=text/css&id=63b8bce215ac401dc5b089cb1ee0c036761be0c687c753284c1b8e8a6dd34591:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dsouthard/Documents/random/ruby/ruby_badger/vendor/assets/stylesheets/ruby_badger.scss?type=text/css&pipeline=self&id=456cc23cd90cbaf8c357f447ecb70f664757195f72b2cfa712df9cdd88b75708:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"pfile-digest:///Users/dsouthard/Documents/random/ruby/ruby_badger/vendor/assets/stylesheets/ruby_badger.scss;TTF
@@ -0,0 +1,2 @@
1
+ "%ޱ����g
2
+ ���4B:+K�U���?HX�)���
@@ -3,6 +3,6 @@ require 'spec_helper'
3
3
  describe "static assets integration" do
4
4
  it "provides ruby badger on the asset pipeline" do
5
5
  visit '/assets/ruby_badger.css'
6
- expect(page.text).should include '.ruby-badger'
6
+ expect(page.text).to include '.ruby-badger'
7
7
  end
8
8
  end
data/spec/spec_helper.rb CHANGED
@@ -2,8 +2,7 @@ ENV['RAILS_ENV'] ||= 'test'
2
2
 
3
3
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
4
  require 'rspec/rails'
5
- require 'rspec/autorun'
6
- require 'factory_girl_rails'
5
+ require 'factory_bot_rails'
7
6
 
8
7
  Rails.backtrace_cleaner.remove_silencers!
9
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_badger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Southard
@@ -56,86 +56,122 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 12.3.0
59
62
  - - ">="
60
63
  - !ruby/object:Gem::Version
61
- version: '0'
64
+ version: '12.3'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: 12.3.0
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: '12.3'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec-rails
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 3.7.2
73
82
  - - ">="
74
83
  - !ruby/object:Gem::Version
75
- version: '0'
84
+ version: '3.7'
76
85
  type: :development
77
86
  prerelease: false
78
87
  version_requirements: !ruby/object:Gem::Requirement
79
88
  requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: 3.7.2
80
92
  - - ">="
81
93
  - !ruby/object:Gem::Version
82
- version: '0'
94
+ version: '3.7'
83
95
  - !ruby/object:Gem::Dependency
84
96
  name: capybara
85
97
  requirement: !ruby/object:Gem::Requirement
86
98
  requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 2.18.0
87
102
  - - ">="
88
103
  - !ruby/object:Gem::Version
89
- version: '0'
104
+ version: '2.18'
90
105
  type: :development
91
106
  prerelease: false
92
107
  version_requirements: !ruby/object:Gem::Requirement
93
108
  requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 2.18.0
94
112
  - - ">="
95
113
  - !ruby/object:Gem::Version
96
- version: '0'
114
+ version: '2.18'
97
115
  - !ruby/object:Gem::Dependency
98
- name: factory_girl_rails
116
+ name: factory_bot_rails
99
117
  requirement: !ruby/object:Gem::Requirement
100
118
  requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: 4.8.2
101
122
  - - ">="
102
123
  - !ruby/object:Gem::Version
103
- version: '0'
124
+ version: '4.8'
104
125
  type: :development
105
126
  prerelease: false
106
127
  version_requirements: !ruby/object:Gem::Requirement
107
128
  requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 4.8.2
108
132
  - - ">="
109
133
  - !ruby/object:Gem::Version
110
- version: '0'
134
+ version: '4.8'
111
135
  - !ruby/object:Gem::Dependency
112
136
  name: fuubar
113
137
  requirement: !ruby/object:Gem::Requirement
114
138
  requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: 2.3.1
115
142
  - - ">="
116
143
  - !ruby/object:Gem::Version
117
- version: '0'
144
+ version: '2.3'
118
145
  type: :development
119
146
  prerelease: false
120
147
  version_requirements: !ruby/object:Gem::Requirement
121
148
  requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 2.3.1
122
152
  - - ">="
123
153
  - !ruby/object:Gem::Version
124
- version: '0'
154
+ version: '2.3'
125
155
  - !ruby/object:Gem::Dependency
126
156
  name: sass-rails
127
157
  requirement: !ruby/object:Gem::Requirement
128
158
  requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: 5.0.7
129
162
  - - ">="
130
163
  - !ruby/object:Gem::Version
131
- version: '0'
164
+ version: '5.0'
132
165
  type: :development
133
166
  prerelease: false
134
167
  version_requirements: !ruby/object:Gem::Requirement
135
168
  requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: 5.0.7
136
172
  - - ">="
137
173
  - !ruby/object:Gem::Version
138
- version: '0'
174
+ version: '5.0'
139
175
  description: |-
140
176
  Get a nice, clean badge displaying your Rails
141
177
  Environment or other helpful info. Want to display last
@@ -191,13 +227,23 @@ files:
191
227
  - spec/dummy/config/initializers/wrap_parameters.rb
192
228
  - spec/dummy/config/locales/en.yml
193
229
  - spec/dummy/config/routes.rb
230
+ - spec/dummy/db/test.sqlite3
194
231
  - spec/dummy/lib/assets/.gitkeep
195
232
  - spec/dummy/log/.gitkeep
233
+ - spec/dummy/log/test.log
196
234
  - spec/dummy/public/404.html
197
235
  - spec/dummy/public/422.html
198
236
  - spec/dummy/public/500.html
199
237
  - spec/dummy/public/favicon.ico
200
238
  - spec/dummy/script/rails
239
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5b/5biB1oTgrUThsLmIz7bYoWfqDLxiUQmm80jkaWbJTXI.cache
240
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/HW/HWGb0pve65JcnaSHyyfeCsKC7TU5ZcMAbCErnvnP1MY.cache
241
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lv/Lv5egkhMqGx5gnnPDsts9J4rM4VWRg1zai_7iBbGMq4.cache
242
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hT/hTbRVVSF64dfvoaoab7BP6jRmnTLM8xaH-73_JaufO0.cache
243
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfHTToEKlxxpSOu2FACdLNZOq7jtyMkfT2rU5UU8dwk.cache
244
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/mL/mLqQ9QSgDU5zOKdPWAg6q5_YCgUOQ04li9mPyEJAa04.cache
245
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXfL_uG0PGIJgyvZTh7pt9eikyViqfIbmWc1ULTHiLM.cache
246
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yY/yYGx7JZOLkGdhd7OPJ5uJsukUR43Uz5ifcX8IT_k7H0.cache
201
247
  - spec/integration/ruby_badger_assets_integration_spec.rb
202
248
  - spec/spec_helper.rb
203
249
  - vendor/assets/javascripts/ruby_badger.js
@@ -256,5 +302,15 @@ test_files:
256
302
  - spec/dummy/public/422.html
257
303
  - spec/dummy/public/500.html
258
304
  - spec/dummy/public/404.html
305
+ - spec/dummy/db/test.sqlite3
306
+ - spec/dummy/log/test.log
307
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yY/yYGx7JZOLkGdhd7OPJ5uJsukUR43Uz5ifcX8IT_k7H0.cache
308
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/HW/HWGb0pve65JcnaSHyyfeCsKC7TU5ZcMAbCErnvnP1MY.cache
309
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfHTToEKlxxpSOu2FACdLNZOq7jtyMkfT2rU5UU8dwk.cache
310
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lv/Lv5egkhMqGx5gnnPDsts9J4rM4VWRg1zai_7iBbGMq4.cache
311
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5b/5biB1oTgrUThsLmIz7bYoWfqDLxiUQmm80jkaWbJTXI.cache
312
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/mL/mLqQ9QSgDU5zOKdPWAg6q5_YCgUOQ04li9mPyEJAa04.cache
313
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hT/hTbRVVSF64dfvoaoab7BP6jRmnTLM8xaH-73_JaufO0.cache
314
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXfL_uG0PGIJgyvZTh7pt9eikyViqfIbmWc1ULTHiLM.cache
259
315
  - spec/dummy/README.rdoc
260
316
  - spec/integration/ruby_badger_assets_integration_spec.rb