cin7_api 1.1.4 → 1.1.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/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -1
- data/cin7_api.gemspec +46 -0
- data/lib/cin7_api/client.rb +1 -0
- data/lib/cin7_api/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0089750a41a104e3faa98e68accb8cf6bf803379dec4b5dec985b0be9591ce93'
|
|
4
|
+
data.tar.gz: f1c61070b4cfe846ee0942931fa976dd87b91ec37c3e7194eea91fb88153c3ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ca975f8cfd15d2e79a7bceeb5a9f8985801435f7cd280583ce3455106749cf2c22a96b0a163024e985895571cff83322965b4fe4f672fa915ebdb3f8ed00bf2
|
|
7
|
+
data.tar.gz: dfed5b6cb4a714d8abb62fad40c8355e1e7082df08581658a99c1ff53768b47a30ddcadb549cacbee3174aa8ea5cf809ba6abb1a09f8bb92a87093aff7a51168
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cin7_api (1.1.
|
|
4
|
+
cin7_api (1.1.5)
|
|
5
5
|
activesupport (~> 7.0)
|
|
6
6
|
faraday (~> 2.5)
|
|
7
7
|
zeitwerk
|
|
@@ -96,6 +96,7 @@ GEM
|
|
|
96
96
|
PLATFORMS
|
|
97
97
|
arm64-darwin-22
|
|
98
98
|
arm64-darwin-23
|
|
99
|
+
arm64-darwin-24
|
|
99
100
|
x86_64-darwin-21
|
|
100
101
|
x86_64-linux
|
|
101
102
|
|
data/cin7_api.gemspec
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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", "~> 7.0"
|
|
39
|
+
spec.add_dependency "zeitwerk"
|
|
40
|
+
spec.add_development_dependency("dotenv")
|
|
41
|
+
spec.add_development_dependency("standard", "~> 1.25.0")
|
|
42
|
+
spec.add_dependency "faraday", "~> 2.5"
|
|
43
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
44
|
+
spec.add_development_dependency("pry")
|
|
45
|
+
spec.add_development_dependency("vcr")
|
|
46
|
+
end
|
data/lib/cin7_api/client.rb
CHANGED
|
@@ -33,6 +33,7 @@ module Cin7API
|
|
|
33
33
|
def connection
|
|
34
34
|
@connection ||= Faraday.new do |conn|
|
|
35
35
|
conn.url_prefix = BASE_URL
|
|
36
|
+
conn.options.params_encoder = Faraday::FlatParamsEncoder
|
|
36
37
|
conn.request :json
|
|
37
38
|
conn.response :json, content_type: "application/json"
|
|
38
39
|
conn.adapter adapter
|
data/lib/cin7_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cin7_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wei Zhe Heng
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -108,7 +107,6 @@ dependencies:
|
|
|
108
107
|
- - ">="
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
109
|
version: '0'
|
|
111
|
-
description:
|
|
112
110
|
email:
|
|
113
111
|
- marcusheng@postco.co
|
|
114
112
|
executables: []
|
|
@@ -125,6 +123,7 @@ files:
|
|
|
125
123
|
- LICENSE.txt
|
|
126
124
|
- README.md
|
|
127
125
|
- Rakefile
|
|
126
|
+
- cin7_api.gemspec
|
|
128
127
|
- lib/cin7_api.rb
|
|
129
128
|
- lib/cin7_api/client.rb
|
|
130
129
|
- lib/cin7_api/errors.rb
|
|
@@ -150,7 +149,6 @@ metadata:
|
|
|
150
149
|
source_code_uri: https://github.com/PostCo/cin7_api
|
|
151
150
|
changelog_uri: https://github.com/PostCo/cin7_api/releases
|
|
152
151
|
rubygems_mfa_required: 'true'
|
|
153
|
-
post_install_message:
|
|
154
152
|
rdoc_options: []
|
|
155
153
|
require_paths:
|
|
156
154
|
- lib
|
|
@@ -165,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
163
|
- !ruby/object:Gem::Version
|
|
166
164
|
version: '0'
|
|
167
165
|
requirements: []
|
|
168
|
-
rubygems_version: 3.
|
|
169
|
-
signing_key:
|
|
166
|
+
rubygems_version: 3.6.9
|
|
170
167
|
specification_version: 4
|
|
171
168
|
summary: Cin7 API Wrapper
|
|
172
169
|
test_files: []
|