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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8090634964dbd7f2f5f8a386cfd0de07257d6f08cd6f9b14606982f983489815
4
- data.tar.gz: 007eef50aa9f1eb61da08fba2a6e7eb6a4f4114c5e0b4fa68f2cb629d4ef86c6
3
+ metadata.gz: 202f92144b220ec281763d132152aa1bf3cced42d09273d3c050c8c41dab2018
4
+ data.tar.gz: f4e4e5f4fce4c3db060c3ea1fcb6752d876fd8b41cc0337dc81308c6acfceb08
5
5
  SHA512:
6
- metadata.gz: 6c7072fc9e686e66c750e0e117515094d4b6cde5e764a8b07c750f3d8fa64cfd210f010c8816bbef6a6e0edd6c5af7983f6886e1c0fefe05de19b9a4bf2cf0af
7
- data.tar.gz: 8196d1a03e6e7b1c73ab3b8524a759cadf554db7fee528a8a350df601661b0b21b7bb1cc3078ea852634aea64c5b6ba9c755ba9ce0232bcef46735e959dd57b1
6
+ metadata.gz: fdbccf8e60640748b4eabc666355ac175455f0338a21a157d41eaee48f82361f45c4c921ec94ee2f3df5b9a274c72a1de868d4f7dfe5d3e2ff4480fbc08981ef
7
+ data.tar.gz: d330ce04fee3e846d0591cd4f0c34599e3501715e291f7ad7956a226e7ca7d91638892a09e566f567e13daaf2287d7da95869e4c99e849043a459e7afcc599e0
@@ -2,26 +2,67 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
5
+ branches: [ main ]
6
6
  pull_request:
7
- branches: [ master ]
7
+ branches: [ main ]
8
8
 
9
9
  jobs:
10
- test:
10
+ test_modern:
11
11
  strategy:
12
12
  matrix:
13
13
  os: [ubuntu-latest, macos-latest]
14
- ruby-version: [3.0, 2.7, 2.6, 2.5]
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
- - name: Set up Ruby ${{ matrix.ruby-version }}
22
+
23
+ - name: Set up Ruby ${{ matrix.ruby_version }}
20
24
  uses: ruby/setup-ruby@v1
21
25
  with:
22
- ruby-version: ${{ matrix.ruby-version }}
26
+ ruby_version: ${{ matrix.ruby_version }}
23
27
  bundler-cache: true
24
- - name: Install dependencies
25
- run: bundle install
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
@@ -10,4 +10,7 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
 
13
- # this is a gem, don't track the specific deps
13
+ # this is a gem, don't track the specific deps or build artifact
14
+ Gemfile.lock
15
+ rails_*.gemfile.lock
16
+ rspec-activerecord-expectations-*.gem
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
 
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 5.0.7", ">= 5.0.7.2"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 5.1.7"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 5.2.4", ">= 5.2.4.3"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 6.0.3", ">= 6.0.3.2"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 6.1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 12.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "rails", "~> 7.0.0"
8
+
9
+ gemspec path: "../"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "rspec-activerecord-expectations"
3
- spec.version = '1.0.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" # TODO run tests to loosen me
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.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: '5.0'
19
+ version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
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: '5.0'
29
+ version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
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