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 +5 -5
- data/README.rdoc +1 -1
- data/lib/sk_sdk/base.rb +8 -2
- data/lib/sk_sdk/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 765868dde777bcdf0be0609eedb1f4d2b2fea1941557354b781ac8c98e1caf19
|
4
|
+
data.tar.gz: 94868793078e884ec7b67f5b1fe08c5d6f6aeba813288d96faec0e6922011909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
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
|
data/lib/sk_sdk/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
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
|