bullet_train-api 1.3.17 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bullet_train/api/example_bot.rb +8 -3
- data/lib/bullet_train/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 192746a08fe439389283941230b98c379d75512f5f94516d2b0c518bd255904b
|
|
4
|
+
data.tar.gz: 689d9619c7df62bbccc1be5f099ab8bf68fcde44d760ff85cdd6c2b108a93712
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 588bf3ea462835aea300cae7a1dd7889915697a196037cd8b24a2fb7b1c5fc3f64916af691a1500939addd0f6d6556cc4073e62a68c02bf47d19f9a21c220c25
|
|
7
|
+
data.tar.gz: 8e69885f9291d4a3f7708d5223afdf15538ea8e83beaaf580d0464fcd34b375769200a9de2d8437e15e224cdca11b4ff30634c850588be507c127f7668f1d4c4
|
|
@@ -16,8 +16,9 @@ module FactoryBot
|
|
|
16
16
|
raise ActiveRecord::Rollback
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
reset_tables!
|
|
20
19
|
object
|
|
20
|
+
ensure
|
|
21
|
+
reset_tables!
|
|
21
22
|
end
|
|
22
23
|
|
|
23
24
|
def example_list(model, quantity, **)
|
|
@@ -35,8 +36,9 @@ module FactoryBot
|
|
|
35
36
|
raise ActiveRecord::Rollback
|
|
36
37
|
end
|
|
37
38
|
|
|
38
|
-
reset_tables!
|
|
39
39
|
objects
|
|
40
|
+
ensure
|
|
41
|
+
reset_tables!
|
|
40
42
|
end
|
|
41
43
|
|
|
42
44
|
REST_METHODS = %i[get_examples get_example post_example post_parameters put_example put_parameters patch_example patch_parameters]
|
|
@@ -55,8 +57,11 @@ module FactoryBot
|
|
|
55
57
|
end
|
|
56
58
|
|
|
57
59
|
def reset_tables!
|
|
58
|
-
# This is only
|
|
60
|
+
# This is only available for postgres
|
|
61
|
+
return unless @tables_to_reset.present?
|
|
62
|
+
|
|
59
63
|
return unless ActiveRecord::Base.connection.respond_to?(:reset_pk_sequence!)
|
|
64
|
+
|
|
60
65
|
@tables_to_reset.each do |name|
|
|
61
66
|
ActiveRecord::Base.connection.reset_pk_sequence!(name) if ActiveRecord::Base.connection.table_exists?(name)
|
|
62
67
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bullet_train-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-08-
|
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: standard
|