spaceship 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spaceship/tunes/application.rb +3 -2
- data/lib/spaceship/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb00ae1148fa52ea6be4dce962fc595a65a904ad
|
4
|
+
data.tar.gz: 5c40886f5afe8520c80f6faa7db5b26ada1d37fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/spaceship/version.rb
CHANGED