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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69d83496b40f9f3572eb474f5b39dc257e6fd5ad
4
- data.tar.gz: f2714c4b6ea7b99e9d82ce75a89c972c85456b4d
3
+ metadata.gz: 97de75462b83ea9c04fb0910eddf732c5affe625
4
+ data.tar.gz: 7484ca74f1e54531717ab252b15b411d9baaf69c
5
5
  SHA512:
6
- metadata.gz: a2ca3525d62c644406162c3f1fb1b9ee057443958d00ee2110848e5ba10b911dec04962f3b3cde41328284891a93de810acb1feda093d585f5c1b04d46693dbe
7
- data.tar.gz: 967b2056c8c55902150d88407453580d48997cd30abdf71e6c9f8f480e6cff38d5a24c849491b4f5da22cbd15fa1a7e0b46ddf3cf56f4beca8b8dcda8ba7b631
6
+ metadata.gz: f3514ced5a8b3562afd29aa60f46ba4a446b31710ed74c29578761d67d1104ec2823f6df2a4b34efd69214b25761661843b40f7813543d5599ab7399c6c99339
7
+ data.tar.gz: 5fce3d3e6c94a6652fde1443e12921c160f84716bcd5870f42a2760af5bb672a272fb9cd3e4c4caa1126eea1a6bb11c56741fcb9960ef6ce60f388ad502f86a7
@@ -17,7 +17,7 @@ module MyJohnDeere
17
17
  links: [
18
18
  self.owning_organization_link_item(organization_id)
19
19
  ],
20
- title: "The title on the map layer",
20
+ title: title,
21
21
  extent: {
22
22
  minimumLatitude: minimum_latitude,
23
23
  maximumLatitude: maximum_latitude,
@@ -1,3 +1,3 @@
1
1
  module MyJohnDeere
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -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 = 'http://rubygems.org/gems/myjohndeere'
13
+ s.homepage = 'https://github.com/psusmars/myjohndeere'
14
14
  s.license = 'MIT'
15
15
 
16
16
  s.add_dependency "oauth", ">= 0.5.3"
@@ -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\":\"The title on the map layer\",\"extent\":{\"minimumLatitude\":0,\"maximumLatitude\":1,\"minimumLongitude\":0,\"maximumLongitude\":1},\"legends\":{\"unitId\":\"foo\",\"ranges\":[{\"label\":\"bar\",\"minimum\":1,\"maximum\":2,\"hexColor\":\"#0BA74A\",\"percent\":15.0}]}}"
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.1
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: http://rubygems.org/gems/myjohndeere
80
+ homepage: https://github.com/psusmars/myjohndeere
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}