kco_ruby 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -0
- data/README.md +13 -6
- data/Rakefile +8 -1
- data/kco_ruby.gemspec +3 -0
- data/lib/kco_ruby/digester.rb +1 -1
- data/lib/kco_ruby/version.rb +1 -1
- data/spec/spec_helper.rb +7 -2
- metadata +36 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26e16869313da84556e539f47fad3f9c2cda5194
|
4
|
+
data.tar.gz: b45d682aa9ff733a2f305d4255b0e81c61309df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9d78342dd8ecc1224d29e7ff55beee9566d103d53015f6d0a4699e8f16698e9be2522513de9e8fae049c5beac184b2c297588b183a584d5b4b83cc5aa79358
|
7
|
+
data.tar.gz: 6c41686394a70bf6cc92a6e05bb1790e6b8e11ca813a2e2f6782fce0cacae4ea0299c989923391c2e17998d7112d76cae09fa23e9acdaa66368065d9d8507535
|
data/.travis.yml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.0.0
|
4
|
+
- 2.1.1
|
5
|
+
|
6
|
+
addons:
|
7
|
+
code_climate:
|
8
|
+
repo_token:
|
9
|
+
secure: "WaXNU8k/aMEXYvYkfaisNGhLjYnuX7Ninr9Pr7A7R7GdKYkL7hBX2y7zskSiHNQuUFQEujCvse40qw2ZXmzK7lM3ZQlk1QS5r+4ZtwuwJIwJ3WeJvQCJmjoawCCT/KBktBXFtM8Omyzgr0oQnOjTZBiDg3F7sV0k+NutDrl3nhQ="
|
10
|
+
|
11
|
+
script: 'bundle exec rake'
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# KcoRuby
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/kco_ruby.svg)](http://badge.fury.io/rb/kco_ruby)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/significantbit/kco_ruby/badges/gpa.svg)](https://codeclimate.com/github/significantbit/kco_ruby)
|
5
|
+
[![Test Coverage](https://codeclimate.com/github/significantbit/kco_ruby/badges/coverage.svg)](https://codeclimate.com/github/significantbit/kco_ruby)
|
6
|
+
|
7
|
+
This gem is an unofficial port from Klarnas python API for Klarna Checkout
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -69,13 +73,16 @@ Or install it yourself as:
|
|
69
73
|
```
|
70
74
|
|
71
75
|
## Documentation
|
72
|
-
You can use the official documentation from http://developers.klarna.com for Python with
|
73
|
-
|
76
|
+
You can use the official documentation from http://developers.klarna.com for Python with two exceptions:
|
77
|
+
|
78
|
+
1. All classes are found in KcoRuby module
|
79
|
+
2. Use Ruby hashes instead of Python Dict
|
80
|
+
|
74
81
|
|
75
82
|
## Todo
|
76
|
-
Add more tests for not so happy paths
|
77
|
-
Add more examples
|
78
|
-
Add Exception classes
|
83
|
+
1. Add more tests for not so happy paths
|
84
|
+
2. Add more examples
|
85
|
+
3. Add Exception classes
|
79
86
|
|
80
87
|
## Contributing
|
81
88
|
|
data/Rakefile
CHANGED
data/kco_ruby.gemspec
CHANGED
@@ -18,10 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.required_ruby_version = '>= 2.0.0'
|
22
|
+
|
21
23
|
spec.add_dependency "sys-uname", "~> 0.9", '> 0.9.1'
|
22
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
23
25
|
spec.add_development_dependency "rake", "~> 10.3"
|
24
26
|
spec.add_development_dependency "rspec", "~> 3.1"
|
25
27
|
spec.add_development_dependency "webmock", "~> 1.8"
|
26
28
|
spec.add_development_dependency "simplecov", "~> 0.9"
|
29
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
27
30
|
end
|
data/lib/kco_ruby/digester.rb
CHANGED
data/lib/kco_ruby/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
require 'bundler/setup'
|
2
2
|
Bundler.setup
|
3
3
|
|
4
|
-
require
|
5
|
-
SimpleCov.start
|
4
|
+
require "codeclimate-test-reporter"
|
6
5
|
|
7
6
|
require 'webmock/rspec'
|
7
|
+
|
8
|
+
WebMock.disable_net_connect!(:allow => "codeclimate.com")
|
9
|
+
WebMock.disable_net_connect!(allow: %w{codeclimate.com})
|
10
|
+
CodeClimate::TestReporter.start
|
11
|
+
|
8
12
|
require 'kco_ruby'
|
9
13
|
|
14
|
+
|
10
15
|
RSpec.configure do |config|
|
11
16
|
|
12
17
|
end
|
metadata
CHANGED
@@ -1,105 +1,119 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kco_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Hagström
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sys-uname
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
|
-
- -
|
20
|
+
- - '>'
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.9.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.9'
|
30
|
-
- -
|
30
|
+
- - '>'
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.9.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.6'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.6'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '10.3'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '10.3'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '3.1'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '3.1'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: webmock
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '1.8'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '1.8'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: simplecov
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ~>
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0.9'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - ~>
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0.9'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: codeclimate-test-reporter
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
103
117
|
description: Klarna Checkout library
|
104
118
|
email:
|
105
119
|
- peter@significantbit.se
|
@@ -107,7 +121,8 @@ executables: []
|
|
107
121
|
extensions: []
|
108
122
|
extra_rdoc_files: []
|
109
123
|
files:
|
110
|
-
-
|
124
|
+
- .gitignore
|
125
|
+
- .travis.yml
|
111
126
|
- Gemfile
|
112
127
|
- LICENSE
|
113
128
|
- README.md
|
@@ -139,17 +154,17 @@ require_paths:
|
|
139
154
|
- lib
|
140
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
156
|
requirements:
|
142
|
-
- -
|
157
|
+
- - '>='
|
143
158
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
159
|
+
version: 2.0.0
|
145
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
161
|
requirements:
|
147
|
-
- -
|
162
|
+
- - '>='
|
148
163
|
- !ruby/object:Gem::Version
|
149
164
|
version: '0'
|
150
165
|
requirements: []
|
151
166
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.0.5
|
153
168
|
signing_key:
|
154
169
|
specification_version: 4
|
155
170
|
summary: A port of Klarna Checkout API to Ruby
|