jira-ruby 0.1.18 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +1 -4
- data/README.rdoc +22 -10
- data/example.rb +1 -1
- data/http-basic-example.rb +1 -1
- data/jira-ruby.gemspec +20 -14
- data/lib/{jira.rb → jira-ruby.rb} +4 -2
- data/lib/jira/base_factory.rb +1 -1
- data/lib/jira/client.rb +12 -0
- data/lib/jira/resource/agile.rb +54 -0
- data/lib/jira/resource/resolution.rb +10 -0
- data/lib/jira/resource/sprint.rb +36 -0
- data/lib/jira/resource/user.rb +6 -0
- data/lib/jira/resource/webhook.rb +1 -1
- data/lib/jira/version.rb +1 -1
- data/spec/integration/resolution_spec.rb +29 -0
- data/spec/jira/resource/user_factory_spec.rb +33 -0
- data/spec/mock_responses/resolution.json +15 -0
- data/spec/mock_responses/resolution/1.json +7 -0
- data/spec/spec_helper.rb +1 -1
- metadata +122 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb639c7a6da1d81ae6bb693c5891ee23ce1b1e9c
|
4
|
+
data.tar.gz: 331cd7e819faa9cc056045413d968793a238baa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e856bf2af0be3d9b40b300167117c263c6ffda85fb70001c7fd3c2c59b05eab6561ac2f684786175dcf707d6b5ab9a606b92a17a3278cde73f119fb047d4ff
|
7
|
+
data.tar.gz: cc19f33cb2c9455045ff0f1d8368a639963dee01c3c313a39e6e49b026d354dd8f0ef2586773b8153b78c51868466bafbd452aac77ba2641c4f697fd22e6d9d0
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem 'guard'
|
5
|
-
gem 'guard-rspec'
|
6
|
-
gem 'pry' # this was in the original Gemfile - but only needed in development
|
7
4
|
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
|
8
5
|
end
|
9
|
-
|
6
|
+
|
10
7
|
# Specify your gem's dependencies in jira_api.gemspec
|
11
8
|
gemspec
|
data/README.rdoc
CHANGED
@@ -6,7 +6,18 @@ This gem provides access to the Atlassian JIRA REST API.
|
|
6
6
|
|
7
7
|
== Example usage
|
8
8
|
|
9
|
-
|
9
|
+
require 'rubygems'
|
10
|
+
require 'jira-ruby'
|
11
|
+
|
12
|
+
options = {
|
13
|
+
:username => 'username',
|
14
|
+
:password => 'pass1234',
|
15
|
+
:site => 'http://mydomain.atlassian.net:443/',
|
16
|
+
:context_path => '',
|
17
|
+
:auth_type => :basic
|
18
|
+
}
|
19
|
+
|
20
|
+
client = JIRA::Client.new(options)
|
10
21
|
|
11
22
|
project = client.Project.find('SAMPLEPROJECT')
|
12
23
|
|
@@ -14,17 +25,18 @@ This gem provides access to the Atlassian JIRA REST API.
|
|
14
25
|
puts "#{issue.id} - #{issue.summary}"
|
15
26
|
end
|
16
27
|
|
17
|
-
issue.comments.each {|comment| ... }
|
18
|
-
|
19
|
-
comment = issue.comments.build
|
20
|
-
comment.save({'body':'My new comment'})
|
21
|
-
comment.delete
|
22
|
-
|
23
28
|
== Links to JIRA REST API documentation
|
24
29
|
|
25
30
|
* {Overview}[https://developer.atlassian.com/display/JIRADEV/JIRA+REST+APIs]
|
26
31
|
* {Reference}[http://docs.atlassian.com/jira/REST/latest/]
|
27
32
|
|
33
|
+
== Running tests
|
34
|
+
|
35
|
+
Before running tests, you will need a public certificate generated.
|
36
|
+
|
37
|
+
```
|
38
|
+
rake jira:generate_public_cert
|
39
|
+
```
|
28
40
|
|
29
41
|
== Setting up the JIRA SDK
|
30
42
|
|
@@ -82,7 +94,7 @@ to an empty string in the options hash.
|
|
82
94
|
|
83
95
|
require 'rubygems'
|
84
96
|
require 'pp'
|
85
|
-
require 'jira'
|
97
|
+
require 'jira-ruby'
|
86
98
|
|
87
99
|
# Consider the use of :use_ssl and :ssl_verify_mode options if running locally
|
88
100
|
# for tests.
|
@@ -123,7 +135,7 @@ Ensure the JIRA gem is loaded correctly
|
|
123
135
|
|
124
136
|
# Gemfile
|
125
137
|
...
|
126
|
-
gem 'jira-ruby', :require => 'jira'
|
138
|
+
gem 'jira-ruby', :require => 'jira-ruby'
|
127
139
|
...
|
128
140
|
|
129
141
|
Add common methods to your application controller and ensure access token
|
@@ -218,7 +230,7 @@ Create your own controllers for the JIRA resources you wish to access.
|
|
218
230
|
|
219
231
|
Here's the same example as a Sinatra application:
|
220
232
|
|
221
|
-
require 'jira'
|
233
|
+
require 'jira-ruby'
|
222
234
|
class App < Sinatra::Base
|
223
235
|
enable :sessions
|
224
236
|
|
data/example.rb
CHANGED
data/http-basic-example.rb
CHANGED
data/jira-ruby.gemspec
CHANGED
@@ -1,27 +1,33 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'jira/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'jira-ruby'
|
7
7
|
s.version = JIRA::VERSION
|
8
|
-
s.authors = [
|
9
|
-
s.homepage =
|
8
|
+
s.authors = ['SUMO Heavy Industries']
|
9
|
+
s.homepage = 'http://www.sumoheavy.com'
|
10
10
|
s.summary = %q{Ruby Gem for use with the Atlassian JIRA REST API}
|
11
11
|
s.description = %q{API for JIRA}
|
12
|
-
s.licenses = [
|
12
|
+
s.licenses = ['OSL-3.0']
|
13
13
|
|
14
|
-
s.rubyforge_project =
|
14
|
+
s.rubyforge_project = 'jira-ruby'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
-
s.require_paths = [
|
19
|
+
s.require_paths = ['lib']
|
20
20
|
|
21
|
-
|
22
|
-
s.add_runtime_dependency
|
23
|
-
s.add_runtime_dependency
|
24
|
-
|
25
|
-
|
26
|
-
s.add_development_dependency
|
21
|
+
# Rubtime Dependencies
|
22
|
+
s.add_runtime_dependency 'oauth', '~> 0.5', '>= 0.5.0'
|
23
|
+
s.add_runtime_dependency 'activesupport', '~> 4.2', '>= 4.2.0'
|
24
|
+
|
25
|
+
# Development Dependencies
|
26
|
+
s.add_development_dependency 'railties', '~> 4.2', '>= 4.2.0'
|
27
|
+
s.add_development_dependency 'webmock', '~> 1.18', '>= 1.18.0'
|
28
|
+
s.add_development_dependency 'rspec', '~> 3.0', '>= 3.0.0'
|
29
|
+
s.add_development_dependency 'rake', '~> 10.3', '>= 10.3.2'
|
30
|
+
s.add_development_dependency 'guard', '~> 2.13', '>= 2.13.0'
|
31
|
+
s.add_development_dependency 'guard-rspec', '~> 4.6', '>= 4.6.5'
|
32
|
+
s.add_development_dependency 'pry', '~> 0.10', '>= 0.10.3'
|
27
33
|
end
|
@@ -2,7 +2,7 @@ $: << File.expand_path(File.dirname(__FILE__))
|
|
2
2
|
|
3
3
|
require 'active_support/inflector'
|
4
4
|
ActiveSupport::Inflector.inflections do |inflector|
|
5
|
-
inflector.singular
|
5
|
+
inflector.singular /status$/, 'status'
|
6
6
|
end
|
7
7
|
|
8
8
|
require 'jira/base'
|
@@ -29,10 +29,12 @@ require 'jira/resource/issue'
|
|
29
29
|
require 'jira/resource/filter'
|
30
30
|
require 'jira/resource/field'
|
31
31
|
require 'jira/resource/rapidview'
|
32
|
+
require 'jira/resource/resolution'
|
32
33
|
require 'jira/resource/serverinfo'
|
33
34
|
require 'jira/resource/createmeta'
|
34
35
|
require 'jira/resource/webhook'
|
35
|
-
|
36
|
+
require 'jira/resource/agile'
|
37
|
+
require 'jira/resource/sprint'
|
36
38
|
require 'jira/request_client'
|
37
39
|
require 'jira/oauth_client'
|
38
40
|
require 'jira/http_client'
|
data/lib/jira/base_factory.rb
CHANGED
@@ -38,7 +38,7 @@ module JIRA
|
|
38
38
|
# The principle purpose of this class is to delegate methods to the corresponding
|
39
39
|
# non-factory class and automatically prepend the client argument to the argument
|
40
40
|
# list.
|
41
|
-
delegate_to_target_class :all, :find, :collection_path, :singular_path, :jql
|
41
|
+
delegate_to_target_class :all, :find, :collection_path, :singular_path, :jql, :get_backlog_issues, :get_sprints, :get_sprint_issues
|
42
42
|
|
43
43
|
# This method needs special handling as it has a default argument value
|
44
44
|
def build(attrs={})
|
data/lib/jira/client.rb
CHANGED
@@ -109,6 +109,10 @@ module JIRA
|
|
109
109
|
JIRA::Resource::StatusFactory.new(self)
|
110
110
|
end
|
111
111
|
|
112
|
+
def Resolution # :nodoc:
|
113
|
+
JIRA::Resource::ResolutionFactory.new(self)
|
114
|
+
end
|
115
|
+
|
112
116
|
def Comment # :nodoc:
|
113
117
|
JIRA::Resource::CommentFactory.new(self)
|
114
118
|
end
|
@@ -165,6 +169,14 @@ module JIRA
|
|
165
169
|
JIRA::Resource::RemotelinkFactory.new(self)
|
166
170
|
end
|
167
171
|
|
172
|
+
def Sprint
|
173
|
+
JIRA::Resource::SprintFactory.new(self)
|
174
|
+
end
|
175
|
+
|
176
|
+
def Agile
|
177
|
+
JIRA::Resource::AgileFactory.new(self)
|
178
|
+
end
|
179
|
+
|
168
180
|
# HTTP methods without a body
|
169
181
|
def delete(path, headers = {})
|
170
182
|
request(:delete, path, nil, merge_default_headers(headers))
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
module JIRA
|
4
|
+
module Resource
|
5
|
+
|
6
|
+
class AgileFactory < JIRA::BaseFactory # :nodoc:
|
7
|
+
end
|
8
|
+
|
9
|
+
class Agile < JIRA::Base
|
10
|
+
|
11
|
+
def self.all(client)
|
12
|
+
response = client.get(path_base(client) + '/board')
|
13
|
+
parse_json(response.body)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.get_backlog_issues(client, board_id, options = {})
|
17
|
+
options[:maxResults] ||= 100
|
18
|
+
response = client.get("/rest/agile/1.0/board/#{board_id}/backlog?maxResults=#{options[:maxResults]}")
|
19
|
+
parse_json(response.body)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_sprints(client, board_id, options = {})
|
23
|
+
options[:maxResults] ||= 100
|
24
|
+
response = client.get("/rest/agile/1.0/board/#{board_id}/sprint?maxResults=#{options[:maxResults]}")
|
25
|
+
parse_json(response.body)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.get_sprint_issues(client, sprint_id, options = {})
|
29
|
+
options[:maxResults] ||= 100
|
30
|
+
response = client.get("/rest/agile/1.0/sprint/#{sprint_id}/issue?maxResults=#{options[:maxResults]}")
|
31
|
+
parse_json(response.body)
|
32
|
+
end
|
33
|
+
|
34
|
+
# def self.find(client, key, options = {})
|
35
|
+
# options[:maxResults] ||= 100
|
36
|
+
# fields = options[:fields].join(',') unless options[:fields].nil?
|
37
|
+
# response = client.get("/rest/api/latest/search?jql=sprint=#{key}&fields=#{fields}&maxResults=#{options[:maxResults]}")
|
38
|
+
# parse_json(response.body)
|
39
|
+
# end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def self.path_base(client)
|
44
|
+
client.options[:context_path] + '/rest/agile/1.0'
|
45
|
+
end
|
46
|
+
|
47
|
+
def path_base(client)
|
48
|
+
self.class.path_base(client)
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
module JIRA
|
4
|
+
module Resource
|
5
|
+
|
6
|
+
class SprintFactory < JIRA::BaseFactory # :nodoc:
|
7
|
+
end
|
8
|
+
|
9
|
+
class Sprint < JIRA::Base
|
10
|
+
|
11
|
+
def self.all(client, key)
|
12
|
+
response = client.get(path_base(client) + '/sprintquery/' + key.to_s)
|
13
|
+
parse_json(response.body)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.find(client, key, options = {})
|
17
|
+
options[:maxResults] ||= 100
|
18
|
+
fields = options[:fields].join(',') unless options[:fields].nil?
|
19
|
+
response = client.get("/rest/api/latest/search?jql=sprint=#{key}&fields=#{fields}&maxResults=#{options[:maxResults]}")
|
20
|
+
parse_json(response.body)
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def self.path_base(client)
|
26
|
+
client.options[:context_path] + '/rest/greenhopper/1.0'
|
27
|
+
end
|
28
|
+
|
29
|
+
def path_base(client)
|
30
|
+
self.class.path_base(client)
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
data/lib/jira/resource/user.rb
CHANGED
@@ -2,6 +2,12 @@ module JIRA
|
|
2
2
|
module Resource
|
3
3
|
|
4
4
|
class UserFactory < JIRA::BaseFactory # :nodoc:
|
5
|
+
def myself
|
6
|
+
instance = build
|
7
|
+
response = client.get("#{client.options[:rest_base_path]}/myself")
|
8
|
+
instance.set_attrs_from_response(response)
|
9
|
+
instance
|
10
|
+
end
|
5
11
|
end
|
6
12
|
|
7
13
|
class User < JIRA::Base
|
data/lib/jira/version.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe JIRA::Resource::Resolution do
|
4
|
+
|
5
|
+
with_each_client do |site_url, client|
|
6
|
+
let(:client) { client }
|
7
|
+
let(:site_url) { site_url }
|
8
|
+
|
9
|
+
|
10
|
+
let(:key) { "1" }
|
11
|
+
|
12
|
+
let(:expected_attributes) do
|
13
|
+
{
|
14
|
+
'self' => "http://www.example.com/jira/rest/api/2/resolution/1",
|
15
|
+
'id' => key,
|
16
|
+
'name' => 'Fixed',
|
17
|
+
'description' => 'A fix for this issue is checked into the tree and tested.',
|
18
|
+
'iconUrl' => 'http://www.example.com/jira/images/icons/status_resolved.gif'
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
let(:expected_collection_length) { 2 }
|
23
|
+
|
24
|
+
it_should_behave_like "a resource"
|
25
|
+
it_should_behave_like "a resource with a collection GET endpoint"
|
26
|
+
it_should_behave_like "a resource with a singular GET endpoint"
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe JIRA::Resource::UserFactory do
|
4
|
+
|
5
|
+
let(:client) {
|
6
|
+
instance_double('Client', options: { rest_base_path: '/jira/rest/api/2' })
|
7
|
+
}
|
8
|
+
|
9
|
+
subject { JIRA::Resource::UserFactory.new(client) }
|
10
|
+
|
11
|
+
describe "#myself" do
|
12
|
+
let(:response) {
|
13
|
+
instance_double(
|
14
|
+
'Response', body: get_mock_response('user_username=admin.json')
|
15
|
+
)
|
16
|
+
}
|
17
|
+
|
18
|
+
let(:user) { subject.myself }
|
19
|
+
|
20
|
+
before(:each) do
|
21
|
+
allow(client).to receive(:get).with(
|
22
|
+
'/jira/rest/api/2/myself'
|
23
|
+
).and_return(response)
|
24
|
+
end
|
25
|
+
|
26
|
+
it "returns a JIRA::Resource::User with correct attrs" do
|
27
|
+
expect(user).to be_a(JIRA::Resource::User)
|
28
|
+
expect(user.name).to eq('admin')
|
29
|
+
expect(user.emailAddress).to eq('admin@example.com')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"self": "http://www.example.com/jira/rest/api/2/resolution/1",
|
4
|
+
"description": "A fix for this issue is checked into the tree and tested.",
|
5
|
+
"iconUrl": "http://www.example.com/jira/images/icons/status_resolved.gif",
|
6
|
+
"name": "Fixed",
|
7
|
+
"id": "1"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"self": "http://www.example.com/jira/rest/api/2/resolution/3",
|
11
|
+
"description": "This is what it is supposed to do.",
|
12
|
+
"name": "Works as designed",
|
13
|
+
"id": "3"
|
14
|
+
}
|
15
|
+
]
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,62 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jira-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SUMO Heavy Industries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: oauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
22
|
+
version: 0.5.0
|
23
|
+
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 0.5.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: activesupport
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
39
|
+
version: '4.2'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 4.2.0
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
49
|
+
version: '4.2'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 4.2.0
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
54
|
+
name: railties
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '4.2'
|
45
60
|
- - ">="
|
46
61
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :
|
62
|
+
version: 4.2.0
|
63
|
+
type: :development
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.2'
|
52
70
|
- - ">="
|
53
71
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
72
|
+
version: 4.2.0
|
55
73
|
- !ruby/object:Gem::Dependency
|
56
74
|
name: webmock
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
58
76
|
requirements:
|
59
77
|
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.18'
|
80
|
+
- - ">="
|
60
81
|
- !ruby/object:Gem::Version
|
61
82
|
version: 1.18.0
|
62
83
|
type: :development
|
@@ -64,6 +85,9 @@ dependencies:
|
|
64
85
|
version_requirements: !ruby/object:Gem::Requirement
|
65
86
|
requirements:
|
66
87
|
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.18'
|
90
|
+
- - ">="
|
67
91
|
- !ruby/object:Gem::Version
|
68
92
|
version: 1.18.0
|
69
93
|
- !ruby/object:Gem::Dependency
|
@@ -71,6 +95,9 @@ dependencies:
|
|
71
95
|
requirement: !ruby/object:Gem::Requirement
|
72
96
|
requirements:
|
73
97
|
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '3.0'
|
100
|
+
- - ">="
|
74
101
|
- !ruby/object:Gem::Version
|
75
102
|
version: 3.0.0
|
76
103
|
type: :development
|
@@ -78,6 +105,9 @@ dependencies:
|
|
78
105
|
version_requirements: !ruby/object:Gem::Requirement
|
79
106
|
requirements:
|
80
107
|
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.0'
|
110
|
+
- - ">="
|
81
111
|
- !ruby/object:Gem::Version
|
82
112
|
version: 3.0.0
|
83
113
|
- !ruby/object:Gem::Dependency
|
@@ -85,6 +115,9 @@ dependencies:
|
|
85
115
|
requirement: !ruby/object:Gem::Requirement
|
86
116
|
requirements:
|
87
117
|
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '10.3'
|
120
|
+
- - ">="
|
88
121
|
- !ruby/object:Gem::Version
|
89
122
|
version: 10.3.2
|
90
123
|
type: :development
|
@@ -92,8 +125,71 @@ dependencies:
|
|
92
125
|
version_requirements: !ruby/object:Gem::Requirement
|
93
126
|
requirements:
|
94
127
|
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '10.3'
|
130
|
+
- - ">="
|
95
131
|
- !ruby/object:Gem::Version
|
96
132
|
version: 10.3.2
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: guard
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '2.13'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 2.13.0
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '2.13'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.13.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '4.6'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 4.6.5
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '4.6'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 4.6.5
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: pry
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.10'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.10.3
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.10'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.10.3
|
97
193
|
description: API for JIRA
|
98
194
|
email:
|
99
195
|
executables: []
|
@@ -110,7 +206,7 @@ files:
|
|
110
206
|
- example.rb
|
111
207
|
- http-basic-example.rb
|
112
208
|
- jira-ruby.gemspec
|
113
|
-
- lib/jira.rb
|
209
|
+
- lib/jira-ruby.rb
|
114
210
|
- lib/jira/base.rb
|
115
211
|
- lib/jira/base_factory.rb
|
116
212
|
- lib/jira/client.rb
|
@@ -120,6 +216,7 @@ files:
|
|
120
216
|
- lib/jira/oauth_client.rb
|
121
217
|
- lib/jira/railtie.rb
|
122
218
|
- lib/jira/request_client.rb
|
219
|
+
- lib/jira/resource/agile.rb
|
123
220
|
- lib/jira/resource/applinks.rb
|
124
221
|
- lib/jira/resource/attachment.rb
|
125
222
|
- lib/jira/resource/comment.rb
|
@@ -135,7 +232,9 @@ files:
|
|
135
232
|
- lib/jira/resource/project.rb
|
136
233
|
- lib/jira/resource/rapidview.rb
|
137
234
|
- lib/jira/resource/remotelink.rb
|
235
|
+
- lib/jira/resource/resolution.rb
|
138
236
|
- lib/jira/resource/serverinfo.rb
|
237
|
+
- lib/jira/resource/sprint.rb
|
139
238
|
- lib/jira/resource/status.rb
|
140
239
|
- lib/jira/resource/transition.rb
|
141
240
|
- lib/jira/resource/user.rb
|
@@ -155,6 +254,7 @@ files:
|
|
155
254
|
- spec/integration/priority_spec.rb
|
156
255
|
- spec/integration/project_spec.rb
|
157
256
|
- spec/integration/rapidview_spec.rb
|
257
|
+
- spec/integration/resolution_spec.rb
|
158
258
|
- spec/integration/status_spec.rb
|
159
259
|
- spec/integration/transition_spec.rb
|
160
260
|
- spec/integration/user_spec.rb
|
@@ -177,6 +277,7 @@ files:
|
|
177
277
|
- spec/jira/resource/issuelink_spec.rb
|
178
278
|
- spec/jira/resource/project_factory_spec.rb
|
179
279
|
- spec/jira/resource/project_spec.rb
|
280
|
+
- spec/jira/resource/user_factory_spec.rb
|
180
281
|
- spec/jira/resource/worklog_spec.rb
|
181
282
|
- spec/mock_responses/attachment/10000.json
|
182
283
|
- spec/mock_responses/component.post.json
|
@@ -215,6 +316,8 @@ files:
|
|
215
316
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.issues.full.json
|
216
317
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.issues.json
|
217
318
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.json
|
319
|
+
- spec/mock_responses/resolution.json
|
320
|
+
- spec/mock_responses/resolution/1.json
|
218
321
|
- spec/mock_responses/status.json
|
219
322
|
- spec/mock_responses/status/1.json
|
220
323
|
- spec/mock_responses/user_username=admin.json
|
@@ -250,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
353
|
version: '0'
|
251
354
|
requirements: []
|
252
355
|
rubyforge_project: jira-ruby
|
253
|
-
rubygems_version: 2.
|
356
|
+
rubygems_version: 2.5.1
|
254
357
|
signing_key:
|
255
358
|
specification_version: 4
|
256
359
|
summary: Ruby Gem for use with the Atlassian JIRA REST API
|
@@ -265,6 +368,7 @@ test_files:
|
|
265
368
|
- spec/integration/priority_spec.rb
|
266
369
|
- spec/integration/project_spec.rb
|
267
370
|
- spec/integration/rapidview_spec.rb
|
371
|
+
- spec/integration/resolution_spec.rb
|
268
372
|
- spec/integration/status_spec.rb
|
269
373
|
- spec/integration/transition_spec.rb
|
270
374
|
- spec/integration/user_spec.rb
|
@@ -287,6 +391,7 @@ test_files:
|
|
287
391
|
- spec/jira/resource/issuelink_spec.rb
|
288
392
|
- spec/jira/resource/project_factory_spec.rb
|
289
393
|
- spec/jira/resource/project_spec.rb
|
394
|
+
- spec/jira/resource/user_factory_spec.rb
|
290
395
|
- spec/jira/resource/worklog_spec.rb
|
291
396
|
- spec/mock_responses/attachment/10000.json
|
292
397
|
- spec/mock_responses/component.post.json
|
@@ -325,6 +430,8 @@ test_files:
|
|
325
430
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.issues.full.json
|
326
431
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.issues.json
|
327
432
|
- spec/mock_responses/rapidview/SAMPLEPROJECT.json
|
433
|
+
- spec/mock_responses/resolution.json
|
434
|
+
- spec/mock_responses/resolution/1.json
|
328
435
|
- spec/mock_responses/status.json
|
329
436
|
- spec/mock_responses/status/1.json
|
330
437
|
- spec/mock_responses/user_username=admin.json
|