iosdeveloper 0.3.2 → 0.3.3
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.
- data/bin/iosdeveloper +5 -2
- data/lib/iosdeveloper/provisioning_portal.rb +8 -5
- data/lib/iosdeveloper/version.rb +1 -1
- metadata +13 -13
data/bin/iosdeveloper
CHANGED
@@ -68,14 +68,17 @@ end
|
|
68
68
|
desc 'Installs provisioning profile'
|
69
69
|
arg_name 'PROFILE_NAME'
|
70
70
|
command 'install-profile' do |c|
|
71
|
+
c.desc "Installs all development and distribution profiles"
|
71
72
|
c.switch [:a, 'all']
|
73
|
+
c.desc "Saves profile(s) using uuid as a name"
|
74
|
+
c.switch [:uuid]
|
72
75
|
c.action do |global_options, options, args|
|
73
76
|
portal = portal(global_options)
|
74
77
|
if (options[:a])
|
75
|
-
portal.install_profile
|
78
|
+
portal.install_profile(nil, options)
|
76
79
|
else
|
77
80
|
profile_name = args.shift
|
78
|
-
portal.install_profile(profile_name)
|
81
|
+
portal.install_profile(profile_name, options)
|
79
82
|
end
|
80
83
|
end
|
81
84
|
end
|
@@ -101,15 +101,18 @@ module IOSDeveloper
|
|
101
101
|
/provDisplayId=(\w+)/.match(display_url)[1]
|
102
102
|
end
|
103
103
|
|
104
|
-
def download_profile(profile_name, location=".")
|
104
|
+
def download_profile(profile_name, location=".", options)
|
105
105
|
profiles = list_profiles
|
106
106
|
profiles.each do |profile|
|
107
107
|
if profile_name.nil? || (profile.name == profile_name)
|
108
108
|
temporal_file_location = "#{profile.name}.mobileprovision"
|
109
109
|
puts "Downloading #{profile.name} ..."
|
110
110
|
@agent.get(profile.download_url).save(temporal_file_location)
|
111
|
-
|
112
|
-
|
111
|
+
if (options[:uuid])
|
112
|
+
file_location = "#{location}/#{get_uuid(temporal_file_location)}.mobileprovision"
|
113
|
+
else
|
114
|
+
file_location = "#{location}/#{profile.name}.mobileprovision"
|
115
|
+
end
|
113
116
|
FileUtils.move(temporal_file_location, file_location)
|
114
117
|
puts "Saved #{profile.name} profile in #{file_location}"
|
115
118
|
end
|
@@ -126,8 +129,8 @@ module IOSDeveloper
|
|
126
129
|
hash["UUID"]
|
127
130
|
end
|
128
131
|
|
129
|
-
def install_profile profile_name=nil
|
130
|
-
download_profile(profile_name, PROVISIONING_PROFILES_LOCATION)
|
132
|
+
def install_profile profile_name=nil, options
|
133
|
+
download_profile(profile_name, PROVISIONING_PROFILES_LOCATION, options)
|
131
134
|
end
|
132
135
|
|
133
136
|
end
|
data/lib/iosdeveloper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iosdeveloper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-02-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70323954982440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70323954982440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70323954981880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70323954981880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: aruba
|
38
|
-
requirement: &
|
38
|
+
requirement: &70323954981420 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70323954981420
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: gli
|
49
|
-
requirement: &
|
49
|
+
requirement: &70323954980880 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - =
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.5.3
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70323954980880
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: plist
|
60
|
-
requirement: &
|
60
|
+
requirement: &70323954980160 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - =
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 3.1.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70323954980160
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mechanize
|
71
|
-
requirement: &
|
71
|
+
requirement: &70323954979660 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - =
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 2.5.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70323954979660
|
80
80
|
description: Command line tools for accessing iOS Provisioning Portal
|
81
81
|
email: marcin.kwiatkowski@hotmail.com
|
82
82
|
executables:
|