pseudo_cleaner 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/pseudo_cleaner/spinach.rb +5 -5
- data/lib/pseudo_cleaner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmUzOGE1MTg1MTNmMjAyZGNjZDA0MjY4NzY1YTk4MWRlNDBlNzU2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2IzNDQzYzlkYmQ0MzFmMDBiN2I5NGJhODU2MTdkM2RjMTBiZDJkOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTJkNGViOGVlMTY2ODI4Y2FjYTI4OGE1NWQzZGE3MmE3MDM4M2M3OTE3NWNk
|
10
|
+
MDI1ODRkZmU0NjNlODcyNDljZmYzNzFkOTY2MzBhNjczZDUyOGMyODU1YTQy
|
11
|
+
N2ZlMTQyZmIyY2U3ODhjN2U4NDU2YzZiYzBkNjY5YWRmZTNhYjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzIyODgzNjkwNTY2ZDUyZjQ3NmEzYTJhMWMwZDc2NWNlY2MyNTQ0YTQ0Y2Fm
|
14
|
+
YzBkNmM3ODUyMTQyYWM1ZjkwODEwMzE1MWI1N2E3MTJlODUzZTgyYTJlNGI4
|
15
|
+
OWEwYWZiZDc0OWEwZDNhMWE1YzQ5YzBjMzZjOWExYzBjMGU1ZTY=
|
@@ -16,21 +16,21 @@ Spinach.hooks.around_scenario do |scenario_data, step_definitions, &block|
|
|
16
16
|
DatabaseCleaner.strategy = :transaction
|
17
17
|
end
|
18
18
|
|
19
|
-
strategy = if
|
19
|
+
strategy = if scenario_data.tags.include?("@none")
|
20
20
|
:none
|
21
|
-
elsif
|
21
|
+
elsif scenario_data.tags.include?("@truncation")
|
22
22
|
:truncation
|
23
|
-
elsif
|
23
|
+
elsif scenario_data.tags.include?("@deletion")
|
24
24
|
:deletion
|
25
25
|
else
|
26
26
|
:pseudo_delete
|
27
27
|
end
|
28
|
-
PseudoCleaner::MasterCleaner.start_example(
|
28
|
+
PseudoCleaner::MasterCleaner.start_example(scenario_data, strategy)
|
29
29
|
|
30
30
|
begin
|
31
31
|
block.call
|
32
32
|
ensure
|
33
|
-
PseudoCleaner::MasterCleaner.end_example(
|
33
|
+
PseudoCleaner::MasterCleaner.end_example(scenario_data)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pseudo_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RealNobody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|