micropayment-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "rails"
4
+ gem 'micropayment'
5
+
6
+ group :development do
7
+ gem "shoulda", ">= 0"
8
+ gem "rdoc", "~> 3.12"
9
+ gem "bundler", ">= 1.0.0"
10
+ gem "jeweler", "~> 1.8.3"
11
+ gem "rcov", ">= 0"
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,108 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.2.3)
5
+ actionpack (= 3.2.3)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.3)
8
+ activemodel (= 3.2.3)
9
+ activesupport (= 3.2.3)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.1)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.2)
17
+ activemodel (3.2.3)
18
+ activesupport (= 3.2.3)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.3)
21
+ activemodel (= 3.2.3)
22
+ activesupport (= 3.2.3)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.3)
26
+ activemodel (= 3.2.3)
27
+ activesupport (= 3.2.3)
28
+ activesupport (3.2.3)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ addressable (2.2.8)
32
+ arel (3.0.2)
33
+ builder (3.0.0)
34
+ erubis (2.7.0)
35
+ git (1.2.5)
36
+ hike (1.2.1)
37
+ i18n (0.6.0)
38
+ jeweler (1.8.3)
39
+ bundler (~> 1.0)
40
+ git (>= 1.2.5)
41
+ rake
42
+ rdoc
43
+ journey (1.0.3)
44
+ json (1.7.3)
45
+ mail (2.4.4)
46
+ i18n (>= 0.4.0)
47
+ mime-types (~> 1.16)
48
+ treetop (~> 1.4.8)
49
+ micropayment (0.1.1)
50
+ addressable
51
+ yajl-ruby
52
+ mime-types (1.18)
53
+ multi_json (1.3.5)
54
+ polyglot (0.3.3)
55
+ rack (1.4.1)
56
+ rack-cache (1.2)
57
+ rack (>= 0.4)
58
+ rack-ssl (1.3.2)
59
+ rack
60
+ rack-test (0.6.1)
61
+ rack (>= 1.0)
62
+ rails (3.2.3)
63
+ actionmailer (= 3.2.3)
64
+ actionpack (= 3.2.3)
65
+ activerecord (= 3.2.3)
66
+ activeresource (= 3.2.3)
67
+ activesupport (= 3.2.3)
68
+ bundler (~> 1.0)
69
+ railties (= 3.2.3)
70
+ railties (3.2.3)
71
+ actionpack (= 3.2.3)
72
+ activesupport (= 3.2.3)
73
+ rack-ssl (~> 1.3.2)
74
+ rake (>= 0.8.7)
75
+ rdoc (~> 3.4)
76
+ thor (~> 0.14.6)
77
+ rake (0.9.2.2)
78
+ rcov (1.0.0)
79
+ rdoc (3.12)
80
+ json (~> 1.4)
81
+ shoulda (3.0.1)
82
+ shoulda-context (~> 1.0.0)
83
+ shoulda-matchers (~> 1.0.0)
84
+ shoulda-context (1.0.0)
85
+ shoulda-matchers (1.0.0)
86
+ sprockets (2.1.3)
87
+ hike (~> 1.2)
88
+ rack (~> 1.0)
89
+ tilt (~> 1.1, != 1.3.0)
90
+ thor (0.14.6)
91
+ tilt (1.3.3)
92
+ treetop (1.4.10)
93
+ polyglot
94
+ polyglot (>= 0.3.1)
95
+ tzinfo (0.3.33)
96
+ yajl-ruby (1.1.0)
97
+
98
+ PLATFORMS
99
+ ruby
100
+
101
+ DEPENDENCIES
102
+ bundler (>= 1.0.0)
103
+ jeweler (~> 1.8.3)
104
+ micropayment
105
+ rails
106
+ rcov
107
+ rdoc (~> 3.12)
108
+ shoulda
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 General Scripting UG (haftungsbeschränkt)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,49 @@
1
+ # micropayment-rails
2
+
3
+ Use the micropayment API in your Rails project.
4
+
5
+ ## Installation
6
+
7
+ In your Gemfile:
8
+ ```
9
+ gem 'micropayment-rails'
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ # create a blank customer
16
+ customer = Micropayment::Customer.create
17
+
18
+ # create a customer with a customer id
19
+ customer = Micropayment::Customer.create :customerId => 'my_customer_id'
20
+
21
+ # create a customer with a bank_account
22
+ customer = Micropayment::Customer.create :bank_account => { :bankCode => '10010010', :accountNumber => '1234567', :accountHolder => 'Jeff Winger' }
23
+
24
+ # access a customers bank account
25
+ customer.bank_account
26
+
27
+ # set/update a customers bank account
28
+ customer.bank_account = { :bankCode => '10010010', :accountNumber => '1234567', :accountHolder => 'Jeff Winger' }
29
+
30
+ # initiate a session
31
+ # (defaults for all hash params can be set on micropayment.de)
32
+ Micropayment::Session.create 'project_key', customer, :amount => 1000, :currency => 'EUR'
33
+
34
+ ```
35
+
36
+ ## Contributing to micropayment-rails
37
+
38
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
39
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
40
+ * Fork the project.
41
+ * Start a feature/bugfix branch.
42
+ * Commit and push until you are happy with your contribution.
43
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
44
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
45
+
46
+ ## Copyright
47
+
48
+ Copyright (c) 2012 General Scripting UG (haftungsbeschränkt). See LICENSE.txt for further details.
49
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "micropayment-rails"
18
+ gem.homepage = "http://github.com/jeanmartin/micropayment-rails"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Rails wrapper for the micropayment gem}
21
+ gem.description = %Q{Use the micropayment API in your Rails project.}
22
+ gem.email = "jan@general-scripting.com"
23
+ gem.authors = ["Jan Schwenzien"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rdoc/task'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "micropayment-rails #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,8 @@
1
+ require 'ostruct'
2
+ require 'micropayment'
3
+ require 'micropayment-rails/setup'
4
+ require 'micropayment-rails/classes/base'
5
+ require 'micropayment-rails/classes/address'
6
+ require 'micropayment-rails/classes/bank_account'
7
+ require 'micropayment-rails/classes/customer'
8
+ require 'micropayment-rails/classes/session'
@@ -0,0 +1,12 @@
1
+ module Micropayment
2
+ class Address < Micropayment::Base
3
+
4
+ VALID_ATTRIBUTES = [:customerId, :firstName, :surName, :street, :zip, :city, :country]
5
+ IDENTIFIER = :customerId
6
+ FIND_METHOD = :addressGet
7
+ CREATE_METHOD = :addressSet
8
+
9
+
10
+
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ module Micropayment
2
+ class BankAccount < Micropayment::Base
3
+
4
+ VALID_ATTRIBUTES = [:customerId, :bankName, :accountHolder, :accountNumber, :barStatus, :bankCode, :country]
5
+ IDENTIFIER = :customerId
6
+ FIND_METHOD = :bankaccountGet
7
+ CREATE_METHOD = :bankaccountSet
8
+
9
+ end
10
+ end
@@ -0,0 +1,44 @@
1
+ module Micropayment
2
+ class Base < OpenStruct
3
+
4
+ def self.valid_attributes(attrs)
5
+ attrs.reject {|k,v| !self::VALID_ATTRIBUTES.include?(k.to_sym) }
6
+ end
7
+
8
+
9
+
10
+ def id
11
+ send self::IDENTIFIER
12
+ end
13
+
14
+
15
+
16
+ def self.find(id)
17
+ result = Micropayment::Debit.send self::FIND_METHOD, self::IDENTIFIER => id
18
+ case result["error"]
19
+ when "0"
20
+ self.new( valid_attributes(result) )
21
+ else
22
+ raise "#{result["error"]}: #{result["errorMessage"]}"
23
+ end
24
+ end
25
+
26
+ def self.create(id, params={})
27
+ params.symbolized_keys!
28
+ params.merge!(self::IDENTIFIER => id) if id
29
+ result = Micropayment::Debit.send self::CREATE_METHOD, params
30
+ if result["error"] == "0"
31
+ self.new( valid_attributes( params.merge(result.symbolized_keys) ) )
32
+ else
33
+ raise "#{result["error"]}: #{result["errorMessage"]}"
34
+ end
35
+ end
36
+
37
+ def self.find_or_create_by_id(id, params={})
38
+ params.symbolized_keys!
39
+ obj = (find(id) rescue nil)
40
+ obj ? obj : create( id, params )
41
+ end
42
+
43
+ end
44
+ end
@@ -0,0 +1,60 @@
1
+ module Micropayment
2
+ class Customer < Micropayment::Base
3
+
4
+ IDENTIFIER = :customerId
5
+
6
+
7
+ def address=(params={})
8
+ @address = Micropayment::Address.create( id, params )
9
+ end
10
+
11
+ def address
12
+ @address ||= (Micropayment::Address.find( id ) rescue nil)
13
+ end
14
+
15
+ def bank_account=(params={})
16
+ @bank_account = Micropayment::BankAccount.create( id, params )
17
+ end
18
+
19
+ def bank_account
20
+ @bank_account ||= (Micropayment::BankAccount.find( id ) rescue nil)
21
+ end
22
+
23
+
24
+
25
+ def self.find(customerId)
26
+ result = Micropayment::Debit.customerGet( :customerId => customerId )
27
+ case result["error"]
28
+ when "0"
29
+ self.new( :customerId => customerId, :freeParams => result["freeParams"] )
30
+ else
31
+ raise "#{result["error"]}: #{result["errorMessage"]}"
32
+ end
33
+ end
34
+
35
+ def self.create(params={})
36
+ params.symbolized_keys!
37
+ bank_account_params = params.delete(:bank_account)
38
+ address_params = params.delete(:address)
39
+ create_params = {}.tap do |hsh|
40
+ hsh[:customerId] = params.delete(:customerId) if params.has_key?(:customerId)
41
+ hsh[:freeParams] = params
42
+ end
43
+ result = Micropayment::Debit.customerCreate( create_params )
44
+ if result["error"] == "0"
45
+ customer = self.new( create_params )
46
+ customer.bank_account = bank_account_params if bank_account_params
47
+ customer.address = address_params if address_params
48
+ customer
49
+ else
50
+ raise "#{result["error"]}: #{result["errorMessage"]}"
51
+ end
52
+ end
53
+
54
+ def self.session_list
55
+ # TODO wrap in an array
56
+ Micropayment::Debit.sessionList( :customerId => id )
57
+ end
58
+
59
+ end
60
+ end
@@ -0,0 +1,36 @@
1
+ module Micropayment
2
+ class Session < Micropayment::Base
3
+
4
+ VALID_ATTRIBUTES = [:sessionId, :customerId, :status, :expire, :statusDetail, :project, :projectCampaign, :account, :webmasterCampaign, :amount, :openAmount, :currency, :title, :payText, :ip, :freeParams]
5
+ IDENTIFIER = :sessionId
6
+ FIND_METHOD = :sessionGet
7
+ CREATE_METHOD = :sessionCreate
8
+
9
+
10
+ def create(project, customer, params={})
11
+ params.symbolize_keys!
12
+ params.merge!( :customerId => customer.id, :project => project )
13
+ result = Micropayment::Debit.sessionCreate( params )
14
+ case result["error"]
15
+ when "0"
16
+ self.new( valid_attributes(result) )
17
+ else
18
+ raise "#{result["error"]}: #{result["errorMessage"]}"
19
+ end
20
+ end
21
+
22
+ def approve
23
+ result = Micropayment::Debit.sessionApprove( :sessionId => id )
24
+ case result["error"]
25
+ when "0"
26
+ self.status = result["status"]
27
+ self.expire = result["expire"]
28
+ status
29
+ else
30
+ raise "#{result["error"]}: #{result["errorMessage"]}"
31
+ end
32
+ end
33
+
34
+
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ module Micropayment
2
+
3
+ def self.setup
4
+ yield Micropayment::Config
5
+ Micropayment::Config.complete = true
6
+ Micropayment::Config
7
+ end
8
+
9
+ end
@@ -0,0 +1,74 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "micropayment-rails"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jan Schwenzien"]
12
+ s.date = "2012-05-19"
13
+ s.description = "Use the micropayment API in your Rails project."
14
+ s.email = "jan@general-scripting.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/micropayment-rails.rb",
28
+ "lib/micropayment-rails/classes/address.rb",
29
+ "lib/micropayment-rails/classes/bank_account.rb",
30
+ "lib/micropayment-rails/classes/base.rb",
31
+ "lib/micropayment-rails/classes/customer.rb",
32
+ "lib/micropayment-rails/classes/session.rb",
33
+ "lib/micropayment-rails/setup.rb",
34
+ "micropayment-rails.gemspec",
35
+ "test/helper.rb",
36
+ "test/test_micropayment-rails.rb"
37
+ ]
38
+ s.homepage = "http://github.com/jeanmartin/micropayment-rails"
39
+ s.licenses = ["MIT"]
40
+ s.require_paths = ["lib"]
41
+ s.rubygems_version = "1.8.23"
42
+ s.summary = "Rails wrapper for the micropayment gem"
43
+
44
+ if s.respond_to? :specification_version then
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<rails>, [">= 0"])
49
+ s.add_runtime_dependency(%q<micropayment>, [">= 0"])
50
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
51
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
52
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
53
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
54
+ s.add_development_dependency(%q<rcov>, [">= 0"])
55
+ else
56
+ s.add_dependency(%q<rails>, [">= 0"])
57
+ s.add_dependency(%q<micropayment>, [">= 0"])
58
+ s.add_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
61
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
62
+ s.add_dependency(%q<rcov>, [">= 0"])
63
+ end
64
+ else
65
+ s.add_dependency(%q<rails>, [">= 0"])
66
+ s.add_dependency(%q<micropayment>, [">= 0"])
67
+ s.add_dependency(%q<shoulda>, [">= 0"])
68
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
69
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
70
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
71
+ s.add_dependency(%q<rcov>, [">= 0"])
72
+ end
73
+ end
74
+
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'micropayment-rails'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestMicropaymentRails < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,184 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: micropayment-rails
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Jan Schwenzien
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-05-19 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ type: :runtime
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ version_requirements: *id001
32
+ name: rails
33
+ prerelease: false
34
+ - !ruby/object:Gem::Dependency
35
+ type: :runtime
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ version_requirements: *id002
46
+ name: micropayment
47
+ prerelease: false
48
+ - !ruby/object:Gem::Dependency
49
+ type: :development
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ version_requirements: *id003
60
+ name: shoulda
61
+ prerelease: false
62
+ - !ruby/object:Gem::Dependency
63
+ type: :development
64
+ requirement: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ hash: 31
70
+ segments:
71
+ - 3
72
+ - 12
73
+ version: "3.12"
74
+ version_requirements: *id004
75
+ name: rdoc
76
+ prerelease: false
77
+ - !ruby/object:Gem::Dependency
78
+ type: :development
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 23
85
+ segments:
86
+ - 1
87
+ - 0
88
+ - 0
89
+ version: 1.0.0
90
+ version_requirements: *id005
91
+ name: bundler
92
+ prerelease: false
93
+ - !ruby/object:Gem::Dependency
94
+ type: :development
95
+ requirement: &id006 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ hash: 49
101
+ segments:
102
+ - 1
103
+ - 8
104
+ - 3
105
+ version: 1.8.3
106
+ version_requirements: *id006
107
+ name: jeweler
108
+ prerelease: false
109
+ - !ruby/object:Gem::Dependency
110
+ type: :development
111
+ requirement: &id007 !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: 3
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ version_requirements: *id007
121
+ name: rcov
122
+ prerelease: false
123
+ description: Use the micropayment API in your Rails project.
124
+ email: jan@general-scripting.com
125
+ executables: []
126
+
127
+ extensions: []
128
+
129
+ extra_rdoc_files:
130
+ - LICENSE.txt
131
+ - README.markdown
132
+ files:
133
+ - .document
134
+ - Gemfile
135
+ - Gemfile.lock
136
+ - LICENSE.txt
137
+ - README.markdown
138
+ - Rakefile
139
+ - VERSION
140
+ - lib/micropayment-rails.rb
141
+ - lib/micropayment-rails/classes/address.rb
142
+ - lib/micropayment-rails/classes/bank_account.rb
143
+ - lib/micropayment-rails/classes/base.rb
144
+ - lib/micropayment-rails/classes/customer.rb
145
+ - lib/micropayment-rails/classes/session.rb
146
+ - lib/micropayment-rails/setup.rb
147
+ - micropayment-rails.gemspec
148
+ - test/helper.rb
149
+ - test/test_micropayment-rails.rb
150
+ homepage: http://github.com/jeanmartin/micropayment-rails
151
+ licenses:
152
+ - MIT
153
+ post_install_message:
154
+ rdoc_options: []
155
+
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ hash: 3
164
+ segments:
165
+ - 0
166
+ version: "0"
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
168
+ none: false
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ hash: 3
173
+ segments:
174
+ - 0
175
+ version: "0"
176
+ requirements: []
177
+
178
+ rubyforge_project:
179
+ rubygems_version: 1.8.23
180
+ signing_key:
181
+ specification_version: 3
182
+ summary: Rails wrapper for the micropayment gem
183
+ test_files: []
184
+