myjohndeere 0.0.4 → 0.0.5
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/myjohndeere/map_layer_summary.rb +1 -1
 - data/lib/myjohndeere/version.rb +1 -1
 - data/test/test_map_layer_summary.rb +15 -2
 - 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: 5dafcc9c9950e6860dca3b81be39f5c9a0462bef
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3f7f45ba12ec9e0913e435740af627f69b8c0f06
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ac3c75d99618e470f6328ec10693b3e385e14227686de42b00347f6048b6e04e4ceafb525018d3e8a3a3bfd9a0e69194d2f23e0c7a6f79964e06c618c455cc0d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5f7b927077224fbdd045b7ab25127aeb0997e3bcd00e386c19b9f73ddca4d1838e5654cb4285c7c5d13fe17198440c84d6b58e9502a211794350b21d307047d1
         
     | 
    
        data/lib/myjohndeere/version.rb
    CHANGED
    
    
| 
         @@ -43,8 +43,21 @@ class TestMapLayerSummary < Minitest::Test 
     | 
|
| 
       43 
43 
     | 
    
         
             
                  FIELD_ID,
         
     | 
| 
       44 
44 
     | 
    
         
             
                  "Test number 2",
         
     | 
| 
       45 
45 
     | 
    
         
             
                  "Hello from farm lens again",
         
     | 
| 
       46 
     | 
    
         
            -
                  [MyJohnDeere::MetadataItem.new("key", "val")],
         
     | 
| 
       47 
     | 
    
         
            -
                  Time.parse("2016-01-02T16:14:23.421Z")
         
     | 
| 
      
 46 
     | 
    
         
            +
                  metadata: [MyJohnDeere::MetadataItem.new("key", "val")],
         
     | 
| 
      
 47 
     | 
    
         
            +
                  date_created: Time.parse("2016-01-02T16:14:23.421Z")
         
     | 
| 
      
 48 
     | 
    
         
            +
                )
         
     | 
| 
      
 49 
     | 
    
         
            +
                assert_equal MLS_ID, response.id
         
     | 
| 
      
 50 
     | 
    
         
            +
                assert_equal ORGANIZATION_ID, response.organization_id
         
     | 
| 
      
 51 
     | 
    
         
            +
              end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
              def test_create_with_empty_optionals
         
     | 
| 
      
 54 
     | 
    
         
            +
                stub_request(:post, /\/organizations\/#{ORGANIZATION_ID}\/fields\/#{FIELD_ID}\/mapLayerSummaries/).
         
     | 
| 
      
 55 
     | 
    
         
            +
                  to_return(status: 201, headers: {"Location"=>"https://sandboxapi.deere.com/platform/mapLayerSummaries/#{MLS_ID}"})
         
     | 
| 
      
 56 
     | 
    
         
            +
                response = MyJohnDeere::MapLayerSummary.create(default_access_token, 
         
     | 
| 
      
 57 
     | 
    
         
            +
                  ORGANIZATION_ID,
         
     | 
| 
      
 58 
     | 
    
         
            +
                  FIELD_ID,
         
     | 
| 
      
 59 
     | 
    
         
            +
                  "Test number 2",
         
     | 
| 
      
 60 
     | 
    
         
            +
                  "Hello from farm lens again"
         
     | 
| 
       48 
61 
     | 
    
         
             
                )
         
     | 
| 
       49 
62 
     | 
    
         
             
                assert_equal MLS_ID, response.id
         
     | 
| 
       50 
63 
     | 
    
         
             
                assert_equal ORGANIZATION_ID, response.organization_id
         
     | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.5
         
     | 
| 
       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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-09-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: oauth
         
     |