payme 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  pkg/*
2
+ .bundle
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.9.2@payme
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ gem 'sdoc'
7
7
  gem 'sdoc-helpers'
8
8
 
9
9
  group :test do
10
- gem "rspec"
10
+ gem "rspec", '~> 2.0.0.beta'
11
11
  gem "mocha"
12
12
  end
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: Sogenactif API Ruby adapter
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
- Sogenactif is an online payment service from the Société Générale bank
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
- # Sogenactif
1
+ # Payme
2
2
 
3
- A ruby library to easily do and process online payments using the Sogenactif API.
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 Sogenactif is great but can be improved, feel free to contribute.
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/sogenactif/issues) with a link to your commits.
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
- Damien MATHIEU :: damien.mathieu (AT|CHEZ) lim.eu
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.6
1
+ 0.0.7
data/lib/payme/config.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  class Config
3
4
  @@config_path = nil
data/lib/payme/errors.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  module Errors
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  module RequestBinary
3
4
  def self.included(klass)
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  module Params
3
4
  def self.included(klass)
data/lib/payme/request.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  class Request
3
4
  attr_reader :amount, :options
@@ -17,7 +18,4 @@ module Payme
17
18
  }.merge Payme::Config.default
18
19
  end
19
20
  end
20
- end
21
-
22
- require 'payme/request/params'
23
- require 'payme/request/binary'
21
+ end
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  module ResponseBinary
3
4
  def self.included(klass)
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  module Payme
2
3
  class Response
3
4
  attr_reader :message, :options
@@ -7,6 +8,4 @@ module Payme
7
8
 
8
9
  end
9
10
  end
10
- end
11
-
12
- require 'payme/response/binary'
11
+ end
data/lib/payme.rb CHANGED
@@ -1,4 +1,12 @@
1
- require 'payme/config'
2
- require 'payme/errors'
3
- require 'payme/request'
4
- require 'payme/response'
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.6"
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", "Herv\303\251 GAUCHER"]
12
- s.date = %q{2010-07-19}
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/spec_helper.rb",
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/payme/request/params_spec.rb",
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
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::Config do
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::RequestBinary do
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::Params do
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::Request do
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::ResponseBinary do
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Payme::Response do
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,12 @@
1
+ # encoding: UTF-8
1
2
  require 'payme'
2
3
 
3
- require 'spec'
4
+ require 'rspec'
4
5
  require 'mocha'
5
- require 'spec/autorun'
6
- require 'spec/interop/test'
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
- - 6
10
- version: 0.0.6
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-07-19 00:00:00 +02:00
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: 3
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/spec_helper.rb
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/payme/request/params_spec.rb
98
- - spec/payme/request/binary_spec.rb
99
- - spec/payme/config_spec.rb
99
+ - spec/spec_helper.rb