cocoapods-bugsnag 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/cocoapods-bugsnag.gemspec +1 -1
- data/lib/cocoapods_bugsnag.rb +14 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2d84d2d144f26d3b4581f7f4697be7105d1d7f1e1fb727cd95ec9ca7fe88f010
|
4
|
+
data.tar.gz: 2765de3c3069ebe2934c546148c3b7f7fbc8a7516657efda170757f39b450561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df2dc8645d952fcb27c74f3efae913ee03a1ce65f934b194ac93cd4c707d1bd8bce4ecf8c4aef2bc7be371b14511d9e7018d6b3913c3d19c19651f15665caf5
|
7
|
+
data.tar.gz: 84df2c76d5d70607271c4ced767ae75410881cbc0c402ed754b0cc5e6f95783800c0822d3f0aa823685b5bf22c1cbd578926fb654e66455ef68bb695cc0dd76d
|
data/CHANGELOG.md
CHANGED
data/cocoapods-bugsnag.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "cocoapods-bugsnag"
|
3
|
-
spec.version = "2.0.
|
3
|
+
spec.version = "2.0.1"
|
4
4
|
spec.homepage = "https://bugsnag.com"
|
5
5
|
spec.description = "Configures the dSYM upload phase of your project when integrated with bugsnag."
|
6
6
|
spec.summary = "To get meaningful stacktraces from your crashes, the Bugsnag service needs your dSYM file for your build. This plugin adds an upload phase to your project where needed."
|
data/lib/cocoapods_bugsnag.rb
CHANGED
@@ -3,6 +3,16 @@ module Pod
|
|
3
3
|
|
4
4
|
BUGSNAG_PHASE_NAME = "Upload Bugsnag dSYM"
|
5
5
|
BUGSNAG_PHASE_SCRIPT = <<'RUBY'
|
6
|
+
# First, attempt to get the API key from an environment variable
|
7
|
+
api_key = ENV["BUGSNAG_API_KEY"]
|
8
|
+
|
9
|
+
# If not present, attempt to lookup the value from the Info.plist
|
10
|
+
if !api_key
|
11
|
+
default_info_plist_location = Dir.glob("./{ios/,}*/Info.plist").reject {|path| path =~ /build|test/i }
|
12
|
+
plist_buddy_response = `/usr/libexec/PlistBuddy -c "print :BugsnagAPIKey" "#{default_info_plist_location.first}"`
|
13
|
+
api_key = plist_buddy_response if $?.success?
|
14
|
+
end
|
15
|
+
|
6
16
|
fork do
|
7
17
|
Process.setsid
|
8
18
|
STDIN.reopen("/dev/null")
|
@@ -12,7 +22,10 @@ fork do
|
|
12
22
|
require 'shellwords'
|
13
23
|
|
14
24
|
Dir["#{ENV["DWARF_DSYM_FOLDER_PATH"]}/*/Contents/Resources/DWARF/*"].each do |dsym|
|
15
|
-
|
25
|
+
curl_command = "curl -F dsym=@#{Shellwords.escape(dsym)} -F projectRoot=#{Shellwords.escape(ENV["PROJECT_DIR"])} "
|
26
|
+
curl_command += "-F apiKey=#{Shellwords.escape(api_key)} " if api_key
|
27
|
+
curl_command += "https://upload.bugsnag.com/"
|
28
|
+
system(curl_command)
|
16
29
|
end
|
17
30
|
end
|
18
31
|
RUBY
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delisa Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.7.7
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: To get meaningful stacktraces from your crashes, the Bugsnag service needs
|