aptible-gridiron 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/gridiron/criterion.rb +1 -20
- data/lib/aptible/gridiron/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550d66e30dc9cd699ec04bfa66f1a5fc10c99908
|
4
|
+
data.tar.gz: 22affd274a499c0092834ec4d8e0a0c81f417512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 354f864bc7e647068f0e2c2bd7f8cbeb6674941f6e1d61dad27beb5a66fab54804e9d4a369f58ac31b8302f9e38ccc2d148a516df8877b9b3cd8653bc9b319bb
|
7
|
+
data.tar.gz: 8f774819701ff09ef4a0e3ae2e623eafc176e2f9974b31f37206494dcc8f7990e669b2653cd1f437e1dd7d7c4964199ad7d1d09a80a070839ba29cf84801e49d
|
@@ -10,27 +10,8 @@ module Aptible
|
|
10
10
|
field :description
|
11
11
|
field :evidence_type
|
12
12
|
field :scope
|
13
|
+
field :status
|
13
14
|
field :default_expiry
|
14
|
-
|
15
|
-
def documents
|
16
|
-
evidence_type == 'document' ? super : []
|
17
|
-
end
|
18
|
-
|
19
|
-
def events
|
20
|
-
evidence_type == 'event' ? super : []
|
21
|
-
end
|
22
|
-
|
23
|
-
def status
|
24
|
-
green? ? 'green' : 'red'
|
25
|
-
end
|
26
|
-
|
27
|
-
# TODO: Move to Gridiron, or fix logic
|
28
|
-
def green?
|
29
|
-
return true if evidence_type == 'event'
|
30
|
-
|
31
|
-
return false unless documents.first
|
32
|
-
documents.first.expires_at > Time.now
|
33
|
-
end
|
34
15
|
end
|
35
16
|
end
|
36
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-gridiron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|