bugsnag-api 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 +4 -4
- data/.travis.yml +3 -6
- data/CHANGELOG.md +8 -0
- data/bugsnag-api.gemspec +0 -1
- data/lib/bugsnag/api/client.rb +1 -0
- data/lib/bugsnag/api/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4616f90142beb5163ce325dee92a393d3b990bac
|
4
|
+
data.tar.gz: 0e1f46dd0c4543abaf73fd39a6bd63fc9028ab80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b44534d8d0b639c054ad67402fcd4d25bb8c2f985e06019135c36868cdddc518d2915a88eefc7fed3e0b5da76dc4cba79473fd92ab68f28ea54b7002362557
|
7
|
+
data.tar.gz: fd9c7470df57b829520e4deb9609e1e3414da9e6d4f7e261ca8cb2b1253a596e3bef1668621cc2411eae805d4a765379056092423cd94e4dcaeec9763b37536a
|
data/.travis.yml
CHANGED
@@ -8,13 +8,10 @@ rvm:
|
|
8
8
|
- jruby-19mode
|
9
9
|
|
10
10
|
before_install:
|
11
|
-
-
|
12
|
-
- gem update --system
|
13
|
-
- bundle --version
|
14
|
-
- gem --version
|
11
|
+
- echo YOLO
|
15
12
|
|
16
13
|
install:
|
17
|
-
- bundle
|
14
|
+
- bundle install --with "$GEMSETS"
|
18
15
|
|
19
16
|
script:
|
20
|
-
- bundle
|
17
|
+
- bundle exec rake spec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
## 2.0.1 (15 Nov 2017)
|
5
|
+
|
6
|
+
### Fixes
|
7
|
+
|
8
|
+
* Adds `X-Bugsnag-Api` header so that on-prem clients may use this tool
|
9
|
+
| [tremlab](https://github.com/tremlab)
|
10
|
+
| [#14](https://github.com/bugsnag/bugsnag-api-ruby/pull/14)
|
11
|
+
|
4
12
|
## 2.0.0 (10 Oct 2017)
|
5
13
|
|
6
14
|
This release changes the gem to access v2 of the [Bugsnag data-access API](https://docs.bugsnag.com/api/data-access/), with full API documentation found [here](http://docs.bugsnagapiv2.apiary.io/).
|
data/bugsnag-api.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "sawyer", '~> 0.8.1'
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
24
23
|
spec.add_development_dependency "rake"
|
25
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
25
|
spec.add_development_dependency "webmock", RUBY_VERSION <= '2.0.0' ? '2.3.2': '>2.3.2'
|
data/lib/bugsnag/api/client.rb
CHANGED
@@ -149,6 +149,7 @@ module Bugsnag
|
|
149
149
|
@agent ||= Sawyer::Agent.new(configuration.endpoint, sawyer_options) do |http|
|
150
150
|
http.headers[:content_type] = "application/json"
|
151
151
|
http.headers[:'X-Version'] = "2"
|
152
|
+
http.headers[:'X-Bugsnag-Api'] = "true"
|
152
153
|
http.headers[:user_agent] = configuration.user_agent
|
153
154
|
|
154
155
|
if basic_authenticated?
|
data/lib/bugsnag/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-api
|
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
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.8.1
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.3'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|