crittercism 0.1.0 → 0.1.1
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/crittercism.gemspec +1 -1
- data/lib/crittercism/rake_tasks.rb +13 -22
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 930a2e36b9e1c6ce6e292ba4a7c6455610175837
|
4
|
+
data.tar.gz: cf51892f16f07f0a8f6c6c4b09dd6fbfbab438be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da198ef9ac20ea6a4f790eb306da8ee16f5bca7ab620e15bea32c4197a2dae1ff4e1167b79cae277cc8a0c8d87967b35985e4f69853498c8142cf42f7f68505d
|
7
|
+
data.tar.gz: d74721cdaedeb6780404998ff367fa8d8e386e564ff53db4b286b83f2a38d3113e45a8b1573f40a7a743a04af7900a261f26e31022698a558f3fd960475a31cc
|
data/crittercism.gemspec
CHANGED
@@ -24,30 +24,21 @@ namespace :crittercism do
|
|
24
24
|
|
25
25
|
desc 'Submit .dSYM to Crittercism'
|
26
26
|
task :upload_dsym => :zip_dsym do
|
27
|
-
require 'net/http'
|
28
|
-
require 'net/http/post/multipart'
|
29
|
-
|
30
27
|
puts 'Submitting dSYM to Crittercism...'
|
31
28
|
|
32
29
|
upload_uri = "https://api.crittercism.com/api_beta/dsym/#{App.config.crittercism_app_id}"
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
# TODO: use simple curl command once I can figure out how to display a helpful response
|
47
|
-
# curl = "/usr/bin/curl #{upload_uri} "\
|
48
|
-
# '--silent --output /dev/null '\
|
49
|
-
# "-F dsym=@'#{app_dsym}.zip' "\
|
50
|
-
# "-F key='#{App.config.crittercism_api_key}' "
|
51
|
-
# sh curl
|
30
|
+
command = "/usr/bin/curl #{upload_uri}"\
|
31
|
+
" --silent --output /dev/null -w '%{http_code}'"\
|
32
|
+
" -F dsym=@'#{app_dsym}.zip'"\
|
33
|
+
" -F key='#{App.config.crittercism_api_key}'"
|
34
|
+
|
35
|
+
output = %x[#{command}]
|
36
|
+
if output =~ /^2\d+/
|
37
|
+
puts 'Successfully uploaded dSYM to Crittercism.'
|
38
|
+
else
|
39
|
+
puts 'Failed to upload dSYM to Crittercism.'
|
40
|
+
p output
|
41
|
+
exit 1
|
42
|
+
end
|
52
43
|
end
|
53
44
|
end
|