shoulda 4.0.0 → 5.0.0.rc1
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 +4 -4
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/README.md +32 -31
- data/lib/shoulda/version.rb +1 -1
- data/shoulda.gemspec +17 -14
- metadata +17 -62
- data/.autotest +0 -13
- data/.gitignore +0 -13
- data/.hound.yml +0 -3
- data/.rubocop.yml +0 -192
- data/.ruby-version +0 -1
- data/.travis.yml +0 -34
- data/Appraisals +0 -116
- data/CHANGELOG.md +0 -10
- data/CONTRIBUTING.md +0 -43
- data/Gemfile +0 -16
- data/Rakefile +0 -31
- data/gemfiles/rails_4_2.gemfile +0 -34
- data/gemfiles/rails_4_2.gemfile.lock +0 -240
- data/gemfiles/rails_5_0.gemfile +0 -32
- data/gemfiles/rails_5_0.gemfile.lock +0 -232
- data/gemfiles/rails_5_1.gemfile +0 -33
- data/gemfiles/rails_5_1.gemfile.lock +0 -247
- data/gemfiles/rails_5_2.gemfile +0 -35
- data/gemfiles/rails_5_2.gemfile.lock +0 -266
- data/gemfiles/rails_6_0.gemfile +0 -37
- data/gemfiles/rails_6_0.gemfile.lock +0 -291
- data/script/install_gems_in_all_appraisals +0 -16
- data/script/run_all_tests +0 -16
- data/script/supported_ruby_versions +0 -7
- data/script/update_gem_in_all_appraisals +0 -17
- data/script/update_gems_in_all_appraisals +0 -16
- data/test/acceptance/integrates_with_rails_test.rb +0 -580
- data/test/acceptance_test_helper.rb +0 -43
- data/test/support/acceptance/add_shoulda_to_project.rb +0 -73
- data/test/support/acceptance/helpers/array_helpers.rb +0 -13
- data/test/support/acceptance/helpers/pluralization_helpers.rb +0 -13
- data/test/support/acceptance/matchers/have_output.rb +0 -33
- data/test/support/acceptance/matchers/indicate_that_tests_were_run.rb +0 -109
- data/test/support/acceptance/rails_application_with_shoulda.rb +0 -47
- data/test/support/current_bundle.rb +0 -61
- data/test/support/snowglobe.rb +0 -5
- data/test/test_helper.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2959c43a560633a177f439f16b3e10b069728f7a828ec97808a4ea6b6cf6a67
|
4
|
+
data.tar.gz: '0863929c3b00f3eff2b6b0b43b06063d9c7da24348c107d7ba03716572fb5cef'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f37dd87e3226267c065714a995a7079cdc52729ee9e524c729c94949e8755ed317e1964b1f8cec845ca8969862296e7076a96389ef228727fbfb54444381b30
|
7
|
+
data.tar.gz: eb82cea0c31795cd8fe51d62f01515637b6430ebb687587be7c5e271202a1ee5e9c67fff3a1039a6b4c17f3099aa88850f74cf8899f3c818c1c372cd5933b0eb
|
data/{MIT-LICENSE → LICENSE}
RENAMED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# Shoulda [![Gem Version][version-badge]][rubygems] [![Build Status][
|
1
|
+
# Shoulda [![Gem Version][version-badge]][rubygems] [![Build Status][github-actions-badge]][github-actions] [![Total Downloads][downloads-total]][rubygems] [![Downloads][downloads-badge]][rubygems]
|
2
2
|
|
3
|
-
[version-badge]:
|
4
|
-
[rubygems]:
|
5
|
-
[
|
6
|
-
[
|
7
|
-
[downloads-
|
8
|
-
[
|
9
|
-
[
|
3
|
+
[version-badge]: https://img.shields.io/gem/v/shoulda.svg
|
4
|
+
[rubygems]: https://rubygems.org/gems/shoulda
|
5
|
+
[github-actions-badge]: https://img.shields.io/github/actions/workflow/status/thoughtbot/shoulda/ci.yml?branch=main
|
6
|
+
[github-actions]: https://github.com/thoughtbot/shoulda/actions
|
7
|
+
[downloads-total]: https://img.shields.io/gem/dt/shoulda.svg
|
8
|
+
[downloads-badge]: https://img.shields.io/gem/dtv/shoulda.svg
|
9
|
+
[downloads-badge]: https://img.shields.io/gem/dtv/shoulda.svg
|
10
10
|
|
11
11
|
Shoulda helps you write more understandable, maintainable Rails-specific tests
|
12
12
|
under Minitest and Test::Unit.
|
@@ -19,8 +19,8 @@ under Minitest and Test::Unit.
|
|
19
19
|
|
20
20
|
## Overview
|
21
21
|
|
22
|
-
As
|
23
|
-
brings in behavior from two other gems:
|
22
|
+
As an umbrella gem, the `shoulda` gem doesn't contain any code of its own but
|
23
|
+
rather brings in behavior from two other gems:
|
24
24
|
|
25
25
|
* [Shoulda Context]
|
26
26
|
* [Shoulda Matchers]
|
@@ -60,29 +60,32 @@ See the READMEs for these projects for more information.
|
|
60
60
|
|
61
61
|
## Compatibility
|
62
62
|
|
63
|
-
Shoulda
|
64
|
-
4.
|
63
|
+
Shoulda is tested and supported against Ruby 3.0+, Rails 6.1+, RSpec 3.x,
|
64
|
+
Minitest 4.x, and Test::Unit 3.x.
|
65
65
|
|
66
|
-
|
66
|
+
- For Ruby < 3 and Rails < 6.1 compatibility, please use [v4.0.0][v4.0.0].
|
67
67
|
|
68
|
-
|
69
|
-
contributed so far.
|
70
|
-
|
71
|
-
[contributors]: https://github.com/thoughtbot/shoulda/contributors
|
72
|
-
|
73
|
-
If you'd like to contribute, please take a look at the
|
74
|
-
[instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
|
75
|
-
pull request.
|
68
|
+
[v4.0.0]: https://github.com/thoughtbot/shoulda-matchers/tree/v4.0.0
|
76
69
|
|
77
70
|
## Versioning
|
78
71
|
|
79
72
|
Shoulda follows Semantic Versioning 2.0 as defined at <http://semver.org>.
|
80
73
|
|
81
|
-
##
|
74
|
+
## Team
|
75
|
+
|
76
|
+
Shoulda is maintained by [Elliot Winkler][mcmire]. It was previously maintained
|
77
|
+
by [Travis Jeffery][travisjeffery].
|
78
|
+
|
79
|
+
[mcmire]: https://github.com/mcmire
|
80
|
+
[travisjeffery]: https://github.com/travisjeffery
|
81
|
+
|
82
|
+
## Copyright/License
|
83
|
+
|
84
|
+
Shoulda is copyright © 2006-2023 Tammer Saleh and [thoughtbot,
|
85
|
+
inc][thoughtbot-website]. It is free and opensource software and may be
|
86
|
+
redistributed under the terms specified in the [LICENSE](LICENSE) file.
|
82
87
|
|
83
|
-
|
84
|
-
be redistributed under the terms specified in the [MIT-LICENSE](MIT-LICENSE)
|
85
|
-
file.
|
88
|
+
[thoughtbot-website]: https://thoughtbot.com
|
86
89
|
|
87
90
|
## About thoughtbot
|
88
91
|
|
@@ -90,12 +93,10 @@ file.
|
|
90
93
|
|
91
94
|
[thoughtbot-logo]: https://thoughtbot.com/brand_assets/93:44.svg
|
92
95
|
|
93
|
-
|
94
|
-
thoughtbot are trademarks of thoughtbot, inc.
|
96
|
+
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
95
97
|
|
96
|
-
We
|
97
|
-
|
98
|
+
We are passionate about open source software. See [our other
|
99
|
+
projects][community]. We are [available for hire][hire].
|
98
100
|
|
99
101
|
[community]: https://thoughtbot.com/community?utm_source=github
|
100
|
-
[hire]: https://thoughtbot.com
|
101
|
-
[thoughtbot]: https://thoughtbot.com?utm_source=github
|
102
|
+
[hire]: https://thoughtbot.com?utm_source=github
|
data/lib/shoulda/version.rb
CHANGED
data/shoulda.gemspec
CHANGED
@@ -2,29 +2,32 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
|
|
2
2
|
require 'shoulda/version'
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
-
s.name
|
6
|
-
s.version
|
7
|
-
s.
|
8
|
-
s.authors = [
|
5
|
+
s.name = 'shoulda'
|
6
|
+
s.version = Shoulda::VERSION.dup
|
7
|
+
s.authors = [
|
9
8
|
'Tammer Saleh',
|
10
9
|
'Joe Ferris',
|
11
10
|
'Ryan McGeary',
|
12
11
|
'Dan Croak',
|
13
12
|
'Matt Jankowski',
|
14
13
|
]
|
15
|
-
s.
|
16
|
-
s.
|
17
|
-
s.
|
18
|
-
s.
|
14
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
15
|
+
s.email = 'support@thoughtbot.com'
|
16
|
+
s.homepage = 'https://github.com/thoughtbot/shoulda'
|
17
|
+
s.summary = 'Making tests easy on the fingers and eyes'
|
19
18
|
s.license = 'MIT'
|
19
|
+
s.description = 'Making tests easy on the fingers and eyes'
|
20
|
+
|
21
|
+
s.metadata = {
|
22
|
+
'bug_tracker_uri' => 'https://github.com/thoughtbot/shoulda/issues',
|
23
|
+
'changelog_uri' => 'https://github.com/thoughtbot/shoulda/blob/main/CHANGELOG.md',
|
24
|
+
'source_code_uri' => 'https://github.com/thoughtbot/shoulda',
|
25
|
+
}
|
20
26
|
|
21
|
-
s.files =
|
22
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map do |file|
|
24
|
-
File.basename(file)
|
25
|
-
end
|
27
|
+
s.files = Dir['lib/**/*', 'README.md', 'LICENSE', 'shoulda.gemspec']
|
26
28
|
s.require_paths = ['lib']
|
27
29
|
|
30
|
+
s.required_ruby_version = '>= 3.0.5'
|
28
31
|
s.add_dependency('shoulda-context', '~> 2.0')
|
29
|
-
s.add_dependency('shoulda-matchers', '~>
|
32
|
+
s.add_dependency('shoulda-matchers', '~> 5.0')
|
30
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoulda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tammer Saleh
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
- Ryan McGeary
|
10
10
|
- Dan Croak
|
11
11
|
- Matt Jankowski
|
12
|
-
autorequire:
|
12
|
+
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: shoulda-context
|
@@ -34,67 +34,33 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - "~>"
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '5.0'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - "~>"
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
44
|
+
version: '5.0'
|
45
45
|
description: Making tests easy on the fingers and eyes
|
46
46
|
email: support@thoughtbot.com
|
47
47
|
executables: []
|
48
48
|
extensions: []
|
49
49
|
extra_rdoc_files: []
|
50
50
|
files:
|
51
|
-
-
|
52
|
-
- ".gitignore"
|
53
|
-
- ".hound.yml"
|
54
|
-
- ".rubocop.yml"
|
55
|
-
- ".ruby-version"
|
56
|
-
- ".travis.yml"
|
57
|
-
- Appraisals
|
58
|
-
- CHANGELOG.md
|
59
|
-
- CONTRIBUTING.md
|
60
|
-
- Gemfile
|
61
|
-
- MIT-LICENSE
|
51
|
+
- LICENSE
|
62
52
|
- README.md
|
63
|
-
- Rakefile
|
64
|
-
- gemfiles/rails_4_2.gemfile
|
65
|
-
- gemfiles/rails_4_2.gemfile.lock
|
66
|
-
- gemfiles/rails_5_0.gemfile
|
67
|
-
- gemfiles/rails_5_0.gemfile.lock
|
68
|
-
- gemfiles/rails_5_1.gemfile
|
69
|
-
- gemfiles/rails_5_1.gemfile.lock
|
70
|
-
- gemfiles/rails_5_2.gemfile
|
71
|
-
- gemfiles/rails_5_2.gemfile.lock
|
72
|
-
- gemfiles/rails_6_0.gemfile
|
73
|
-
- gemfiles/rails_6_0.gemfile.lock
|
74
53
|
- lib/shoulda.rb
|
75
54
|
- lib/shoulda/version.rb
|
76
|
-
- script/install_gems_in_all_appraisals
|
77
|
-
- script/run_all_tests
|
78
|
-
- script/supported_ruby_versions
|
79
|
-
- script/update_gem_in_all_appraisals
|
80
|
-
- script/update_gems_in_all_appraisals
|
81
55
|
- shoulda.gemspec
|
82
|
-
- test/acceptance/integrates_with_rails_test.rb
|
83
|
-
- test/acceptance_test_helper.rb
|
84
|
-
- test/support/acceptance/add_shoulda_to_project.rb
|
85
|
-
- test/support/acceptance/helpers/array_helpers.rb
|
86
|
-
- test/support/acceptance/helpers/pluralization_helpers.rb
|
87
|
-
- test/support/acceptance/matchers/have_output.rb
|
88
|
-
- test/support/acceptance/matchers/indicate_that_tests_were_run.rb
|
89
|
-
- test/support/acceptance/rails_application_with_shoulda.rb
|
90
|
-
- test/support/current_bundle.rb
|
91
|
-
- test/support/snowglobe.rb
|
92
|
-
- test/test_helper.rb
|
93
56
|
homepage: https://github.com/thoughtbot/shoulda
|
94
57
|
licenses:
|
95
58
|
- MIT
|
96
|
-
metadata:
|
97
|
-
|
59
|
+
metadata:
|
60
|
+
bug_tracker_uri: https://github.com/thoughtbot/shoulda/issues
|
61
|
+
changelog_uri: https://github.com/thoughtbot/shoulda/blob/main/CHANGELOG.md
|
62
|
+
source_code_uri: https://github.com/thoughtbot/shoulda
|
63
|
+
post_install_message:
|
98
64
|
rdoc_options: []
|
99
65
|
require_paths:
|
100
66
|
- lib
|
@@ -102,26 +68,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
68
|
requirements:
|
103
69
|
- - ">="
|
104
70
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
71
|
+
version: 3.0.5
|
106
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
73
|
requirements:
|
108
|
-
- - "
|
74
|
+
- - ">"
|
109
75
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
76
|
+
version: 1.3.1
|
111
77
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
113
|
-
signing_key:
|
78
|
+
rubygems_version: 3.4.6
|
79
|
+
signing_key:
|
114
80
|
specification_version: 4
|
115
81
|
summary: Making tests easy on the fingers and eyes
|
116
|
-
test_files:
|
117
|
-
- test/acceptance/integrates_with_rails_test.rb
|
118
|
-
- test/acceptance_test_helper.rb
|
119
|
-
- test/support/acceptance/add_shoulda_to_project.rb
|
120
|
-
- test/support/acceptance/helpers/array_helpers.rb
|
121
|
-
- test/support/acceptance/helpers/pluralization_helpers.rb
|
122
|
-
- test/support/acceptance/matchers/have_output.rb
|
123
|
-
- test/support/acceptance/matchers/indicate_that_tests_were_run.rb
|
124
|
-
- test/support/acceptance/rails_application_with_shoulda.rb
|
125
|
-
- test/support/current_bundle.rb
|
126
|
-
- test/support/snowglobe.rb
|
127
|
-
- test/test_helper.rb
|
82
|
+
test_files: []
|
data/.autotest
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
Autotest.add_hook :initialize do |at|
|
2
|
-
at.add_mapping(%r{^lib/\w.*\.rb}) do
|
3
|
-
at.files_matching(%r{^test/*/\w.*_test\.rb})
|
4
|
-
end
|
5
|
-
|
6
|
-
at.add_mapping(%r{^test/rails_root/\w.*}) do
|
7
|
-
at.files_matching(%r{^test/*/\w.*_test\.rb})
|
8
|
-
end
|
9
|
-
|
10
|
-
at.add_exception(%r{.svn})
|
11
|
-
at.add_exception(%r{.log$})
|
12
|
-
at.add_exception(%r{^.autotest$})
|
13
|
-
end
|
data/.gitignore
DELETED
data/.hound.yml
DELETED
data/.rubocop.yml
DELETED
@@ -1,192 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.4
|
3
|
-
Layout/ParameterAlignment:
|
4
|
-
EnforcedStyle: with_fixed_indentation
|
5
|
-
Layout/ConditionPosition:
|
6
|
-
Enabled: false
|
7
|
-
Layout/DotPosition:
|
8
|
-
EnforcedStyle: trailing
|
9
|
-
Layout/HeredocIndentation:
|
10
|
-
Enabled: false
|
11
|
-
Layout/MultilineMethodCallIndentation:
|
12
|
-
EnforcedStyle: indented
|
13
|
-
Lint/AmbiguousOperator:
|
14
|
-
Enabled: false
|
15
|
-
Lint/AmbiguousRegexpLiteral:
|
16
|
-
Enabled: false
|
17
|
-
Lint/AssignmentInCondition:
|
18
|
-
Enabled: false
|
19
|
-
Lint/DeprecatedClassMethods:
|
20
|
-
Enabled: false
|
21
|
-
Lint/ElseLayout:
|
22
|
-
Enabled: false
|
23
|
-
Lint/SuppressedException:
|
24
|
-
Enabled: false
|
25
|
-
Lint/LiteralInInterpolation:
|
26
|
-
Enabled: false
|
27
|
-
Lint/Loop:
|
28
|
-
Enabled: false
|
29
|
-
Lint/ParenthesesAsGroupedExpression:
|
30
|
-
Enabled: false
|
31
|
-
Lint/RequireParentheses:
|
32
|
-
Enabled: false
|
33
|
-
Lint/UnderscorePrefixedVariableName:
|
34
|
-
Enabled: false
|
35
|
-
Lint/Void:
|
36
|
-
Enabled: false
|
37
|
-
Metrics/BlockLength:
|
38
|
-
Enabled: false
|
39
|
-
Metrics/ClassLength:
|
40
|
-
Enabled: false
|
41
|
-
Metrics/LineLength:
|
42
|
-
IgnoredPatterns:
|
43
|
-
- "^[ ]*describe.+$"
|
44
|
-
- "^[ ]*context.+$"
|
45
|
-
- "^[ ]*shared_context.+$"
|
46
|
-
- "^[ ]*shared_examples_for.+$"
|
47
|
-
- "^[ ]*it.+$"
|
48
|
-
- "^[ ]*'.+?' => '.+?',?$"
|
49
|
-
- "^[ ]*\".+?\" => \".+?\",?$"
|
50
|
-
- "^[ ]*.+?: .+?$"
|
51
|
-
Metrics/MethodLength:
|
52
|
-
Max: 30
|
53
|
-
Naming/AccessorMethodName:
|
54
|
-
Enabled: false
|
55
|
-
Naming/AsciiIdentifiers:
|
56
|
-
Enabled: false
|
57
|
-
Naming/BinaryOperatorParameterName:
|
58
|
-
Enabled: false
|
59
|
-
Style/ClassVars:
|
60
|
-
Enabled: false
|
61
|
-
Style/ColonMethodCall:
|
62
|
-
Enabled: false
|
63
|
-
Naming/FileName:
|
64
|
-
Enabled: false
|
65
|
-
Rails:
|
66
|
-
Enabled: true
|
67
|
-
Rails/Delegate:
|
68
|
-
Enabled: false
|
69
|
-
Rails/HttpPositionalArguments:
|
70
|
-
Enabled: false
|
71
|
-
Style/Alias:
|
72
|
-
Enabled: false
|
73
|
-
Style/ArrayJoin:
|
74
|
-
Enabled: false
|
75
|
-
Style/AsciiComments:
|
76
|
-
Enabled: false
|
77
|
-
Style/Attr:
|
78
|
-
Enabled: false
|
79
|
-
Style/CaseEquality:
|
80
|
-
Enabled: false
|
81
|
-
Style/CharacterLiteral:
|
82
|
-
Enabled: false
|
83
|
-
Style/ClassAndModuleChildren:
|
84
|
-
Enabled: false
|
85
|
-
Style/CollectionMethods:
|
86
|
-
PreferredMethods:
|
87
|
-
find: detect
|
88
|
-
reduce: inject
|
89
|
-
collect: map
|
90
|
-
find_all: select
|
91
|
-
Style/CommentAnnotation:
|
92
|
-
Enabled: false
|
93
|
-
Style/Documentation:
|
94
|
-
Enabled: false
|
95
|
-
Style/DoubleNegation:
|
96
|
-
Enabled: false
|
97
|
-
Style/EachWithObject:
|
98
|
-
Enabled: false
|
99
|
-
Style/EmptyLiteral:
|
100
|
-
Enabled: false
|
101
|
-
Style/Encoding:
|
102
|
-
Enabled: false
|
103
|
-
Style/EvenOdd:
|
104
|
-
Enabled: false
|
105
|
-
Lint/FlipFlop:
|
106
|
-
Enabled: false
|
107
|
-
Style/FormatString:
|
108
|
-
Enabled: false
|
109
|
-
Style/FrozenStringLiteralComment:
|
110
|
-
Enabled: false
|
111
|
-
Style/GlobalVars:
|
112
|
-
Enabled: false
|
113
|
-
Style/GuardClause:
|
114
|
-
Enabled: false
|
115
|
-
Style/IfUnlessModifier:
|
116
|
-
Enabled: false
|
117
|
-
Style/IfWithSemicolon:
|
118
|
-
Enabled: false
|
119
|
-
Style/InlineComment:
|
120
|
-
Enabled: false
|
121
|
-
Style/Lambda:
|
122
|
-
Enabled: false
|
123
|
-
Style/LambdaCall:
|
124
|
-
Enabled: false
|
125
|
-
Style/LineEndConcatenation:
|
126
|
-
Enabled: false
|
127
|
-
Style/MethodCalledOnDoEndBlock:
|
128
|
-
Enabled: false
|
129
|
-
Style/ModuleFunction:
|
130
|
-
Enabled: false
|
131
|
-
Style/NegatedIf:
|
132
|
-
Enabled: false
|
133
|
-
Style/NegatedWhile:
|
134
|
-
Enabled: false
|
135
|
-
Style/Next:
|
136
|
-
Enabled: false
|
137
|
-
Style/NilComparison:
|
138
|
-
Enabled: false
|
139
|
-
Style/Not:
|
140
|
-
Enabled: false
|
141
|
-
Style/NumericLiterals:
|
142
|
-
Enabled: false
|
143
|
-
Style/NumericPredicate:
|
144
|
-
Enabled: false
|
145
|
-
Style/OneLineConditional:
|
146
|
-
Enabled: false
|
147
|
-
Style/ParenthesesAroundCondition:
|
148
|
-
Enabled: false
|
149
|
-
Style/PercentLiteralDelimiters:
|
150
|
-
Enabled: false
|
151
|
-
Style/PerlBackrefs:
|
152
|
-
Enabled: false
|
153
|
-
Style/PreferredHashMethods:
|
154
|
-
Enabled: false
|
155
|
-
Style/Proc:
|
156
|
-
Enabled: false
|
157
|
-
Style/RaiseArgs:
|
158
|
-
Enabled: false
|
159
|
-
Style/RedundantParentheses:
|
160
|
-
Enabled: false
|
161
|
-
Style/RegexpLiteral:
|
162
|
-
Enabled: false
|
163
|
-
Style/SelfAssignment:
|
164
|
-
Enabled: false
|
165
|
-
Style/SignalException:
|
166
|
-
Enabled: false
|
167
|
-
Style/SingleLineBlockParams:
|
168
|
-
Enabled: false
|
169
|
-
Style/SingleLineMethods:
|
170
|
-
Enabled: false
|
171
|
-
Style/SpecialGlobalVars:
|
172
|
-
Enabled: false
|
173
|
-
Style/StringLiterals:
|
174
|
-
EnforcedStyle: single_quotes
|
175
|
-
Style/SymbolArray:
|
176
|
-
Enabled: false
|
177
|
-
Style/TrailingCommaInArguments:
|
178
|
-
EnforcedStyleForMultiline: consistent_comma
|
179
|
-
Style/TrailingCommaInArrayLiteral:
|
180
|
-
EnforcedStyleForMultiline: consistent_comma
|
181
|
-
Style/TrailingCommaInHashLiteral:
|
182
|
-
EnforcedStyleForMultiline: consistent_comma
|
183
|
-
Style/TrivialAccessors:
|
184
|
-
Enabled: false
|
185
|
-
Style/WhenThen:
|
186
|
-
Enabled: false
|
187
|
-
Style/WhileUntilModifier:
|
188
|
-
Enabled: false
|
189
|
-
Style/WordArray:
|
190
|
-
Enabled: false
|
191
|
-
Style/VariableInterpolation:
|
192
|
-
Enabled: false
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.7.1
|
data/.travis.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: xenial
|
3
|
-
os: linux
|
4
|
-
cache:
|
5
|
-
directories:
|
6
|
-
- vendor/bundle
|
7
|
-
# Source: <https://docs.travis-ci.com/user/languages/ruby/#bundler-20>
|
8
|
-
before_install:
|
9
|
-
- gem update --system '3.1.2' --no-document
|
10
|
-
- gem uninstall -v '< 2' -i $(rvm gemdir)@global -ax bundler || true
|
11
|
-
- gem install bundler -v '< 2' --no-document
|
12
|
-
- nvm use v11.0.0
|
13
|
-
- bundle config set path vendor/bundle
|
14
|
-
install: "bundle install --jobs=3 --retry=3"
|
15
|
-
script: "bundle exec rake"
|
16
|
-
rvm:
|
17
|
-
- 2.4.9
|
18
|
-
- 2.5.8
|
19
|
-
- 2.6.6
|
20
|
-
- 2.7.1
|
21
|
-
gemfile:
|
22
|
-
- gemfiles/rails_4_2.gemfile
|
23
|
-
- gemfiles/rails_5_0.gemfile
|
24
|
-
- gemfiles/rails_5_1.gemfile
|
25
|
-
- gemfiles/rails_5_2.gemfile
|
26
|
-
- gemfiles/rails_6_0.gemfile
|
27
|
-
matrix:
|
28
|
-
exclude:
|
29
|
-
- rvm: 2.4.9
|
30
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
31
|
-
- rvm: 2.6.6
|
32
|
-
gemfile: gemfiles/rails_4_2.gemfile
|
33
|
-
- rvm: 2.7.1
|
34
|
-
gemfile: gemfiles/rails_4_2.gemfile
|
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
|