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 +4 -4
- data/lib/my_john_deere_api/errors.rb +0 -1
- data/lib/my_john_deere_api/model/asset.rb +0 -2
- data/lib/my_john_deere_api/model/field.rb +0 -2
- data/lib/my_john_deere_api/model/organization.rb +0 -4
- data/lib/my_john_deere_api/version.rb +1 -1
- data/test/lib/my_john_deere_api/errors_test.rb +0 -4
- metadata +1 -3
- data/lib/my_john_deere_api/errors/access_token_error.rb +0 -12
- data/test/lib/my_john_deere_api/errors/access_token_error_test.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2a0ea6da39733c6548ab2876234e2151e81a6e6014de61fa8fa84658d2d71fb
|
4
|
+
data.tar.gz: feda45426448cabf22f6cbbcdf08fd69e6c4d78921e2837a85407c54dec852a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f19da2c83408ef7613ef628c9a15d97d6d15a248bef875ca5d4e9976b8d5d51b471a5673a1a6aaa77a3adbc87f1e9fb6ba8837a3d9aeda7df55dd8a80619ad6
|
7
|
+
data.tar.gz: be95fdfa597c60f743f8125e9cbb02a316bc9f6c1e52bf8265b2300ae04f7d59bc065198aee99971f5c7dbcdf0511aad0727e27331850d205a60bb0b9068d79d
|
@@ -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
|
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.
|
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
|