chicanery 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chicanery (0.0.8)
4
+ chicanery (0.0.9)
5
5
  nokogiri (~> 1)
6
6
 
7
7
  GEM
data/lib/chicanery.rb CHANGED
@@ -16,7 +16,7 @@ module Chicanery
16
16
  include Handlers
17
17
  include StateComparison
18
18
 
19
- VERSION = "0.0.8"
19
+ VERSION = "0.0.9"
20
20
 
21
21
  def poll_period seconds=nil
22
22
  @poll_period = seconds if seconds
@@ -21,7 +21,7 @@ module Chicanery
21
21
 
22
22
  def get
23
23
  req = Net::HTTP::Get.new(uri.path)
24
- req.basic_auth user, password if options[:user] and options[:password]
24
+ req.basic_auth options[:user], options[:password] if options[:user] and options[:password]
25
25
  res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https', verify_mode: OpenSSL::SSL::VERIFY_NONE) do |https|
26
26
  https.request(req)
27
27
  end
@@ -60,4 +60,4 @@ module Chicanery
60
60
  end
61
61
  end
62
62
  end
63
- end
63
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chicanery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-02 00:00:00.000000000 Z
12
+ date: 2013-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: 3689538563081558467
180
+ hash: 3346665369497425707
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: 3689538563081558467
189
+ hash: 3346665369497425707
190
190
  requirements: []
191
191
  rubyforge_project:
192
192
  rubygems_version: 1.8.23