spaceship 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efa1b4e8b3db202da5e7986548e0dcea255001ee
4
- data.tar.gz: 56647e6df8b7dba71255a2926f99877c67f6fc0d
3
+ metadata.gz: fb00ae1148fa52ea6be4dce962fc595a65a904ad
4
+ data.tar.gz: 5c40886f5afe8520c80f6faa7db5b26ada1d37fc
5
5
  SHA512:
6
- metadata.gz: f7726bf84f6a72ef2e2c166f81010496c044e4c7f24aca2aca660c180ebf872c85d230fcb4a504adf6776883c297826dba5671675668e015a424ec3a22f1a4e4
7
- data.tar.gz: 448f9f093b28462f4ab451e5e0daa273a78b557b6c17aec50dcf738252267e7b47687b519322f765767714c7f2de32eef7a2ed0bc2e3bfa529431c62afb2c280
6
+ metadata.gz: acfbc92f7de0f3c7456ac6679c1212462024f831c176622d44d73b8440cdc292d8aca2b4740dc6b884c94b5d4a08746968f1107821c1af6a890def238a8d54ee
7
+ data.tar.gz: 9cb44f031ac0d07d8b0268501f935da5708d2fec07d0a9b180e04c471c3393ee8315e756d6a91d21dfc593e9519982d6aa2456b6909948e320946025202e08b9
@@ -116,7 +116,8 @@ module Spaceship
116
116
  v = raw_data['versions'].last
117
117
 
118
118
  # this only applies for the initial version
119
- unless ['Prepare for Upload', 'Developer Rejected', 'Rejected', 'prepareForUpload'].include?(v['state'])
119
+ # no idea why it's sometimes the short code and sometimes the long one
120
+ unless ['Prepare for Upload', 'Developer Rejected', 'devRejected', 'Rejected', 'prepareForUpload'].include?(v['state'])
120
121
  return nil # only live version, user should create a new version
121
122
  end
122
123
  end
@@ -127,7 +128,7 @@ module Spaceship
127
128
  # @return (Spaceship::AppVersion) This will return the `edit_version` if available
128
129
  # and fallback to the `edit_version`. Use this to just access the latest data
129
130
  def latest_version
130
- edit_version || live_version
131
+ edit_version || live_version || Spaceship::AppVersion.find(self, self.apple_id, false) # we want to get *any* version, prefered the latest one
131
132
  end
132
133
 
133
134
  # @return (String) An URL to this specific resource. You can enter this URL into your browser
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause