sk_sdk 0.4.2 → 0.4.3

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
- SHA1:
3
- metadata.gz: f4839dca89d83678d55296ae73f6300c906e98dd
4
- data.tar.gz: 4e6bb9e07e7826097acc8e4c98731852bc1350e5
2
+ SHA256:
3
+ metadata.gz: 765868dde777bcdf0be0609eedb1f4d2b2fea1941557354b781ac8c98e1caf19
4
+ data.tar.gz: 94868793078e884ec7b67f5b1fe08c5d6f6aeba813288d96faec0e6922011909
5
5
  SHA512:
6
- metadata.gz: 8287d494d6c5436c52dd4798e505abcb3ba3ee37b46c50e92d279b77e6d32b8b9294d0038c5b262612a669d642259bb7823f598f1e41ff4d5498ac29c3d58499
7
- data.tar.gz: e103b0873d6708f807b9b26f29ef11ac1744eb4cf294ed3f5284ff90b8807d8f38b68ca2c3e25496b85709713d3991833cfd9de98a4d2b58f3a2c5110e56a408
6
+ metadata.gz: 1dcea467be43a510b463a75aec989a124a6a5f8fc99de2e4151d91b8a9f4b88406c5702f61634080c84a72e8c13d78facc31c936de058cf446f1abc0306c71b9
7
+ data.tar.gz: b3623c68a5c132bf8cbd87f32e4d71ca2ae5152a9a3903d40cbef940212dda0f362720145cc39fea12562ab072133072b0d1524007c5bd5010addd9dcadc4756
data/README.rdoc CHANGED
@@ -71,4 +71,4 @@ Before running the specs, add your SalesKing credentials to /spec/settings.yml
71
71
  BUNDLE_GEMFILE=ci/Gemfile_ar5 bundle install
72
72
  BUNDLE_GEMFILE=ci/Gemfile_ar5 bundle exec rake spec
73
73
 
74
- Copyright (c) 2011-2016 Georg Leciejewski, released under the MIT license
74
+ Copyright (c) 2011-2022 Georg Leciejewski, released under the MIT license
data/lib/sk_sdk/base.rb CHANGED
@@ -7,7 +7,7 @@ case ActiveResource::VERSION::MAJOR
7
7
  when 3
8
8
  require 'sk_sdk/ar_patches/ar3/base'
9
9
  require 'sk_sdk/ar_patches/ar3/validations'
10
- when 4,5
10
+ when 4,5,6
11
11
  require 'sk_sdk/ar_patches/ar4/validations'
12
12
  require 'sk_sdk/ar_patches/ar4/base'
13
13
  end
@@ -16,7 +16,13 @@ class SK::SDK::Base < ActiveResource::Base
16
16
  self.format = :json
17
17
  # hook before init in activeresource base because json comes in nested:
18
18
  # {client={data}
19
- if (ActiveResource::VERSION::MAJOR == 3 && ActiveResource::VERSION::MINOR > 0) || ActiveResource::VERSION::MAJOR > 3
19
+ if ActiveResource::VERSION::MAJOR == 6
20
+ self.include_root_in_json = true
21
+ def initialize(attributes = {}, persisted=false)
22
+ attr = attributes[self.class.element_name] || attributes
23
+ super(attr, persisted)
24
+ end
25
+ elsif (ActiveResource::VERSION::MAJOR == 3 && ActiveResource::VERSION::MINOR > 0) || ActiveResource::VERSION::MAJOR < 6
20
26
  self.include_root_in_json = true
21
27
  def initialize(attributes = {}, *args)
22
28
  attr = attributes[self.class.element_name] || attributes
@@ -1,5 +1,5 @@
1
1
  module SK
2
2
  module SDK
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sk_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-30 00:00:00.000000000 Z
12
+ date: 2022-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -159,8 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.6.14
162
+ rubygems_version: 3.0.9
164
163
  signing_key:
165
164
  specification_version: 4
166
165
  summary: SalesKing Ruby SDK - simplify your Business