sentry-api 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sentry-api/client/projects.rb +1 -1
- data/lib/sentry-api/paginated_response.rb +4 -2
- data/lib/sentry-api/version.rb +1 -1
- data/sentry-api.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aef44b8715edeb47549fc8f17389ff545a247c95
|
4
|
+
data.tar.gz: e11d1bfbf314bca398601395287db5ebdd5313cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
73
|
+
path = @links.prev.sub(/#{@client.endpoint}/, '')
|
74
|
+
@client.get(path)
|
73
75
|
end
|
74
76
|
end
|
75
77
|
end
|
data/lib/sentry-api/version.rb
CHANGED
data/sentry-api.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|