sentry-api 0.3.3 → 0.3.4
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 -1
- data/lib/sentry-api/client.rb +1 -0
- data/lib/sentry-api/client/issues.rb +30 -0
- data/lib/sentry-api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54eb41ed42d5d446f62e49086c2d08619cfcda2b
|
4
|
+
data.tar.gz: e84e2ac2ead36dcbd8b338cfd00d95cb03bbd2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 647ef05eb9741d7bb47a02eb15cc0f00a8068c9a2caa98aa575f703f7f9bae33eadfc87367db375c872a2ab03f2b6e153ad809b1c23d53ce8fe7716f3ff80291
|
7
|
+
data.tar.gz: 9351025699b2f850bc2c42cbe98749bbf94fd25c9eac9b6e6ce77d34cfe5120c1619bc8d09018c590064d587730be3e3471a214fc87f9b30a9340d630f830c66
|
data/.travis.yml
CHANGED
data/lib/sentry-api/client.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
class SentryApi::Client
|
2
|
+
module Issues
|
3
|
+
# List Issues
|
4
|
+
#
|
5
|
+
# @example
|
6
|
+
# SentryApi.project_issues('project-slug', {'query': 'is:unresolved Build-version:6.5.0'})
|
7
|
+
#
|
8
|
+
# @param project_slug [String] the slug of the project the client keys belong to.
|
9
|
+
# @param [Hash] options A customizable set of options. @option options [String] :statsPeriod an optional stat period (can be one of "24h", "14d", and "").
|
10
|
+
# @option options [String] :query an optional Sentry structured search query. If not provided an implied "is:resolved" is assumed.)
|
11
|
+
# @return [Array<SentryApi::ObjectifiedHash>]
|
12
|
+
def issues(project_slug, options={})
|
13
|
+
get("/projects/#{@default_org_slug}/#{project_slug}/issues/", query: options)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Batch update issues
|
17
|
+
#
|
18
|
+
# @example
|
19
|
+
# SentryApi.update_client_key('project-slug', ['123', '456'], status:'ignored')
|
20
|
+
#
|
21
|
+
# @param project_slug [String] the slug of the project the client keys belong to.
|
22
|
+
# @param issue_ids [Array] An array of issue ids which are to be updated.
|
23
|
+
# @option options [Object] An object containing the issue fields which are to be updated.
|
24
|
+
# @return [Array<SentryApi::ObjectifiedHash>]
|
25
|
+
def batch_update_issues(project_slug, issue_ids=[], options={})
|
26
|
+
put("/projects/#{@default_org_slug}/#{project_slug}/issues/?id=#{issue_ids.join('&id=')}", body: options)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
data/lib/sentry-api/version.rb
CHANGED
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thierry Xing
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/sentry-api/api.rb
|
127
127
|
- lib/sentry-api/client.rb
|
128
128
|
- lib/sentry-api/client/events.rb
|
129
|
+
- lib/sentry-api/client/issues.rb
|
129
130
|
- lib/sentry-api/client/organizations.rb
|
130
131
|
- lib/sentry-api/client/projects.rb
|
131
132
|
- lib/sentry-api/client/releases.rb
|
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
version: '0'
|
160
161
|
requirements: []
|
161
162
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.6.
|
163
|
+
rubygems_version: 2.6.12
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: Ruby client for Sentry API
|