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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c55ed694e6e5f64934a0a3fd1ea31cfe65468e92
4
- data.tar.gz: 694d1c59273c45174e6ef08d76fa9151eba02633
3
+ metadata.gz: 54eb41ed42d5d446f62e49086c2d08619cfcda2b
4
+ data.tar.gz: e84e2ac2ead36dcbd8b338cfd00d95cb03bbd2cf
5
5
  SHA512:
6
- metadata.gz: ffbb2d609ffa014067ed552591be61f52a1e54d9c1a01188ddafce50a34fd335223946eabf07235c01e0eec959a3f19b65e580aa5497b15a7bdaa81b21a99e6d
7
- data.tar.gz: 2bc816e3eb6c3527375777e31e8f71b4c736ece2748dbbacaf4deb5f874ee1db592bee680795b9980423a3516173df8dce9007902d567f6e77d88876069518b1
6
+ metadata.gz: 647ef05eb9741d7bb47a02eb15cc0f00a8068c9a2caa98aa575f703f7f9bae33eadfc87367db375c872a2ab03f2b6e153ad809b1c23d53ce8fe7716f3ff80291
7
+ data.tar.gz: 9351025699b2f850bc2c42cbe98749bbf94fd25c9eac9b6e6ce77d34cfe5120c1619bc8d09018c590064d587730be3e3471a214fc87f9b30a9340d630f830c66
@@ -3,4 +3,6 @@ rvm:
3
3
  - 2.0
4
4
  - 2.1
5
5
  - 2.2
6
- - 2.3.0
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
@@ -5,6 +5,7 @@ module SentryApi
5
5
 
6
6
  include Organizations
7
7
  include Projects
8
+ include Issues
8
9
  include Events
9
10
  include Teams
10
11
  include Releases
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SentryApi
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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: 2016-12-03 00:00:00.000000000 Z
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.6
163
+ rubygems_version: 2.6.12
163
164
  signing_key:
164
165
  specification_version: 4
165
166
  summary: Ruby client for Sentry API