fixtury 0.1.0.beta → 0.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fixtury/hooks.rb +5 -0
- data/lib/fixtury/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: ac77ba24e99d487806a96c58c7b5dd9c1c29e785976b41813622afb71a39448d
|
4
|
+
data.tar.gz: f5ecbc8dd03ba11b7634014ebab0d565c743d038b45b439971f14d7a062f1984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51cd55345dd84189bfcdb84142a97352873f7dbc2ed35672b26e5c06a42b5f09b42ffb8664a2f1a95eb48c7c73762d5090bb88819f175fab79e56e46e45abf42
|
7
|
+
data.tar.gz: 1766220dca1b16385d59d3c4de48ea8e378fa3faa994da7f65e986fb596d37795a3b3c8215ba8485eddbd9c3d77cae65e339633a362d0bda7c7c1cb480b4c455
|
data/lib/fixtury/hooks.rb
CHANGED
@@ -22,11 +22,14 @@ module Fixtury
|
|
22
22
|
|
23
23
|
def fixtury(name)
|
24
24
|
raise ArgumentError unless self.fixtury_dependencies.include?(name.to_s)
|
25
|
+
return nil unless ::Fixtury::Store.instance
|
25
26
|
|
26
27
|
::Fixtury::Store.instance.get(name)
|
27
28
|
end
|
28
29
|
|
29
30
|
def fixtury_loaded?(name)
|
31
|
+
return false unless ::Fixtury::Store.instance
|
32
|
+
|
30
33
|
::Fixtury::Store.instance.loaded?(name)
|
31
34
|
end
|
32
35
|
|
@@ -70,6 +73,8 @@ module Fixtury
|
|
70
73
|
end
|
71
74
|
|
72
75
|
def clear_expired_fixtury_fixtures!
|
76
|
+
return unless ::Fixtury::Store.instance
|
77
|
+
|
73
78
|
::Fixtury::Store.instance.clear_expired_references!
|
74
79
|
end
|
75
80
|
|
data/lib/fixtury/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixtury
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autotest
|