uptimerobot_cmd 0.3.1 → 0.3.2

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: 6d3c07825b9142c3ab8ac0af6cf3f6d4aa737f58
4
- data.tar.gz: 608173d37042a905e52d0400af4e4919951e6828
3
+ metadata.gz: 5b877d52bb12c20aceed5bdb99e02725acf2cd05
4
+ data.tar.gz: fe6d14c21870ae7fbf9791268489f20a01605ab0
5
5
  SHA512:
6
- metadata.gz: 24684369e5cb3939dbdeca57641be8c453567ea8266792f751971c1b42d190ebe45ca74ac5cdbe01ab70399c8c72e19a0ed2a6777e7182f72d4b4aeae1ef5783
7
- data.tar.gz: 7a073a9eda3ac8cfb3e3345cf1d48510461e7fd581d60451206435e00f784be4606191dc214a93b147646861c6ea5d2003306e848aaacd5034837841dd6f2f64
6
+ metadata.gz: 0727c4e106984120cf365f55082ea8e6e3e7831cd0da8852e28c1683feb60f1a8c5b3333305e57e4b1e5e6ff3fce096a8a29c902a5b54e170a29f1367786af04
7
+ data.tar.gz: 3fbb71f86ac52ee326df910b762698925b8b28f54dc21bf9413ef594b1c724791b1a8f201e5a660733e0abb7419a377740a9cd0bea5dc5f928d014a0bf302ea6
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Build Status](https://travis-ci.org/vigo/uptimerobot_cmd.svg?branch=master)](https://travis-ci.org/vigo/uptimerobot_cmd)
2
- ![Version](https://img.shields.io/badge/version-0.3.1-yellow.svg)
2
+ ![Version](https://img.shields.io/badge/version-0.3.2-yellow.svg)
3
3
 
4
4
 
5
5
  # UptimerobotCmd
@@ -1,3 +1,3 @@
1
1
  module UptimerobotCmd
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -55,12 +55,12 @@ module UptimerobotCmd
55
55
  limit: limit,
56
56
  offset: offset,
57
57
  }
58
- output = []
59
58
  response = HTTParty.get(::UptimerobotCmd.build_service_url(:get_monitors, options))
60
59
  total = response["total"].to_i
61
- output += response["monitors"]["monitor"]
60
+ output = response["monitors"]["monitor"]
62
61
 
63
62
  if total > limit
63
+ output = []
64
64
  max_pages = total / limit
65
65
  left_over = total % limit
66
66
  max_pages += 1 if left_over > 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uptimerobot_cmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uğur Özyılmazel