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 CHANGED
@@ -1 +1 @@
1
- rvm ree@debitech_soap
1
+ rvm ree@debitech_soap --create
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- debitech_soap (0.0.5)
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.2.2)
16
- mumboe-soap4r (1.5.8.4)
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)
@@ -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
@@ -4,7 +4,6 @@ require 'rspec/core/rake_task'
4
4
  Bundler::GemHelper.install_tasks
5
5
 
6
6
  desc "Run all specs"
7
-
8
7
  RSpec::Core::RakeTask.new('spec') do |t|
9
8
  t.pattern = 'spec/**/*.rb'
10
9
  end
@@ -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 => "555555-5555" }))) == "true"
44
+ return_value(@client.checkSwedishPersNo(@api_credentials.merge({ :persNo => "5555555555" }))) == "true"
45
45
  end
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module DebitechSoap
2
- VERSION = "0.0.6"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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 => "555555-5555").
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: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 6
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: 2011-11-25 00:00:00 +01:00
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
- prerelease: false
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
- version_requirements: *id001
39
+ requirement: *id001
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rake
43
- prerelease: false
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
- version_requirements: *id002
53
+ requirement: *id002
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: rspec
57
- prerelease: false
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
- version_requirements: *id003
67
+ requirement: *id003
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: guard
71
- prerelease: false
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
- version_requirements: *id004
81
+ requirement: *id004
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: guard-rspec
85
- prerelease: false
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
- version_requirements: *id005
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.5.3
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