sk_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 +4 -4
- data/README.rdoc +4 -0
- data/ci/Gemfile_ar5 +11 -0
- data/ci/Gemfile_ar5.lock +68 -0
- data/lib/sk_sdk/base.rb +1 -1
- data/lib/sk_sdk/version.rb +1 -1
- data/spec/sk_sdk/resources/payment_spec.rb +0 -4
- data/spec/sk_sdk/resources/product_spec.rb +0 -7
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4839dca89d83678d55296ae73f6300c906e98dd
|
4
|
+
data.tar.gz: 4e6bb9e07e7826097acc8e4c98731852bc1350e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8287d494d6c5436c52dd4798e505abcb3ba3ee37b46c50e92d279b77e6d32b8b9294d0038c5b262612a669d642259bb7823f598f1e41ff4d5498ac29c3d58499
|
7
|
+
data.tar.gz: e103b0873d6708f807b9b26f29ef11ac1744eb4cf294ed3f5284ff90b8807d8f38b68ca2c3e25496b85709713d3991833cfd9de98a4d2b58f3a2c5110e56a408
|
data/README.rdoc
CHANGED
@@ -67,4 +67,8 @@ Before running the specs, add your SalesKing credentials to /spec/settings.yml
|
|
67
67
|
BUNDLE_GEMFILE=ci/Gemfile_ar3 bundle install
|
68
68
|
BUNDLE_GEMFILE=ci/Gemfile_ar3 bundle exec rake spec
|
69
69
|
|
70
|
+
#test with ActiveResource 5
|
71
|
+
BUNDLE_GEMFILE=ci/Gemfile_ar5 bundle install
|
72
|
+
BUNDLE_GEMFILE=ci/Gemfile_ar5 bundle exec rake spec
|
73
|
+
|
70
74
|
Copyright (c) 2011-2016 Georg Leciejewski, released under the MIT license
|
data/ci/Gemfile_ar5
ADDED
data/ci/Gemfile_ar5.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (5.2.0)
|
5
|
+
activesupport (= 5.2.0)
|
6
|
+
activemodel-serializers-xml (1.0.2)
|
7
|
+
activemodel (> 5.x)
|
8
|
+
activesupport (> 5.x)
|
9
|
+
builder (~> 3.1)
|
10
|
+
activeresource (5.0.0)
|
11
|
+
activemodel (>= 5.0, < 6)
|
12
|
+
activemodel-serializers-xml (~> 1.0)
|
13
|
+
activesupport (>= 5.0, < 6)
|
14
|
+
activesupport (5.2.0)
|
15
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
|
+
i18n (>= 0.7, < 2)
|
17
|
+
minitest (~> 5.1)
|
18
|
+
tzinfo (~> 1.1)
|
19
|
+
builder (3.2.3)
|
20
|
+
concurrent-ruby (1.0.5)
|
21
|
+
curb (0.9.6)
|
22
|
+
diff-lcs (1.3)
|
23
|
+
docile (1.3.1)
|
24
|
+
i18n (1.1.0)
|
25
|
+
concurrent-ruby (~> 1.0)
|
26
|
+
json (2.1.0)
|
27
|
+
minitest (5.11.3)
|
28
|
+
rake (12.3.1)
|
29
|
+
rdoc (6.0.4)
|
30
|
+
rspec (3.8.0)
|
31
|
+
rspec-core (~> 3.8.0)
|
32
|
+
rspec-expectations (~> 3.8.0)
|
33
|
+
rspec-mocks (~> 3.8.0)
|
34
|
+
rspec-core (3.8.0)
|
35
|
+
rspec-support (~> 3.8.0)
|
36
|
+
rspec-expectations (3.8.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.8.0)
|
39
|
+
rspec-mocks (3.8.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.8.0)
|
42
|
+
rspec-support (3.8.0)
|
43
|
+
simplecov (0.16.1)
|
44
|
+
docile (~> 1.1)
|
45
|
+
json (>= 1.8, < 3)
|
46
|
+
simplecov-html (~> 0.10.0)
|
47
|
+
simplecov-html (0.10.2)
|
48
|
+
sk_api_schema (0.11.0)
|
49
|
+
activesupport
|
50
|
+
thread_safe (0.3.6)
|
51
|
+
tzinfo (1.2.5)
|
52
|
+
thread_safe (~> 0.1)
|
53
|
+
|
54
|
+
PLATFORMS
|
55
|
+
ruby
|
56
|
+
|
57
|
+
DEPENDENCIES
|
58
|
+
activeresource (= 5.0)
|
59
|
+
activesupport (= 5.2)
|
60
|
+
curb
|
61
|
+
rake
|
62
|
+
rdoc
|
63
|
+
rspec
|
64
|
+
simplecov
|
65
|
+
sk_api_schema
|
66
|
+
|
67
|
+
BUNDLED WITH
|
68
|
+
1.16.0
|
data/lib/sk_sdk/base.rb
CHANGED
@@ -71,7 +71,7 @@ class SK::SDK::Base < ActiveResource::Base
|
|
71
71
|
|
72
72
|
# Unfortunately only using AR v4+ we can create additional accessors
|
73
73
|
# to get info on collection info and links
|
74
|
-
if ActiveResource::VERSION::MAJOR
|
74
|
+
if ActiveResource::VERSION::MAJOR >= 4
|
75
75
|
class SkCollection < ActiveResource::Collection
|
76
76
|
attr_accessor :current_page, :per_page, :total_entries, :total_pages
|
77
77
|
|
data/lib/sk_sdk/version.rb
CHANGED
@@ -44,13 +44,6 @@ else
|
|
44
44
|
product.name.should == @product.name
|
45
45
|
end
|
46
46
|
|
47
|
-
it "should edit a product" do
|
48
|
-
@product.name = 'A new product name'
|
49
|
-
@product.lock_version.should == 0
|
50
|
-
@product.save
|
51
|
-
@product.lock_version.should == 1 # because save returns the data
|
52
|
-
end
|
53
|
-
|
54
47
|
it "should fail edit a product" do
|
55
48
|
@product.name = ''
|
56
49
|
@product.save.should == false
|
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.2
|
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: 2018-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -110,6 +110,8 @@ files:
|
|
110
110
|
- Rakefile
|
111
111
|
- ci/Gemfile_ar3
|
112
112
|
- ci/Gemfile_ar3.lock
|
113
|
+
- ci/Gemfile_ar5
|
114
|
+
- ci/Gemfile_ar5.lock
|
113
115
|
- lib/sk_sdk.rb
|
114
116
|
- lib/sk_sdk/README.rdoc
|
115
117
|
- lib/sk_sdk/ar_patches/ar3/base.rb
|
@@ -158,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
160
|
version: '0'
|
159
161
|
requirements: []
|
160
162
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.6.14
|
162
164
|
signing_key:
|
163
165
|
specification_version: 4
|
164
166
|
summary: SalesKing Ruby SDK - simplify your Business
|