motion-hockeyapp 1.1.4 → 1.1.5

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: d2e5bc24f74b4a987ca95c61eb4b558a0a2ff4e5
4
- data.tar.gz: f5c1c6dccd096e45541f233e6aa35e5260d7705f
3
+ metadata.gz: 55b90d76029b4876a7f8fd236c6775a0ae2dfd8d
4
+ data.tar.gz: 08c07bc4a4dad79dd6a1bc9648500b1685295934
5
5
  SHA512:
6
- metadata.gz: 52e777dc908b4de493ce24acfcafe47e06ebbed61b295b14ea18b51b46007069c40f5a7e99969f842559e5561e7007f294a8e7bbaacfbf9cc84febf7cd2595a8
7
- data.tar.gz: 293b783a9938c50a2f2d75778e16957c1c21874be32e9d5bbc6912213fa6c76f27e26c9576181fd69f1844d35038b3eafedf65c5b9197b78d09066568427e570
6
+ metadata.gz: f0ce85e790ed7b395615493d49dc5c784e5f35b13a91fd28dc19f15d955aebc8e03bcaf3a9f5743a12440a41f89217f17cc4e560a2faa25cdf4df872c64db304
7
+ data.tar.gz: 373af430043dad9225ae88b44c1f66d6c2c88004110ad9acc5077bc511fff1d6935d42db0e83948320c44dbd2875a01c64270c0fc6753ecd3db4a1bd71275d7c
@@ -91,7 +91,7 @@ and be submitted to the HockeyApp platform.
91
91
 
92
92
  motion-hockeyapp introduces a +hockeyapp+ Rake task to your project, which can be used to submit a development build. The +notes+ parameter may be provided, and its content will be used as the submission release notes.
93
93
 
94
- $ rake hockeyapp notes="zomg!"
94
+ $ notes="release notes here" rake hockeyapp
95
95
 
96
96
  or build in hockeyapp mode and try to deploy it to your device, but skip uploading it to hockeyapp:
97
97
 
@@ -88,7 +88,6 @@ namespace 'hockeyapp' do
88
88
  prefs = App.config.hockeyapp
89
89
 
90
90
  App.fail "A value for app.hockeyapp.api_token is mandatory" unless prefs.api_token
91
- notes = ENV['notes'].to_s
92
91
 
93
92
  Rake::Task["archive"].invoke
94
93
 
@@ -96,9 +95,10 @@ namespace 'hockeyapp' do
96
95
  app_dsym = App.config.app_bundle('iPhoneOS').sub(/\.app$/, '.dSYM')
97
96
  app_dsym_zip = app_dsym + '.zip'
98
97
  if !File.exist?(app_dsym_zip) or File.mtime(app_dsym) > File.mtime(app_dsym_zip)
99
- p app_dsym
100
98
  Dir.chdir(File.dirname(app_dsym)) do
101
- sh "/usr/bin/zip -q -r \"#{File.basename(app_dsym)}.zip\" \"#{File.basename(app_dsym)}\""
99
+ args = "/usr/bin/zip", "-q", "-r", "#{File.basename(app_dsym)}.zip", File.basename(app_dsym)
100
+ App.info 'Run', args.join(" ")
101
+ system(*args)
102
102
  end
103
103
  end
104
104
 
@@ -106,10 +106,19 @@ namespace 'hockeyapp' do
106
106
  prefs.notify ||= "0"
107
107
  prefs.notes_type ||= "1"
108
108
 
109
- curl = %Q{/usr/bin/curl https://rink.hockeyapp.net/api/2/apps -F "status=#{prefs.status}" -F "notify=#{prefs.notify}" -F "notes=#{notes}" -F "notes_type=#{prefs.notes_type}" -F "ipa=@#{App.config.archive}" -F "dsym=@#{app_dsym_zip}" -H "X-HockeyAppToken: #{prefs.api_token}"}
110
-
111
- App.info 'Run', curl
112
- sh curl
109
+ cmd = %Q{/usr/bin/curl "https://rink.hockeyapp.net/api/2/apps" -F status="$status" -F notify="$notify" -F notes="$notes" -F notes_type="$notes_type" -F ipa="$ipa" -F dsym="$dsym" -H "$header"}
110
+
111
+ env = {
112
+ "notes" => ENV['notes'].to_s,
113
+ "status" => prefs.status.to_s,
114
+ "notify" => prefs.notify.to_s,
115
+ "notes_type" => prefs.notes_type.to_s,
116
+ "ipa" => "@#{App.config.archive}",
117
+ "dsym" => "@#{app_dsym_zip}",
118
+ "header" => "X-HockeyAppToken: #{prefs.api_token}"
119
+ }
120
+ App.info 'Run', "#{env.inspect} #{cmd}"
121
+ system(env, cmd)
113
122
  end
114
123
 
115
124
  desc "Records if the device build is created in hockeyapp mode, so some things can be cleaned up between mode switches"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-hockeyapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Noon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: motion-hockeyapp allows RubyMotion projects to easily embed the Hockey
14
14
  SDK and be submitted to the HockeyApp platform.