hackerone-client 0.5.1 → 0.5.2

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
  SHA1:
3
- metadata.gz: 52abcd095c98ae6bfc5790e2f2f1605be1b82125
4
- data.tar.gz: 8e8aab47918ad9d2c665c44e9d5dcd5137fe933b
3
+ metadata.gz: 521ce6a9156a27ef2225a12ec4a88471834560d1
4
+ data.tar.gz: 8813f25328fd8af8c72044874ac603eeb08ae48d
5
5
  SHA512:
6
- metadata.gz: 2cf2206ba7182ce9f565fd840893609901f1dc48e06163b5ebd87da1ab81cb2b0db4bc4360ef3ae2d483fcb928c91c808190ab7e2e5898a95e4a1c6714250cf3
7
- data.tar.gz: 9b8842589698744f040c581a71e97ab3f9152802745e81ec8e8db986f692b5f9a7d738e9f84420b050bf85ba012d8228ad4f42c9d7f32bc2b3fc658dfa29b601
6
+ metadata.gz: dfe2550fb55b59936c7379b4e123d897b20d6d5527985d7dc21324c74ec76ddbc548e1e008abe2c1b8c98c3dcdb9d9f2cdca747ef8d798bd8232dcd8731dc69c
7
+ data.tar.gz: 15c5ed5506d71775f31879cb98d602564e353e3e81c74feb34f86c62ffb8f09238117d597dc387868786b36235cfb31047e7c55242c3a6643419fe173bfcc05c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.5.2] - 2017-07-19
2
+
3
+ - Bugfix: structured scopes were not being populated correctly resulting in nil results for all attributes
4
+
1
5
  ## [0.5.1] - 2017-06-26
2
6
  ### Added
3
7
  - [Structure scope](https://api.hackerone.com/docs/v1#structured-scope) data added to report object
@@ -220,20 +220,22 @@ http_interactions:
220
220
  }
221
221
  },
222
222
  "structured_scope": {
223
- "id": "57",
224
- "type": "structured_scope",
225
- "attributes": {
226
- "asset_identifier": "api.example.com",
227
- "asset_type": "url",
228
- "confidentiality_requirement": "high",
229
- "integrity_requirement": "high",
230
- "availability_requirement": "high",
231
- "max_severity": "critical",
232
- "created_at": "2015-02-02T04:05:06.000Z",
233
- "updated_at": "2016-05-02T04:05:06.000Z",
234
- "instruction": null,
235
- "eligible_for_bounty": true,
236
- "eligible_for_submission": true
223
+ "data": {
224
+ "id": "57",
225
+ "type": "structured_scope",
226
+ "attributes": {
227
+ "asset_identifier": "api.example.com",
228
+ "asset_type": "url",
229
+ "confidentiality_requirement": "high",
230
+ "integrity_requirement": "high",
231
+ "availability_requirement": "high",
232
+ "max_severity": "critical",
233
+ "created_at": "2015-02-02T04:05:06.000Z",
234
+ "updated_at": "2016-05-02T04:05:06.000Z",
235
+ "instruction": null,
236
+ "eligible_for_bounty": true,
237
+ "eligible_for_submission": true
238
+ }
237
239
  }
238
240
  },
239
241
  "activities": {
@@ -36,7 +36,7 @@ module HackerOne
36
36
  end
37
37
 
38
38
  def structured_scope
39
- StructuredScope.new(relationships[:structured_scope])
39
+ StructuredScope.new(relationships[:structured_scope].fetch(:data, {}))
40
40
  end
41
41
 
42
42
  # Excludes reports where the payout amount is 0 indicating swag-only or no
@@ -1,5 +1,5 @@
1
1
  module Hackerone
2
2
  module Client
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackerone-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil Matatall
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler