splinter-pto 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24e7de1f599652ba95ed40fc4677b2ea0bd147160a703f15108f3adfda8b5e5e
4
- data.tar.gz: 651ece0474229c4961ccac4f414c35a93366d115cbfbb4e621b1ff07369308da
3
+ metadata.gz: 56ca9967773dfdf635ad536854b060577bf41e7efc37efb117279f40358737f5
4
+ data.tar.gz: 8e4d2b5329063680edb67fd132c7f293ec23cc51e6c3314b58ca8a60be5fbb52
5
5
  SHA512:
6
- metadata.gz: '019dd0c8d6124157e319a7242c37905e709bcc513519cf120360188379b86441f287f8026ba5a0b04ddd33e30d40b1669ddd54785d802be89892f625637cd2b9'
7
- data.tar.gz: f2496232f34200567cac8db3d65498e1bb3604d626c4c83dbbde16d700280d4f6c1c8a4acf56d75826025e5777f0dbb475f9f8ef70082981a78fbf12ebb4b967
6
+ metadata.gz: e888b01d5c453a9887f71d74499dcebc91797de5b95956546d7edf1a8825eef35f9c525efc1a14dcbcdabeaca108cf01217cee4af4b89860af7d05c9ab960e87
7
+ data.tar.gz: ff3ecd5d9b6dabc241a7797c2cf218214757289475764b0e4af29224a1818456be474211c25885c44912437d4ea9f190196a11b14206b034a582463d36ae795b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- splinter (0.1.0)
4
+ splinter-pto (0.1.1)
5
5
  rest-client (~> 2.0)
6
6
 
7
7
  GEM
@@ -81,7 +81,7 @@ DEPENDENCIES
81
81
  rubocop (~> 0.85)
82
82
  rubocop-packaging (~> 0.1)
83
83
  rubocop-rspec (~> 1.39)
84
- splinter!
84
+ splinter-pto!
85
85
 
86
86
  BUNDLED WITH
87
87
  2.1.4
data/README.md CHANGED
@@ -7,7 +7,7 @@ This is a wrapper for the [PTO Ninja API](https://treehoppr.com/api/documentatio
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'splinter'
10
+ gem 'splinter-pto'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- $ gem install splinter
19
+ $ gem install splinter-pto
20
20
 
21
21
  ## Usage
22
22
  # TODO
@@ -21,7 +21,7 @@ module Splinter
21
21
  result = RestClient.get(url, headers.merge({ params: params }))
22
22
  parsed_result = JSON.parse(result.body)
23
23
  url = parsed_result.dig('next')
24
- results << parsed_result['results']
24
+ results.concat(parsed_result['results'])
25
25
  break if url.nil? || parsed_result['results'].empty?
26
26
  end
27
27
  results
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Splinter
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splinter-pto
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
  - lien van den steen