shenzhen 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shenzhen (0.2.4)
4
+ shenzhen (0.2.5)
5
5
  commander (~> 4.1.2)
6
6
  faraday (~> 0.8.0)
7
7
  faraday_middleware (~> 0.8.7)
@@ -1,5 +1,5 @@
1
1
  module Shenzhen
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
4
4
 
5
5
  require 'shenzhen/agvtool'
@@ -39,7 +39,7 @@ command :build do |c|
39
39
  flags << "-workspace '#{@workspace}'" if @workspace
40
40
  flags << "-project '#{@project}'" if @project
41
41
  flags << "-scheme '#{@scheme}'" if @scheme
42
- flags << "-configuration #{@configuration}"
42
+ flags << "-configuration '#{@configuration}'"
43
43
 
44
44
  actions = []
45
45
  actions << :clean unless options.clean == false
@@ -1 +1,32 @@
1
1
  alias_command :distribute, :'distribute:testflight'
2
+
3
+ private
4
+
5
+ def determine_file!
6
+ files = Dir['*.ipa']
7
+ @file ||= case files.length
8
+ when 0 then nil
9
+ when 1 then files.first
10
+ else
11
+ @file = choose "Select an .ipa File:", *files
12
+ end
13
+ end
14
+
15
+ def determine_dsym!
16
+ dsym_files = Dir['*.dSYM.zip']
17
+ @dsym ||= case dsym_files.length
18
+ when 0 then nil
19
+ when 1 then dsym_files.first
20
+ else
21
+ dsym_files.detect do |dsym|
22
+ File.basename(dsym, ".app.dSYM.zip") == File.basename(@file, ".ipa")
23
+ end or choose "Select a .dSYM.zip file:", *dsym_files
24
+ end
25
+ end
26
+
27
+ def determine_notes!
28
+ placeholder = %{What's new in this release: }
29
+
30
+ @notes = ask_editor placeholder
31
+ @notes = nil if @notes == placeholder
32
+ end
@@ -65,7 +65,7 @@ command :'distribute:hockeyapp' do |c|
65
65
  determine_dsym! unless @dsym = options.dsym
66
66
  say_error "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
67
67
 
68
- determine_api_token! unless @api_token = options.token
68
+ determine_hockeyapp_api_token! unless @api_token = options.token
69
69
  say_error "Missing API Token" and abort unless @api_token
70
70
 
71
71
  determine_notes! unless @notes = options.notes
@@ -93,34 +93,7 @@ command :'distribute:hockeyapp' do |c|
93
93
 
94
94
  private
95
95
 
96
- def determine_api_token!
96
+ def determine_hockeyapp_api_token!
97
97
  @api_token ||= ask "API Token:"
98
98
  end
99
-
100
- def determine_file!
101
- files = Dir['*.ipa']
102
- @file ||= case files.length
103
- when 0 then nil
104
- when 1 then files.first
105
- else
106
- @file = choose "Select an .ipa File:", *files
107
- end
108
- end
109
-
110
- def determine_dsym!
111
- dsym_files = Dir['*.dSYM.zip']
112
- @dsym ||= case dsym_files.length
113
- when 0 then nil
114
- when 1 then dsym_files.first
115
- else
116
- @dsym = choose "Select a .dSYM.zip file:", *dsym_files
117
- end
118
- end
119
-
120
- def determine_notes!
121
- placeholder = %{What's new in this release: }
122
-
123
- @notes = ask_editor placeholder
124
- @notes = nil if @notes == placeholder
125
- end
126
99
  end
@@ -58,10 +58,10 @@ command :'distribute:testflight' do |c|
58
58
  determine_dsym! unless @dsym = options.dsym
59
59
  say_error "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
60
60
 
61
- determine_api_token! unless @api_token = options.api_token
61
+ determine_testflight_api_token! unless @api_token = options.api_token
62
62
  say_error "Missing API Token" and abort unless @api_token
63
63
 
64
- determine_team_token! unless @team_token = options.team_token
64
+ determine_testflight_team_token! unless @team_token = options.team_token
65
65
 
66
66
  determine_notes! unless @notes = options.notes
67
67
  say_error "Missing release notes" and abort unless @notes
@@ -86,38 +86,11 @@ command :'distribute:testflight' do |c|
86
86
 
87
87
  private
88
88
 
89
- def determine_api_token!
89
+ def determine_testflight_api_token!
90
90
  @api_token ||= ask "API Token:"
91
91
  end
92
92
 
93
- def determine_team_token!
93
+ def determine_testflight_team_token!
94
94
  @team_token ||= ask "Team Token:"
95
95
  end
96
-
97
- def determine_file!
98
- files = Dir['*.ipa']
99
- @file ||= case files.length
100
- when 0 then nil
101
- when 1 then files.first
102
- else
103
- @file = choose "Select an .ipa File:", *files
104
- end
105
- end
106
-
107
- def determine_dsym!
108
- dsym_files = Dir['*.dSYM.zip']
109
- @dsym ||= case dsym_files.length
110
- when 0 then nil
111
- when 1 then dsym_files.first
112
- else
113
- @dsym = choose "Select a .dSYM.zip file:", *dsym_files
114
- end
115
- end
116
-
117
- def determine_notes!
118
- placeholder = %{What's new in this release: }
119
-
120
- @notes = ask_editor placeholder
121
- @notes = nil if @notes == placeholder
122
- end
123
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shenzhen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -127,8 +127,6 @@ files:
127
127
  - ./LICENSE
128
128
  - ./Rakefile
129
129
  - ./README.md
130
- - ./shenzhen-0.2.2.gem
131
- - ./shenzhen-0.2.3.gem
132
130
  - ./shenzhen.gemspec
133
131
  - bin/ipa
134
132
  homepage: http://github.com/mattt/shenzhen
@@ -145,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
143
  version: '0'
146
144
  segments:
147
145
  - 0
148
- hash: 983525763622791177
146
+ hash: 1284257327817803531
149
147
  required_rubygems_version: !ruby/object:Gem::Requirement
150
148
  none: false
151
149
  requirements:
@@ -154,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
152
  version: '0'
155
153
  segments:
156
154
  - 0
157
- hash: 983525763622791177
155
+ hash: 1284257327817803531
158
156
  requirements: []
159
157
  rubyforge_project:
160
158
  rubygems_version: 1.8.24
Binary file
Binary file