sentry-api 0.3.0 → 0.3.1

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: 8def4de3bf6ebfede842e9cfb5e1285988689747
4
- data.tar.gz: b246866444367abc126cfb78ae010c4eee545beb
3
+ metadata.gz: 449d0353d2479b402ca36c919675eafe5e881534
4
+ data.tar.gz: 12dcacc3200f9653baaa84e823afcdf8de69d38c
5
5
  SHA512:
6
- metadata.gz: 2278944d85f8e9ede093e7b8649d3e8e90ffc7636187a25ff9e220bf408d0f69713b0e9e618d7582e5c11b482cbbaccd369c252114366a2d892025d1dc84fd54
7
- data.tar.gz: 4e75ca075af6176e0c1a14c1acff0265ef8dee29be2a62d699be4bfb1df4110fa4c5cc2ffe933765a9c0121c0e4eb44cbcbf632a37b64ecca544311b62693f1e
6
+ metadata.gz: 6eda8973c8d2b4b157112c52f3300cdc4969d8d69c7e95d3b612d939c619b796e9aefa2006f43704924d21dfbabf09174732fc113335888f277f11b3beb09a1e
7
+ data.tar.gz: 75a4dea2323fcd7c2471fc456cbaf07442a126876e5f2bf5f9c8a8ee463db55b29814875852727b99815d71b0dc15b76624cd97352adb930a714949c166e914e
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0
5
4
  - 2.1
6
5
  - 2.2
@@ -149,7 +149,7 @@ class SentryApi::Client
149
149
  get("/projects/#{@default_org_slug}/#{project_slug}/events/")
150
150
  end
151
151
 
152
- # Retrieve an Event for a Project
152
+ # Return a list of issues (groups) bound to a project. All parameters are supplied as query string parameters.
153
153
  #
154
154
  # @example
155
155
  # SentryApi.project_event('project-slug', 'event-id')
@@ -161,14 +161,18 @@ class SentryApi::Client
161
161
  get("/projects/#{@default_org_slug}/#{project_slug}/events/#{event_id}/")
162
162
  end
163
163
 
164
- # Return a list of aggregates bound to a project
164
+ # List a Project’s Issues
165
165
  #
166
166
  # @example
167
- # SentryApi.project_issues('project-slug')
167
+ # SentryApi.project_issues('project-slug', {'query': 'is:unresolved Build-version:6.5.0'})
168
168
  #
169
+ # @param project_slug [String] the slug of the project the client keys belong to.
170
+ # @param [Hash] options A customizable set of options.
171
+ # @option options [String] :statsPeriod an optional stat period (can be one of "24h", "14d", and "").
172
+ # @option options [String] :query an optional Sentry structured search query. If not provided an implied "is:resolved" is assumed.)
169
173
  # @return [Array<SentryApi::ObjectifiedHash>]
170
- def project_issues(project_slug)
171
- get("/projects/#{@default_org_slug}/#{project_slug}/issues/")
174
+ def project_issues(project_slug, options={})
175
+ get("/projects/#{@default_org_slug}/#{project_slug}/issues/", query: options)
172
176
  end
173
177
 
174
178
  end
@@ -1,3 +1,3 @@
1
1
  module SentryApi
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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.licenses = ['BSD']
11
+ spec.license = "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.0
4
+ version: 0.3.1
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-09-16 00:00:00.000000000 Z
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty