payme 0.0.6 → 0.0.7
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.
- data/.gitignore +1 -0
- data/.rvmrc +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +43 -0
- data/LICENSE +2 -4
- data/README.md +13 -8
- data/Rakefile +4 -7
- data/VERSION +1 -1
- data/lib/payme/config.rb +1 -0
- data/lib/payme/errors.rb +1 -0
- data/lib/payme/request/binary.rb +1 -0
- data/lib/payme/request/params.rb +1 -0
- data/lib/payme/request.rb +2 -4
- data/lib/payme/response/binary.rb +1 -0
- data/lib/payme/response.rb +2 -3
- data/lib/payme.rb +12 -4
- data/payme.gemspec +9 -7
- data/spec/payme/config_spec.rb +1 -0
- data/spec/payme/request/binary_spec.rb +1 -0
- data/spec/payme/request/params_spec.rb +1 -0
- data/spec/payme/request_spec.rb +1 -0
- data/spec/payme/response/binary_spec.rb +1 -0
- data/spec/payme/response_spec.rb +1 -0
- data/spec/spec_helper.rb +9 -3
- metadata +10 -10
data/.gitignore
CHANGED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 1.9.2@payme
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.2)
|
5
|
+
gemcutter (0.6.1)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.4.0)
|
8
|
+
gemcutter (>= 0.1.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rubyforge (>= 2.0.0)
|
11
|
+
json (1.4.6)
|
12
|
+
json_pure (1.4.6)
|
13
|
+
mocha (0.9.8)
|
14
|
+
rake
|
15
|
+
rake (0.8.7)
|
16
|
+
rdiscount (1.6.5)
|
17
|
+
rdoc (2.4.3)
|
18
|
+
rspec (2.0.0.beta.20)
|
19
|
+
rspec-core (= 2.0.0.beta.20)
|
20
|
+
rspec-expectations (= 2.0.0.beta.20)
|
21
|
+
rspec-mocks (= 2.0.0.beta.20)
|
22
|
+
rspec-core (2.0.0.beta.20)
|
23
|
+
rspec-expectations (2.0.0.beta.20)
|
24
|
+
diff-lcs (>= 1.1.2)
|
25
|
+
rspec-mocks (2.0.0.beta.20)
|
26
|
+
rubyforge (2.0.4)
|
27
|
+
json_pure (>= 1.1.7)
|
28
|
+
sdoc (0.2.20)
|
29
|
+
json (>= 1.1.3)
|
30
|
+
rdoc (= 2.4.3)
|
31
|
+
sdoc-helpers (0.1.4)
|
32
|
+
sdoc (~> 0.2)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
jeweler
|
39
|
+
mocha
|
40
|
+
rdiscount
|
41
|
+
rspec (~> 2.0.0.beta)
|
42
|
+
sdoc
|
43
|
+
sdoc-helpers
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Payme:
|
1
|
+
Payme: Atos Worldline API Ruby adapter
|
2
2
|
|
3
3
|
Copyright (c) 2010 LIM SAS
|
4
4
|
|
@@ -21,6 +21,4 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
22
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
23
|
|
24
|
-
|
25
|
-
(http://socgen.com - http://sogenactif.com).
|
26
|
-
Sogenactif is based on an Atos-Worldline solution.
|
24
|
+
Atos-Worldline is an online payment service used by several banking services in France.
|
data/README.md
CHANGED
@@ -1,21 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# Payme
|
2
2
|
|
3
|
-
A ruby library to easily do and process online payments using the
|
4
|
-
|
5
|
-
**Disclaimer** : This is still under heavy development and shouldn't be used in production.
|
3
|
+
A ruby library to easily do and process online payments using the Atos Worldline API.
|
6
4
|
|
5
|
+
Requirements
|
6
|
+
------------
|
7
7
|
|
8
|
+
* Ruby (tested with 1.8.7 and 1.9.2)
|
8
9
|
|
9
10
|
Contributing
|
10
11
|
------------
|
11
12
|
|
12
|
-
If you think
|
13
|
+
If you think Payme is great but can be improved, feel free to contribute.
|
13
14
|
To do so, you can :
|
14
15
|
|
15
16
|
* [Fork](http://help.github.com/forking/) the project
|
16
17
|
* Do your changes and commit them to your repository
|
17
18
|
* Test your changes. We won't accept any untested contributions (except if they're not testable).
|
18
|
-
* Create an [issue](http://github.com/LIMSAS/
|
19
|
+
* Create an [issue](http://github.com/LIMSAS/payme/issues) with a link to your commits.
|
19
20
|
|
20
21
|
And that's it! We'll soon take a look at your issue and review your changes.
|
21
22
|
|
@@ -25,8 +26,12 @@ And that's it! We'll soon take a look at your issue and review your changes.
|
|
25
26
|
Developped and maintained by [LIM SAS](http://lim.eu)
|
26
27
|
|
27
28
|
|
28
|
-
|
29
|
+
## Contributors
|
30
|
+
|
31
|
+
Damien MATHIEU :: 42 (AT|CHEZ) dmathieu.com
|
29
32
|
|
30
33
|
Julien SANCHEZ :: julien.sanchez (AT|CHEZ) lim.eu
|
31
34
|
|
32
|
-
Hervé GAUCHER :: herve.gaucher (AT|CHEZ) lim.eu
|
35
|
+
Hervé GAUCHER :: herve.gaucher (AT|CHEZ) lim.eu
|
36
|
+
|
37
|
+
Franck VERROT :: franck (AT|CHEZ) verrot.fr
|
data/Rakefile
CHANGED
@@ -1,18 +1,15 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require "rubygems"
|
2
3
|
require "bundler"
|
3
4
|
Bundler.setup
|
4
5
|
|
5
|
-
require 'spec/rake/spectask'
|
6
6
|
#
|
7
7
|
# The rspec tasks
|
8
8
|
#
|
9
|
+
require 'rspec/core'
|
10
|
+
require 'rspec/core/rake_task'
|
9
11
|
task :default => :spec
|
10
|
-
|
11
|
-
desc "Run all specs"
|
12
|
-
Spec::Rake::SpecTask.new('spec') do |t|
|
13
|
-
t.spec_files = FileList['spec/**/*.rb']
|
14
|
-
t.spec_opts = ['-cfs']
|
15
|
-
end
|
12
|
+
RSpec::Core::RakeTask.new(:spec)
|
16
13
|
|
17
14
|
#
|
18
15
|
# Jeweler
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/lib/payme/config.rb
CHANGED
data/lib/payme/errors.rb
CHANGED
data/lib/payme/request/binary.rb
CHANGED
data/lib/payme/request/params.rb
CHANGED
data/lib/payme/request.rb
CHANGED
data/lib/payme/response.rb
CHANGED
data/lib/payme.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Payme
|
4
|
+
autoload :Config, 'payme/config'
|
5
|
+
autoload :Errors, 'payme/errors'
|
6
|
+
autoload :Request, 'payme/request'
|
7
|
+
autoload :RequestBinary, 'payme/request/binary'
|
8
|
+
autoload :Params, 'payme/request/params'
|
9
|
+
autoload :Response, 'payme/response'
|
10
|
+
autoload :ResponseBinary, 'payme/response/binary'
|
11
|
+
|
12
|
+
end
|
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.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["LIM SAS", "Damien MATHIEU", "Julien SANCHEZ", "
|
12
|
-
s.date = %q{2010-
|
11
|
+
s.authors = ["LIM SAS", "Damien MATHIEU", "Julien SANCHEZ", "Hervé GAUCHER"]
|
12
|
+
s.date = %q{2010-12-15}
|
13
13
|
s.description = %q{Need online payment?}
|
14
14
|
s.email = %q{damien.mathieu@lim.eu}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,7 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".gitignore",
|
21
|
+
".rvmrc",
|
21
22
|
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
22
24
|
"LICENSE",
|
23
25
|
"README.md",
|
24
26
|
"Rakefile",
|
@@ -47,13 +49,13 @@ Gem::Specification.new do |s|
|
|
47
49
|
s.rubygems_version = %q{1.3.7}
|
48
50
|
s.summary = %q{Process online payments through the Atos Worldline gateway}
|
49
51
|
s.test_files = [
|
50
|
-
"spec/
|
52
|
+
"spec/payme/config_spec.rb",
|
53
|
+
"spec/payme/request/binary_spec.rb",
|
54
|
+
"spec/payme/request/params_spec.rb",
|
51
55
|
"spec/payme/request_spec.rb",
|
52
56
|
"spec/payme/response/binary_spec.rb",
|
53
57
|
"spec/payme/response_spec.rb",
|
54
|
-
"spec/
|
55
|
-
"spec/payme/request/binary_spec.rb",
|
56
|
-
"spec/payme/config_spec.rb"
|
58
|
+
"spec/spec_helper.rb"
|
57
59
|
]
|
58
60
|
|
59
61
|
if s.respond_to? :specification_version then
|
data/spec/payme/config_spec.rb
CHANGED
data/spec/payme/request_spec.rb
CHANGED
data/spec/payme/response_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'payme'
|
2
3
|
|
3
|
-
require '
|
4
|
+
require 'rspec'
|
4
5
|
require 'mocha'
|
5
|
-
|
6
|
-
|
6
|
+
|
7
|
+
RSpec.configure do |config|
|
8
|
+
|
9
|
+
config.before :each do
|
10
|
+
Payme::Config.set_config(nil, nil)
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 7
|
9
|
+
version: 0.0.7
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- LIM SAS
|
@@ -18,7 +17,7 @@ autorequire:
|
|
18
17
|
bindir: bin
|
19
18
|
cert_chain: []
|
20
19
|
|
21
|
-
date: 2010-
|
20
|
+
date: 2010-12-15 00:00:00 +01:00
|
22
21
|
default_executable:
|
23
22
|
dependencies: []
|
24
23
|
|
@@ -33,7 +32,9 @@ extra_rdoc_files:
|
|
33
32
|
- README.md
|
34
33
|
files:
|
35
34
|
- .gitignore
|
35
|
+
- .rvmrc
|
36
36
|
- Gemfile
|
37
|
+
- Gemfile.lock
|
37
38
|
- LICENSE
|
38
39
|
- README.md
|
39
40
|
- Rakefile
|
@@ -69,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
70
|
requirements:
|
70
71
|
- - ">="
|
71
72
|
- !ruby/object:Gem::Version
|
72
|
-
hash:
|
73
|
+
hash: 4295541105329345283
|
73
74
|
segments:
|
74
75
|
- 0
|
75
76
|
version: "0"
|
@@ -78,7 +79,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
79
|
requirements:
|
79
80
|
- - ">="
|
80
81
|
- !ruby/object:Gem::Version
|
81
|
-
hash: 3
|
82
82
|
segments:
|
83
83
|
- 0
|
84
84
|
version: "0"
|
@@ -90,10 +90,10 @@ signing_key:
|
|
90
90
|
specification_version: 3
|
91
91
|
summary: Process online payments through the Atos Worldline gateway
|
92
92
|
test_files:
|
93
|
-
- spec/
|
93
|
+
- spec/payme/config_spec.rb
|
94
|
+
- spec/payme/request/binary_spec.rb
|
95
|
+
- spec/payme/request/params_spec.rb
|
94
96
|
- spec/payme/request_spec.rb
|
95
97
|
- spec/payme/response/binary_spec.rb
|
96
98
|
- spec/payme/response_spec.rb
|
97
|
-
- spec/
|
98
|
-
- spec/payme/request/binary_spec.rb
|
99
|
-
- spec/payme/config_spec.rb
|
99
|
+
- spec/spec_helper.rb
|