spot-gps 0.2.6 → 0.3.0

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
- SHA1:
3
- metadata.gz: 51c4424974f0cab687480915690b58e96c0479ae
4
- data.tar.gz: ec19777f98dce748a525507563b639d2f254fc39
2
+ SHA256:
3
+ metadata.gz: 6069293c6ee459b7252e78b8b25c272a7d0f5e20423a1011e93885fc4b4dbe39
4
+ data.tar.gz: 4b4bcd4a0bbd44c33dae37c26350def3b33a7c45b2146fa94c483decb2227c36
5
5
  SHA512:
6
- metadata.gz: 5b9994806991681edb9ebb1d521d7890e32d4e55d6ac410bd2017f647420462b40917d160466e0d49e041410817f08fcaf39d4fda78cdf9b0286e32864dceba6
7
- data.tar.gz: d42634f8b6f36de4c0bfe30e70271d154b606439a5edcf50feb3acfc7f125e26fb83c1d50da5be83e217a1bb211ba8569e0df1ca0cf09ec5228a2ce8be5ee357
6
+ metadata.gz: a2e725dede5dff4c2689a64bc449eac116c6b72508c0ade0414463f376478492985cbe9ff525cd727e5dd35e378b8d1aa36105d4419108b11c03822cdc339bfe
7
+ data.tar.gz: f7b90ccca8a9deb640432fb906a057cc44c7ad2c7cc26abc5e99273d78b750b29f4cd2f50f2596149d988a48c1efe7d3775ba0d48f38850f6769fcd775e347b5
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
data/.travis.yml CHANGED
@@ -1,16 +1,9 @@
1
1
  language: ruby
2
2
 
3
- matrix:
4
- allow_failures:
5
- - rvm: jruby
6
- - rvm: rbx-2
7
-
8
3
  rvm:
9
- - '2.3.1'
10
- - '2.2'
11
- - '2.1'
12
- - jruby
13
- - rbx-2
4
+ - '2.6'
5
+ - '2.5'
6
+ - '2.4'
14
7
 
15
8
  script:
16
9
  - bundle exec rspec spec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## v0.3.0, 4 January 2022
2
+
3
+ - Support faraday 2.x
4
+
5
+ ## v0.2.9, 1 January 2020
6
+
7
+ - Support faraday 1.x
8
+
9
+ ## v0.2.8, 7 October 2019
10
+
11
+ - Support faraday 0.17.0
12
+
13
+ ## v0.2.7, 20 April 2018
14
+
15
+ - Support faraday 0.15.0
16
+
1
17
  ## v0.2.6, 15 August 2017
2
18
 
3
19
  - Support faraday 0.13.0
@@ -14,7 +14,10 @@ module SPOT
14
14
  }
15
15
  }
16
16
 
17
- @connection = Faraday.new(base_uri, connection_options)
17
+ @connection =
18
+ Faraday.new(base_uri, connection_options) do |f|
19
+ f.adapter Faraday::Adapter::NetHttp
20
+ end
18
21
  end
19
22
 
20
23
  # Make a GET request to the SPOT API
@@ -1,3 +1,3 @@
1
1
  module SPOT
2
- VERSION = '0.2.6'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
data/lib/spot.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'json'
2
- require 'faraday'
2
+ require 'faraday/net_http'
3
3
 
4
4
  require 'spot-gps/version'
5
5
  require 'spot-gps/configuration'
data/spec/client_spec.rb CHANGED
@@ -11,7 +11,11 @@ describe SPOT::Client do
11
11
 
12
12
  context 'when initialised without a feed ID' do
13
13
  let(:feed_id) { nil }
14
- it { is_expected.to raise_error('feed_id is required') }
14
+
15
+ it 'raises a helpful error' do
16
+ expect { described_class.new(options) }.
17
+ to raise_error('feed_id is required')
18
+ end
15
19
  end
16
20
 
17
21
  context 'when initialised without a password' do
data/spot-gps.gemspec CHANGED
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'rspec', '~> 3.5'
26
26
  spec.add_development_dependency 'rspec-its', '~> 1.0'
27
27
 
28
- spec.add_dependency 'faraday', ">= 0.8.9", "< 0.14"
28
+ spec.add_dependency 'faraday-net_http', ">= 2.0.0", "< 3.0.0"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spot-gps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grey Baker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webmock
@@ -59,31 +59,32 @@ dependencies:
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: faraday
62
+ name: faraday-net_http
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 0.8.9
67
+ version: 2.0.0
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
- version: '0.14'
70
+ version: 3.0.0
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.9
77
+ version: 2.0.0
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.14'
80
+ version: 3.0.0
81
81
  description:
82
82
  email: greysteil@gmail.com
83
83
  executables: []
84
84
  extensions: []
85
85
  extra_rdoc_files: []
86
86
  files:
87
+ - ".github/dependabot.yml"
87
88
  - ".gitignore"
88
89
  - ".travis.yml"
89
90
  - CHANGELOG.md
@@ -134,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  - !ruby/object:Gem::Version
135
136
  version: '0'
136
137
  requirements: []
137
- rubyforge_project:
138
- rubygems_version: 2.6.11
138
+ rubygems_version: 3.1.4
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: A wrapper for the SPOT API