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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 03323e28f4927af96c80f00685544abf5c66b48b
4
- data.tar.gz: 978fdad28707388565f5573f627f2c3baa717675
2
+ SHA256:
3
+ metadata.gz: 2d84d2d144f26d3b4581f7f4697be7105d1d7f1e1fb727cd95ec9ca7fe88f010
4
+ data.tar.gz: 2765de3c3069ebe2934c546148c3b7f7fbc8a7516657efda170757f39b450561
5
5
  SHA512:
6
- metadata.gz: b38221b6f79feadc1e01bf9a20284759c932a288d06bdbcb7d3bfad8634f0350063485b88656087e0fcc469d3402ddd4e1079c7a13c5fc0edc5c3c0347e76e4b
7
- data.tar.gz: d1ee5c8de92e02e61493fe6234c1b6ae83c94e90e1ebad433722d128b16620e670efa3592dda676ae2108c43c852142ee9602e45d541f888d7072f144b33117e
6
+ metadata.gz: 4df2dc8645d952fcb27c74f3efae913ee03a1ce65f934b194ac93cd4c707d1bd8bce4ecf8c4aef2bc7be371b14511d9e7018d6b3913c3d19c19651f15665caf5
7
+ data.tar.gz: 84df2c76d5d70607271c4ced767ae75410881cbc0c402ed754b0cc5e6f95783800c0822d3f0aa823685b5bf22c1cbd578926fb654e66455ef68bb695cc0dd76d
@@ -1,3 +1,8 @@
1
+ 2.0.1 (04 Dec 2018)
2
+ =====
3
+
4
+ Added API key to generated upload command
5
+
1
6
  2.0.0 (30 Jun 2016)
2
7
  =====
3
8
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "cocoapods-bugsnag"
3
- spec.version = "2.0.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."
@@ -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
- system("curl -F dsym=@#{Shellwords.escape(dsym)} -F projectRoot=#{Shellwords.escape(ENV["PROJECT_DIR"])} https://upload.bugsnag.com/")
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.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: 2016-06-30 00:00:00.000000000 Z
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.4.5
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