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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/splinter/api.rb +1 -1
- data/lib/splinter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56ca9967773dfdf635ad536854b060577bf41e7efc37efb117279f40358737f5
|
4
|
+
data.tar.gz: 8e4d2b5329063680edb67fd132c7f293ec23cc51e6c3314b58ca8a60be5fbb52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e888b01d5c453a9887f71d74499dcebc91797de5b95956546d7edf1a8825eef35f9c525efc1a14dcbcdabeaca108cf01217cee4af4b89860af7d05c9ab960e87
|
7
|
+
data.tar.gz: ff3ecd5d9b6dabc241a7797c2cf218214757289475764b0e4af29224a1818456be474211c25885c44912437d4ea9f190196a11b14206b034a582463d36ae795b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
splinter (0.1.
|
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
|
data/lib/splinter/api.rb
CHANGED
@@ -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
|
24
|
+
results.concat(parsed_result['results'])
|
25
25
|
break if url.nil? || parsed_result['results'].empty?
|
26
26
|
end
|
27
27
|
results
|
data/lib/splinter/version.rb
CHANGED