spaceship 0.1.1 → 0.1.2

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: 7cecb5ddd86fe2c720e348787497b72acf74a766
4
- data.tar.gz: 4f97f971ebeb8c5a2d300c596725e5cac85da2f5
3
+ metadata.gz: 5874fb36abe1aa100b7c5b793a291699ca11568d
4
+ data.tar.gz: 43449a997428f3e6bddc8eda4e67f94e50781354
5
5
  SHA512:
6
- metadata.gz: a267147f381f12a03e0877a715a91cc788c1cf7f509b1d68647c3bb885e0d32055721bf24b821472bf1bd170ac34ceb48d77a4318372404f548ea2a5b3af854d
7
- data.tar.gz: aa8361be2622f0edec39c4fa8fd6611f3bc492b5e02c2e3483020f129ccd0c850be93b120ecc05e824198ea0dbe87c7a85bd87f2fb1c51df3686ecc961c8c828
6
+ metadata.gz: 7aec5cec146a3ee90077d67a2c0efba4c3ae03a6d9000f0aa36bbf7a763cc02f33f821257d782d83751ec1150050690b21aa98d2d235ee002e177ec1873b97b8
7
+ data.tar.gz: 7f54d76361cc18e52b826fdd40f1542c5623823b83dddb7321d140b5d63d59caf3c5aa119ddc90b81e12f413ef09036dfa901b97882d217376fd0a8a401b6688
@@ -37,6 +37,14 @@ module Spaceship
37
37
  # @return (Integer) When is this build going to be invalid
38
38
  attr_accessor :internal_expiry_date
39
39
 
40
+ # @return (Integer): When is the external build going to expire?
41
+ attr_accessor :external_expiry_date
42
+
43
+ # @return (Boolean): Is this build available for external beta testing
44
+ # this is only true after the build was approved by Apple
45
+ attr_accessor :external_testing_enabled
46
+
47
+
40
48
  # @return (Bool) Does this build support WatchKit?
41
49
  attr_accessor :watch_kit_enabled
42
50
 
@@ -78,6 +86,7 @@ module Spaceship
78
86
  'sessionCount' => :session_count,
79
87
  'crashCount' => :crash_count,
80
88
  'internalExpiry' => :internal_expiry_date,
89
+ 'externalExpiry' => :external_expiry_date,
81
90
  'watchKitEnabled' => :watch_kit_enabled,
82
91
  'readyToInstall' => :ready_to_install,
83
92
  )
@@ -89,6 +98,12 @@ module Spaceship
89
98
  self.new(attrs)
90
99
  end
91
100
  end
101
+
102
+ def setup
103
+ super
104
+
105
+ @external_testing_enabled = (self.external_expiry_date || 0) > 0
106
+ end
92
107
  end
93
108
  end
94
109
  end
@@ -53,6 +53,8 @@ module Spaceship
53
53
 
54
54
  # Setup all the builds and processing builds
55
55
  def setup
56
+ super
57
+
56
58
  @builds = self.raw_data['builds'].collect do |attrs|
57
59
  attrs.merge!(build_train: self)
58
60
  Tunes::Build.factory(attrs)
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev