jira-ruby 1.1.2 → 1.1.3
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/README.rdoc +1 -0
- data/jira-ruby.gemspec +3 -1
- data/lib/jira/base.rb +3 -5
- data/lib/jira/resource/issue.rb +3 -2
- data/lib/jira/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72616e61b52a45892a4fa86713ca5c9847440c42
|
4
|
+
data.tar.gz: 7aae22f02bcf7c91bb0dff21e5d55aa3ba828eee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9b54e4bd78bb5aef39937772720382c79c221caa7bcfa711dd7a3eddd80f047b60d51874bb61ecd4489a28030f840125bbb713c7e75aa5e75a24f6017f7b76f
|
7
|
+
data.tar.gz: 66bbc3c25c56c03d37a00ffa38d520c8842f50e614ae96007b8202c0050cd8954189cf97e3ba62dcbb7ca9f0a8092815d723f2dc078ec126a0aab72bba5c4a33
|
data/README.rdoc
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
= JIRA API Gem
|
2
2
|
{<img src="https://codeclimate.com/github/sumoheavy/jira-ruby.png" />}[https://codeclimate.com/github/sumoheavy/jira-ruby]
|
3
3
|
{<img src="https://travis-ci.org/sumoheavy/jira-ruby.png?branch=master" />}[https://travis-ci.org/sumoheavy/jira-ruby]
|
4
|
+
{<img alt='Stories in Ready' src='https://badge.waffle.io/sumoheavy/jira-ruby.svg?label=ready&title=Ready' />}[https://waffle.io/sumoheavy/jira-ruby]
|
4
5
|
|
5
6
|
This gem provides access to the Atlassian JIRA REST API.
|
6
7
|
|
data/jira-ruby.gemspec
CHANGED
@@ -11,6 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.description = %q{API for JIRA}
|
12
12
|
s.licenses = ['MIT']
|
13
13
|
|
14
|
+
s.required_ruby_version = '>= 1.9.3'
|
15
|
+
|
14
16
|
s.rubyforge_project = 'jira-ruby'
|
15
17
|
|
16
18
|
s.files = `git ls-files`.split("\n")
|
@@ -18,7 +20,7 @@ Gem::Specification.new do |s|
|
|
18
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
21
|
s.require_paths = ['lib']
|
20
22
|
|
21
|
-
#
|
23
|
+
# Runtime Dependencies
|
22
24
|
s.add_runtime_dependency 'oauth', '~> 0.5', '>= 0.5.0'
|
23
25
|
s.add_runtime_dependency 'activesupport'
|
24
26
|
|
data/lib/jira/base.rb
CHANGED
@@ -494,11 +494,9 @@ module JIRA
|
|
494
494
|
end
|
495
495
|
|
496
496
|
def url_with_query_params(url, query_params)
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
url
|
501
|
-
end
|
497
|
+
uri = URI.parse(url)
|
498
|
+
uri.query = uri.query.nil? ? "#{hash_to_query_string query_params}" : "#{uri.query}&#{hash_to_query_string query_params}" unless query_params.empty?
|
499
|
+
uri.to_s
|
502
500
|
end
|
503
501
|
|
504
502
|
def hash_to_query_string(query_params)
|
data/lib/jira/resource/issue.rb
CHANGED
@@ -48,12 +48,13 @@ module JIRA
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
def self.jql(client, jql, options = {fields: nil, start_at: nil, max_results: nil, expand: nil})
|
52
|
-
url = client.options[:rest_base_path] + "/search?jql
|
51
|
+
def self.jql(client, jql, options = {fields: nil, start_at: nil, max_results: nil, expand: nil, validate_query: true})
|
52
|
+
url = client.options[:rest_base_path] + "/search?jql=#{CGI.escape(jql)}"
|
53
53
|
|
54
54
|
url << "&fields=#{options[:fields].map{ |value| CGI.escape(client.Field.name_to_id(value)) }.join(',')}" if options[:fields]
|
55
55
|
url << "&startAt=#{CGI.escape(options[:start_at].to_s)}" if options[:start_at]
|
56
56
|
url << "&maxResults=#{CGI.escape(options[:max_results].to_s)}" if options[:max_results]
|
57
|
+
url << "&validateQuery=false" if options[:validate_query] === false
|
57
58
|
|
58
59
|
if options[:expand]
|
59
60
|
options[:expand] = [options[:expand]] if options[:expand].is_a?(String)
|
data/lib/jira/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jira-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
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-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth
|
@@ -333,7 +333,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
333
|
requirements:
|
334
334
|
- - ">="
|
335
335
|
- !ruby/object:Gem::Version
|
336
|
-
version:
|
336
|
+
version: 1.9.3
|
337
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
338
|
requirements:
|
339
339
|
- - ">="
|
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
341
|
version: '0'
|
342
342
|
requirements: []
|
343
343
|
rubyforge_project: jira-ruby
|
344
|
-
rubygems_version: 2.
|
344
|
+
rubygems_version: 2.6.4
|
345
345
|
signing_key:
|
346
346
|
specification_version: 4
|
347
347
|
summary: Ruby Gem for use with the Atlassian JIRA REST API
|