rspec-activerecord-expectations 2.3.0 → 3.1.0

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: 0f84a252fb5e5923d4bc6c03ed4d99ede76579017d8391dbf6f48a665236e54e
4
- data.tar.gz: ce944950ee62940f67f79204966f5954fc28eac8f52dee79e18475933d9f3910
3
+ metadata.gz: c13879549d5977a2f7e67c5138b7d11f97df3be9c63a243c51bc71aaba783d1a
4
+ data.tar.gz: 9ccf3304d75157a36bc6cc1f82ae00c45bd72141600ec1fb354921a409e0fd7c
5
5
  SHA512:
6
- metadata.gz: 4828d15b2420ae821199db596b96cc5d4630e3994b6c12bb2d6b95c32067388bb30161b318b0c03c49771d5b95e3010757e564c70a1f6840ab6934c14479f58d
7
- data.tar.gz: d8220ae71a3e1dc6be694f976185262e019d55c6eedc1ec255492fbb5cd7a2988ac45e3519c14f1936cf8d0fd09062710f71b2d788322771e4ccde864be436a9
6
+ metadata.gz: 5f88fb7b1af14058e463779e5ec94d7175066e41f2006bb0ce307c072a139780bf5865e640993c1b45ffdaaa826c20774262aa2233aea1bec0213f58d4b49a32
7
+ data.tar.gz: 00fe2ceba0d426a20788e20a4075247f78b3865d476b801da634b0eca88caa145a659af20268267ad551a7ef2eddefb59393d06a70c01d15ebc86af557ee2961
@@ -11,11 +11,26 @@ jobs:
11
11
  strategy:
12
12
  matrix:
13
13
  os: [ubuntu-latest, macos-latest]
14
- ruby-version: ['3.1', '3.0', '2.7']
15
- rails: ['5.0', '5.1', '5.2', '6.0', '6.1', '7.0']
14
+ ruby-version: ['3.1', '3.0']
15
+ rails: ['6.0', '6.1', '7.0', '7.1', '8.0']
16
+ exclude:
17
+ - { ruby: '3.1', rails: '8.0' }
18
+ - { ruby: '3.0', rails: '8.0' }
16
19
 
17
20
  runs-on: ${{ matrix.os }}
18
21
  name: ruby ${{ matrix.ruby-version }}, rails ${{ matrix.rails }}, ${{ matrix.os }}
22
+ services:
23
+ postgres:
24
+ image: postgres
25
+ env:
26
+ POSTGRES_PASSWORD: postgres
27
+ options: >-
28
+ --health-cmd pg_isready
29
+ --health-interval 10s
30
+ --health-timeout 5s
31
+ --health-retries 5
32
+ ports:
33
+ - 5432:5432
19
34
 
20
35
  steps:
21
36
  - uses: actions/checkout@v2
@@ -40,7 +55,7 @@ jobs:
40
55
  test_legacy:
41
56
  strategy:
42
57
  matrix:
43
- ruby-version: ['2.6', '2.5']
58
+ ruby-version: ['2.7', '2.6', '2.5']
44
59
  rails: ['5.0', '5.1', '5.2']
45
60
 
46
61
  runs-on: ubuntu-latest
@@ -94,4 +109,4 @@ jobs:
94
109
 
95
110
  - name: Run tests
96
111
  run: bundle exec rspec
97
-
112
+
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.7.3
1
+ ruby-3.1.6
data/Appraisals CHANGED
@@ -1,3 +1,15 @@
1
+ appraise "rails-8.0" do
2
+ gem "rails", "~> 8.0.0"
3
+ end
4
+
5
+ appraise "rails-7.2" do
6
+ gem "rails", "~> 7.2.0.beta2"
7
+ end
8
+
9
+ appraise "rails-7.1" do
10
+ gem "rails", "~> 7.1.0"
11
+ end
12
+
1
13
  appraise "rails-7.0" do
2
14
  gem "rails", "~> 7.0.0"
3
15
  end
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Changelog
2
+
3
+ ## [3.0.0] - 2024-06-21
4
+ - Add support for rails 7.x
5
+ - Dropped support for ruby 2.x
2
6
 
3
7
  ## [2.3.0] - 2022-01-29
4
8
  - Add quantifiers to transaction matchers
data/README.md CHANGED
@@ -26,7 +26,7 @@ group.
26
26
 
27
27
  ```ruby
28
28
  group 'test' do
29
- gem 'rspec-activerecord-expectations', '~> 1.0'
29
+ gem 'rspec-activerecord-expectations', '~> 3.0'
30
30
  end
31
31
  ```
32
32
 
@@ -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.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.2.0.beta2"
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", "~> 8.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 = '2.3.0'
3
+ spec.version = '3.1.0'
4
4
  spec.authors = ["Joseph Mastey"]
5
5
  spec.email = ["hello@joemastey.com"]
6
6
 
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.description = %q{Adds new matchers to rspec to help you test whether your code is executing an unreasonable number of queries.}
9
9
  spec.homepage = "https://github.com/jmmastey/rspec-activerecord-expectations"
10
10
  spec.license = "MIT"
11
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
11
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
12
12
 
13
13
  spec.metadata["homepage_uri"] = spec.homepage
14
14
  spec.metadata["source_code_uri"] = spec.homepage
@@ -22,14 +22,10 @@ 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.0", "< 7.1.0"
25
+ spec.add_dependency "activerecord", ">= 5.0.0", "< 8.1"
26
26
 
27
- if RUBY_PLATFORM == 'java'
28
- spec.add_development_dependency "activerecord-jdbcsqlite3-adapter", '>= 60'
29
- else
30
- spec.add_development_dependency "sqlite3", "~> 1.0"
31
- end
27
+ spec.add_development_dependency "pg"
32
28
 
33
- spec.add_development_dependency "pry", "~> 0.0"
29
+ spec.add_development_dependency "pry"
34
30
  spec.add_development_dependency "appraisal", "~> 2"
35
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-activerecord-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Mastey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-29 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 7.1.0
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,35 +29,35 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 7.1.0
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
- name: sqlite3
34
+ name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '1.0'
39
+ version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '1.0'
46
+ version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pry
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '0.0'
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: appraisal
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +98,9 @@ files:
98
98
  - gemfiles/rails_6.0.gemfile
99
99
  - gemfiles/rails_6.1.gemfile
100
100
  - gemfiles/rails_7.0.gemfile
101
+ - gemfiles/rails_7.1.gemfile
102
+ - gemfiles/rails_7.2.gemfile
103
+ - gemfiles/rails_8.0.gemfile
101
104
  - lib/rspec/activerecord-expectations.rb
102
105
  - lib/rspec/activerecord/expectations.rb
103
106
  - lib/rspec/activerecord/expectations/collector.rb
@@ -123,14 +126,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
126
  requirements:
124
127
  - - ">="
125
128
  - !ruby/object:Gem::Version
126
- version: 2.5.0
129
+ version: 3.0.0
127
130
  required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  requirements:
129
132
  - - ">="
130
133
  - !ruby/object:Gem::Version
131
134
  version: '0'
132
135
  requirements: []
133
- rubygems_version: 3.1.6
136
+ rubygems_version: 3.3.27
134
137
  signing_key:
135
138
  specification_version: 4
136
139
  summary: A gem to test how many activerecord queries your code executes.