shoulda-context 2.0.0.rc3 → 2.0.0.rc4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f748430707a8d57ecd1a0f4e9449a47c7300b3406ea84577ab047ddf99cd3ca4
4
- data.tar.gz: a1eae19549e25aa3faf6d5877be4bd9938ecf784c9bdbdab3aa060b3cde3280a
3
+ metadata.gz: 763699ec6f068af0268110ac78da0f705623353af93dbc0c77cc40528fe94b4f
4
+ data.tar.gz: 1d5f18df35dc1cf6ba50b769ce5d33957c03d645ee2ddb0a3d8310450c8d11fd
5
5
  SHA512:
6
- metadata.gz: eb8790e8678437534236b09aecc13779751e8b6ae95c0d79aef6a506dece29516738620a51c77e1c3bcc965ecd2acca2f0e00ee08289da9c0d7b2f4b1afdf4c8
7
- data.tar.gz: ead84b4158182cf5884dab7a17f0e74d2ab7aac15cc224d11fa0146ab95397b7186b644b8dcae290fc7f5f0ca1b82e5089c196dadfbebd91ceccf6b224ccecc3
6
+ metadata.gz: bb1dadcd479b70833386e7f14bf31f152b1a510da40a0296f1e72a83aa96ac701d595789a6c14944c48dcbd57ac37dc931ecceb83a602c87900f77180543f916
7
+ data.tar.gz: 5baee38e73c60543e0e9347597690ebb70ca2412ec2de56df470001c332ab814c94cf7f2b4d1fe6d81218edcb4c532f0f88821fffc93fbcf0532ad42adf082f5
@@ -4,7 +4,6 @@ os: linux
4
4
  cache:
5
5
  directories:
6
6
  - vendor/bundle
7
- script: "bundle exec rake"
8
7
  # Source: <https://docs.travis-ci.com/user/languages/ruby/#bundler-20>
9
8
  before_install:
10
9
  - gem update --system '3.1.2' --no-document
@@ -13,8 +12,8 @@ before_install:
13
12
  - nvm use v11.0.0
14
13
  - bundle config set path vendor/bundle
15
14
  install: "bundle install --jobs=3 --retry=3"
15
+ script: "bundle exec rake"
16
16
  rvm:
17
- - 2.3.7
18
17
  - 2.4.9
19
18
  - 2.5.8
20
19
  - 2.6.6
@@ -30,8 +29,6 @@ gemfile:
30
29
  - gemfiles/rails_6_0.gemfile
31
30
  matrix:
32
31
  exclude:
33
- - rvm: 2.3.7
34
- gemfile: gemfiles/rails_6_0.gemfile
35
32
  - rvm: 2.4.9
36
33
  gemfile: gemfiles/rails_6_0.gemfile
37
34
  - rvm: 2.6.6
data/Appraisals CHANGED
@@ -1,34 +1,115 @@
1
- appraise "rails_4_2" do
2
- gem "rails", "~> 4.2.0"
3
- gem "sprockets", "~> 3.0"
1
+ # Note: All of the dependencies here were obtained by running `rails new` with
2
+ # various versions of Rails and copying lines from the generated Gemfile. It's
3
+ # best to keep the gems here in the same order as they're listed there so you
4
+ # can compare them more easily.
5
+
6
+ shared_rails_dependencies = proc do
4
7
  gem "sqlite3", "~> 1.3.6"
5
8
  end
6
9
 
10
+ shared_spring_dependencies = proc do
11
+ gem "spring"
12
+ gem "spring-commands-rspec"
13
+ end
14
+
15
+ shared_test_dependencies = proc do
16
+ gem "minitest-reporters"
17
+ end
18
+
19
+ shared_dependencies = proc do
20
+ instance_eval(&shared_rails_dependencies)
21
+ instance_eval(&shared_spring_dependencies)
22
+ instance_eval(&shared_test_dependencies)
23
+ end
24
+
25
+ appraise "rails_4_2" do
26
+ instance_eval(&shared_dependencies)
27
+
28
+ gem "rails", "~> 4.2.10"
29
+ gem "sass-rails", "~> 5.0"
30
+ gem "uglifier", ">= 1.3.0"
31
+ gem "coffee-rails", "~> 4.1.0"
32
+ gem "jquery-rails"
33
+ gem "turbolinks"
34
+ gem "jbuilder", "~> 2.0"
35
+ gem "sdoc", "~> 0.4.0", group: :doc
36
+ gem "bcrypt", "~> 3.1.7"
37
+
38
+ # Other dependencies we use
39
+ gem "activeresource", "4.0.0"
40
+ gem "json", "~> 1.4"
41
+ gem "protected_attributes", "~> 1.0.6"
42
+ end
43
+
7
44
  appraise "rails_5_0" do
8
- gem "rails", "~> 5.0.0"
9
- gem "sprockets", "~> 3.0"
10
- gem "sqlite3", "~> 1.3.6"
45
+ instance_eval(&shared_dependencies)
46
+
47
+ gem "rails", "~> 5.0.7"
48
+ gem "rails-controller-testing", ">= 1.0.1"
49
+ gem "puma", "~> 3.0"
50
+ gem "sass-rails", "~> 5.0"
51
+ gem "jquery-rails"
52
+ gem "turbolinks", "~> 5"
53
+ gem "jbuilder", "~> 2.5"
54
+ gem "bcrypt", "~> 3.1.7"
55
+ gem "listen", "~> 3.0.5"
56
+ gem "spring-watcher-listen", "~> 2.0.0"
11
57
  end
12
58
 
13
59
  appraise "rails_5_1" do
14
- gem "rails", "~> 5.1.0"
15
- gem "sprockets", "~> 3.0"
16
- gem "sqlite3", "~> 1.3.6"
60
+ instance_eval(&shared_dependencies)
61
+ gem "rails", "~> 5.1.6"
62
+ gem "rails-controller-testing", ">= 1.0.1"
63
+ gem "puma", "~> 3.7"
64
+ gem "sass-rails", "~> 5.0"
65
+ gem "turbolinks", "~> 5"
66
+ gem "jbuilder", "~> 2.5"
67
+ gem "bcrypt", "~> 3.1.7"
68
+ gem "capybara", "~> 2.13"
69
+ gem "selenium-webdriver"
70
+ gem "listen", ">= 3.0.5", "< 3.2"
71
+ gem "spring-watcher-listen", "~> 2.0.0"
17
72
  end
18
73
 
19
74
  appraise "rails_5_2" do
20
- gem "rails", "~> 5.2.0"
21
- gem "sprockets", "~> 3.0"
22
- gem "sqlite3", "~> 1.3.6"
75
+ instance_eval(&shared_dependencies)
76
+
77
+ gem "rails", "~> 5.2.2"
78
+ gem "rails-controller-testing", ">= 1.0.1"
79
+ gem "puma", "~> 3.11"
80
+ gem "bootsnap", ">= 1.1.0", require: false
81
+ gem "sass-rails", "~> 5.0"
82
+ gem "turbolinks", "~> 5"
83
+ gem "jbuilder", "~> 2.5"
84
+ gem "bcrypt", "~> 3.1.7"
85
+ gem "capybara", "~> 3.1.1"
86
+ gem "selenium-webdriver"
87
+ gem "chromedriver-helper"
88
+ gem "listen", ">= 3.0.5", "< 3.2"
89
+ gem "spring-watcher-listen", "~> 2.0.0"
23
90
  end
24
91
 
25
- if Gem::Requirement.new(">= 2.5.0").satisfied_by?(Gem::Version.new(RUBY_VERSION))
92
+ if Gem::Requirement.new('>= 2.5.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
26
93
  appraise "rails_6_0" do
27
- gem "rails", "~> 6.0.0"
94
+ instance_eval(&shared_dependencies)
95
+
96
+ gem "rails", "~> 6.0.2"
97
+ gem "puma", "~> 4.1"
98
+ gem "sass-rails", ">= 6"
99
+ gem "webpacker", "~> 4.0"
100
+ gem "turbolinks", "~> 5"
101
+ gem "jbuilder", "~> 2.7"
102
+ gem "bcrypt", "~> 3.1.7"
28
103
  gem "bootsnap", ">= 1.4.2", require: false
29
104
  gem "listen", ">= 3.0.5", "< 3.2"
30
- gem "sqlite3", "~> 1.4"
31
- gem "sprockets", "~> 4.0"
32
- gem "webpacker", "~> 4.0"
105
+ gem "spring-watcher-listen", "~> 2.0.0"
106
+ gem "capybara", ">= 2.15"
107
+ gem "selenium-webdriver"
108
+ gem "sqlite3", "~> 1.4.0"
109
+ gem "webdrivers"
110
+
111
+ # Other dependencies
112
+ gem "rails-controller-testing", ">= 1.0.4"
113
+ gem "pg", "~> 1.1", platform: :ruby
33
114
  end
34
115
  end
@@ -9,7 +9,7 @@
9
9
  * Drop support for Minitest 4.x (except when used by Rails 4.x).
10
10
  * Drop support for older versions of Rails. Rails 4.x-6.x are the
11
11
  only versions supported now.
12
- * Drop support for older versions of Ruby. Ruby 2.3.x-2.7.x are the only
12
+ * Drop support for older versions of Ruby. Ruby 2.4.x-2.7.x are the only
13
13
  versions supported now.
14
14
 
15
15
  ### Bug fixes
data/Gemfile CHANGED
@@ -2,6 +2,16 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
+ gem "appraisal"
6
+ gem "bundler", "~> 1.0"
7
+ gem "byebug"
8
+ gem "m"
5
9
  gem "minitest"
10
+ gem "mocha"
11
+ gem "pry", "~> 0.12.0"
12
+ gem "pry-byebug", "~> 3.6.0"
13
+ gem "rake"
14
+ gem "rubocop", "0.71.0"
15
+ gem "snowglobe", ">= 0.3.0"
6
16
  gem "test-unit"
7
17
  gem "warnings_logger"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shoulda-context (2.0.0.rc3)
4
+ shoulda-context (2.0.0.rc4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,7 +24,6 @@ GEM
24
24
  parser (2.7.1.0)
25
25
  ast (~> 2.4.0)
26
26
  power_assert (1.1.7)
27
- powerpack (0.1.2)
28
27
  pry (0.12.2)
29
28
  coderay (~> 1.1.0)
30
29
  method_source (~> 0.9.0)
@@ -33,20 +32,19 @@ GEM
33
32
  pry (~> 0.10)
34
33
  rainbow (3.0.0)
35
34
  rake (13.0.1)
36
- rubocop (0.64.0)
35
+ rubocop (0.71.0)
37
36
  jaro_winkler (~> 1.5.1)
38
37
  parallel (~> 1.10)
39
- parser (>= 2.5, != 2.5.1.1)
40
- powerpack (~> 0.1)
38
+ parser (>= 2.6)
41
39
  rainbow (>= 2.2.2, < 4.0)
42
40
  ruby-progressbar (~> 1.7)
43
- unicode-display_width (~> 1.4.0)
41
+ unicode-display_width (>= 1.4.0, < 1.7)
44
42
  ruby-progressbar (1.10.1)
45
43
  snowglobe (0.3.0)
46
44
  test-unit (3.3.5)
47
45
  power_assert
48
46
  thor (1.0.1)
49
- unicode-display_width (1.4.1)
47
+ unicode-display_width (1.6.1)
50
48
  warnings_logger (0.1.0)
51
49
 
52
50
  PLATFORMS
@@ -62,7 +60,7 @@ DEPENDENCIES
62
60
  pry (~> 0.12.0)
63
61
  pry-byebug (~> 3.6.0)
64
62
  rake
65
- rubocop (= 0.64.0)
63
+ rubocop (= 0.71.0)
66
64
  shoulda-context!
67
65
  snowglobe (>= 0.3.0)
68
66
  test-unit
data/README.md CHANGED
@@ -159,7 +159,7 @@ If this is too cumbersome, consider using the [m] gem to run tests instead:
159
159
  ## Compatibility
160
160
 
161
161
  Shoulda Context is tested and supported against Rails 4.x+, Minitest 4.x,
162
- Test::Unit 3.x, and Ruby 2.3+.
162
+ Test::Unit 3.x, and Ruby 2.4+.
163
163
 
164
164
  ## Credits
165
165
 
@@ -2,11 +2,34 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "appraisal"
6
+ gem "bundler", "~> 1.0"
7
+ gem "byebug"
8
+ gem "m"
5
9
  gem "minitest"
10
+ gem "mocha"
11
+ gem "pry", "~> 0.12.0"
12
+ gem "pry-byebug", "~> 3.6.0"
13
+ gem "rake"
14
+ gem "rubocop", "0.71.0"
15
+ gem "snowglobe", ">= 0.3.0"
6
16
  gem "test-unit"
7
17
  gem "warnings_logger"
8
- gem "rails", "~> 4.2.0"
9
- gem "sprockets", "~> 3.0"
10
18
  gem "sqlite3", "~> 1.3.6"
19
+ gem "spring"
20
+ gem "spring-commands-rspec"
21
+ gem "minitest-reporters"
22
+ gem "rails", "~> 4.2.10"
23
+ gem "sass-rails", "~> 5.0"
24
+ gem "uglifier", ">= 1.3.0"
25
+ gem "coffee-rails", "~> 4.1.0"
26
+ gem "jquery-rails"
27
+ gem "turbolinks"
28
+ gem "jbuilder", "~> 2.0"
29
+ gem "sdoc", "~> 0.4.0", group: :doc
30
+ gem "bcrypt", "~> 3.1.7"
31
+ gem "activeresource", "4.0.0"
32
+ gem "json", "~> 1.4"
33
+ gem "protected_attributes", "~> 1.0.6"
11
34
 
12
35
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- shoulda-context (2.0.0.rc3)
4
+ shoulda-context (2.0.0.rc4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -35,28 +35,50 @@ GEM
35
35
  activemodel (= 4.2.11.1)
36
36
  activesupport (= 4.2.11.1)
37
37
  arel (~> 6.0)
38
+ activeresource (4.0.0)
39
+ activemodel (~> 4.0)
40
+ activesupport (~> 4.0)
41
+ rails-observers (~> 0.1.1)
38
42
  activesupport (4.2.11.1)
39
43
  i18n (~> 0.7)
40
44
  minitest (~> 5.1)
41
45
  thread_safe (~> 0.3, >= 0.3.4)
42
46
  tzinfo (~> 1.1)
47
+ ansi (1.5.0)
43
48
  appraisal (2.2.0)
44
49
  bundler
45
50
  rake
46
51
  thor (>= 0.14.0)
47
52
  arel (6.0.4)
48
53
  ast (2.4.0)
54
+ bcrypt (3.1.13)
49
55
  builder (3.2.4)
50
56
  byebug (10.0.2)
51
57
  coderay (1.1.2)
58
+ coffee-rails (4.1.1)
59
+ coffee-script (>= 2.2.0)
60
+ railties (>= 4.0.0, < 5.1.x)
61
+ coffee-script (2.4.1)
62
+ coffee-script-source
63
+ execjs
64
+ coffee-script-source (1.12.2)
52
65
  concurrent-ruby (1.1.6)
53
66
  crass (1.0.6)
54
67
  erubis (2.7.0)
68
+ execjs (2.7.0)
69
+ ffi (1.12.2)
55
70
  globalid (0.4.2)
56
71
  activesupport (>= 4.2.0)
57
72
  i18n (0.9.5)
58
73
  concurrent-ruby (~> 1.0)
59
74
  jaro_winkler (1.5.4)
75
+ jbuilder (2.9.1)
76
+ activesupport (>= 4.2.0)
77
+ jquery-rails (4.3.5)
78
+ rails-dom-testing (>= 1, < 3)
79
+ railties (>= 4.2.0)
80
+ thor (>= 0.14, < 2.0)
81
+ json (1.8.6)
60
82
  loofah (2.4.0)
61
83
  crass (~> 1.0.2)
62
84
  nokogiri (>= 1.5.9)
@@ -69,6 +91,11 @@ GEM
69
91
  mini_mime (1.0.2)
70
92
  mini_portile2 (2.4.0)
71
93
  minitest (5.14.0)
94
+ minitest-reporters (1.4.2)
95
+ ansi
96
+ builder
97
+ minitest (>= 5.0)
98
+ ruby-progressbar
72
99
  mocha (1.11.2)
73
100
  nokogiri (1.10.9)
74
101
  mini_portile2 (~> 2.4.0)
@@ -76,7 +103,8 @@ GEM
76
103
  parser (2.7.1.0)
77
104
  ast (~> 2.4.0)
78
105
  power_assert (1.1.7)
79
- powerpack (0.1.2)
106
+ protected_attributes (1.0.9)
107
+ activemodel (>= 4.0.1, < 5.0)
80
108
  pry (0.12.2)
81
109
  coderay (~> 1.1.0)
82
110
  method_source (~> 0.9.0)
@@ -105,6 +133,8 @@ GEM
105
133
  rails-deprecated_sanitizer (>= 1.0.1)
106
134
  rails-html-sanitizer (1.3.0)
107
135
  loofah (~> 2.3)
136
+ rails-observers (0.1.5)
137
+ activemodel (>= 4.0)
108
138
  railties (4.2.11.1)
109
139
  actionpack (= 4.2.11.1)
110
140
  activesupport (= 4.2.11.1)
@@ -112,16 +142,36 @@ GEM
112
142
  thor (>= 0.18.1, < 2.0)
113
143
  rainbow (3.0.0)
114
144
  rake (13.0.1)
115
- rubocop (0.64.0)
145
+ rb-fsevent (0.10.3)
146
+ rb-inotify (0.10.1)
147
+ ffi (~> 1.0)
148
+ rdoc (4.3.0)
149
+ rubocop (0.71.0)
116
150
  jaro_winkler (~> 1.5.1)
117
151
  parallel (~> 1.10)
118
- parser (>= 2.5, != 2.5.1.1)
119
- powerpack (~> 0.1)
152
+ parser (>= 2.6)
120
153
  rainbow (>= 2.2.2, < 4.0)
121
154
  ruby-progressbar (~> 1.7)
122
- unicode-display_width (~> 1.4.0)
155
+ unicode-display_width (>= 1.4.0, < 1.7)
123
156
  ruby-progressbar (1.10.1)
157
+ sass (3.7.4)
158
+ sass-listen (~> 4.0.0)
159
+ sass-listen (4.0.0)
160
+ rb-fsevent (~> 0.9, >= 0.9.4)
161
+ rb-inotify (~> 0.9, >= 0.9.7)
162
+ sass-rails (5.0.7)
163
+ railties (>= 4.0.0, < 6)
164
+ sass (~> 3.1)
165
+ sprockets (>= 2.8, < 4.0)
166
+ sprockets-rails (>= 2.0, < 4.0)
167
+ tilt (>= 1.1, < 3)
168
+ sdoc (0.4.2)
169
+ json (~> 1.7, >= 1.7.7)
170
+ rdoc (~> 4.0)
124
171
  snowglobe (0.3.0)
172
+ spring (2.1.0)
173
+ spring-commands-rspec (1.0.4)
174
+ spring (>= 0.9.1)
125
175
  sprockets (3.7.2)
126
176
  concurrent-ruby (~> 1.0)
127
177
  rack (> 1, < 3)
@@ -134,31 +184,50 @@ GEM
134
184
  power_assert
135
185
  thor (1.0.1)
136
186
  thread_safe (0.3.6)
187
+ tilt (2.0.10)
188
+ turbolinks (5.2.1)
189
+ turbolinks-source (~> 5.2)
190
+ turbolinks-source (5.2.0)
137
191
  tzinfo (1.2.7)
138
192
  thread_safe (~> 0.1)
139
- unicode-display_width (1.4.1)
193
+ uglifier (4.2.0)
194
+ execjs (>= 0.3.0, < 3)
195
+ unicode-display_width (1.6.1)
140
196
  warnings_logger (0.1.0)
141
197
 
142
198
  PLATFORMS
143
199
  ruby
144
200
 
145
201
  DEPENDENCIES
202
+ activeresource (= 4.0.0)
146
203
  appraisal
204
+ bcrypt (~> 3.1.7)
147
205
  bundler (~> 1.0)
148
206
  byebug
207
+ coffee-rails (~> 4.1.0)
208
+ jbuilder (~> 2.0)
209
+ jquery-rails
210
+ json (~> 1.4)
149
211
  m
150
212
  minitest
213
+ minitest-reporters
151
214
  mocha
215
+ protected_attributes (~> 1.0.6)
152
216
  pry (~> 0.12.0)
153
217
  pry-byebug (~> 3.6.0)
154
- rails (~> 4.2.0)
218
+ rails (~> 4.2.10)
155
219
  rake
156
- rubocop (= 0.64.0)
220
+ rubocop (= 0.71.0)
221
+ sass-rails (~> 5.0)
222
+ sdoc (~> 0.4.0)
157
223
  shoulda-context!
158
224
  snowglobe (>= 0.3.0)
159
- sprockets (~> 3.0)
225
+ spring
226
+ spring-commands-rspec
160
227
  sqlite3 (~> 1.3.6)
161
228
  test-unit
229
+ turbolinks
230
+ uglifier (>= 1.3.0)
162
231
  warnings_logger
163
232
 
164
233
  BUNDLED WITH