pingdom-client 0.0.4.alpha → 0.0.5.alpha

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.
data/lib/pingdom.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Pingdom
2
2
 
3
- VERSION = '0.0.4.alpha'
3
+ VERSION = '0.0.5.alpha'
4
4
 
5
5
  class Error < RuntimeError
6
6
  end
@@ -6,13 +6,13 @@ module Pingdom
6
6
  attr_accessor :limit
7
7
 
8
8
  def initialize(options = {})
9
- @options = options.with_indifferent_access
9
+ @options = options.with_indifferent_access.reverse_merge(:http_driver => :excon)
10
10
  @connection = Faraday::Connection.new(:url => "https://api/pingdom.com/api/2.0/") do |builder|
11
11
  builder.url_prefix = "https://api.pingdom.com/api/2.0"
12
12
 
13
13
  builder.adapter :logger, @options[:logger]
14
14
 
15
- builder.adapter :excon
15
+ builder.adapter @options[:http_driver]
16
16
 
17
17
  # builder.use Gzip # TODO: write GZip response handler, add Accept-Encoding: gzip header
18
18
  builder.response :yajl
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{pingdom-client}
3
- s.version = "0.0.4.alpha"
3
+ s.version = "0.0.5.alpha"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Matt Todd"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingdom-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1851332178
4
+ hash: -1851332182
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
9
+ - 5
10
10
  - alpha
11
- version: 0.0.4.alpha
11
+ version: 0.0.5.alpha
12
12
  platform: ruby
13
13
  authors:
14
14
  - Matt Todd