my_john_deere_api 2.2.1 → 2.2.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
  SHA256:
3
- metadata.gz: eb14a8c4e0fb2065e96d8a7f9bcff1502c2af26f3d312992765aecf36d15000f
4
- data.tar.gz: 6d4095d5d77723b5b0e3e14dac54f414b28b998b6653fe85eecd7d2141de7aeb
3
+ metadata.gz: f2a0ea6da39733c6548ab2876234e2151e81a6e6014de61fa8fa84658d2d71fb
4
+ data.tar.gz: feda45426448cabf22f6cbbcdf08fd69e6c4d78921e2837a85407c54dec852a5
5
5
  SHA512:
6
- metadata.gz: 31c66ca8dad9ce28792a20c61323c967cffb704f006ff752f11492d60ab458e81f462b5aee043bab130d0941c9ac37f9c667a4f57bf77e4885930502d2952bb6
7
- data.tar.gz: f2dda7cbed562b64376dc86609048a2b55eef468a4b745ca1bc785da7fea38741b2adc8f396832419078758801369e4c2a03a95661b60728b7d814c29b6fdb12
6
+ metadata.gz: 8f19da2c83408ef7613ef628c9a15d97d6d15a248bef875ca5d4e9976b8d5d51b471a5673a1a6aaa77a3adbc87f1e9fb6ba8837a3d9aeda7df55dd8a80619ad6
7
+ data.tar.gz: be95fdfa597c60f743f8125e9cbb02a316bc9f6c1e52bf8265b2300ae04f7d59bc065198aee99971f5c7dbcdf0511aad0727e27331850d205a60bb0b9068d79d
@@ -1,5 +1,4 @@
1
1
  module MyJohnDeereApi::Errors
2
- require 'my_john_deere_api/errors/access_token_error'
3
2
  require 'my_john_deere_api/errors/invalid_record_error'
4
3
  require 'my_john_deere_api/errors/not_yet_implemented_error'
5
4
  require 'my_john_deere_api/errors/type_mismatch_error'
@@ -48,8 +48,6 @@ module MyJohnDeereApi
48
48
  # locations associated with this asset
49
49
 
50
50
  def locations
51
- raise AccessTokenError unless accessor
52
-
53
51
  return @locations if defined?(@locations)
54
52
  @locations = Request::Collection::AssetLocations.new(client, asset: id)
55
53
  end
@@ -14,8 +14,6 @@ module MyJohnDeereApi
14
14
  # flags associated with this organization
15
15
 
16
16
  def flags
17
- raise AccessTokenError unless accessor
18
-
19
17
  return @flags if defined?(@flags)
20
18
  @flags = Request::Collection::Flags.new(client, organization: organization_id, field: id)
21
19
  end
@@ -16,8 +16,6 @@ module MyJohnDeereApi
16
16
  # fields associated with this organization
17
17
 
18
18
  def fields
19
- raise AccessTokenError unless accessor
20
-
21
19
  return @fields if defined?(@fields)
22
20
  @fields = MyJohnDeereApi::Request::Collection::Fields.new(client, organization: id)
23
21
  end
@@ -26,8 +24,6 @@ module MyJohnDeereApi
26
24
  # assets associated with this organization
27
25
 
28
26
  def assets
29
- raise AccessTokenError unless accessor
30
-
31
27
  return @assets if defined?(@assets)
32
28
  @assets = MyJohnDeereApi::Request::Collection::Assets.new(client, organization: id)
33
29
  end
@@ -1,3 +1,3 @@
1
1
  module MyJohnDeereApi
2
- VERSION='2.2.1'
2
+ VERSION='2.2.2'
3
3
  end
@@ -2,10 +2,6 @@ require 'support/helper'
2
2
 
3
3
  describe 'MyJohnDeereApi Errors' do
4
4
  describe 'loading dependencies' do
5
- it 'loads AccessTokenError' do
6
- assert JD::AccessTokenError
7
- end
8
-
9
5
  it 'loads InvalidRecordError' do
10
6
  assert JD::InvalidRecordError
11
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_john_deere_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Bellmyer
@@ -107,7 +107,6 @@ files:
107
107
  - lib/my_john_deere_api/client.rb
108
108
  - lib/my_john_deere_api/consumer.rb
109
109
  - lib/my_john_deere_api/errors.rb
110
- - lib/my_john_deere_api/errors/access_token_error.rb
111
110
  - lib/my_john_deere_api/errors/invalid_record_error.rb
112
111
  - lib/my_john_deere_api/errors/not_yet_implemented_error.rb
113
112
  - lib/my_john_deere_api/errors/type_mismatch_error.rb
@@ -157,7 +156,6 @@ files:
157
156
  - test/lib/my_john_deere_api/authorize_test.rb
158
157
  - test/lib/my_john_deere_api/client_test.rb
159
158
  - test/lib/my_john_deere_api/consumer_test.rb
160
- - test/lib/my_john_deere_api/errors/access_token_error_test.rb
161
159
  - test/lib/my_john_deere_api/errors/invalid_record_error_test.rb
162
160
  - test/lib/my_john_deere_api/errors/not_yet_implemented_error_test.rb
163
161
  - test/lib/my_john_deere_api/errors/type_mismatch_error_test.rb
@@ -1,12 +0,0 @@
1
- module MyJohnDeereApi
2
- ##
3
- # This error is used in a context that will fail in the absence of
4
- # a valid oAuth access token. We have classes that may only need
5
- # access tokens for some use cases.
6
-
7
- class AccessTokenError < StandardError
8
- def initialize(message = "A valid oAuth Access Token must be supplied to use this feature.")
9
- super
10
- end
11
- end
12
- end
@@ -1,13 +0,0 @@
1
- require 'support/helper'
2
-
3
- describe 'MyJohnDeereApi::AccessTokenError' do
4
- it 'inherits from StandardError' do
5
- error = MyJohnDeereApi::AccessTokenError.new
6
- assert_kind_of StandardError, error
7
- end
8
-
9
- it 'has a default message' do
10
- error = MyJohnDeereApi::AccessTokenError.new
11
- assert_includes error.message, 'Access Token must be supplied'
12
- end
13
- end