shoulda-context 2.0.0.rc2 → 2.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e793247da34487c30f2d2f21bbf192ad399dcd893e1b4ab24088b7efda7ed2e
4
- data.tar.gz: 93d6d5ad309c9a190ec8e317b041be600420409f59c12fc033f901b7f492b8b7
3
+ metadata.gz: f748430707a8d57ecd1a0f4e9449a47c7300b3406ea84577ab047ddf99cd3ca4
4
+ data.tar.gz: a1eae19549e25aa3faf6d5877be4bd9938ecf784c9bdbdab3aa060b3cde3280a
5
5
  SHA512:
6
- metadata.gz: a735ff40fc334bc9488c4b2a4daa8ecaf59fa8c233e1c2e0e63f2f238dc6c289e88c7cad7fd8571b9a06f92cd300835b0c86d41a426097a8a9377a6af8642463
7
- data.tar.gz: 5a1f213846b5a09efe5cda27d09af30a96a6ba2d6ba7f47f020914469b6426228a766ed18c56b990555a456004c966bba93ef391678733b690b76578b69ef912
6
+ metadata.gz: eb8790e8678437534236b09aecc13779751e8b6ae95c0d79aef6a506dece29516738620a51c77e1c3bcc965ecd2acca2f0e00ee08289da9c0d7b2f4b1afdf4c8
7
+ data.tar.gz: ead84b4158182cf5884dab7a17f0e74d2ab7aac15cc224d11fa0146ab95397b7186b644b8dcae290fc7f5f0ca1b82e5089c196dadfbebd91ceccf6b224ccecc3
@@ -1 +1 @@
1
- 2.6.1
1
+ 2.7.1
@@ -1,28 +1,40 @@
1
1
  language: ruby
2
- sudo: false
2
+ dist: xenial
3
+ os: linux
3
4
  cache:
4
5
  directories:
5
6
  - vendor/bundle
6
7
  script: "bundle exec rake"
7
8
  # Source: <https://docs.travis-ci.com/user/languages/ruby/#bundler-20>
8
9
  before_install:
9
- - gem update --system '2.7.8' --no-document
10
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
10
+ - gem update --system '3.1.2' --no-document
11
+ - gem uninstall -v '< 2' -i $(rvm gemdir)@global -ax bundler || true
11
12
  - gem install bundler -v '< 2' --no-document
12
- install: "bundle install --jobs=3 --retry=3 --path vendor/bundle"
13
-
13
+ - nvm use v11.0.0
14
+ - bundle config set path vendor/bundle
15
+ install: "bundle install --jobs=3 --retry=3"
14
16
  rvm:
15
- - 2.6.1
16
- - 2.5.1
17
- - 2.4.4
18
17
  - 2.3.7
19
-
18
+ - 2.4.9
19
+ - 2.5.8
20
+ - 2.6.6
21
+ - 2.7.1
20
22
  env:
21
23
  - TEST_FRAMEWORK=minitest
22
24
  - TEST_FRAMEWORK=test_unit
23
-
24
25
  gemfile:
25
26
  - gemfiles/rails_4_2.gemfile
26
27
  - gemfiles/rails_5_0.gemfile
27
28
  - gemfiles/rails_5_1.gemfile
28
29
  - gemfiles/rails_5_2.gemfile
30
+ - gemfiles/rails_6_0.gemfile
31
+ matrix:
32
+ exclude:
33
+ - rvm: 2.3.7
34
+ gemfile: gemfiles/rails_6_0.gemfile
35
+ - rvm: 2.4.9
36
+ gemfile: gemfiles/rails_6_0.gemfile
37
+ - rvm: 2.6.6
38
+ gemfile: gemfiles/rails_4_2.gemfile
39
+ - rvm: 2.7.1
40
+ gemfile: gemfiles/rails_4_2.gemfile
data/Appraisals CHANGED
@@ -1,27 +1,34 @@
1
- shared_dependencies = proc do
2
- gem "sqlite3", "~> 1.3.6"
3
- end
4
-
5
1
  appraise "rails_4_2" do
6
- instance_eval(&shared_dependencies)
7
-
8
2
  gem "rails", "~> 4.2.0"
3
+ gem "sprockets", "~> 3.0"
4
+ gem "sqlite3", "~> 1.3.6"
9
5
  end
10
6
 
11
7
  appraise "rails_5_0" do
12
- instance_eval(&shared_dependencies)
13
-
14
8
  gem "rails", "~> 5.0.0"
9
+ gem "sprockets", "~> 3.0"
10
+ gem "sqlite3", "~> 1.3.6"
15
11
  end
16
12
 
17
13
  appraise "rails_5_1" do
18
- instance_eval(&shared_dependencies)
19
-
20
14
  gem "rails", "~> 5.1.0"
15
+ gem "sprockets", "~> 3.0"
16
+ gem "sqlite3", "~> 1.3.6"
21
17
  end
22
18
 
23
19
  appraise "rails_5_2" do
24
- instance_eval(&shared_dependencies)
25
-
26
20
  gem "rails", "~> 5.2.0"
21
+ gem "sprockets", "~> 3.0"
22
+ gem "sqlite3", "~> 1.3.6"
23
+ end
24
+
25
+ if Gem::Requirement.new(">= 2.5.0").satisfied_by?(Gem::Version.new(RUBY_VERSION))
26
+ appraise "rails_6_0" do
27
+ gem "rails", "~> 6.0.0"
28
+ gem "bootsnap", ">= 1.4.2", require: false
29
+ gem "listen", ">= 3.0.5", "< 3.2"
30
+ gem "sqlite3", "~> 1.4"
31
+ gem "sprockets", "~> 4.0"
32
+ gem "webpacker", "~> 4.0"
33
+ end
27
34
  end
@@ -6,11 +6,11 @@
6
6
 
7
7
  * Drop support for RSpec 2 matchers. Matchers passed to `should` must conform
8
8
  to RSpec 3's API (`failure_message` and `failure_message_when_negated`).
9
- * Drop support for Minitest 4.x (last updated in 2013).
10
- * Drop support for end-of-lifed versions of Rails. Rails 4.2.x, 5.1.x, and 5.2.x
11
- are the only versions supported now.
12
- * Drop support for end-of-lifed versions of Ruby. Ruby 2.3.x, 2.4.x and 2.5.x
13
- are the only versions supported now.
9
+ * Drop support for Minitest 4.x (except when used by Rails 4.x).
10
+ * Drop support for older versions of Rails. Rails 4.x-6.x are the
11
+ only versions supported now.
12
+ * Drop support for older versions of Ruby. Ruby 2.3.x-2.7.x are the only
13
+ versions supported now.
14
14
 
15
15
  ### Bug fixes
16
16
 
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
 
5
5
  gem "minitest"
6
6
  gem "test-unit"
7
+ gem "warnings_logger"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shoulda-context (2.0.0.rc2)
4
+ shoulda-context (2.0.0.rc3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -13,19 +13,17 @@ GEM
13
13
  ast (2.4.0)
14
14
  byebug (10.0.2)
15
15
  coderay (1.1.2)
16
- jaro_winkler (1.5.2)
16
+ jaro_winkler (1.5.4)
17
17
  m (1.5.1)
18
18
  method_source (>= 0.6.7)
19
19
  rake (>= 0.9.2.2)
20
- metaclass (0.0.4)
21
20
  method_source (0.9.2)
22
- minitest (5.11.3)
23
- mocha (1.8.0)
24
- metaclass (~> 0.0.1)
25
- parallel (1.17.0)
26
- parser (2.6.2.1)
21
+ minitest (5.14.0)
22
+ mocha (1.11.2)
23
+ parallel (1.19.1)
24
+ parser (2.7.1.0)
27
25
  ast (~> 2.4.0)
28
- power_assert (1.1.3)
26
+ power_assert (1.1.7)
29
27
  powerpack (0.1.2)
30
28
  pry (0.12.2)
31
29
  coderay (~> 1.1.0)
@@ -34,7 +32,7 @@ GEM
34
32
  byebug (~> 10.0)
35
33
  pry (~> 0.10)
36
34
  rainbow (3.0.0)
37
- rake (12.3.2)
35
+ rake (13.0.1)
38
36
  rubocop (0.64.0)
39
37
  jaro_winkler (~> 1.5.1)
40
38
  parallel (~> 1.10)
@@ -43,12 +41,13 @@ GEM
43
41
  rainbow (>= 2.2.2, < 4.0)
44
42
  ruby-progressbar (~> 1.7)
45
43
  unicode-display_width (~> 1.4.0)
46
- ruby-progressbar (1.10.0)
44
+ ruby-progressbar (1.10.1)
47
45
  snowglobe (0.3.0)
48
- test-unit (3.3.0)
46
+ test-unit (3.3.5)
49
47
  power_assert
50
- thor (0.20.3)
48
+ thor (1.0.1)
51
49
  unicode-display_width (1.4.1)
50
+ warnings_logger (0.1.0)
52
51
 
53
52
  PLATFORMS
54
53
  ruby
@@ -56,15 +55,18 @@ PLATFORMS
56
55
  DEPENDENCIES
57
56
  appraisal
58
57
  bundler (~> 1.0)
58
+ byebug
59
59
  m
60
60
  minitest
61
61
  mocha
62
- pry-byebug
62
+ pry (~> 0.12.0)
63
+ pry-byebug (~> 3.6.0)
63
64
  rake
64
65
  rubocop (= 0.64.0)
65
66
  shoulda-context!
66
67
  snowglobe (>= 0.3.0)
67
68
  test-unit
69
+ warnings_logger
68
70
 
69
71
  BUNDLED WITH
70
72
  1.17.3
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2013, Tammer Saleh and thoughtbot, inc.
1
+ Copyright (c) 2006-2020, Tammer Saleh and thoughtbot, inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
data/README.md CHANGED
@@ -24,8 +24,8 @@ the changelog][changelog]**
24
24
  Instead of writing Ruby methods with `lots_of_underscores`, Shoulda Context lets
25
25
  you name your tests and group them together using English.
26
26
 
27
- At a minimum, the gem provides some convenience layers around core Minitest
28
- functionality. For instance, this test case:
27
+ At a minimum, the gem provides some convenience layers around core Minitest /
28
+ Test::Unit functionality. For instance, this test case:
29
29
 
30
30
  ```ruby
31
31
  class CalculatorTest < Minitest::Test
@@ -45,7 +45,7 @@ class CalculatorTest < Minitest::Test
45
45
  end
46
46
  ```
47
47
 
48
- is a prettier, but functionally equivalent, way of saying:
48
+ turns into:
49
49
 
50
50
  ```ruby
51
51
  class CalculatorTest < Minitest::Test
@@ -158,20 +158,21 @@ If this is too cumbersome, consider using the [m] gem to run tests instead:
158
158
 
159
159
  ## Compatibility
160
160
 
161
- Shoulda Context is tested and supported against Rails 5.x, Rails 4.2, Minitest
162
- 5, Test::Unit 3, and Ruby 2.3+.
161
+ Shoulda Context is tested and supported against Rails 4.x+, Minitest 4.x,
162
+ Test::Unit 3.x, and Ruby 2.3+.
163
163
 
164
164
  ## Credits
165
165
 
166
- Shoulda Context is maintained by [Travis Jeffery][travis-jeffery] and
167
- thoughtbot. Thank you to all the [contributors].
166
+ Shoulda Context is maintained by [Elliot Winkler][elliot-winkler], [Travis
167
+ Jeffery][travis-jeffery], and thoughtbot. Thank you to all the [contributors].
168
168
 
169
+ [elliot-winkler]: https://github.com/mcmire
169
170
  [travis-jeffery]: https://github.com/travisjeffery
170
171
  [contributors]: https://github.com/thoughtbot/shoulda-context/contributors
171
172
 
172
173
  ## License
173
174
 
174
- Shoulda Context is copyright © 2006-2019 [thoughtbot, inc][thoughtbot-website].
175
+ Shoulda Context is copyright © 2006-2020 [thoughtbot, inc][thoughtbot-website].
175
176
  It is free software, and may be redistributed under the terms specified in the
176
177
  [MIT-LICENSE](MIT-LICENSE) file.
177
178
 
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Rake::TestTask.new do |t|
11
11
  t.libs << "test"
12
12
  t.ruby_opts += ["-w"]
13
13
  t.pattern = "test/**/*_test.rb"
14
- t.verbose = false
14
+ t.verbose = true
15
15
  end
16
16
 
17
17
  task :default do
@@ -4,7 +4,9 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "minitest"
6
6
  gem "test-unit"
7
- gem "sqlite3", "~> 1.3.6"
7
+ gem "warnings_logger"
8
8
  gem "rails", "~> 4.2.0"
9
+ gem "sprockets", "~> 3.0"
10
+ gem "sqlite3", "~> 1.3.6"
9
11
 
10
12
  gemspec path: "../"
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- shoulda-context (2.0.0.rc2)
4
+ shoulda-context (2.0.0.rc3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionmailer (4.2.10)
10
- actionpack (= 4.2.10)
11
- actionview (= 4.2.10)
12
- activejob (= 4.2.10)
9
+ actionmailer (4.2.11.1)
10
+ actionpack (= 4.2.11.1)
11
+ actionview (= 4.2.11.1)
12
+ activejob (= 4.2.11.1)
13
13
  mail (~> 2.5, >= 2.5.4)
14
14
  rails-dom-testing (~> 1.0, >= 1.0.5)
15
- actionpack (4.2.10)
16
- actionview (= 4.2.10)
17
- activesupport (= 4.2.10)
15
+ actionpack (4.2.11.1)
16
+ actionview (= 4.2.11.1)
17
+ activesupport (= 4.2.11.1)
18
18
  rack (~> 1.6)
19
19
  rack-test (~> 0.6.2)
20
20
  rails-dom-testing (~> 1.0, >= 1.0.5)
21
21
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
22
- actionview (4.2.10)
23
- activesupport (= 4.2.10)
22
+ actionview (4.2.11.1)
23
+ activesupport (= 4.2.11.1)
24
24
  builder (~> 3.1)
25
25
  erubis (~> 2.7.0)
26
26
  rails-dom-testing (~> 1.0, >= 1.0.5)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
28
- activejob (4.2.10)
29
- activesupport (= 4.2.10)
28
+ activejob (4.2.11.1)
29
+ activesupport (= 4.2.11.1)
30
30
  globalid (>= 0.3.0)
31
- activemodel (4.2.10)
32
- activesupport (= 4.2.10)
31
+ activemodel (4.2.11.1)
32
+ activesupport (= 4.2.11.1)
33
33
  builder (~> 3.1)
34
- activerecord (4.2.10)
35
- activemodel (= 4.2.10)
36
- activesupport (= 4.2.10)
34
+ activerecord (4.2.11.1)
35
+ activemodel (= 4.2.11.1)
36
+ activesupport (= 4.2.11.1)
37
37
  arel (~> 6.0)
38
- activesupport (4.2.10)
38
+ activesupport (4.2.11.1)
39
39
  i18n (~> 0.7)
40
40
  minitest (~> 5.1)
41
41
  thread_safe (~> 0.3, >= 0.3.4)
@@ -46,18 +46,18 @@ GEM
46
46
  thor (>= 0.14.0)
47
47
  arel (6.0.4)
48
48
  ast (2.4.0)
49
- builder (3.2.3)
49
+ builder (3.2.4)
50
50
  byebug (10.0.2)
51
51
  coderay (1.1.2)
52
- concurrent-ruby (1.1.4)
53
- crass (1.0.4)
52
+ concurrent-ruby (1.1.6)
53
+ crass (1.0.6)
54
54
  erubis (2.7.0)
55
55
  globalid (0.4.2)
56
56
  activesupport (>= 4.2.0)
57
57
  i18n (0.9.5)
58
58
  concurrent-ruby (~> 1.0)
59
- jaro_winkler (1.5.2)
60
- loofah (2.2.3)
59
+ jaro_winkler (1.5.4)
60
+ loofah (2.4.0)
61
61
  crass (~> 1.0.2)
62
62
  nokogiri (>= 1.5.9)
63
63
  m (1.5.1)
@@ -65,19 +65,17 @@ GEM
65
65
  rake (>= 0.9.2.2)
66
66
  mail (2.7.1)
67
67
  mini_mime (>= 0.1.1)
68
- metaclass (0.0.4)
69
68
  method_source (0.9.2)
70
- mini_mime (1.0.1)
69
+ mini_mime (1.0.2)
71
70
  mini_portile2 (2.4.0)
72
- minitest (5.11.3)
73
- mocha (1.8.0)
74
- metaclass (~> 0.0.1)
75
- nokogiri (1.10.1)
71
+ minitest (5.14.0)
72
+ mocha (1.11.2)
73
+ nokogiri (1.10.9)
76
74
  mini_portile2 (~> 2.4.0)
77
- parallel (1.17.0)
78
- parser (2.6.2.1)
75
+ parallel (1.19.1)
76
+ parser (2.7.1.0)
79
77
  ast (~> 2.4.0)
80
- power_assert (1.1.3)
78
+ power_assert (1.1.7)
81
79
  powerpack (0.1.2)
82
80
  pry (0.12.2)
83
81
  coderay (~> 1.1.0)
@@ -85,35 +83,35 @@ GEM
85
83
  pry-byebug (3.6.0)
86
84
  byebug (~> 10.0)
87
85
  pry (~> 0.10)
88
- rack (1.6.8)
86
+ rack (1.6.13)
89
87
  rack-test (0.6.3)
90
88
  rack (>= 1.0)
91
- rails (4.2.10)
92
- actionmailer (= 4.2.10)
93
- actionpack (= 4.2.10)
94
- actionview (= 4.2.10)
95
- activejob (= 4.2.10)
96
- activemodel (= 4.2.10)
97
- activerecord (= 4.2.10)
98
- activesupport (= 4.2.10)
89
+ rails (4.2.11.1)
90
+ actionmailer (= 4.2.11.1)
91
+ actionpack (= 4.2.11.1)
92
+ actionview (= 4.2.11.1)
93
+ activejob (= 4.2.11.1)
94
+ activemodel (= 4.2.11.1)
95
+ activerecord (= 4.2.11.1)
96
+ activesupport (= 4.2.11.1)
99
97
  bundler (>= 1.3.0, < 2.0)
100
- railties (= 4.2.10)
98
+ railties (= 4.2.11.1)
101
99
  sprockets-rails
102
100
  rails-deprecated_sanitizer (1.0.3)
103
101
  activesupport (>= 4.2.0.alpha)
104
- rails-dom-testing (1.0.8)
105
- activesupport (>= 4.2.0.beta, < 5.0)
102
+ rails-dom-testing (1.0.9)
103
+ activesupport (>= 4.2.0, < 5.0)
106
104
  nokogiri (~> 1.6)
107
105
  rails-deprecated_sanitizer (>= 1.0.1)
108
- rails-html-sanitizer (1.0.4)
109
- loofah (~> 2.2, >= 2.2.2)
110
- railties (4.2.10)
111
- actionpack (= 4.2.10)
112
- activesupport (= 4.2.10)
106
+ rails-html-sanitizer (1.3.0)
107
+ loofah (~> 2.3)
108
+ railties (4.2.11.1)
109
+ actionpack (= 4.2.11.1)
110
+ activesupport (= 4.2.11.1)
113
111
  rake (>= 0.8.7)
114
112
  thor (>= 0.18.1, < 2.0)
115
113
  rainbow (3.0.0)
116
- rake (12.3.2)
114
+ rake (13.0.1)
117
115
  rubocop (0.64.0)
118
116
  jaro_winkler (~> 1.5.1)
119
117
  parallel (~> 1.10)
@@ -122,7 +120,7 @@ GEM
122
120
  rainbow (>= 2.2.2, < 4.0)
123
121
  ruby-progressbar (~> 1.7)
124
122
  unicode-display_width (~> 1.4.0)
125
- ruby-progressbar (1.10.0)
123
+ ruby-progressbar (1.10.1)
126
124
  snowglobe (0.3.0)
127
125
  sprockets (3.7.2)
128
126
  concurrent-ruby (~> 1.0)
@@ -132,13 +130,14 @@ GEM
132
130
  activesupport (>= 4.0)
133
131
  sprockets (>= 3.0.0)
134
132
  sqlite3 (1.3.13)
135
- test-unit (3.3.0)
133
+ test-unit (3.3.5)
136
134
  power_assert
137
- thor (0.20.3)
135
+ thor (1.0.1)
138
136
  thread_safe (0.3.6)
139
- tzinfo (1.2.5)
137
+ tzinfo (1.2.7)
140
138
  thread_safe (~> 0.1)
141
139
  unicode-display_width (1.4.1)
140
+ warnings_logger (0.1.0)
142
141
 
143
142
  PLATFORMS
144
143
  ruby
@@ -146,17 +145,21 @@ PLATFORMS
146
145
  DEPENDENCIES
147
146
  appraisal
148
147
  bundler (~> 1.0)
148
+ byebug
149
149
  m
150
150
  minitest
151
151
  mocha
152
- pry-byebug
152
+ pry (~> 0.12.0)
153
+ pry-byebug (~> 3.6.0)
153
154
  rails (~> 4.2.0)
154
155
  rake
155
156
  rubocop (= 0.64.0)
156
157
  shoulda-context!
157
158
  snowglobe (>= 0.3.0)
159
+ sprockets (~> 3.0)
158
160
  sqlite3 (~> 1.3.6)
159
161
  test-unit
162
+ warnings_logger
160
163
 
161
164
  BUNDLED WITH
162
165
  1.17.3