rspec-activerecord-formatter 2.1.1 → 2.2.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: c54759e485d19a1a06d151b7f3a0bb3286cdcbb7085d3a51b9552ffed37ea6f8
4
- data.tar.gz: aeaf1ecc3bcc1253b2f6998f2b4a36eba27712e9168b3d3f793753173d21ee34
3
+ metadata.gz: 33c3cdd6e50f53d2ce7e803f8d7490615e17998c22965a47a8d12c6d7b40112d
4
+ data.tar.gz: caaa01518eae7a43266947818f50af3e25109c1953e28f4427ae64025e4810c1
5
5
  SHA512:
6
- metadata.gz: 8b01f60872f2818c43ccdb627115f0ac88e62fbeece79436ec24ad1a88beb17f9dc5a241aabc98e8c591a21735107fa82ce00d51262d768ae0d2327840c526e2
7
- data.tar.gz: 06cded1f82ba0e87f15b70fe126057e86c96a477a59b163d6ec4bd0503483b8d7e36843a23debf1e2f12279d7ff8b8dfcb8870180fab241dc35dd473e4edff69
6
+ metadata.gz: 93b57c45de4afc430f279e03514a61b4c9c2f8bf4b9d3d9b3048dde014265725ff80c9583b6a1f14696163459d62ea1f75abc336647ca93ceb0fcf8ec4da050d
7
+ data.tar.gz: 81ca2e730955c82c4b5ab13cc538907eaf63cb70e55366a26bddd52587555397b55b888c7afcf0db72a85f7ef320e7a82e3e00e58f6eba9ce7c980f670f1d28f
data/README.md CHANGED
@@ -45,20 +45,15 @@ You'll also get a summary at the end of your test run:
45
45
 
46
46
  ![Test summary.](https://github.com/jmmastey/rspec-activerecord-formatter/raw/master/doc/images/demo_1.png "Test summary.")
47
47
 
48
+ The formatter will spit out a report with more data at the end of your run:
49
+
50
+
48
51
  If you want less granularity, you can also use the progress formatter:
49
52
 
50
53
  --require rspec-activerecord-formatter
51
54
  --require rails_helper
52
55
  --format ActiveRecordProgressFormatter
53
56
 
54
- Next Steps
55
- ------------
56
- * The method I was using to count AR objects doesn't work well with DatabaseCleaner when not explicitly wiring the library into `before` blocks.
57
- I'd like to be able to go back to a method other than scanning for `INSERT INTO` strings.
58
- * Configuration, especially formatting the output to optionally outdent the counts.
59
- * The current dependency versions are a vague guess. They can and should clearly be more lenient.
60
- * I dunno, tests.
61
-
62
57
  Contributing
63
58
  ------------
64
59
 
@@ -6,7 +6,7 @@ $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
6
6
  Gem::Specification.new do |gem|
7
7
 
8
8
  gem.name = "rspec-activerecord-formatter"
9
- gem.version = "2.1.1"
9
+ gem.version = "2.2.0"
10
10
 
11
11
  gem.summary = "Adds object creations and queries to Rspec output."
12
12
  gem.description = "Creates a new formatter for ActiveRecord that can help you diagnose performance issues in RSpec"
@@ -25,9 +25,8 @@ Gem::Specification.new do |gem|
25
25
 
26
26
  gem.require_paths = %w[ext lib].select { |dir| File.directory?(dir) }
27
27
 
28
- # TODO: these are almost certainly too restrictive looking backward
29
28
  gem.add_dependency "activesupport", ">= 4.0", "< 7.0"
30
- gem.add_dependency "rspec", "~> 3.4"
29
+ gem.add_dependency "rspec", ">= 3.4"
31
30
 
32
31
  gem.add_development_dependency "coveralls", "~> 0.8"
33
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-activerecord-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Mastey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-07 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -34,14 +34,14 @@ dependencies:
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '3.4'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.4'
47
47
  - !ruby/object:Gem::Dependency
@@ -94,7 +94,7 @@ homepage: http://github.com/jmmastey/rspec-activerecord-formatter
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.1.4
113
- signing_key:
112
+ rubygems_version: 3.0.3
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: Adds object creations and queries to Rspec output.
116
116
  test_files: []