cocoapods-bugsnag 2.0.1 → 2.1.0

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
  SHA256:
3
- metadata.gz: 2d84d2d144f26d3b4581f7f4697be7105d1d7f1e1fb727cd95ec9ca7fe88f010
4
- data.tar.gz: 2765de3c3069ebe2934c546148c3b7f7fbc8a7516657efda170757f39b450561
3
+ metadata.gz: 8b6be2d67d8a7328337375f824d428008832765847d254e443c524ac9eacc0e6
4
+ data.tar.gz: d94c59ef08d73b5cc15c0b679bb7c40226c2c3ac8e2d1740a17d2fbe56d483ba
5
5
  SHA512:
6
- metadata.gz: 4df2dc8645d952fcb27c74f3efae913ee03a1ce65f934b194ac93cd4c707d1bd8bce4ecf8c4aef2bc7be371b14511d9e7018d6b3913c3d19c19651f15665caf5
7
- data.tar.gz: 84df2c76d5d70607271c4ced767ae75410881cbc0c402ed754b0cc5e6f95783800c0822d3f0aa823685b5bf22c1cbd578926fb654e66455ef68bb695cc0dd76d
6
+ metadata.gz: 8e1cdcba0c5564af91b44a6ef46afef0eb4a49618d7eee82cf9e3641ced0ae82043ecac4ad0f68f07d461b9fce8442f22e32bdfa8be89800f3b255b63e0349eb
7
+ data.tar.gz: 2888cc1f3cecce524327ca998791e996d3919c77dbe9dc6b052183776b0f00dfe3c961747e918ebc198f093b7b53f7c319edfb21161539f88e42e87876bc607e
@@ -1,23 +1,38 @@
1
- 2.0.1 (04 Dec 2018)
2
- =====
1
+ # Changelog
3
2
 
4
- Added API key to generated upload command
3
+ ## 2.1.0 (14 Aug 2020)
5
4
 
6
- 2.0.0 (30 Jun 2016)
7
- =====
5
+ ### Enhancements
6
+
7
+ * Added new location for API key in `Info.plist` from [bugsnag-cocoa v6.x](https://github.com/bugsnag/bugsnag-cocoa/releases/tag/v6.0.0).
8
+ | [#9](https://github.com/bugsnag/cocoapods-bugsnag/pull/9)
9
+
10
+ * Process now fails if no API key can be found before the upload begins
11
+ | [b624b58](https://github.com/bugsnag/cocoapods-bugsnag/commit/b624b58079a45cff55fed297bcf2ebc6073069a5) fixes [#5](https://github.com/bugsnag/cocoapods-bugsnag/issues/5)
12
+
13
+ ### Bug fixes
14
+
15
+ * Added the --http1.1 option to the curl command to force use of HTTP/1.1 to prevent the uploads of larger files from failing.
16
+ | [#8](https://github.com/bugsnag/cocoapods-bugsnag/pull/8)
17
+
18
+ ## 2.0.1 (04 Dec 2018)
19
+
20
+ ### Enhancements
21
+
22
+ * Added API key to generated upload command
23
+ | [#4](https://github.com/bugsnag/cocoapods-bugsnag/pull/4)
24
+
25
+ ## 2.0.0 (30 Jun 2016)
8
26
 
9
27
  Version update to support CocoaPods 1.0
10
28
 
11
- 1.0.1 (23 Dec 2015)
12
- =====
29
+ ## 1.0.1 (23 Dec 2015)
13
30
 
14
31
  ### Bug Fixes
15
32
 
16
33
  * Fix for missing specification warning during `pod install`
17
34
  | [7d70389](https://github.com/bugsnag/cocoapods-bugsnag/commit/7d70389af31b2b8807195aca3dae0e62140ff176)
18
35
 
19
-
20
- 1.0.0 (19 Dec 2015)
21
- =====
36
+ ## 1.0.0 (19 Dec 2015)
22
37
 
23
38
  Initial Release
data/README.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # cocoapods-bugsnag
2
2
 
3
3
  A [CocoaPods](https://cocoapods.org) plugin for integrating Cocoa projects with
4
- [Bugsnag](https://bugsnag.com), an error tracking and resolution tool.
4
+ [Bugsnag](https://bugsnag.com), an error tracking and resolution tool. When
5
+ installed, the plugin will add a Run Script build phase to your project workspace
6
+ to upload your
7
+ [dSYM](http://noverse.com/blog/2010/03/how-to-deal-with-an-iphone-crash-report/)
8
+ files so the Bugsnag service can provide you with symbolicated stack traces.
5
9
 
6
10
  ## Installation
7
11
 
@@ -20,14 +24,20 @@ install, run:
20
24
 
21
25
  ## Usage
22
26
 
23
- The [Bugsnag reporting library for Cocoa](https://github.com/bugsnag/bugsnag-cocoa)
24
- is available via CocoaPods. Once you have added Bugsnag to your Podfile, running
25
- `pod install` will add a build phase to your project workspace to upload your
26
- [dSYM](http://noverse.com/blog/2010/03/how-to-deal-with-an-iphone-crash-report/)
27
- files so the Bugsnag service can provide you with symbolicated stack traces.
27
+ To add the build phase to your project, add pod ‘Bugsnag to your Podfile and run:
28
+
29
+ ```bash
30
+ pod install
31
+ ```
32
+
33
+ By default, your Bugsnag API key will either be read from the `BUGSNAG_API_KEY`
34
+ environment variable or from the `:bugsnag:apiKey` (or `BugsnagAPIKey`) value in your
35
+ `Info.plist`. Alternatively edit the script in the new "Upload Bugsnag dSYM" build
36
+ phase in Xcode.
28
37
 
29
38
  ## Support
30
39
 
40
+ * [Symbolication guide](https://docs.bugsnag.com/platforms/ios/symbolication-guide/)
31
41
  * [Search open and closed issues](https://github.com/bugsnag/cocoapods-bugsnag/issues?utf8=✓&q=is%3Aissue)
32
42
  for similar problems
33
43
  * [Open an issue](https://github.com/bugsnag/cocoapods-bugsnag/issues/new)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "cocoapods-bugsnag"
3
- spec.version = "2.0.1"
3
+ spec.version = "2.1.0"
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."
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
17
17
  spec.license = "MIT"
18
18
 
19
19
  spec.add_dependency "cocoapods", "~> 1.0"
20
- spec.add_development_dependency "rake"
21
- spec.add_development_dependency "bacon"
20
+ spec.add_development_dependency "rake", ">= 12.3.3"
21
+ spec.add_development_dependency "bacon", "~> 1.0"
22
22
  end
@@ -3,16 +3,23 @@ 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"]
6
+ api_key = nil # Insert your key here to use it directly from this script
8
7
 
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?
8
+ # Attempt to get the API key from an environment variable
9
+ unless api_key
10
+ api_key = ENV["BUGSNAG_API_KEY"]
11
+
12
+ # If not present, attempt to lookup the value from the Info.plist
13
+ unless api_key
14
+ info_plist_path = Dir.glob("./{ios/,}*/Info.plist").reject {|path| path =~ /build|test/i }.first
15
+ plist_buddy_response = `/usr/libexec/PlistBuddy -c "print :bugsnag:apiKey" "#{info_plist_path}"`
16
+ plist_buddy_response = `/usr/libexec/PlistBuddy -c "print :BugsnagAPIKey" "#{info_plist_path}"` if !$?.success?
17
+ api_key = plist_buddy_response if $?.success?
18
+ end
14
19
  end
15
20
 
21
+ fail("No Bugsnag API key detected - add your key to your Info.plist, BUGSNAG_API_KEY environment variable or this Run Script phase") unless api_key
22
+
16
23
  fork do
17
24
  Process.setsid
18
25
  STDIN.reopen("/dev/null")
@@ -22,8 +29,8 @@ fork do
22
29
  require 'shellwords'
23
30
 
24
31
  Dir["#{ENV["DWARF_DSYM_FOLDER_PATH"]}/*/Contents/Resources/DWARF/*"].each do |dsym|
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
32
+ curl_command = "curl --http1.1 -F dsym=@#{Shellwords.escape(dsym)} -F projectRoot=#{Shellwords.escape(ENV["PROJECT_DIR"])} "
33
+ curl_command += "-F apiKey=#{Shellwords.escape(api_key)} "
27
34
  curl_command += "https://upload.bugsnag.com/"
28
35
  system(curl_command)
29
36
  end
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.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delisa Mason
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-04 00:00:00.000000000 Z
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bacon
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.0'
55
55
  description: Configures the dSYM upload phase of your project when integrated with
56
56
  bugsnag.
57
57
  email:
@@ -87,8 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubyforge_project:
91
- rubygems_version: 2.7.7
90
+ rubygems_version: 3.1.4
92
91
  signing_key:
93
92
  specification_version: 4
94
93
  summary: To get meaningful stacktraces from your crashes, the Bugsnag service needs