cin7_api 0.1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cin7_api/version.rb +1 -1
- data/lib/cin7_api.rb +9 -2
- metadata +1 -2
- data/cin7_api.gemspec +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ef4d3e34b8bc9f482bb344359db33c9f616638e0e67f0cee02de20277750af
|
4
|
+
data.tar.gz: 64b8c04ac3cb227ac1a8ec3e83c5592f4f8de7d7e4aaea2349ea0e6de974b7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d980925e1e68a16369fdbde259ef83b83b663d63d72fa141ee72e5d2500042d25343e12d77e79c194df914a6eb1ff2978168595e65d6614fd08a00eb49f4b53
|
7
|
+
data.tar.gz: 28bb4be922acfcc9f62d91b3fcc109699ab056153a60b3fcbfe6fe3c72957c3023ffef8ab764b82088babc0b1dbd1958764cb1388e456f7bee7f759cb574d676
|
data/lib/cin7_api/version.rb
CHANGED
data/lib/cin7_api.rb
CHANGED
@@ -7,9 +7,16 @@ loader = Zeitwerk::Loader.for_gem
|
|
7
7
|
loader.inflector.inflect(
|
8
8
|
"cin7_api" => "Cin7API"
|
9
9
|
)
|
10
|
-
loader.collapse("
|
11
|
-
loader.collapse("
|
10
|
+
loader.collapse("#{__dir__}/cin7_api/objects")
|
11
|
+
loader.collapse("#{__dir__}/cin7_api/resources")
|
12
12
|
loader.setup # ready!
|
13
13
|
|
14
14
|
module Cin7Api
|
15
|
+
require "cin7_api/resources/sales_order_resource"
|
16
|
+
require "cin7_api/resources/payment_resource"
|
17
|
+
require "cin7_api/resources/credit_note_resource"
|
18
|
+
require "cin7_api/objects/credit_note"
|
19
|
+
require "cin7_api/objects/payment"
|
20
|
+
require "cin7_api/objects/response"
|
21
|
+
require "cin7_api/objects/sales_order"
|
15
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cin7_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wei Zhe Heng
|
@@ -111,7 +111,6 @@ files:
|
|
111
111
|
- LICENSE.txt
|
112
112
|
- README.md
|
113
113
|
- Rakefile
|
114
|
-
- cin7_api.gemspec
|
115
114
|
- lib/cin7_api.rb
|
116
115
|
- lib/cin7_api/client.rb
|
117
116
|
- lib/cin7_api/error.rb
|
data/cin7_api.gemspec
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/cin7_api/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "cin7_api"
|
7
|
-
spec.version = Cin7API::VERSION
|
8
|
-
spec.authors = ["Wei Zhe Heng"]
|
9
|
-
spec.email = ["marcusheng@postco.co"]
|
10
|
-
|
11
|
-
spec.summary = "Cin7 API Wrapper"
|
12
|
-
spec.homepage = "https://github.com/PostCo/cin7_api"
|
13
|
-
spec.license = "MIT"
|
14
|
-
spec.required_ruby_version = ">= 2.6.0"
|
15
|
-
|
16
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
17
|
-
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/PostCo/cin7_api"
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/PostCo/cin7_api/releases"
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
-
end
|
28
|
-
end
|
29
|
-
spec.bindir = "exe"
|
30
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
-
spec.require_paths = ["lib"]
|
32
|
-
|
33
|
-
# Uncomment to register a new dependency of your gem
|
34
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
35
|
-
|
36
|
-
# For more information and examples about making a new gem, check out our
|
37
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
-
spec.add_dependency "activesupport"
|
39
|
-
spec.add_dependency "zeitwerk"
|
40
|
-
spec.add_development_dependency("dotenv")
|
41
|
-
spec.add_dependency "faraday", "~> 2.5"
|
42
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
43
|
-
spec.add_development_dependency("pry")
|
44
|
-
spec.add_development_dependency("vcr")
|
45
|
-
end
|