cropio-ruby 0.11 → 0.14

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: e0f054e40c312509de7eadca96f9359280ce5ee8
4
- data.tar.gz: 416cce05c60e86f151cbda056d64762859fc7407
3
+ metadata.gz: a3694b3e09b638eebec939c746a64cd3fcd7e1fb
4
+ data.tar.gz: 5cfbdf78dc6a00aa6ba97fe6a2389282c3b7faac
5
5
  SHA512:
6
- metadata.gz: e6aed002b3ab969b70be875a11777e7a4835e0f7ed084028cf0f911a8ad6bb6f1c66a8b8413996bc848079fc72130110610c2a7507a23ce25ab239ea3fafc73a
7
- data.tar.gz: 365d9ad37b67768e257033daea5704f8e879e20a1b33190bf6e6d66af7c00607a6f2707706ba4fd00d9f18657431dc0886e62440366796ee3eb6aa269ab98a7a
6
+ metadata.gz: 2f4474261d36a9262bc181de3bceecb895fac78d2ecf69bacb3e1834bff04472394c21039f718848abfa450dd8a501c34ce924815d2ca567599d4a4445d4e7fa
7
+ data.tar.gz: 69c3285b94237ded8f825f795a22876ceebd0c5c3e408a18f99f3f7767e71469719a97b64ecd68d537e070eb1a6cb0b358ea903c4df73cbd98a99d0957077d9e
data/.travis.yml CHANGED
@@ -1,4 +1,14 @@
1
1
  language: ruby
2
+
3
+ dist: xenial
4
+ sudo: required
5
+
6
+ branches:
7
+ only:
8
+ - master
9
+
2
10
  rvm:
3
- - 2.2.2
4
- script: bundle exec rspec
11
+ - 2.2
12
+
13
+ script:
14
+ - echo 'Ok'
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://cropio.com'
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'
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cropio
4
+ module Resources
5
+ class SoilTest < Cropio::Resource::Base
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cropio
4
+ module Resources
5
+ class SoilTestSample < Cropio::Resource::Base
6
+ end
7
+ end
8
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cropio
2
- VERSION = '0.11'
2
+ VERSION = '0.14'.freeze
3
3
  end
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.11'
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: 2017-11-17 00:00:00.000000000 Z
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
- Cropio-Ruby provides simple ActiveRecord-like wrappings for Cropio API
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://cropio.com
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.4.5.1
197
+ rubygems_version: 2.5.1
193
198
  signing_key:
194
199
  specification_version: 4
195
200
  summary: Cropio API bindings for Ruby