rspec-sqlimit 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -2
- data/Appraisals +5 -0
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/gemfiles/rails_7.0.gemfile +13 -0
- data/rspec-sqlimit.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ef12b607f4a6ec3c874a69637dd3e9717224998ca13177d8a907b6c6f413068
|
4
|
+
data.tar.gz: 3d490548445a3bc92381a19d624a09e2a591ccbcabe4d0a0c8d2bdd2028d6ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c05ef3f272c574a748cb5d4065122ad0b649a94078f01f9520ae18d855a9c8e1ca386f8a085bb3ea1cf9e3c87e011b9288b44eb39930757c7d5e3456df37faf
|
7
|
+
data.tar.gz: ab6c401133cb90c82e0d8123d47394570ea143ba9af068c2f8b04e1c8ab474dbccb3dd61e999ce53e44019a7350693ff7a2026bea6adf7791778c14cabf89465
|
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
sudo:
|
2
|
+
sudo: false
|
3
3
|
language: ruby
|
4
|
-
cache:
|
4
|
+
cache: bundler
|
5
5
|
before_install:
|
6
6
|
- gem update --system
|
7
7
|
- gem uninstall -v '>= 1' -i $(rvm gemdir)@global -ax bundler || true
|
@@ -12,16 +12,25 @@ script:
|
|
12
12
|
rvm:
|
13
13
|
- 2.3
|
14
14
|
- 2.6
|
15
|
+
- 2.7
|
16
|
+
- 3.0
|
15
17
|
- ruby-head
|
16
18
|
gemfile:
|
17
19
|
- gemfiles/rails_4.2.gemfile
|
18
20
|
- gemfiles/rails_5.0.gemfile
|
19
21
|
- gemfiles/rails_5.1.gemfile
|
20
22
|
- gemfiles/rails_6.0.gemfile
|
23
|
+
- gemfiles/rails_7.0.gemfile
|
21
24
|
matrix:
|
22
25
|
exclude:
|
26
|
+
- rvm: 2.3
|
27
|
+
gemfile: gemfiles/rails_7.0.gemfile
|
23
28
|
- rvm: 2.3
|
24
29
|
gemfile: gemfiles/rails_6.0.gemfile
|
30
|
+
- rvm: 3.0
|
31
|
+
gemfile: gemfiles/rails_4.2.gemfile
|
32
|
+
- rvm: 2.7
|
33
|
+
gemfile: gemfiles/rails_4.2.gemfile
|
25
34
|
- rvm: ruby-head
|
26
35
|
gemfile: gemfiles/rails_4.2.gemfile
|
27
36
|
allow_failures:
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
7
|
|
8
|
+
## [0.0.5] - [2022-02-13]
|
9
|
+
- Support of Rails 7 (@kivanio)
|
10
|
+
- Fix README (@rcclemente)
|
11
|
+
|
8
12
|
## [0.0.4] - [2021-03-21]
|
9
13
|
|
10
14
|
### Fixed
|
@@ -29,3 +33,4 @@ This is a first public release (@nepalez)
|
|
29
33
|
[0.0.2]: https://github.com/nepalez/rspec-sqlimit/compare/v0.0.1...v0.0.2
|
30
34
|
[0.0.3]: https://github.com/nepalez/rspec-sqlimit/compare/v0.0.2...v0.0.3
|
31
35
|
[0.0.4]: https://github.com/nepalez/rspec-sqlimit/compare/v0.0.3...v0.0.4
|
36
|
+
[0.0.5]: https://github.com/nepalez/rspec-sqlimit/compare/v0.0.4...v0.0.5
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ require "rspec-sqlimit"
|
|
68
68
|
|
69
69
|
RSpec.describe "N+1 safety" do
|
70
70
|
it "doesn't send unnecessary requests to db" do
|
71
|
-
expect { User.create name: "Joe" }.not_to exceed_query_limit(
|
71
|
+
expect { User.create name: "Joe" }.not_to exceed_query_limit(0).with(/^INSERT/)
|
72
72
|
end
|
73
73
|
end
|
74
74
|
```
|
data/rspec-sqlimit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "rspec-sqlimit"
|
3
|
-
gem.version = "0.0.
|
3
|
+
gem.version = "0.0.5"
|
4
4
|
gem.author = "Andrew Kozin (nepalez)"
|
5
5
|
gem.email = "andrew.kozin@gmail.com"
|
6
6
|
gem.homepage = "https://github.com/nepalez/rspec-sqlimit"
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
|
14
14
|
gem.required_ruby_version = ">= 2.3"
|
15
15
|
|
16
|
-
gem.add_runtime_dependency "activerecord", "> 4.2", "< 7.
|
16
|
+
gem.add_runtime_dependency "activerecord", "> 4.2", "< 7.1"
|
17
17
|
gem.add_runtime_dependency "rspec", "~> 3.0"
|
18
18
|
|
19
19
|
gem.add_development_dependency "appraisal", "~> 2.2"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-sqlimit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozin (nepalez)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-12 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: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7.
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7.
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- gemfiles/rails_5.0.gemfile
|
153
153
|
- gemfiles/rails_5.1.gemfile
|
154
154
|
- gemfiles/rails_6.0.gemfile
|
155
|
+
- gemfiles/rails_7.0.gemfile
|
155
156
|
- lib/rspec-sqlimit.rb
|
156
157
|
- lib/rspec/sqlimit.rb
|
157
158
|
- lib/rspec/sqlimit/counter.rb
|
@@ -188,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
189
|
- !ruby/object:Gem::Version
|
189
190
|
version: '0'
|
190
191
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.2.3
|
192
193
|
signing_key:
|
193
194
|
specification_version: 4
|
194
195
|
summary: RSpec matcher to control SQL queries made by block of code
|