sentry-api 0.3.1 → 0.3.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: 449d0353d2479b402ca36c919675eafe5e881534
4
- data.tar.gz: 12dcacc3200f9653baaa84e823afcdf8de69d38c
3
+ metadata.gz: aef44b8715edeb47549fc8f17389ff545a247c95
4
+ data.tar.gz: e11d1bfbf314bca398601395287db5ebdd5313cb
5
5
  SHA512:
6
- metadata.gz: 6eda8973c8d2b4b157112c52f3300cdc4969d8d69c7e95d3b612d939c619b796e9aefa2006f43704924d21dfbabf09174732fc113335888f277f11b3beb09a1e
7
- data.tar.gz: 75a4dea2323fcd7c2471fc456cbaf07442a126876e5f2bf5f9c8a8ee463db55b29814875852727b99815d71b0dc15b76624cd97352adb930a714949c166e914e
6
+ metadata.gz: 9bd068baf6e0a8dfaea97787ec20fbe0d2094f11db20351d5ed987f9c022bc0198d224986c42556a8bbb1299579aad6c30fcacc78bece33ccdadf5d466ae8b49
7
+ data.tar.gz: 1d0dbce6ac6495254b0ca24120a6b9d57b6095ce9c988829621206154b6ec3a6389c4f96c93af126d07dc90b9f727f566231b9c7c9bb3087010b3fce262c1bc6
@@ -155,7 +155,7 @@ class SentryApi::Client
155
155
  # SentryApi.project_event('project-slug', 'event-id')
156
156
  #
157
157
  # @param project_slug [String] the slug of the project the client keys belong to.
158
- # @param event_id [String] the slug of the project the event belongs to.
158
+ # @param event_id [String] the hexadecimal ID of the event to retrieve (as reported by the raven client)
159
159
  # @return [SentryApi::ObjectifiedHash]
160
160
  def project_event(project_slug, event_id)
161
161
  get("/projects/#{@default_org_slug}/#{project_slug}/events/#{event_id}/")
@@ -60,7 +60,8 @@ module SentryApi
60
60
 
61
61
  def next_page
62
62
  return nil if @client.nil? || !has_next_page?
63
- @links.next
63
+ path = @links.next.sub(/#{@client.endpoint}/, '')
64
+ @client.get(path)
64
65
  end
65
66
 
66
67
  def has_prev_page?
@@ -69,7 +70,8 @@ module SentryApi
69
70
 
70
71
  def prev_page
71
72
  return nil if @client.nil? || !has_prev_page?
72
- @links.previous
73
+ path = @links.prev.sub(/#{@client.endpoint}/, '')
74
+ @client.get(path)
73
75
  end
74
76
  end
75
77
  end
@@ -1,3 +1,3 @@
1
1
  module SentryApi
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SentryApi::VERSION
9
9
  spec.authors = ["Thierry Xing"]
10
10
  spec.email = ["thierry.xing@gmail.com"]
11
- spec.license = "BSD"
11
+ spec.licenses = ['BSD']
12
12
  spec.summary = %q{Ruby client for Sentry API}
13
13
  spec.description = %q{A Ruby wrapper for the Sentry API}
14
14
  spec.homepage = "https://github.com/thierryxing/sentry-ruby-api"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thierry Xing
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-15 00:00:00.000000000 Z
11
+ date: 2016-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty