uptimerobot 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5088ae822042249d75f565444c690f3b78004708
4
- data.tar.gz: c5010ef79778af6526571a622f55ed82720afed6
3
+ metadata.gz: 82d5e170641cb08fbf29051fa5773449de3ae206
4
+ data.tar.gz: e8b79c5ec5aaab40aed415bb1a6f90b41da7639d
5
5
  SHA512:
6
- metadata.gz: 2bb3f5238287aa6e8dba3080c97c23940ecd70332b590b5d93e8d1703d123cc2d311d32477ff49ef3a03fc8a65e4f3abea7fd644dd498b653d33d606e0c08e45
7
- data.tar.gz: 97ec87f9ec004dd86d02e13d7b6ccbeb9d018f4edf914c00240427efeb573a0bd521226f82a2eb3d32204df852897039b28278394b39987212ee5a0997d6b3cf
6
+ metadata.gz: 53a49f3e63dc3fcede29d3d4dc8338bc08ac058f048467826256a7efbfd3bed87171de15f1380dc0936a33837b3ea76edd99e6c712d12cc98370006047a80b21
7
+ data.tar.gz: 6edfe1d497d0ae681250379641119aab93d8e37e38d65b7eac66ef65560bc756dc2488d08560f3496418a96487e5d18b5a93f21913127a2ed76f3ec3f9cbffc0
data/README.md CHANGED
@@ -26,7 +26,7 @@ Or install it yourself as:
26
26
  ```ruby
27
27
  require 'uptimerobot'
28
28
 
29
- client = UptimeRobot::Client.new(api_key: 'u956-afus321g565fghr519')
29
+ client = UptimeRobot::Client.new(apiKey: 'u956-afus321g565fghr519')
30
30
 
31
31
  client.getMonitors
32
32
  # => {"stat"=>"ok",
@@ -19,9 +19,9 @@ class UptimeRobot::Client
19
19
  ]
20
20
 
21
21
  def initialize(options)
22
- @api_key = options.delete(:api_key)
22
+ @apiKey = options.delete(:apiKey)
23
23
 
24
- raise ':api_key is required' unless @api_key
24
+ raise ':apiKey is required' unless @apiKey
25
25
 
26
26
  options[:url] ||= ENDPOINT
27
27
 
@@ -59,7 +59,7 @@ class UptimeRobot::Client
59
59
 
60
60
  def request(method_name, params = {})
61
61
  params.update(
62
- :apiKey => @api_key,
62
+ :apiKey => @apiKey,
63
63
  :format => 'json',
64
64
  :noJsonCallback => 1
65
65
  )
@@ -1,3 +1,3 @@
1
1
  module UptimeRobot
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -9,7 +9,7 @@ DEFAULT_PARAMS = {
9
9
  def uptime_robot
10
10
  stubs = Faraday::Adapter::Test::Stubs.new
11
11
 
12
- described_class.new(api_key: 'ZAPZAPZAP') do |faraday|
12
+ described_class.new(apiKey: 'ZAPZAPZAP') do |faraday|
13
13
  faraday.adapter :test, stubs do |stub|
14
14
  yield(stub)
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uptimerobot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-25 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday