shoulda 4.0.0.rc2 → 5.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/{MIT-LICENSE → LICENSE} +1 -1
  3. data/README.md +39 -32
  4. data/lib/shoulda/version.rb +1 -1
  5. data/shoulda.gemspec +18 -15
  6. metadata +19 -63
  7. data/.autotest +0 -13
  8. data/.gitignore +0 -13
  9. data/.hound.yml +0 -3
  10. data/.rubocop.yml +0 -192
  11. data/.ruby-version +0 -1
  12. data/.travis.yml +0 -34
  13. data/Appraisals +0 -116
  14. data/CONTRIBUTING.md +0 -43
  15. data/Gemfile +0 -16
  16. data/Rakefile +0 -31
  17. data/gemfiles/rails_4_2.gemfile +0 -34
  18. data/gemfiles/rails_4_2.gemfile.lock +0 -240
  19. data/gemfiles/rails_5_0.gemfile +0 -32
  20. data/gemfiles/rails_5_0.gemfile.lock +0 -232
  21. data/gemfiles/rails_5_1.gemfile +0 -33
  22. data/gemfiles/rails_5_1.gemfile.lock +0 -247
  23. data/gemfiles/rails_5_2.gemfile +0 -35
  24. data/gemfiles/rails_5_2.gemfile.lock +0 -266
  25. data/gemfiles/rails_6_0.gemfile +0 -37
  26. data/gemfiles/rails_6_0.gemfile.lock +0 -291
  27. data/script/install_gems_in_all_appraisals +0 -16
  28. data/script/run_all_tests +0 -16
  29. data/script/supported_ruby_versions +0 -7
  30. data/script/update_gem_in_all_appraisals +0 -17
  31. data/script/update_gems_in_all_appraisals +0 -16
  32. data/test/acceptance/integrates_with_rails_test.rb +0 -580
  33. data/test/acceptance_test_helper.rb +0 -43
  34. data/test/support/acceptance/add_shoulda_to_project.rb +0 -73
  35. data/test/support/acceptance/helpers/array_helpers.rb +0 -13
  36. data/test/support/acceptance/helpers/pluralization_helpers.rb +0 -13
  37. data/test/support/acceptance/matchers/have_output.rb +0 -33
  38. data/test/support/acceptance/matchers/indicate_that_tests_were_run.rb +0 -109
  39. data/test/support/acceptance/rails_application_with_shoulda.rb +0 -47
  40. data/test/support/current_bundle.rb +0 -61
  41. data/test/support/snowglobe.rb +0 -5
  42. data/test/test_helper.rb +0 -23
data/Appraisals DELETED
@@ -1,116 +0,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
7
- gem 'sqlite3', '~> 1.3.6'
8
- gem 'rubyzip', '~> 1.3.0'
9
- end
10
-
11
- shared_spring_dependencies = proc do
12
- gem 'spring'
13
- gem 'spring-commands-rspec'
14
- end
15
-
16
- shared_test_dependencies = proc do
17
- gem 'minitest-reporters'
18
- end
19
-
20
- shared_dependencies = proc do
21
- instance_eval(&shared_rails_dependencies)
22
- instance_eval(&shared_spring_dependencies)
23
- instance_eval(&shared_test_dependencies)
24
- end
25
-
26
- appraise 'rails_4_2' do
27
- instance_eval(&shared_dependencies)
28
-
29
- gem 'rails', '~> 4.2.10'
30
- gem 'sass-rails', '~> 5.0'
31
- gem 'uglifier', '>= 1.3.0'
32
- gem 'coffee-rails', '~> 4.1.0'
33
- gem 'jquery-rails'
34
- gem 'turbolinks'
35
- gem 'jbuilder', '~> 2.0'
36
- gem 'sdoc', '~> 0.4.0', group: :doc
37
- gem 'bcrypt', '~> 3.1.7'
38
-
39
- # Other dependencies we use
40
- gem 'activeresource', '4.0.0'
41
- gem 'json', '~> 1.4'
42
- gem 'protected_attributes', '~> 1.0.6'
43
- end
44
-
45
- appraise 'rails_5_0' do
46
- instance_eval(&shared_dependencies)
47
-
48
- gem 'rails', '~> 5.0.7'
49
- gem 'rails-controller-testing', '>= 1.0.1'
50
- gem 'puma', '~> 3.0'
51
- gem 'sass-rails', '~> 5.0'
52
- gem 'jquery-rails'
53
- gem 'turbolinks', '~> 5'
54
- gem 'jbuilder', '~> 2.5'
55
- gem 'bcrypt', '~> 3.1.7'
56
- gem 'listen', '~> 3.0.5'
57
- gem 'spring-watcher-listen', '~> 2.0.0'
58
- end
59
-
60
- appraise 'rails_5_1' do
61
- instance_eval(&shared_dependencies)
62
- gem 'rails', '~> 5.1.6'
63
- gem 'rails-controller-testing', '>= 1.0.1'
64
- gem 'puma', '~> 3.7'
65
- gem 'sass-rails', '~> 5.0'
66
- gem 'turbolinks', '~> 5'
67
- gem 'jbuilder', '~> 2.5'
68
- gem 'bcrypt', '~> 3.1.7'
69
- gem 'capybara', '~> 2.13'
70
- gem 'selenium-webdriver'
71
- gem 'listen', '>= 3.0.5', '< 3.2'
72
- gem 'spring-watcher-listen', '~> 2.0.0'
73
- end
74
-
75
- appraise 'rails_5_2' do
76
- instance_eval(&shared_dependencies)
77
-
78
- gem 'rails', '~> 5.2.2'
79
- gem 'rails-controller-testing', '>= 1.0.1'
80
- gem 'puma', '~> 3.11'
81
- gem 'bootsnap', '>= 1.1.0', require: false
82
- gem 'sass-rails', '~> 5.0'
83
- gem 'turbolinks', '~> 5'
84
- gem 'jbuilder', '~> 2.5'
85
- gem 'bcrypt', '~> 3.1.7'
86
- gem 'capybara', '~> 3.1.1'
87
- gem 'selenium-webdriver'
88
- gem 'chromedriver-helper'
89
- gem 'listen', '>= 3.0.5', '< 3.2'
90
- gem 'spring-watcher-listen', '~> 2.0.0'
91
- end
92
-
93
- if Gem::Requirement.new('>= 2.5.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
94
- appraise 'rails_6_0' do
95
- instance_eval(&shared_dependencies)
96
-
97
- gem 'rails', '~> 6.0.2'
98
- gem 'puma', '~> 4.1'
99
- gem 'sass-rails', '>= 6'
100
- gem 'webpacker', '~> 4.0'
101
- gem 'turbolinks', '~> 5'
102
- gem 'jbuilder', '~> 2.7'
103
- gem 'bcrypt', '~> 3.1.7'
104
- gem 'bootsnap', '>= 1.4.2', require: false
105
- gem 'listen', '>= 3.0.5', '< 3.2'
106
- gem 'spring-watcher-listen', '~> 2.0.0'
107
- gem 'capybara', '>= 2.15'
108
- gem 'selenium-webdriver'
109
- gem "sqlite3", "~> 1.4.0"
110
- gem 'webdrivers'
111
-
112
- # Other dependencies
113
- gem 'rails-controller-testing', '>= 1.0.4'
114
- gem 'pg', '~> 1.1', platform: :ruby
115
- end
116
- end
data/CONTRIBUTING.md DELETED
@@ -1,43 +0,0 @@
1
- We love pull requests from everyone. By participating in this project, you
2
- agree to abide by the thoughtbot [code of conduct].
3
-
4
- [code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
5
-
6
- Here's a quick guide:
7
-
8
- 1. Fork the repo.
9
-
10
- 2. Run the tests. We only take pull requests with passing tests, and it's great
11
- to know that you have a clean slate: `bundle && rake`
12
-
13
- 3. Add a test for your change. Only refactoring and documentation changes
14
- require no new tests. If you are adding functionality or fixing a bug, we need
15
- a test!
16
-
17
- 4. Make the test pass.
18
-
19
- 5. Push to your fork and submit a pull request.
20
-
21
-
22
- At this point you're waiting on us. We like to at least comment on, if not
23
- accept, pull requests within three business days (and, typically, one business
24
- day). We may suggest some changes or improvements or alternatives.
25
-
26
- Some things that will increase the chance that your pull request is accepted,
27
- taken straight from the Ruby on Rails guide:
28
-
29
- * Use Rails idioms and helpers
30
- * Include tests that fail without your code, and pass with it
31
- * Update the documentation, the surrounding one, examples elsewhere, guides,
32
- whatever is affected by your contribution
33
-
34
- Syntax:
35
-
36
- * Two spaces, no tabs.
37
- * No trailing whitespace. Blank lines should not have any space.
38
- * Prefer &&/|| over and/or.
39
- * MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
40
- * a = b and not a=b.
41
- * Follow the conventions you see used in the source already.
42
-
43
- And in case we didn't emphasize it enough: we love tests!
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'appraisal', '~> 2.1'
6
- gem 'bundler', '~> 1.0'
7
- gem 'm'
8
- gem 'minitest', '~> 5.0'
9
- gem 'minitest-reporters', '~> 1.0'
10
- gem 'mry'
11
- gem 'pry', '~> 0.12.0'
12
- gem 'pry-byebug', '~> 3.6.0'
13
- gem 'rubocop', '0.71.0', require: false
14
- gem 'rubocop-rails', require: false
15
- gem 'snowglobe', '>= 0.3.0'
16
- gem 'warnings_logger'
data/Rakefile DELETED
@@ -1,31 +0,0 @@
1
- require 'bundler/setup'
2
- require 'bundler/gem_tasks'
3
- require 'rake/testtask'
4
- require 'pry-byebug'
5
-
6
- require_relative 'test/support/current_bundle'
7
-
8
- Rake::TestTask.new do |t|
9
- t.libs << 'test'
10
- t.ruby_opts += ['-w']
11
- t.pattern = 'test/**/*_test.rb'
12
- t.verbose = false
13
- end
14
-
15
- task :default do
16
- if Tests::CurrentBundle.instance.appraisal_in_use?
17
- Rake::Task['test'].invoke
18
- elsif ENV['CI']
19
- exec 'appraisal install && appraisal rake --trace'
20
- else
21
- appraisal = Tests::CurrentBundle.instance.latest_appraisal
22
- exec "appraisal install && appraisal #{appraisal} rake --trace"
23
- end
24
- end
25
-
26
- namespace :appraisal do
27
- task :list do
28
- appraisals = Tests::CurrentBundle.instance.available_appraisals
29
- puts "Valid appraisals: #{appraisals.join(', ')}"
30
- end
31
- end
@@ -1,34 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.1"
6
- gem "bundler", "~> 1.0"
7
- gem "m"
8
- gem "minitest", "~> 5.0"
9
- gem "minitest-reporters"
10
- gem "mry"
11
- gem "pry", "~> 0.12.0"
12
- gem "pry-byebug", "~> 3.6.0"
13
- gem "rubocop", "0.71.0", require: false
14
- gem "rubocop-rails", require: false
15
- gem "snowglobe", ">= 0.3.0"
16
- gem "warnings_logger"
17
- gem "sqlite3", "~> 1.3.6"
18
- gem "rubyzip", "~> 1.3.0"
19
- gem "spring"
20
- gem "spring-commands-rspec"
21
- gem "rails", "~> 4.2.10"
22
- gem "sass-rails", "~> 5.0"
23
- gem "uglifier", ">= 1.3.0"
24
- gem "coffee-rails", "~> 4.1.0"
25
- gem "jquery-rails"
26
- gem "turbolinks"
27
- gem "jbuilder", "~> 2.0"
28
- gem "sdoc", "~> 0.4.0", group: :doc
29
- gem "bcrypt", "~> 3.1.7"
30
- gem "activeresource", "4.0.0"
31
- gem "json", "~> 1.4"
32
- gem "protected_attributes", "~> 1.0.6"
33
-
34
- gemspec path: "../"
@@ -1,240 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- shoulda (4.0.0.rc2)
5
- shoulda-context (= 2.0.0.rc4)
6
- shoulda-matchers (~> 4.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.2.11.1)
12
- actionpack (= 4.2.11.1)
13
- actionview (= 4.2.11.1)
14
- activejob (= 4.2.11.1)
15
- mail (~> 2.5, >= 2.5.4)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.11.1)
18
- actionview (= 4.2.11.1)
19
- activesupport (= 4.2.11.1)
20
- rack (~> 1.6)
21
- rack-test (~> 0.6.2)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.11.1)
25
- activesupport (= 4.2.11.1)
26
- builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
- activejob (4.2.11.1)
31
- activesupport (= 4.2.11.1)
32
- globalid (>= 0.3.0)
33
- activemodel (4.2.11.1)
34
- activesupport (= 4.2.11.1)
35
- builder (~> 3.1)
36
- activerecord (4.2.11.1)
37
- activemodel (= 4.2.11.1)
38
- activesupport (= 4.2.11.1)
39
- arel (~> 6.0)
40
- activeresource (4.0.0)
41
- activemodel (~> 4.0)
42
- activesupport (~> 4.0)
43
- rails-observers (~> 0.1.1)
44
- activesupport (4.2.11.1)
45
- i18n (~> 0.7)
46
- minitest (~> 5.1)
47
- thread_safe (~> 0.3, >= 0.3.4)
48
- tzinfo (~> 1.1)
49
- ansi (1.5.0)
50
- appraisal (2.2.0)
51
- bundler
52
- rake
53
- thor (>= 0.14.0)
54
- arel (6.0.4)
55
- ast (2.4.0)
56
- bcrypt (3.1.13)
57
- builder (3.2.4)
58
- byebug (10.0.2)
59
- coderay (1.1.2)
60
- coffee-rails (4.1.1)
61
- coffee-script (>= 2.2.0)
62
- railties (>= 4.0.0, < 5.1.x)
63
- coffee-script (2.4.1)
64
- coffee-script-source
65
- execjs
66
- coffee-script-source (1.12.2)
67
- concurrent-ruby (1.1.6)
68
- crass (1.0.6)
69
- erubis (2.7.0)
70
- execjs (2.7.0)
71
- ffi (1.12.2)
72
- globalid (0.4.2)
73
- activesupport (>= 4.2.0)
74
- i18n (0.9.5)
75
- concurrent-ruby (~> 1.0)
76
- jaro_winkler (1.5.4)
77
- jbuilder (2.9.1)
78
- activesupport (>= 4.2.0)
79
- jquery-rails (4.3.5)
80
- rails-dom-testing (>= 1, < 3)
81
- railties (>= 4.2.0)
82
- thor (>= 0.14, < 2.0)
83
- json (1.8.6)
84
- loofah (2.4.0)
85
- crass (~> 1.0.2)
86
- nokogiri (>= 1.5.9)
87
- m (1.5.1)
88
- method_source (>= 0.6.7)
89
- rake (>= 0.9.2.2)
90
- mail (2.7.1)
91
- mini_mime (>= 0.1.1)
92
- method_source (0.9.2)
93
- mini_mime (1.0.2)
94
- mini_portile2 (2.4.0)
95
- minitest (5.14.0)
96
- minitest-reporters (1.4.2)
97
- ansi
98
- builder
99
- minitest (>= 5.0)
100
- ruby-progressbar
101
- mry (0.78.0.0)
102
- rubocop (>= 0.41.0)
103
- nokogiri (1.10.9)
104
- mini_portile2 (~> 2.4.0)
105
- parallel (1.19.1)
106
- parser (2.7.1.0)
107
- ast (~> 2.4.0)
108
- protected_attributes (1.0.9)
109
- activemodel (>= 4.0.1, < 5.0)
110
- pry (0.12.2)
111
- coderay (~> 1.1.0)
112
- method_source (~> 0.9.0)
113
- pry-byebug (3.6.0)
114
- byebug (~> 10.0)
115
- pry (~> 0.10)
116
- rack (1.6.13)
117
- rack-test (0.6.3)
118
- rack (>= 1.0)
119
- rails (4.2.11.1)
120
- actionmailer (= 4.2.11.1)
121
- actionpack (= 4.2.11.1)
122
- actionview (= 4.2.11.1)
123
- activejob (= 4.2.11.1)
124
- activemodel (= 4.2.11.1)
125
- activerecord (= 4.2.11.1)
126
- activesupport (= 4.2.11.1)
127
- bundler (>= 1.3.0, < 2.0)
128
- railties (= 4.2.11.1)
129
- sprockets-rails
130
- rails-deprecated_sanitizer (1.0.3)
131
- activesupport (>= 4.2.0.alpha)
132
- rails-dom-testing (1.0.9)
133
- activesupport (>= 4.2.0, < 5.0)
134
- nokogiri (~> 1.6)
135
- rails-deprecated_sanitizer (>= 1.0.1)
136
- rails-html-sanitizer (1.3.0)
137
- loofah (~> 2.3)
138
- rails-observers (0.1.5)
139
- activemodel (>= 4.0)
140
- railties (4.2.11.1)
141
- actionpack (= 4.2.11.1)
142
- activesupport (= 4.2.11.1)
143
- rake (>= 0.8.7)
144
- thor (>= 0.18.1, < 2.0)
145
- rainbow (3.0.0)
146
- rake (13.0.1)
147
- rb-fsevent (0.10.3)
148
- rb-inotify (0.10.1)
149
- ffi (~> 1.0)
150
- rdoc (4.3.0)
151
- rubocop (0.71.0)
152
- jaro_winkler (~> 1.5.1)
153
- parallel (~> 1.10)
154
- parser (>= 2.6)
155
- rainbow (>= 2.2.2, < 4.0)
156
- ruby-progressbar (~> 1.7)
157
- unicode-display_width (>= 1.4.0, < 1.7)
158
- rubocop-rails (2.0.1)
159
- rack (>= 1.1)
160
- rubocop (>= 0.70.0)
161
- ruby-progressbar (1.10.1)
162
- rubyzip (1.3.0)
163
- sass (3.7.4)
164
- sass-listen (~> 4.0.0)
165
- sass-listen (4.0.0)
166
- rb-fsevent (~> 0.9, >= 0.9.4)
167
- rb-inotify (~> 0.9, >= 0.9.7)
168
- sass-rails (5.0.7)
169
- railties (>= 4.0.0, < 6)
170
- sass (~> 3.1)
171
- sprockets (>= 2.8, < 4.0)
172
- sprockets-rails (>= 2.0, < 4.0)
173
- tilt (>= 1.1, < 3)
174
- sdoc (0.4.2)
175
- json (~> 1.7, >= 1.7.7)
176
- rdoc (~> 4.0)
177
- shoulda-context (2.0.0.rc4)
178
- shoulda-matchers (4.3.0)
179
- activesupport (>= 4.2.0)
180
- snowglobe (0.3.0)
181
- spring (2.1.0)
182
- spring-commands-rspec (1.0.4)
183
- spring (>= 0.9.1)
184
- sprockets (3.7.2)
185
- concurrent-ruby (~> 1.0)
186
- rack (> 1, < 3)
187
- sprockets-rails (3.2.1)
188
- actionpack (>= 4.0)
189
- activesupport (>= 4.0)
190
- sprockets (>= 3.0.0)
191
- sqlite3 (1.3.13)
192
- thor (1.0.1)
193
- thread_safe (0.3.6)
194
- tilt (2.0.10)
195
- turbolinks (5.2.1)
196
- turbolinks-source (~> 5.2)
197
- turbolinks-source (5.2.0)
198
- tzinfo (1.2.7)
199
- thread_safe (~> 0.1)
200
- uglifier (4.2.0)
201
- execjs (>= 0.3.0, < 3)
202
- unicode-display_width (1.6.1)
203
- warnings_logger (0.1.0)
204
-
205
- PLATFORMS
206
- ruby
207
-
208
- DEPENDENCIES
209
- activeresource (= 4.0.0)
210
- appraisal (~> 2.1)
211
- bcrypt (~> 3.1.7)
212
- bundler (~> 1.0)
213
- coffee-rails (~> 4.1.0)
214
- jbuilder (~> 2.0)
215
- jquery-rails
216
- json (~> 1.4)
217
- m
218
- minitest (~> 5.0)
219
- minitest-reporters
220
- mry
221
- protected_attributes (~> 1.0.6)
222
- pry (~> 0.12.0)
223
- pry-byebug (~> 3.6.0)
224
- rails (~> 4.2.10)
225
- rubocop (= 0.71.0)
226
- rubocop-rails
227
- rubyzip (~> 1.3.0)
228
- sass-rails (~> 5.0)
229
- sdoc (~> 0.4.0)
230
- shoulda!
231
- snowglobe (>= 0.3.0)
232
- spring
233
- spring-commands-rspec
234
- sqlite3 (~> 1.3.6)
235
- turbolinks
236
- uglifier (>= 1.3.0)
237
- warnings_logger
238
-
239
- BUNDLED WITH
240
- 1.17.3
@@ -1,32 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.1"
6
- gem "bundler", "~> 1.0"
7
- gem "m"
8
- gem "minitest", "~> 5.0"
9
- gem "minitest-reporters"
10
- gem "mry"
11
- gem "pry", "~> 0.12.0"
12
- gem "pry-byebug", "~> 3.6.0"
13
- gem "rubocop", "0.71.0", require: false
14
- gem "rubocop-rails", require: false
15
- gem "snowglobe", ">= 0.3.0"
16
- gem "warnings_logger"
17
- gem "sqlite3", "~> 1.3.6"
18
- gem "rubyzip", "~> 1.3.0"
19
- gem "spring"
20
- gem "spring-commands-rspec"
21
- gem "rails", "~> 5.0.7"
22
- gem "rails-controller-testing", ">= 1.0.1"
23
- gem "puma", "~> 3.0"
24
- gem "sass-rails", "~> 5.0"
25
- gem "jquery-rails"
26
- gem "turbolinks", "~> 5"
27
- gem "jbuilder", "~> 2.5"
28
- gem "bcrypt", "~> 3.1.7"
29
- gem "listen", "~> 3.0.5"
30
- gem "spring-watcher-listen", "~> 2.0.0"
31
-
32
- gemspec path: "../"