lib/spaceship/tunes/application.rb in spaceship-0.10.1 vs lib/spaceship/tunes/application.rb in spaceship-0.10.2
- old
+ new
@@ -110,19 +110,9 @@
Spaceship::AppVersion.find(self, self.apple_id, true)
end
# @return (Spaceship::AppVersion) Receive the version that can fully be edited
def edit_version
- if raw_data['versions'].count == 1
- v = raw_data['versions'].last
-
- # this only applies for the initial version
- # no idea why it's sometimes the short code and sometimes the long one
- unless ['Prepare for Upload', 'Developer Rejected', 'devRejected', 'Rejected', 'prepareForUpload'].include?(v['state'])
- return nil # only live version, user should create a new version
- end
- end
-
Spaceship::AppVersion.find(self, self.apple_id, false)
end
# @return (Spaceship::AppVersion) This will return the `edit_version` if available
# and fallback to the `edit_version`. Use this to just access the latest data