myjohndeere 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/myjohndeere/map_layer.rb +1 -1
- data/lib/myjohndeere/version.rb +1 -1
- data/myjohndeere.gemspec +1 -1
- data/test/test_map_layer.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97de75462b83ea9c04fb0910eddf732c5affe625
|
4
|
+
data.tar.gz: 7484ca74f1e54531717ab252b15b411d9baaf69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3514ced5a8b3562afd29aa60f46ba4a446b31710ed74c29578761d67d1104ec2823f6df2a4b34efd69214b25761661843b40f7813543d5599ab7399c6c99339
|
7
|
+
data.tar.gz: 5fce3d3e6c94a6652fde1443e12921c160f84716bcd5870f42a2760af5bb672a272fb9cd3e4c4caa1126eea1a6bb11c56741fcb9960ef6ce60f388ad502f86a7
|
data/lib/myjohndeere/version.rb
CHANGED
data/myjohndeere.gemspec
CHANGED
@@ -10,7 +10,7 @@ spec = Gem::Specification.new do |s|
|
|
10
10
|
s.description = ' MyJohnDeere is used to make data-driven decisions to maximize your return on every acre. This Ruby Gem is provided as a convenient way to access their API.'
|
11
11
|
s.author = 'Paul Susmarski'
|
12
12
|
s.email = 'paul@susmarski.com'
|
13
|
-
s.homepage = '
|
13
|
+
s.homepage = 'https://github.com/psusmars/myjohndeere'
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
16
16
|
s.add_dependency "oauth", ">= 0.5.3"
|
data/test/test_map_layer.rb
CHANGED
@@ -36,7 +36,7 @@ class TestMapLayer < Minitest::Test
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def test_create
|
39
|
-
expected_body = "{\"links\":[{\"rel\":\"owningOrganization\",\"uri\":\"https://sandboxapi.deere.com/platform/organizations/1234\"}],\"title\":\"
|
39
|
+
expected_body = "{\"links\":[{\"rel\":\"owningOrganization\",\"uri\":\"https://sandboxapi.deere.com/platform/organizations/1234\"}],\"title\":\"blah\",\"extent\":{\"minimumLatitude\":0,\"maximumLatitude\":1,\"minimumLongitude\":0,\"maximumLongitude\":1},\"legends\":{\"unitId\":\"foo\",\"ranges\":[{\"label\":\"bar\",\"minimum\":1,\"maximum\":2,\"hexColor\":\"#0BA74A\",\"percent\":15.0}]}}"
|
40
40
|
stub_request(:post, /mapLayerSummaries\/#{MLS_ID}\/mapLayers/).
|
41
41
|
with(body: expected_body,
|
42
42
|
headers: {'Accept'=>'application/vnd.deere.axiom.v3+json', 'Content-Length'=>expected_body.length, 'Content-Type'=>'application/vnd.deere.axiom.v3+json'}).
|
@@ -45,6 +45,7 @@ class TestMapLayer < Minitest::Test
|
|
45
45
|
MLS_ID,
|
46
46
|
ORGANIZATION_ID,
|
47
47
|
minimum_latitude: 0, minimum_longitude: 0, maximum_latitude: 1, maximum_longitude: 1,
|
48
|
+
title: "blah",
|
48
49
|
map_layer_id: "foo", map_legend_items: [MyJohnDeere::MapLegendItem.new("bar", 1, 2, "#0BA74A", 15.0)]
|
49
50
|
)
|
50
51
|
assert_equal MAP_LAYER_ID, response
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myjohndeere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Susmarski
|
@@ -77,7 +77,7 @@ files:
|
|
77
77
|
- test/test_requestable.rb
|
78
78
|
- test/test_rest_methods.rb
|
79
79
|
- test/test_util.rb
|
80
|
-
homepage:
|
80
|
+
homepage: https://github.com/psusmars/myjohndeere
|
81
81
|
licenses:
|
82
82
|
- MIT
|
83
83
|
metadata: {}
|