k3cloud-sdk 0.4.1 → 0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3d5427f36e12e1e388da43eccf61e2663c52603d480eb6fef15c3ea3891ea60
4
- data.tar.gz: 8ff167a6fe22be81d5949ebe59c0b3ab8b95dff4fa33ee266922af94e01d4460
3
+ metadata.gz: cb22e56d62809750b9a0184ca7c85f3d0b54cad33808cae01dea08f387e950d4
4
+ data.tar.gz: 8811b5a8226229361ba16038253540509c37a43ccebd193a973b4ce59670201b
5
5
  SHA512:
6
- metadata.gz: 24e064b03a1e76e2bc604a3c441e8132877110296895b99498a37535383fd1d0bd8f5e9a4c542e29e4076bb2f2a9e18682e00842c50ac12e151acd83e0b11476
7
- data.tar.gz: 1f808f707ff27c324763c4aa56f08285fa6b684a31a696bc496e55cdaacbc4cdad6aabd87b3b3616e4f5a60318b3eed57d4a6fc63e3209d7a8ad2de539e0db98
6
+ metadata.gz: 1ad03ae0ad58d2d5b11ab541f46f1786d76d2567d1e4ab24ab27fe991ac5031fa50a291ca620aeeafba5df934276d98c4dc82bae5e57f717d5ddf800f3329c76
7
+ data.tar.gz: 2b66ed76217f6984789149e893e35328163feed7e0be687ff99accf0cc802c22463791d0267957de4ffa9b14f0a2632bab4ada8be08b520f5f42223628727a3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- k3cloud-sdk (0.4.1)
4
+ k3cloud-sdk (0.4.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # K3cloud-sdk
2
- Ruby Gem for K3cloud API.
2
+ Ruby Gem for K3cloud OpenApi that uses cryptographic signature technology to avoid plaintext transmission of keys and enables automatic login.
3
3
 
4
4
  ## Installation
5
5
 
data/k3cloud.gemspec CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "k3cloud-sdk"
7
7
  spec.version = K3cloud::VERSION
8
8
  spec.authors = ["zevinto"]
9
- spec.email = ["aarontzf@yolanda.hk"]
9
+ spec.email = ["zevinto@163.com"]
10
10
 
11
11
  spec.summary = "Ruby Gem for K3cloud API."
12
- spec.description = "Ruby Gem for K3cloud API."
12
+ spec.description = "Ruby Gem for K3Cloud that uses cryptographic signature technology to avoid plaintext transmission of keys and enables automatic login."
13
13
  spec.homepage = "https://github.com/zevinto/k3cloud-sdk"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.0.0"
data/lib/k3cloud/http.rb CHANGED
@@ -29,7 +29,7 @@ module K3cloud
29
29
  request["User-Agent"] = "Kingdee/Ruby WebApi SDK"
30
30
  request.body = @body.to_json
31
31
  response = http.request(request)
32
- if response.code != 200 && response.code != 206
32
+ if response.code.to_i != 200 && response.code.to_i != 206
33
33
  raise StandardError, "status: #{response.code}, desc: #{response.body}"
34
34
  end
35
35
  response.body
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module K3cloud
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,18 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k3cloud-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zevinto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Ruby Gem for K3cloud API.
13
+ description: Ruby Gem for K3Cloud that uses cryptographic signature technology to
14
+ avoid plaintext transmission of keys and enables automatic login.
14
15
  email:
15
- - aarontzf@yolanda.hk
16
+ - zevinto@163.com
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []