zoho_inventory 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 759cfb78a7c29a45dff7e841138f74ee48304b06
4
+ data.tar.gz: fe114c21d4abec900a377bf4d975918a295b939b
5
+ SHA512:
6
+ metadata.gz: 9cb3774f6fd8abc9a82b9bc04c582fd302cc328feeacca8d6d49a0a7cb3c14b4eae547814e02d3b7d975fb1bdc9cd6f4215858461e5ae899b5e7d9d35660ca3d
7
+ data.tar.gz: ccfbade7551a22a8ad946f56dfdf0fe51cb05fdf5e2640ebdd515d270cd1e9610de6aaf4ecca4f5e5eca8e2c70ffee46a3f4aa876ced95b557953a467de581d0
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.2.3
7
+ before_install: gem install bundler -v 1.16.5
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at vincent.rolea@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in zoho_inventory.gemspec
6
+ gemspec
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ zoho_inventory (0.1.0)
5
+ faraday (~> 0.15)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.5.2)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ crack (0.4.3)
13
+ safe_yaml (~> 1.0.0)
14
+ diff-lcs (1.3)
15
+ faraday (0.15.3)
16
+ multipart-post (>= 1.2, < 3)
17
+ hashdiff (0.3.7)
18
+ multipart-post (2.0.0)
19
+ public_suffix (3.0.3)
20
+ rake (10.5.0)
21
+ rspec (3.8.0)
22
+ rspec-core (~> 3.8.0)
23
+ rspec-expectations (~> 3.8.0)
24
+ rspec-mocks (~> 3.8.0)
25
+ rspec-core (3.8.0)
26
+ rspec-support (~> 3.8.0)
27
+ rspec-expectations (3.8.2)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.8.0)
30
+ rspec-mocks (3.8.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.8.0)
33
+ rspec-support (3.8.0)
34
+ safe_yaml (1.0.4)
35
+ webmock (3.4.2)
36
+ addressable (>= 2.3.6)
37
+ crack (>= 0.3.2)
38
+ hashdiff
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ bundler (~> 1.16)
45
+ rake (~> 10.0)
46
+ rspec (~> 3.0)
47
+ webmock (~> 3.4)
48
+ zoho_inventory!
49
+
50
+ BUNDLED WITH
51
+ 1.16.5
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Vincent Rolea
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,95 @@
1
+ ⚠️ This is a work in progress, only CRUD operations are available for Zoho models for now, and models will be added gradually.
2
+
3
+ # ZohoInventory
4
+
5
+ This gem is a wrapper for the Zoho Inventory API.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'zoho_inventory'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install zoho_inventory
22
+
23
+ ## Usage
24
+
25
+ ### Authentication
26
+
27
+ In order to authenticate to the Zoho Inventory API, do the following:
28
+
29
+ ```ruby
30
+ ZohoInventory.auth_token = "REPLACE_WITH_YOUR_AUTH_TOKEN"
31
+ ZohoInventory.organization_id = "REPLACE_WITH_YOUR_ORGANIZATION_ID"
32
+ ```
33
+
34
+ ### Errors
35
+
36
+ Every API call that result in an error from zoho will result in a `ZohoError` exception thrown.
37
+
38
+ ```ruby
39
+ begin
40
+ # Zoho API Call
41
+ ZohoInventory::Item.retrieve("item_id")
42
+ rescue ZohoError => e
43
+ # Exception thrown
44
+ puts e.message
45
+ end
46
+ ```
47
+
48
+ ### CRUD Operaions
49
+
50
+ The gem implements all CRUD operations available to the different Zoho models. [More info on available operations here](https://www.zoho.com/inventory/api/v1/)
51
+
52
+ For example, with items:
53
+
54
+ ```ruby
55
+ # Create an item
56
+ ZohoInventory::Item.create({ name: "Death Star", ... })
57
+
58
+ # List all items
59
+ ZohoInventory::Item.list
60
+
61
+ # Retrieve an item
62
+ ZohoInventory::Item.retrieve(item_id)
63
+
64
+ # Update an item
65
+ ZohoInventory.update(item_id, { name: "X-Wing", ... })
66
+
67
+ # Delete an item
68
+ ZohoInventory.delete(item_id)
69
+ ```
70
+
71
+ The Zoho models avaiable in the gem are: `organizations`, `items`, `users` and `contacts`.
72
+
73
+ Special model-specific actions such as `mark_as_active` will be added once all model CRUD actions are implemented. It will be documented below
74
+ ## Development
75
+
76
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
77
+
78
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
79
+
80
+ ## Contributing
81
+
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Virolea/zoho_inventory. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
83
+
84
+ ## License
85
+
86
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
87
+
88
+ ## Code of Conduct
89
+
90
+ Everyone interacting in the ZohoInventory project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/zoho_inventory/blob/master/CODE_OF_CONDUCT.md).
91
+
92
+
93
+ ## Contact
94
+
95
+ Ping me on [Twitter](https://twitter.com/V_Rolea) for any question!
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "zoho_inventory"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,39 @@
1
+ ## Version
2
+ require "zoho_inventory/version"
3
+
4
+ ## Dependencies
5
+ require 'faraday'
6
+ require 'json'
7
+
8
+ ## API client
9
+ require "zoho_inventory/client"
10
+ require "zoho_inventory/request"
11
+
12
+ ## API resources
13
+ # Abstract class
14
+ require "zoho_inventory/zoho_object"
15
+
16
+ # Models
17
+ require "zoho_inventory/contact"
18
+ require "zoho_inventory/item"
19
+ require "zoho_inventory/organization"
20
+ require "zoho_inventory/user"
21
+
22
+
23
+ ## Support
24
+ require 'zoho_inventory/util'
25
+
26
+ module ZohoInventory
27
+ @api_base = "https://inventory.zoho.com/api"
28
+
29
+ class << self
30
+ attr_accessor :organization_id, :auth_token, :api_base
31
+
32
+ def credentials
33
+ [ZohoInventory.organization_id, ZohoInventory.auth_token]
34
+ end
35
+ end
36
+
37
+ # Errors
38
+ class ZohoError < StandardError; end
39
+ end
@@ -0,0 +1,18 @@
1
+ module ZohoInventory
2
+ class Client
3
+ def self.default_client
4
+ @conn ||= set_conn
5
+ end
6
+
7
+ class << self
8
+ private
9
+
10
+ def set_conn
11
+ Faraday.new do |faraday|
12
+ faraday.request :url_encoded
13
+ faraday.adapter Faraday.default_adapter
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,7 @@
1
+ module ZohoInventory
2
+ class Contact < ZohoObject
3
+ accept_api_methods [:list, :create, :retrieve, :update, :delete]
4
+
5
+ OBJECT_NAME = "contact".freeze
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module ZohoInventory
2
+ class Item < ZohoObject
3
+ accept_api_methods [:list, :create, :retrieve, :update, :delete]
4
+
5
+ OBJECT_NAME = "item".freeze
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module ZohoInventory
2
+ class Organization < ZohoObject
3
+ accept_api_methods [:list, :create, :retrieve, :update]
4
+
5
+ OBJECT_NAME = "organization".freeze
6
+ end
7
+ end
@@ -0,0 +1,32 @@
1
+ module ZohoInventory
2
+ module Request
3
+ def request(method, path, object_name = nil, params = {})
4
+ client = Client.default_client
5
+ query_params = nil
6
+ headers = {}
7
+ url = build_url_from_path(path)
8
+ body = { JSONString: params.to_json }
9
+ r = client.run_request(method, url, body, headers) do |req|
10
+ req.params = query_params if query_params
11
+ end
12
+ response = JSON.parse(r.body)
13
+ handle_response(response, object_name)
14
+ end
15
+
16
+ private
17
+
18
+ def handle_response(response, object_name)
19
+ if response["code"] == 0
20
+ if object_name
21
+ object = Util.object_classes[object_name]
22
+ results = [response[object_name], response["#{object_name}s"]].compact[0]
23
+ else
24
+ response["message"]
25
+ end
26
+ else
27
+ message = response["message"]
28
+ raise ZohoError, message
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,7 @@
1
+ module ZohoInventory
2
+ class User < ZohoObject
3
+ accept_api_methods [:list, :create, :retrieve, :update, :delete]
4
+
5
+ OBJECT_NAME = "user".freeze
6
+ end
7
+ end
@@ -0,0 +1,21 @@
1
+ module ZohoInventory
2
+ module Util
3
+ def self.object_classes
4
+ @object_classes ||= {
5
+ Item::OBJECT_NAME => Item,
6
+ Contact::OBJECT_NAME => Contact,
7
+ Organization::OBJECT_NAME => Organization,
8
+ User::OBJECT_NAME => User
9
+ }
10
+ end
11
+
12
+ def self.remote_object_key
13
+ @remote_object_keys ||= {
14
+ Item::OBJECT_NAME => 'item',
15
+ Contact::OBJECT_NAME => 'contact',
16
+ Organization::OBJECT_NAME => 'organization',
17
+ User::OBJECT_NAME => 'user'
18
+ }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module ZohoInventory
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,86 @@
1
+ module ZohoInventory
2
+ class ZohoObject
3
+ # Zoho Object abstract class
4
+ # It implements methods common to all resources available from Zoho
5
+
6
+ extend Request
7
+ attr_reader :values
8
+
9
+ @list = false
10
+ @create = false
11
+ @retrieve = false
12
+ @update = false
13
+ @delete = false
14
+
15
+ def self.accept_api_methods(methods)
16
+ @list = methods.include? :list
17
+ @create = methods.include? :create
18
+ @retrieve = methods.include? :retrieve
19
+ @update = methods.include? :update
20
+ @delete = methods.include? :delete
21
+ end
22
+
23
+ def self.api_methods
24
+ {
25
+ list: @list,
26
+ create: @create ,
27
+ retrieve: @retrieve,
28
+ update: @update,
29
+ delete: @delete
30
+ }
31
+ end
32
+
33
+ class << self
34
+ private
35
+
36
+ def client
37
+ ZohoInventory::Client.new
38
+ end
39
+
40
+ def check_authorized_methods(method)
41
+ raise "You cannot call #{method.to_s} on this resource" unless api_methods[method]
42
+ end
43
+ end
44
+
45
+ def self.build_url_from_path(path, query_params = {})
46
+ api_base = ZohoInventory.api_base
47
+ organization_id, auth_token = ZohoInventory.credentials
48
+ query_params.merge!({ authtoken: auth_token, organization_id: organization_id })
49
+ encoded_params = URI.encode_www_form(query_params)
50
+ "#{api_base}#{path}?#{encoded_params}"
51
+ end
52
+
53
+ def self.resource_url
54
+ "/v1/#{self::OBJECT_NAME}s"
55
+ end
56
+
57
+ def self.object_key
58
+ Util.remote_object_key[self::OBJECT_NAME]
59
+ end
60
+
61
+ def self.list
62
+ check_authorized_methods(:list)
63
+ request(:get, resource_url, self::OBJECT_NAME)
64
+ end
65
+
66
+ def self.create(params = {})
67
+ check_authorized_methods(:create)
68
+ request(:post, resource_url, object_key, params)
69
+ end
70
+
71
+ def self.retrieve(id)
72
+ check_authorized_methods(:retrieve)
73
+ request(:get, "#{resource_url}/#{id}", self::OBJECT_NAME)
74
+ end
75
+
76
+ def self.update(id, params = {})
77
+ check_authorized_methods(:update)
78
+ request(:put, "#{resource_url}/#{id}", object_key, params)
79
+ end
80
+
81
+ def self.delete(id)
82
+ check_authorized_methods(:delete)
83
+ request(:delete, "#{resource_url}/#{id}")
84
+ end
85
+ end
86
+ end
data/test.rb ADDED
@@ -0,0 +1,15 @@
1
+ class SupClass
2
+ def metaclass
3
+ class << self; self; end
4
+ end
5
+ end
6
+
7
+ class TestClass < SupClass
8
+ def self.resource_url
9
+ name
10
+ end
11
+ end
12
+
13
+ p SupClass.new.metaclass
14
+ p TestClass.new.metaclass
15
+ p TestClass.resource_url
@@ -0,0 +1,30 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "zoho_inventory/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "zoho_inventory"
8
+ spec.version = ZohoInventory::VERSION
9
+ spec.authors = ["Vincent Rolea"]
10
+ spec.email = ["vincent.rolea@gmail.com"]
11
+
12
+ spec.summary = "Ruby wrapper for the Zoho Inventory API"
13
+ spec.license = "MIT"
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency "faraday", "~>0.15"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.16"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rspec", "~> 3.0"
29
+ spec.add_development_dependency "webmock", "~> 3.4"
30
+ end
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zoho_inventory
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Vincent Rolea
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.15'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.4'
83
+ description:
84
+ email:
85
+ - vincent.rolea@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/zoho_inventory.rb
102
+ - lib/zoho_inventory/client.rb
103
+ - lib/zoho_inventory/contact.rb
104
+ - lib/zoho_inventory/item.rb
105
+ - lib/zoho_inventory/organization.rb
106
+ - lib/zoho_inventory/request.rb
107
+ - lib/zoho_inventory/user.rb
108
+ - lib/zoho_inventory/util.rb
109
+ - lib/zoho_inventory/version.rb
110
+ - lib/zoho_inventory/zoho_object.rb
111
+ - test.rb
112
+ - zoho_inventory.gemspec
113
+ homepage:
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 2.6.13
134
+ signing_key:
135
+ specification_version: 4
136
+ summary: Ruby wrapper for the Zoho Inventory API
137
+ test_files: []