produce 1.3.2 → 1.4.0

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: 56e092dd106435fe407bc4eec5258436edf2c02a
4
- data.tar.gz: 711d7e828e1055ca995d7d1d23aff66775e55c5e
3
+ metadata.gz: c359a896499fa0a2803db18852a50194c1b8729e
4
+ data.tar.gz: 441d862ae1751370f19494c9523fd65fd2870882
5
5
  SHA512:
6
- metadata.gz: 7d04f6a886e550ed359ecb1960a590bf117a9c2fb561ce627412a47502c702a3a9d04838f1a38da0e5dfc5422fcec2c9055bd36f40708a74a531bce8d53d5c2d
7
- data.tar.gz: d89d825e8d70433312f4a3b07fb51af5fa4fb462c555f1818cd2f2ef579198d4b26633a9c45be3fc84832c855cb27f25cb4c34238bf33e62a1d9f944dd2ead83
6
+ metadata.gz: 74d36850adf80d97e95a66131e23f07a5fa2a59ff42fe5f6bf6943e46215429555bfa7deb85014a5dbd29db92c7a42f018e50504cc6269d7729dc9b4c046a67e
7
+ data.tar.gz: 38a081fef5a73b1a99187e2000044a2e51a8b5cd61eea7d285e42607e9a8662793e6258384f96d0316343f0d30828fc7657b91b799552124355eaba785f699f2
@@ -14,6 +14,7 @@ module Produce
14
14
  end
15
15
 
16
16
  def run
17
+ program :name, 'produce'
17
18
  program :version, Produce::VERSION
18
19
  program :description, 'CLI for \'produce\''
19
20
  program :help, 'Author', 'Felix Krause <produce@krausefx.com>'
@@ -19,7 +19,8 @@ module Produce
19
19
  UI.message "Creating new app '#{app_name}' on the Apple Dev Center"
20
20
 
21
21
  app = Spaceship.app.create!(bundle_id: app_identifier,
22
- name: app_name)
22
+ name: app_name,
23
+ mac: Produce.config[:platform] == "osx")
23
24
 
24
25
  if app.name != Produce.config[:app_name]
25
26
  UI.important("Your app name includes non-ASCII characters, which are not supported by the Apple Developer Portal.")
@@ -46,7 +47,7 @@ module Produce
46
47
  private
47
48
 
48
49
  def app_exists?
49
- Spaceship.app.find(app_identifier) != nil
50
+ Spaceship.app.find(app_identifier, mac: Produce.config[:platform] == "osx") != nil
50
51
  end
51
52
 
52
53
  def login
@@ -28,7 +28,8 @@ module Produce
28
28
  sku: Produce.config[:sku].to_s, # might be an int
29
29
  bundle_id: app_identifier,
30
30
  bundle_id_suffix: Produce.config[:bundle_identifier_suffix],
31
- company_name: Produce.config[:company_name])
31
+ company_name: Produce.config[:company_name],
32
+ platform: Produce.config[:platform])
32
33
 
33
34
  UI.crash!("Something went wrong when creating the new app on iTC") if generated_app["adamId"].to_s.empty?
34
35
 
@@ -50,7 +51,7 @@ module Produce
50
51
  UI.success "Successfully created new app '#{Produce.config[:app_name]}' on iTunes Connect with ID #{application.apple_id}"
51
52
  end
52
53
 
53
- return Spaceship::Application.find(@full_bundle_identifier).apple_id
54
+ return Spaceship::Application.find(@full_bundle_identifier, mac: Produce.config[:platform] == "osx").apple_id
54
55
  end
55
56
 
56
57
  private
@@ -38,6 +38,15 @@ module Produce
38
38
  description: "SKU Number (e.g. '1234')",
39
39
  default_value: Time.now.to_i.to_s,
40
40
  is_string: true),
41
+ FastlaneCore::ConfigItem.new(key: :platform,
42
+ short_option: "-j",
43
+ env_name: "PRODUCE_PLATFORM",
44
+ description: "The platform to use (optional)",
45
+ optional: true,
46
+ default_value: "ios",
47
+ verify_block: proc do |value|
48
+ UI.user_error!("The platform can only be ios or osx") unless %('ios', 'osx').include? value
49
+ end),
41
50
  FastlaneCore::ConfigItem.new(key: :language,
42
51
  short_option: "-m",
43
52
  env_name: "PRODUCE_LANGUAGE",
@@ -1,3 +1,3 @@
1
1
  module Produce
2
- VERSION = "1.3.2"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: produce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.57.2
19
+ version: 0.60.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.57.2
29
+ version: 0.60.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.38.4
39
+ version: 0.39.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.0.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.38.4
49
+ version: 0.39.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0
@@ -68,16 +68,16 @@ dependencies:
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - "<"
72
72
  - !ruby/object:Gem::Version
73
- version: '0'
73
+ version: '12'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
78
+ - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '0'
80
+ version: '12'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rspec
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.2.2
235
+ rubygems_version: 2.5.1
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Create new iOS apps on iTunes Connect and Dev Portal using the command line