splinter-pto 0.1.1 → 0.1.2

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: 56ca9967773dfdf635ad536854b060577bf41e7efc37efb117279f40358737f5
4
- data.tar.gz: 8e4d2b5329063680edb67fd132c7f293ec23cc51e6c3314b58ca8a60be5fbb52
3
+ metadata.gz: 97f680557f8c6122b3e73eae844f4f7e3fa30fd364595c9d8477d069bc77c41d
4
+ data.tar.gz: 96bde8eb8547e092839641d7f332a26bd9ce25bd41821a99072dcd974c3ab76a
5
5
  SHA512:
6
- metadata.gz: e888b01d5c453a9887f71d74499dcebc91797de5b95956546d7edf1a8825eef35f9c525efc1a14dcbcdabeaca108cf01217cee4af4b89860af7d05c9ab960e87
7
- data.tar.gz: ff3ecd5d9b6dabc241a7797c2cf218214757289475764b0e4af29224a1818456be474211c25885c44912437d4ea9f190196a11b14206b034a582463d36ae795b
6
+ metadata.gz: 26aaee7c2175697048ee100e2e0a960083ffa1a062c2cea0e59ceca2bd545a408dec00be7cc5343b95aee415add1d048571c9c8b2ca5e993a9d278b425278687
7
+ data.tar.gz: 46da239476c2f4d6fc00fc3b4ecc3992aa8e80f9ee5f9bf55e31a180ef985cd2c7b1f8e6da72bf74876796e8d1c855cd50823e2dc856fcad96ec71d8a10caeed
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-09-01 14:54:03 UTC using RuboCop version 0.90.0.
3
+ # on 2020-10-30 09:28:15 UTC using RuboCop version 0.90.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -16,14 +16,15 @@ Packaging/GemspecGit:
16
16
  Exclude:
17
17
  - 'splinter.gemspec'
18
18
 
19
- # Offense count: 4
19
+ # Offense count: 6
20
20
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
21
21
  RSpec/VerifiedDoubles:
22
22
  Exclude:
23
23
  - 'spec/lib/splinter/api_spec.rb'
24
24
  - 'spec/lib/splinter/ooo_events_spec.rb'
25
+ - 'spec/lib/splinter/ooo_types_spec.rb'
25
26
 
26
- # Offense count: 2
27
+ # Offense count: 3
27
28
  # Cop supports --auto-correct.
28
29
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
29
30
  # SupportedStyles: single_quotes, double_quotes
@@ -31,3 +32,11 @@ Style/StringLiterals:
31
32
  Exclude:
32
33
  - 'spec/lib/splinter/api_spec.rb'
33
34
  - 'spec/lib/splinter/ooo_events_spec.rb'
35
+ - 'spec/lib/splinter/ooo_types_spec.rb'
36
+
37
+ # Offense count: 2
38
+ # Cop supports --auto-correct.
39
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
40
+ # URISchemes: http, https
41
+ Layout/LineLength:
42
+ Max: 121
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- splinter-pto (0.1.1)
4
+ splinter-pto (0.1.2)
5
5
  rest-client (~> 2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Splinter
2
2
 
3
- This is a wrapper for the [PTO Ninja API](https://treehoppr.com/api/documentation/ninja)
3
+ This is a wrapper for the [PTO by Roots API](https://www.tryroots.io/api-docs/pto)
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,9 +20,9 @@ module Splinter
20
20
  loop do
21
21
  result = RestClient.get(url, headers.merge({ params: params }))
22
22
  parsed_result = JSON.parse(result.body)
23
- url = parsed_result.dig('next')
24
23
  results.concat(parsed_result['results'])
25
- break if url.nil? || parsed_result['results'].empty?
24
+ url = parsed_result.dig('next')
25
+ break if url.nil?
26
26
  end
27
27
  results
28
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Splinter
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splinter-pto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-03 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json