cropio-ruby 0.11 → 0.14
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/.travis.yml +12 -2
- data/LICENSE +21 -0
- data/cropio-ruby.gemspec +3 -2
- data/lib/cropio/resources/soil_test.rb +8 -0
- data/lib/cropio/resources/soil_test_sample.rb +8 -0
- data/lib/cropio/resources.rb +2 -0
- data/lib/cropio/version.rb +1 -1
- data/lib/cropio.rb +6 -0
- metadata +12 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3694b3e09b638eebec939c746a64cd3fcd7e1fb
|
|
4
|
+
data.tar.gz: 5cfbdf78dc6a00aa6ba97fe6a2389282c3b7faac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f4474261d36a9262bc181de3bceecb895fac78d2ecf69bacb3e1834bff04472394c21039f718848abfa450dd8a501c34ce924815d2ca567599d4a4445d4e7fa
|
|
7
|
+
data.tar.gz: 69c3285b94237ded8f825f795a22876ceebd0c5c3e408a18f99f3f7767e71469719a97b64ecd68d537e070eb1a6cb0b358ea903c4df73cbd98a99d0957077d9e
|
data/.travis.yml
CHANGED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 ynelin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/cropio-ruby.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
|
|
4
4
|
require 'cropio/version'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
Cropio-Ruby provides simple ActiveRecord-like wrappings for Cropio API
|
|
16
16
|
STR
|
|
17
17
|
|
|
18
|
-
spec.homepage = 'https://
|
|
18
|
+
spec.homepage = 'https://github.com/cropio/cropio-ruby'
|
|
19
19
|
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
21
21
|
f.match(%r{^(test|spec|features)/})
|
|
@@ -24,6 +24,7 @@ STR
|
|
|
24
24
|
spec.bindir = 'exe'
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
26
|
spec.require_paths = ['lib']
|
|
27
|
+
spec.license = 'MIT'
|
|
27
28
|
|
|
28
29
|
spec.add_dependency 'json'
|
|
29
30
|
spec.add_dependency 'rest-client'
|
data/lib/cropio/resources.rb
CHANGED
|
@@ -43,6 +43,8 @@ require_relative './resources/implement_region_mapping_item'
|
|
|
43
43
|
require_relative './resources/inventory_history_item'
|
|
44
44
|
require_relative './resources/automatic_alert'
|
|
45
45
|
require_relative './resources/photo'
|
|
46
|
+
require_relative './resources/soil_test'
|
|
47
|
+
require_relative './resources/soil_test_sample'
|
|
46
48
|
|
|
47
49
|
|
|
48
50
|
module Cropio
|
data/lib/cropio/version.rb
CHANGED
data/lib/cropio.rb
CHANGED
|
@@ -29,4 +29,10 @@ module Cropio
|
|
|
29
29
|
fail 'Cropio credentials should be a Hash or OpenStruct.'
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
# Setter for user api_token
|
|
34
|
+
# we can use this token for authenticate user without login and password
|
|
35
|
+
def self.api_token=(token)
|
|
36
|
+
@credentials = OpenStruct.new(api_token: token)
|
|
37
|
+
end
|
|
32
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cropio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.14'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Vernidub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -94,8 +94,9 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
-
description:
|
|
98
|
-
|
|
97
|
+
description: 'Cropio-Ruby provides simple ActiveRecord-like wrappings for Cropio API
|
|
98
|
+
|
|
99
|
+
'
|
|
99
100
|
email:
|
|
100
101
|
- info@cropio.com
|
|
101
102
|
executables: []
|
|
@@ -106,6 +107,7 @@ files:
|
|
|
106
107
|
- ".rspec"
|
|
107
108
|
- ".travis.yml"
|
|
108
109
|
- Gemfile
|
|
110
|
+
- LICENSE
|
|
109
111
|
- README.md
|
|
110
112
|
- Rakefile
|
|
111
113
|
- bin/console
|
|
@@ -160,6 +162,8 @@ files:
|
|
|
160
162
|
- lib/cropio/resources/plant_threat.rb
|
|
161
163
|
- lib/cropio/resources/satellite_image.rb
|
|
162
164
|
- lib/cropio/resources/seed.rb
|
|
165
|
+
- lib/cropio/resources/soil_test.rb
|
|
166
|
+
- lib/cropio/resources/soil_test_sample.rb
|
|
163
167
|
- lib/cropio/resources/user.rb
|
|
164
168
|
- lib/cropio/resources/user_role.rb
|
|
165
169
|
- lib/cropio/resources/user_role_assignment.rb
|
|
@@ -170,8 +174,9 @@ files:
|
|
|
170
174
|
- lib/cropio/resources/work_type.rb
|
|
171
175
|
- lib/cropio/resources/work_type_group.rb
|
|
172
176
|
- lib/cropio/version.rb
|
|
173
|
-
homepage: https://
|
|
174
|
-
licenses:
|
|
177
|
+
homepage: https://github.com/cropio/cropio-ruby
|
|
178
|
+
licenses:
|
|
179
|
+
- MIT
|
|
175
180
|
metadata: {}
|
|
176
181
|
post_install_message:
|
|
177
182
|
rdoc_options: []
|
|
@@ -189,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
194
|
version: '0'
|
|
190
195
|
requirements: []
|
|
191
196
|
rubyforge_project:
|
|
192
|
-
rubygems_version: 2.
|
|
197
|
+
rubygems_version: 2.5.1
|
|
193
198
|
signing_key:
|
|
194
199
|
specification_version: 4
|
|
195
200
|
summary: Cropio API bindings for Ruby
|