payme 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/payme.rb +7 -10
- data/lib/payme/request/binary.rb +1 -1
- data/payme.gemspec +3 -4
- data/spec/payme/request/binary_spec.rb +6 -0
- metadata +25 -37
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/lib/payme.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
autoload :ResponseBinary, 'payme/response/binary'
|
11
|
-
|
12
|
-
end
|
3
|
+
require 'payme/config'
|
4
|
+
require 'payme/errors'
|
5
|
+
require 'payme/request'
|
6
|
+
require 'payme/request/binary'
|
7
|
+
require 'payme/request/params'
|
8
|
+
require 'payme/response'
|
9
|
+
require 'payme/response/binary'
|
data/lib/payme/request/binary.rb
CHANGED
data/payme.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{payme}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["LIM SAS", "Damien MATHIEU", "Julien SANCHEZ", "Hervé GAUCHER"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-03-24}
|
13
13
|
s.description = %q{Need online payment?}
|
14
14
|
s.email = %q{damien.mathieu@lim.eu}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.homepage = %q{http://github.com/LIMSAS/payme}
|
47
47
|
s.rdoc_options = ["--charset=UTF-8"]
|
48
48
|
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version = %q{1.
|
49
|
+
s.rubygems_version = %q{1.5.1}
|
50
50
|
s.summary = %q{Process online payments through the Atos Worldline gateway}
|
51
51
|
s.test_files = [
|
52
52
|
"spec/payme/config_spec.rb",
|
@@ -59,7 +59,6 @@ Gem::Specification.new do |s|
|
|
59
59
|
]
|
60
60
|
|
61
61
|
if s.respond_to? :specification_version then
|
62
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
63
62
|
s.specification_version = 3
|
64
63
|
|
65
64
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -40,5 +40,11 @@ describe Payme::RequestBinary do
|
|
40
40
|
request.expects(:`).with("/bin/request #{request.parse_params}").once
|
41
41
|
request.send(:exec)
|
42
42
|
end
|
43
|
+
|
44
|
+
it "should return an empty string if there is no result" do
|
45
|
+
request = Payme::Request.new(300, :bin_path => '/bin')
|
46
|
+
request.expects(:`).with("/bin/request #{request.parse_params}").once.returns(nil)
|
47
|
+
request.send(:exec).should eql('')
|
48
|
+
end
|
43
49
|
end
|
44
50
|
end
|
metadata
CHANGED
@@ -1,36 +1,28 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: payme
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
version: 0.0.7
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.8
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- LIM SAS
|
13
9
|
- Damien MATHIEU
|
14
10
|
- Julien SANCHEZ
|
15
|
-
-
|
11
|
+
- Hervé GAUCHER
|
16
12
|
autorequire:
|
17
13
|
bindir: bin
|
18
14
|
cert_chain: []
|
19
|
-
|
20
|
-
date: 2010-12-15 00:00:00 +01:00
|
15
|
+
date: 2011-03-24 00:00:00.000000000 +01:00
|
21
16
|
default_executable:
|
22
17
|
dependencies: []
|
23
|
-
|
24
18
|
description: Need online payment?
|
25
19
|
email: damien.mathieu@lim.eu
|
26
20
|
executables: []
|
27
|
-
|
28
21
|
extensions: []
|
29
|
-
|
30
|
-
extra_rdoc_files:
|
22
|
+
extra_rdoc_files:
|
31
23
|
- LICENSE
|
32
24
|
- README.md
|
33
|
-
files:
|
25
|
+
files:
|
34
26
|
- .gitignore
|
35
27
|
- .rvmrc
|
36
28
|
- Gemfile
|
@@ -59,37 +51,33 @@ files:
|
|
59
51
|
has_rdoc: true
|
60
52
|
homepage: http://github.com/LIMSAS/payme
|
61
53
|
licenses: []
|
62
|
-
|
63
54
|
post_install_message:
|
64
|
-
rdoc_options:
|
55
|
+
rdoc_options:
|
65
56
|
- --charset=UTF-8
|
66
|
-
require_paths:
|
57
|
+
require_paths:
|
67
58
|
- lib
|
68
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
60
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
segments:
|
75
66
|
- 0
|
76
|
-
|
77
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
hash: -75961261985464973
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
69
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
- 0
|
84
|
-
version: "0"
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
85
74
|
requirements: []
|
86
|
-
|
87
75
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 1.5.1
|
89
77
|
signing_key:
|
90
78
|
specification_version: 3
|
91
79
|
summary: Process online payments through the Atos Worldline gateway
|
92
|
-
test_files:
|
80
|
+
test_files:
|
93
81
|
- spec/payme/config_spec.rb
|
94
82
|
- spec/payme/request/binary_spec.rb
|
95
83
|
- spec/payme/request/params_spec.rb
|