rcicindela 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. data/lib/rcicindela.rb +5 -3
  2. metadata +2 -2
data/lib/rcicindela.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'net/http'
2
2
 
3
3
  class RCicindela
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
 
6
6
  class APIError < StandardError
7
7
  attr_reader :response
@@ -53,8 +53,10 @@ class RCicindela
53
53
  end
54
54
 
55
55
  def get(path)
56
- Net::HTTP.start(host, port) do |http|
57
- http.open_timeout = http.read_timeout = timeout
56
+ http = Net::HTTP.new(host, port)
57
+ http.open_timeout = timeout
58
+ http.read_timeout = timeout
59
+ http.start do |http|
58
60
  response = http.get(path)
59
61
  if response.code =~ /^2/
60
62
  response.body
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcicindela
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-27 00:00:00 +09:00
12
+ date: 2009-05-28 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15