produce 1.3.1 → 1.3.2
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 +4 -4
- data/lib/produce/developer_center.rb +7 -7
- data/lib/produce/group.rb +6 -12
- data/lib/produce/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56e092dd106435fe407bc4eec5258436edf2c02a
|
|
4
|
+
data.tar.gz: 711d7e828e1055ca995d7d1d23aff66775e55c5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d04f6a886e550ed359ecb1960a590bf117a9c2fb561ce627412a47502c702a3a9d04838f1a38da0e5dfc5422fcec2c9055bd36f40708a74a531bce8d53d5c2d
|
|
7
|
+
data.tar.gz: d89d825e8d70433312f4a3b07fb51af5fa4fb462c555f1818cd2f2ef579198d4b26633a9c45be3fc84832c855cb27f25cb4c34238bf33e62a1d9f944dd2ead83
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require 'spaceship'
|
|
2
|
-
require 'babosa'
|
|
3
2
|
|
|
4
3
|
module Produce
|
|
5
4
|
class DeveloperCenter
|
|
@@ -16,12 +15,18 @@ module Produce
|
|
|
16
15
|
ENV["CREATED_NEW_APP_ID"] = nil
|
|
17
16
|
# Nothing to do here
|
|
18
17
|
else
|
|
19
|
-
app_name =
|
|
18
|
+
app_name = Produce.config[:app_name]
|
|
20
19
|
UI.message "Creating new app '#{app_name}' on the Apple Dev Center"
|
|
21
20
|
|
|
22
21
|
app = Spaceship.app.create!(bundle_id: app_identifier,
|
|
23
22
|
name: app_name)
|
|
24
23
|
|
|
24
|
+
if app.name != Produce.config[:app_name]
|
|
25
|
+
UI.important("Your app name includes non-ASCII characters, which are not supported by the Apple Developer Portal.")
|
|
26
|
+
UI.important("To fix this a unique (internal) name '#{app.name}' has been created for you. Your app's real name '#{Produce.config[:app_name]}'")
|
|
27
|
+
UI.important("will still show up correctly on iTunes Connect and the App Store.")
|
|
28
|
+
end
|
|
29
|
+
|
|
25
30
|
UI.message "Created app #{app.app_id}"
|
|
26
31
|
|
|
27
32
|
UI.crash!("Something went wrong when creating the new app - it's not listed in the apps list") unless app_exists?
|
|
@@ -34,11 +39,6 @@ module Produce
|
|
|
34
39
|
return true
|
|
35
40
|
end
|
|
36
41
|
|
|
37
|
-
def valid_name_for(input)
|
|
38
|
-
latinazed = input.to_slug.transliterate.to_s # remove accents
|
|
39
|
-
latinazed.gsub(/[^0-9A-Za-z\d\s]/, '') # remove non-valid characters
|
|
40
|
-
end
|
|
41
|
-
|
|
42
42
|
def app_identifier
|
|
43
43
|
Produce.config[:app_identifier].to_s
|
|
44
44
|
end
|
data/lib/produce/group.rb
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require 'spaceship'
|
|
2
|
-
require 'babosa'
|
|
3
2
|
|
|
4
3
|
module Produce
|
|
5
4
|
class Group
|
|
@@ -15,18 +14,18 @@ module Produce
|
|
|
15
14
|
ENV["CREATED_NEW_GROUP_ID"] = nil
|
|
16
15
|
# Nothing to do here
|
|
17
16
|
else
|
|
18
|
-
|
|
19
|
-
group_name = valid_name_for(options.group_name)
|
|
20
|
-
else
|
|
21
|
-
group_name = group_identifier.split(".").map(&:capitalize).reverse.join(' ')
|
|
22
|
-
group_name = valid_name_for(group_name)
|
|
23
|
-
end
|
|
17
|
+
group_name = options.group_name || group_identifier.split(".").map(&:capitalize).reverse.join(' ')
|
|
24
18
|
|
|
25
19
|
UI.success("Creating new app group '#{group_name}' with identifier '#{group_identifier}' on the Apple Dev Center")
|
|
26
20
|
|
|
27
21
|
group = Spaceship.app_group.create!(group_id: group_identifier,
|
|
28
22
|
name: group_name)
|
|
29
23
|
|
|
24
|
+
if group.name != group_name
|
|
25
|
+
UI.important("Your group name includes non-ASCII characters, which are not supported by the Apple Developer Portal.")
|
|
26
|
+
UI.important("To fix this a unique (internal) name '#{group.name}' has been created for you.")
|
|
27
|
+
end
|
|
28
|
+
|
|
30
29
|
UI.message("Created group #{group.app_group_id}")
|
|
31
30
|
|
|
32
31
|
UI.user_error!("Something went wrong when creating the new app group - it's not listed in the app groups list") unless app_group_exists? group_identifier
|
|
@@ -86,10 +85,5 @@ module Produce
|
|
|
86
85
|
def app_exists?
|
|
87
86
|
Spaceship.app.find(app_identifier) != nil
|
|
88
87
|
end
|
|
89
|
-
|
|
90
|
-
def valid_name_for(input)
|
|
91
|
-
latinazed = input.to_slug.transliterate.to_s # remove accents
|
|
92
|
-
latinazed.gsub(/[^0-9A-Za-z\d\s]/, '') # remove non-valid characters
|
|
93
|
-
end
|
|
94
88
|
end
|
|
95
89
|
end
|
data/lib/produce/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.3.2
|
|
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-
|
|
11
|
+
date: 2016-11-30 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.
|
|
19
|
+
version: 0.57.2
|
|
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.
|
|
29
|
+
version: 0.57.2
|
|
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.
|
|
39
|
+
version: 0.38.4
|
|
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.
|
|
49
|
+
version: 0.38.4
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 1.0.0
|
|
@@ -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.
|
|
235
|
+
rubygems_version: 2.2.2
|
|
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
|