myjohndeere 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 02a777b7787f90d5e37dc4e4b74953e95381d92d
4
- data.tar.gz: 378a2721904af871dbd3a824cbd2bafa68589131
3
+ metadata.gz: 7094d45f88b7a1f3a229931b550d6687c5bd406e
4
+ data.tar.gz: 935658bdcc9929de086baec3ae083dab1c451afc
5
5
  SHA512:
6
- metadata.gz: 53ab4da655908df5b9fba3fa956bda2485aa4e30be6a10a4793b7adf271e70449935607afa9ac82e4b8f0ce2ae70eb585e00de436e981d021f81fb144c52282b
7
- data.tar.gz: ef1643bf28600368f5ba3abbf26411e45585813abbb0ad4ebf5284e29722c347f8caaf5a3bec309d0a79dd80c0d989c1622f31130e79d395bbc6fd2658fc7a66
6
+ metadata.gz: f93bfd9472e28278ebd2eea785f55500f67c63ccf1578974000052e311b5c060047b42c60324db52029c73344c1b85e3705c4e950fb9ea5e67c82ccf204a1473
7
+ data.tar.gz: e813bba2847e0f66a5385a7a8ff13ac636cdfae4f87a8e2a51435071105bf7c110b2e7cbe7068102b1c0c9da7ba20d07ad4435caacaca35035f50a0275d32a2c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- myjohndeere (0.0.7)
4
+ myjohndeere (0.0.8)
5
5
  oauth (>= 0.5.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -69,11 +69,14 @@ Assuming you've created a MyJohnDeere::AccessToken using something from above, t
69
69
  ``` ruby
70
70
  organizations = MyJohnDeere::Organization.list(access_token)
71
71
 
72
- organizations.each do |organization|
73
- puts organization.fields.data
74
- end
72
+ loop do
73
+ organizations.each do |organization|
74
+ puts organization.fields.data
75
+ end
75
76
 
76
- organizations.has_more?
77
+ break if !organizations.has_more?
78
+ organizations.next_page!
79
+ end
77
80
 
78
81
  ```
79
82
 
data/lib/myjohndeere.rb CHANGED
@@ -26,6 +26,8 @@ require 'myjohndeere/list_object'
26
26
  require 'myjohndeere/single_resource'
27
27
  require 'myjohndeere/organization_owned_resource'
28
28
  require 'myjohndeere/api_support_item'
29
+ require 'myjohndeere/contribution_activation'
30
+ require 'myjohndeere/contribution_product'
29
31
 
30
32
  # API Sub-classes
31
33
  require 'myjohndeere/map_legend_item'
@@ -1,3 +1,3 @@
1
1
  module MyJohnDeere
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
data/spec/fixtures.json CHANGED
@@ -1,4 +1,86 @@
1
1
  {
2
+ "contribution_products" : {
3
+ "links":[
4
+ {
5
+ "rel":"self",
6
+ "uri":"https://sandboxapi.deere.com/platform/contributionDefinitions"
7
+ }
8
+ ],
9
+ "total":1,
10
+ "values":[
11
+ {
12
+ "@type":"ContributionDefinition",
13
+ "actionDefinitions":[
14
+ {
15
+ "@type":"ActionDefinition",
16
+ "uri":"http://example.com/",
17
+ "title":"Title on the Link",
18
+ "actionType":"WINDOW",
19
+ "displayType":"BUTTON",
20
+ "displayLocation":"MAIN_DETAIL",
21
+ "masterData":"ORGANIZATION",
22
+ "actionIcon":"NO_ICON"
23
+ }
24
+
25
+ ],
26
+ "id":"9da4ae59-37dd-4fb1-a89f-0f906a307da3",
27
+ "links":[
28
+ {
29
+ "@type":"Link",
30
+ "rel":"self",
31
+ "uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/9da4ae59-37dd-4fb1-a89f-0f906a307da3"
32
+ },
33
+ {
34
+ "@type":"Link",
35
+ "rel":"contributionProduct",
36
+ "uri":"https://sandboxapi.deere.com/platform/contributionProducts/32902911-9f40-41f3-99eb-b0638ed188a9"
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ },
42
+ "contribution_product" : {
43
+ "@type": "ContributionProduct",
44
+ "marketPlaceName": "PRODUCT_NAME",
45
+ "marketPlaceDescription": "PRODUCT_DESCRITPION",
46
+ "marketPlaceLogo": "https://jd-us01-isg-prod-system.s3.amazonaws.com/b2b/branding/32902911-9f40-41f3-99eb-b0638ed185y7",
47
+ "defaultLocale": "en-us",
48
+ "currentStatus": "APPROVED",
49
+ "id": "9bd2876a-c423-4a2a-8c25-bff66dde76fe",
50
+ "links": [
51
+ {
52
+ "@type": "Link",
53
+ "rel": "self",
54
+ "uri": "https://sandboxapi.deere.com/platform/contributionProducts/9bd2876a-c423-4a2a-8c25-bff66dde76fe"
55
+ },
56
+ {
57
+ "@type":"Link",
58
+ "rel":"contributionDefinition",
59
+ "uri":" https://sandboxapi.deere.com/platform/contributionProducts/355678a3-e789-48db-9e90-81ae05da114c/contributionDefinitions"
60
+ }
61
+ ]
62
+ },
63
+ "contribution_activation" : {
64
+ "@type": "ContributionActivation",
65
+ "activationStatus": "ACTIVATED",
66
+ "links": [
67
+ {
68
+ "@type": "Link",
69
+ "rel": "self",
70
+ "uri": "https://sandboxapi.deere.com/platform/contributionActivations/90d20db5-6bdd-466f-a0ec-17c6271a0a2a"
71
+ },
72
+ {
73
+ "@type": "Link",
74
+ "rel": "contributionProduct",
75
+ "uri": "https://sandboxapi.deere.com/platform/contributionProducts/9bd2876a-c423-4a2a-8c25-bff66dde76fe"
76
+ },
77
+ {
78
+ "@type": "Link",
79
+ "rel": "organization",
80
+ "uri": "https://sandboxapi.deere.com/platform/organizations/218665"
81
+ }
82
+ ]
83
+ },
2
84
  "file_resource" : {
3
85
  "links": [
4
86
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myjohndeere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Susmarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth