debitech_soap 0.0.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/Gemfile.lock +3 -3
- data/README.markdown +5 -5
- data/Rakefile +0 -1
- data/lib/debitech_soap.rb +1 -1
- data/lib/debitech_soap/version.rb +1 -1
- data/spec/debitech_soap_spec.rb +1 -1
- metadata +20 -22
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm ree@debitech_soap
|
1
|
+
rvm ree@debitech_soap --create
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
debitech_soap (0.0
|
4
|
+
debitech_soap (1.0.0)
|
5
5
|
mumboe-soap4r (~> 1.5.8.4)
|
6
6
|
|
7
7
|
GEM
|
@@ -12,8 +12,8 @@ GEM
|
|
12
12
|
thor (~> 0.14.6)
|
13
13
|
guard-rspec (0.5.0)
|
14
14
|
guard (>= 0.8.4)
|
15
|
-
httpclient (2.
|
16
|
-
mumboe-soap4r (1.5.8.
|
15
|
+
httpclient (2.3.3)
|
16
|
+
mumboe-soap4r (1.5.8.6)
|
17
17
|
httpclient (>= 2.1.1)
|
18
18
|
rake (0.9.2)
|
19
19
|
rspec (2.7.0)
|
data/README.markdown
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
[![Build Status](https://secure.travis-ci.org/joakimk/debitech_soap.png)](http://travis-ci.org/joakimk/debitech_soap)
|
2
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/joakimk/debitech_soap)
|
3
|
+
|
1
4
|
This is a wrapper of the DebiTech SOAP API. It's intended to be API compatible with the DebiTech Java client but also supports a more developer friendly syntax :).
|
2
5
|
|
6
|
+
If you're looking for a more complete solution, check the [debitech](https://github.com/barsoom/debitech) gem which uses this library for API access.
|
7
|
+
|
3
8
|
Installing
|
4
9
|
----
|
5
10
|
|
@@ -51,8 +56,3 @@ API docs
|
|
51
56
|
----
|
52
57
|
|
53
58
|
Get DIBSServerManual.pdf from the DIBS Manager.
|
54
|
-
|
55
|
-
CI
|
56
|
-
----
|
57
|
-
|
58
|
-
- DebitechSoap is continuously tested for compability with Ruby 1.9.3 (preview 1), Ruby 1.8.7 and JRuby 1.6.2.
|
data/Rakefile
CHANGED
data/lib/debitech_soap.rb
CHANGED
@@ -41,7 +41,7 @@ module DebitechSoap
|
|
41
41
|
|
42
42
|
def valid_credentials?
|
43
43
|
disable_stderr do
|
44
|
-
return_value(@client.checkSwedishPersNo(@api_credentials.merge({ :persNo => "
|
44
|
+
return_value(@client.checkSwedishPersNo(@api_credentials.merge({ :persNo => "5555555555" }))) == "true"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
data/spec/debitech_soap_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe DebitechSoap::API, "valid_credentials?" do
|
|
29
29
|
|
30
30
|
it "should call checkSwedishPersNo with the credentials and a valid swedish social security number" do
|
31
31
|
@client.should_receive(:checkSwedishPersNo).with(:shopName => "merchant_name", :userName => "api_user_name",
|
32
|
-
:password => "api_user_password", :persNo => "
|
32
|
+
:password => "api_user_password", :persNo => "5555555555").
|
33
33
|
and_return(mock(Object, :return => "true"))
|
34
34
|
|
35
35
|
api = DebitechSoap::API.new(:merchant => "merchant_name", :username => "api_user_name", :password => "api_user_password")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debitech_soap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.6
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|
@@ -18,13 +18,11 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date:
|
22
|
-
default_executable:
|
21
|
+
date: 2013-05-16 00:00:00 Z
|
23
22
|
dependencies:
|
24
23
|
- !ruby/object:Gem::Dependency
|
25
24
|
name: mumboe-soap4r
|
26
|
-
|
27
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
28
26
|
none: false
|
29
27
|
requirements:
|
30
28
|
- - ~>
|
@@ -36,12 +34,12 @@ dependencies:
|
|
36
34
|
- 8
|
37
35
|
- 4
|
38
36
|
version: 1.5.8.4
|
37
|
+
prerelease: false
|
39
38
|
type: :runtime
|
40
|
-
|
39
|
+
requirement: *id001
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: rake
|
43
|
-
|
44
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
45
43
|
none: false
|
46
44
|
requirements:
|
47
45
|
- - ">="
|
@@ -50,12 +48,12 @@ dependencies:
|
|
50
48
|
segments:
|
51
49
|
- 0
|
52
50
|
version: "0"
|
51
|
+
prerelease: false
|
53
52
|
type: :development
|
54
|
-
|
53
|
+
requirement: *id002
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: rspec
|
57
|
-
|
58
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
59
57
|
none: false
|
60
58
|
requirements:
|
61
59
|
- - ">="
|
@@ -64,12 +62,12 @@ dependencies:
|
|
64
62
|
segments:
|
65
63
|
- 0
|
66
64
|
version: "0"
|
65
|
+
prerelease: false
|
67
66
|
type: :development
|
68
|
-
|
67
|
+
requirement: *id003
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: guard
|
71
|
-
|
72
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
73
71
|
none: false
|
74
72
|
requirements:
|
75
73
|
- - ">="
|
@@ -78,12 +76,12 @@ dependencies:
|
|
78
76
|
segments:
|
79
77
|
- 0
|
80
78
|
version: "0"
|
79
|
+
prerelease: false
|
81
80
|
type: :development
|
82
|
-
|
81
|
+
requirement: *id004
|
83
82
|
- !ruby/object:Gem::Dependency
|
84
83
|
name: guard-rspec
|
85
|
-
|
86
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
87
85
|
none: false
|
88
86
|
requirements:
|
89
87
|
- - ">="
|
@@ -92,8 +90,9 @@ dependencies:
|
|
92
90
|
segments:
|
93
91
|
- 0
|
94
92
|
version: "0"
|
93
|
+
prerelease: false
|
95
94
|
type: :development
|
96
|
-
|
95
|
+
requirement: *id005
|
97
96
|
description: An implementation of the DebiTech Java API using pure ruby and the SOAP API.
|
98
97
|
email:
|
99
98
|
- joakim.kolsjo@gmail.com
|
@@ -122,7 +121,6 @@ files:
|
|
122
121
|
- lib/debitech_soap/version.rb
|
123
122
|
- lib/service.wsdl
|
124
123
|
- spec/debitech_soap_spec.rb
|
125
|
-
has_rdoc: true
|
126
124
|
homepage: http://github.com/joakimk/debitech_soap
|
127
125
|
licenses: []
|
128
126
|
|
@@ -152,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
150
|
requirements: []
|
153
151
|
|
154
152
|
rubyforge_project:
|
155
|
-
rubygems_version: 1.
|
153
|
+
rubygems_version: 1.8.25
|
156
154
|
signing_key:
|
157
155
|
specification_version: 3
|
158
156
|
summary: A pure ruby way to make payments with DebiTech
|