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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77ef87bd3a416159a37c8a613e0c6ac38cf439c0
4
- data.tar.gz: 10517502170896710800a0391550bbaf0bc6c1c8
3
+ metadata.gz: f4839dca89d83678d55296ae73f6300c906e98dd
4
+ data.tar.gz: 4e6bb9e07e7826097acc8e4c98731852bc1350e5
5
5
  SHA512:
6
- metadata.gz: f5980bc0f780904a60a22f30b8b86049d5850f972f32fce402bde776da122fb12143e82c1c880f0f9d140c8aedee493d4e2bf491abe938e4ac898b131c378322
7
- data.tar.gz: 6c3ec2afb4b0b59efb00444c3f98bc400bb5ef226829782e7c4b6e41f5436b496436e2c6dc91ff084506c9d90a481901ceda0e71cf57e103942267e60c5d98b2
6
+ metadata.gz: 8287d494d6c5436c52dd4798e505abcb3ba3ee37b46c50e92d279b77e6d32b8b9294d0038c5b262612a669d642259bb7823f598f1e41ff4d5498ac29c3d58499
7
+ data.tar.gz: e103b0873d6708f807b9b26f29ef11ac1744eb4cf294ed3f5284ff90b8807d8f38b68ca2c3e25496b85709713d3991833cfd9de98a4d2b58f3a2c5110e56a408
@@ -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
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+ gem "rake"
3
+ gem "rdoc"
4
+ gem "activesupport", "5.2"
5
+ gem "activeresource", "5.0"
6
+ gem "sk_api_schema"
7
+ gem "curb"
8
+ group :test do
9
+ gem "rspec"
10
+ gem "simplecov"
11
+ end
@@ -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
@@ -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 == 4
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
 
@@ -1,5 +1,5 @@
1
1
  module SK
2
2
  module SDK
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
5
5
  end
@@ -77,8 +77,4 @@ describe Payment do
77
77
 
78
78
  end
79
79
 
80
- def destroy_payment
81
-
82
- end
83
-
84
80
  end
@@ -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.1
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: 2017-04-17 00:00:00.000000000 Z
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.4.8
163
+ rubygems_version: 2.6.14
162
164
  signing_key:
163
165
  specification_version: 4
164
166
  summary: SalesKing Ruby SDK - simplify your Business