jira-ruby 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c75127a06e6226f648f380f18578b9c63d4f781f
4
- data.tar.gz: 8721b558929673f2ac4c54894c9ea5b76e3833a8
3
+ metadata.gz: e56d3c10b1bc942098e389b4e46ed38d0abaa8da
4
+ data.tar.gz: 6722f5c8625620140783befd00318dab133e5a38
5
5
  SHA512:
6
- metadata.gz: bb03466008cc9fcbce530a7eed8bb16e17d9c9c9313c98f2c12a068af0f52fa92e9c4fa841c7fca73d263527c2ae1a235579a6341def921c059a9c905cb7363a
7
- data.tar.gz: cf6d4f40e871b9b2849518041654988ab31c47e6f9a37e36abd81f8de554925755ca964f2f8545a1c360dba2383dfb2bd96394b0d78521214fd48adeae650c09
6
+ metadata.gz: 452b60b173d0feff6bfeacbd448e5d859f817797a84b200bd77ef122e71b0b322727677f3a50cdad877df2d7b457621ad8a0b707506ca90d0bc34c1b9f68a7fa
7
+ data.tar.gz: 2f976948dc6ea42f2d73b3a09c9abd1bd8ece5ead29df5dca04c0936a3abee8d6c247c4ff65bd21e22f56f829388da0dda5bd05b38cb78c5b89822619652fa1d
data/README.rdoc CHANGED
@@ -30,13 +30,7 @@ This gem provides access to the Atlassian JIRA REST API.
30
30
 
31
31
  On Mac OS,
32
32
 
33
- brew install atlassian-plugin-sdk
34
-
35
- Otherwise:
36
-
37
- * Download the SDK from https://developer.atlassian.com/ (You will need
38
- an Atlassian login for this)
39
- * Unpack the dowloaded archive
33
+ * Follow the instructions under "Mac OSX Installer" here: https://developer.atlassian.com/display/DOCS/Install+the+Atlassian+SDK+on+a+Linux+or+Mac+System
40
34
  * From within the archive directory, run:
41
35
 
42
36
  ./bin/atlas-run-standalone --product jira
data/lib/jira/client.rb CHANGED
@@ -23,6 +23,8 @@ module JIRA
23
23
  # :username => nil,
24
24
  # :password => nil,
25
25
  # :auth_type => :oauth
26
+ # :proxy_address => nil
27
+ # :proxy_port => nil
26
28
  #
27
29
  # See the JIRA::Base class methods for all of the available methods on these accessor
28
30
  # objects.
@@ -28,7 +28,12 @@ module JIRA
28
28
  end
29
29
 
30
30
  def http_conn(uri)
31
- http_conn = Net::HTTP.new(uri.host, uri.port)
31
+ if @options[:proxy_address]
32
+ http_class = Net::HTTP::Proxy(@options[:proxy_address], @options[:proxy_port] ? @options[:proxy_port] : 80)
33
+ else
34
+ http_class = Net::HTTP
35
+ end
36
+ http_conn = http_class.new(uri.host, uri.port)
32
37
  http_conn.use_ssl = @options[:use_ssl]
33
38
  http_conn.verify_mode = @options[:ssl_verify_mode]
34
39
  http_conn
data/lib/jira/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JIRA
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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: 0.1.5
4
+ version: 0.1.6
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: 2014-01-17 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth