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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f127554a7074b9d3669b9579f7e76430cc28fc3f
4
- data.tar.gz: 2c5581ada148a2f8d2c25c76fcbb3ae5f1eafcac
3
+ metadata.gz: 550d66e30dc9cd699ec04bfa66f1a5fc10c99908
4
+ data.tar.gz: 22affd274a499c0092834ec4d8e0a0c81f417512
5
5
  SHA512:
6
- metadata.gz: 809629814ec53416b4e33a3b8e62519751111c9027449e81ccd08d627e4d66ef379b542dbc3855d3d41d6ad53aada82db95d6cd81dc9261f9493ac11265ea277
7
- data.tar.gz: 39a634672142fcd716411176b46a3d55e07cd39d361191550fb41187150bd80369f34276ed465a2c8b2b826d53bcb166bf4378505cc97edd3f776cae73be434b
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
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Gridiron
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  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.0
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-22 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource