test-prof 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 29df0c008d08c25f6924b35fd76cf02e7747c116
4
- data.tar.gz: 1216e9ee73060c8d20e2caa94b2d1fd5f9c70292
3
+ metadata.gz: ec87793d9a80b7f23974e847523944bdfe148b67
4
+ data.tar.gz: 2baef7b881fc96b8c48393c6ddc3dc0f0d967748
5
5
  SHA512:
6
- metadata.gz: d0b7e7e899c7a81512d686e4bfac89937f8c37df476ffc94daf7e351476b131c6301c8528731e263fc36a4c1397be5876fc053cf837cb51777a2dcb5ae1687f5
7
- data.tar.gz: 143c0eb3c07ecbad124299395e06bc4174bda227a5ec36c4e71eb5c8d67eb6079e7f62a138c24da98d6dbc1c887529bf8105dc3c2e46b4df1cd4bbd06a65144b
6
+ metadata.gz: 5cf770c4cc7d47cdbab88e35edfd94eca9e87d81f1d1a2d9c12eeade108fee8a7e86b136cc446a3c11eb6cdc7499c68cc0455313c4156622bae1344f0cef9925
7
+ data.tar.gz: 2e06a2110a04017da1ae8779c41a203a997b4a0644a6e5f26e14ae8a41e8cff0c7efb7b2d53fc3c031c75b28e6cde9b27dd74cef3f6263385725d6063ec1d9ce
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # Change log
2
2
 
3
+ ## master
4
+
5
+ ## 0.1.1
6
+
7
+ - AnyFixture: clean tables in reverse order to not fail when foreign keys exist. ([@marshall-lee][])
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  - Initial version. ([@palkan][])
6
12
 
7
13
  [@palkan]: https://github.com/palkan
14
+ [@marshall-lee]: https://github.com/marshall-lee
data/README.md CHANGED
@@ -29,6 +29,8 @@ See [Table of Contents](#table-of-contents) for more.
29
29
 
30
30
  ## Resources
31
31
 
32
+ - [TestProf: a good doctor for slow Ruby tests](https://evilmartians.com/chronicles/testprof-a-good-doctor-for-slow-ruby-tests)
33
+
32
34
  - RubyConfBy, 2017, "Run Test Run" talk [[video](https://www.youtube.com/watch?v=q52n4p0wkIs), [slides](https://speakerdeck.com/palkan/rubyconfby-minsk-2017-run-test-run)]
33
35
 
34
36
  - [Tips to improve speed of your test suite](https://medium.com/appaloosa-store-engineering/tips-to-improve-speed-of-your-test-suite-8418b485205c) by [Benoit Tigeot](https://github.com/benoittgt)
@@ -34,7 +34,7 @@ module TestProf
34
34
 
35
35
  # Clean all affected tables (but do not reset cache)
36
36
  def clean
37
- tables_cache.keys.each do |table|
37
+ tables_cache.keys.reverse_each do |table|
38
38
  ActiveRecord::Base.connection.execute %(
39
39
  DELETE FROM #{table}
40
40
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestProf
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler