rspec-activerecord-expectations 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +49 -8
- data/.gitignore +4 -1
- data/Appraisals +23 -0
- data/CHANGELOG.md +7 -3
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_5.0.gemfile +9 -0
- data/gemfiles/rails_5.1.gemfile +9 -0
- data/gemfiles/rails_5.2.gemfile +9 -0
- data/gemfiles/rails_6.0.gemfile +9 -0
- data/gemfiles/rails_6.1.gemfile +9 -0
- data/gemfiles/rails_7.0.gemfile +9 -0
- data/rspec-activerecord-expectations.gemspec +3 -2
- metadata +27 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 202f92144b220ec281763d132152aa1bf3cced42d09273d3c050c8c41dab2018
|
4
|
+
data.tar.gz: f4e4e5f4fce4c3db060c3ea1fcb6752d876fd8b41cc0337dc81308c6acfceb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdbccf8e60640748b4eabc666355ac175455f0338a21a157d41eaee48f82361f45c4c921ec94ee2f3df5b9a274c72a1de868d4f7dfe5d3e2ff4480fbc08981ef
|
7
|
+
data.tar.gz: d330ce04fee3e846d0591cd4f0c34599e3501715e291f7ad7956a226e7ca7d91638892a09e566f567e13daaf2287d7da95869e4c99e849043a459e7afcc599e0
|
data/.github/workflows/main.yml
CHANGED
@@ -2,26 +2,67 @@ name: CI
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [
|
5
|
+
branches: [ main ]
|
6
6
|
pull_request:
|
7
|
-
branches: [
|
7
|
+
branches: [ main ]
|
8
8
|
|
9
9
|
jobs:
|
10
|
-
|
10
|
+
test_modern:
|
11
11
|
strategy:
|
12
12
|
matrix:
|
13
13
|
os: [ubuntu-latest, macos-latest]
|
14
|
-
|
14
|
+
ruby_version: ['3.0', '2.7']
|
15
|
+
rails: ['5.0', '5.1', '5.2', '6.0', '6.1', '7.0']
|
16
|
+
|
15
17
|
runs-on: ${{ matrix.os }}
|
18
|
+
name: Test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails }} / ${{ matrix.os }}
|
16
19
|
|
17
20
|
steps:
|
18
21
|
- uses: actions/checkout@v2
|
19
|
-
|
22
|
+
|
23
|
+
- name: Set up Ruby ${{ matrix.ruby_version }}
|
20
24
|
uses: ruby/setup-ruby@v1
|
21
25
|
with:
|
22
|
-
|
26
|
+
ruby_version: ${{ matrix.ruby_version }}
|
23
27
|
bundler-cache: true
|
24
|
-
|
25
|
-
|
28
|
+
|
29
|
+
- name: Install correct gems / rails version
|
30
|
+
env:
|
31
|
+
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
|
32
|
+
run: |
|
33
|
+
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails_${MATRIX_RAILS_VERSION}.gemfile"
|
34
|
+
gem install bundler
|
35
|
+
bundle install --jobs 4 --retry 3
|
36
|
+
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rspec
|
39
|
+
|
40
|
+
test_legacy:
|
41
|
+
strategy:
|
42
|
+
matrix:
|
43
|
+
os: [ubuntu-latest, macos-latest]
|
44
|
+
ruby_version: ['2.6', '2.5', '2.4', '2.3']
|
45
|
+
rails: ['5.0', '5.1', '5.2']
|
46
|
+
|
47
|
+
runs-on: ${{ matrix.os }}
|
48
|
+
name: Test Legacy ruby ${{ matrix.ruby }} / rails ${{ matrix.rails }} / ${{ matrix.os }}
|
49
|
+
|
50
|
+
steps:
|
51
|
+
- uses: actions/checkout@v2
|
52
|
+
|
53
|
+
- name: Set up Ruby ${{ matrix.ruby_version }}
|
54
|
+
uses: ruby/setup-ruby@v1
|
55
|
+
with:
|
56
|
+
ruby_version: ${{ matrix.ruby_version }}
|
57
|
+
bundler-cache: true
|
58
|
+
|
59
|
+
- name: Install correct gems / rails version
|
60
|
+
env:
|
61
|
+
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
|
62
|
+
run: |
|
63
|
+
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails_${MATRIX_RAILS_VERSION}.gemfile"
|
64
|
+
gem install bundler
|
65
|
+
bundle install --jobs 4 --retry 3
|
66
|
+
|
26
67
|
- name: Run tests
|
27
68
|
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
appraise "rails-7.0" do
|
2
|
+
gem "rails", "~> 7.0.0"
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise "rails-6.1" do
|
6
|
+
gem "rails", "~> 6.1.0"
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise "rails-6.0" do
|
10
|
+
gem "rails", "~> 6.0.3", '>= 6.0.3.2'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "rails-5.2" do
|
14
|
+
gem "rails", "~> 5.2.4", '>= 5.2.4.3'
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise "rails-5.1" do
|
18
|
+
gem "rails", "~> 5.1.7"
|
19
|
+
end
|
20
|
+
|
21
|
+
appraise "rails-5.0" do
|
22
|
+
gem "rails", "~> 5.0.7", '>= 5.0.7.2'
|
23
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.0.1] - 2020-12-30
|
4
|
+
- Pin all the dependencies to a proper working subset
|
5
|
+
- Expand testing to many rails / ruby combinations
|
6
|
+
|
3
7
|
## [1.0.0] - 2020-12-30
|
4
|
-
- Basic gem w/ all the fixins and README and such
|
5
|
-
- Add `less_than` comparison, and `queries` type
|
6
|
-
- Basic tests in place, and not bad tbh
|
8
|
+
- Basic gem w/ all the fixins and README and such
|
9
|
+
- Add `less_than` comparison, and `queries` type
|
10
|
+
- Basic tests in place, and not bad tbh
|
7
11
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "rspec-activerecord-expectations"
|
3
|
-
spec.version = '1.0.
|
3
|
+
spec.version = '1.0.1'
|
4
4
|
spec.authors = ["Joseph Mastey"]
|
5
5
|
spec.email = ["hello@joemastey.com"]
|
6
6
|
|
@@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_dependency "activerecord", ">= 5.0", "< 7.0"
|
25
|
+
spec.add_dependency "activerecord", ">= 5.0.0", "< 7.1.0"
|
26
26
|
spec.add_dependency "sqlite3", "~> 1.0"
|
27
27
|
|
28
28
|
spec.add_development_dependency "pry", "~> 0.0"
|
29
|
+
spec.add_development_dependency "appraisal", "~> 2"
|
29
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-activerecord-expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Mastey
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 7.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 5.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 7.1.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sqlite3
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,6 +58,20 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: appraisal
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2'
|
61
75
|
description: Adds new matchers to rspec to help you test whether your code is executing
|
62
76
|
an unreasonable number of queries.
|
63
77
|
email:
|
@@ -71,11 +85,19 @@ files:
|
|
71
85
|
- ".rspec"
|
72
86
|
- ".ruby-version"
|
73
87
|
- ".travis.yml"
|
88
|
+
- Appraisals
|
74
89
|
- CHANGELOG.md
|
75
90
|
- CODE_OF_CONDUCT.md
|
76
91
|
- Gemfile
|
77
92
|
- LICENSE.txt
|
78
93
|
- README.md
|
94
|
+
- gemfiles/.bundle/config
|
95
|
+
- gemfiles/rails_5.0.gemfile
|
96
|
+
- gemfiles/rails_5.1.gemfile
|
97
|
+
- gemfiles/rails_5.2.gemfile
|
98
|
+
- gemfiles/rails_6.0.gemfile
|
99
|
+
- gemfiles/rails_6.1.gemfile
|
100
|
+
- gemfiles/rails_7.0.gemfile
|
79
101
|
- lib/rspec/activerecord-expectations.rb
|
80
102
|
- lib/rspec/activerecord/expectations.rb
|
81
103
|
- lib/rspec/activerecord/expectations/collector.rb
|