ruby_psigate 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Manifest +0 -1
- data/lib/ruby_psigate/gateway.rb +1 -1
- data/ruby_psigate.gemspec +4 -4
- metadata +3 -5
- data/test/unit/account_manager_api_test.rb +0 -96
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
data/lib/ruby_psigate/gateway.rb
CHANGED
data/ruby_psigate.gemspec
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ruby_psigate}
|
5
|
-
s.version = "0.7.
|
5
|
+
s.version = "0.7.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Simon Chiu"]
|
9
|
-
s.date = %q{2010-09-
|
9
|
+
s.date = %q{2010-09-28}
|
10
10
|
s.description = %q{RubyPsigate parses and packages XML messages to/from Psigate's servers for transactions and recurring billing management.}
|
11
11
|
s.email = %q{skhchiu@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.markdown", "lib/certs/cacert.pem", "lib/ruby_psigate.rb", "lib/ruby_psigate/account.rb", "lib/ruby_psigate/account_manager_api.rb", "lib/ruby_psigate/account_methods.rb", "lib/ruby_psigate/address.rb", "lib/ruby_psigate/connection.rb", "lib/ruby_psigate/credit_card.rb", "lib/ruby_psigate/credit_card_methods.rb", "lib/ruby_psigate/error.rb", "lib/ruby_psigate/gateway.rb", "lib/ruby_psigate/hash_variables.rb", "lib/ruby_psigate/item.rb", "lib/ruby_psigate/item_option.rb", "lib/ruby_psigate/number_validation_methods.rb", "lib/ruby_psigate/order.rb", "lib/ruby_psigate/recurring_charge.rb", "lib/ruby_psigate/recurring_item.rb", "lib/ruby_psigate/response.rb", "lib/ruby_psigate/serializer.rb", "lib/ruby_psigate/transaction_methods.rb", "lib/ruby_psigate/utils.rb"]
|
13
|
-
s.files = ["CHANGELOG", "Gemfile", "LICENSE", "Manifest", "README.markdown", "Rakefile", "lib/certs/cacert.pem", "lib/ruby_psigate.rb", "lib/ruby_psigate/account.rb", "lib/ruby_psigate/account_manager_api.rb", "lib/ruby_psigate/account_methods.rb", "lib/ruby_psigate/address.rb", "lib/ruby_psigate/connection.rb", "lib/ruby_psigate/credit_card.rb", "lib/ruby_psigate/credit_card_methods.rb", "lib/ruby_psigate/error.rb", "lib/ruby_psigate/gateway.rb", "lib/ruby_psigate/hash_variables.rb", "lib/ruby_psigate/item.rb", "lib/ruby_psigate/item_option.rb", "lib/ruby_psigate/number_validation_methods.rb", "lib/ruby_psigate/order.rb", "lib/ruby_psigate/recurring_charge.rb", "lib/ruby_psigate/recurring_item.rb", "lib/ruby_psigate/response.rb", "lib/ruby_psigate/serializer.rb", "lib/ruby_psigate/transaction_methods.rb", "lib/ruby_psigate/utils.rb", "test/remote/remote_account_test.rb", "test/remote/remote_gateway_test.rb", "test/test_helper.rb", "test/unit/
|
13
|
+
s.files = ["CHANGELOG", "Gemfile", "LICENSE", "Manifest", "README.markdown", "Rakefile", "lib/certs/cacert.pem", "lib/ruby_psigate.rb", "lib/ruby_psigate/account.rb", "lib/ruby_psigate/account_manager_api.rb", "lib/ruby_psigate/account_methods.rb", "lib/ruby_psigate/address.rb", "lib/ruby_psigate/connection.rb", "lib/ruby_psigate/credit_card.rb", "lib/ruby_psigate/credit_card_methods.rb", "lib/ruby_psigate/error.rb", "lib/ruby_psigate/gateway.rb", "lib/ruby_psigate/hash_variables.rb", "lib/ruby_psigate/item.rb", "lib/ruby_psigate/item_option.rb", "lib/ruby_psigate/number_validation_methods.rb", "lib/ruby_psigate/order.rb", "lib/ruby_psigate/recurring_charge.rb", "lib/ruby_psigate/recurring_item.rb", "lib/ruby_psigate/response.rb", "lib/ruby_psigate/serializer.rb", "lib/ruby_psigate/transaction_methods.rb", "lib/ruby_psigate/utils.rb", "test/remote/remote_account_test.rb", "test/remote/remote_gateway_test.rb", "test/test_helper.rb", "test/unit/account_test.rb", "test/unit/address_test.rb", "test/unit/connection_test.rb", "test/unit/credit_card_test.rb", "test/unit/gateway_test.rb", "test/unit/item_option_test.rb", "test/unit/item_test.rb", "test/unit/order_test.rb", "test/unit/recurring_charge_test.rb", "test/unit/recurring_item_test.rb", "test/unit/response_test.rb", "test/unit/serializer_test.rb", "test/unit/xml_api_test.rb", "ruby_psigate.gemspec"]
|
14
14
|
s.homepage = %q{http://github.com/drchiu/ruby-psigate}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ruby_psigate", "--main", "README.markdown"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{ruby_psigate}
|
18
18
|
s.rubygems_version = %q{1.3.7}
|
19
19
|
s.summary = %q{A library to connect with the XML and Account interfaces of Psigate's servers}
|
20
|
-
s.test_files = ["test/remote/remote_account_test.rb", "test/remote/remote_gateway_test.rb", "test/test_helper.rb", "test/unit/
|
20
|
+
s.test_files = ["test/remote/remote_account_test.rb", "test/remote/remote_gateway_test.rb", "test/test_helper.rb", "test/unit/account_test.rb", "test/unit/address_test.rb", "test/unit/connection_test.rb", "test/unit/credit_card_test.rb", "test/unit/gateway_test.rb", "test/unit/item_option_test.rb", "test/unit/item_test.rb", "test/unit/order_test.rb", "test/unit/recurring_charge_test.rb", "test/unit/recurring_item_test.rb", "test/unit/response_test.rb", "test/unit/serializer_test.rb", "test/unit/xml_api_test.rb"]
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 8
|
9
|
+
version: 0.7.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Simon Chiu
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-28 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -146,7 +146,6 @@ files:
|
|
146
146
|
- test/remote/remote_account_test.rb
|
147
147
|
- test/remote/remote_gateway_test.rb
|
148
148
|
- test/test_helper.rb
|
149
|
-
- test/unit/account_manager_api_test.rb
|
150
149
|
- test/unit/account_test.rb
|
151
150
|
- test/unit/address_test.rb
|
152
151
|
- test/unit/connection_test.rb
|
@@ -203,7 +202,6 @@ test_files:
|
|
203
202
|
- test/remote/remote_account_test.rb
|
204
203
|
- test/remote/remote_gateway_test.rb
|
205
204
|
- test/test_helper.rb
|
206
|
-
- test/unit/account_manager_api_test.rb
|
207
205
|
- test/unit/account_test.rb
|
208
206
|
- test/unit/address_test.rb
|
209
207
|
- test/unit/connection_test.rb
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# require 'test_helper'
|
2
|
-
#
|
3
|
-
# module RubyPsigate
|
4
|
-
# class AccountManagerApiTest < Test::Unit::TestCase
|
5
|
-
#
|
6
|
-
# def setup
|
7
|
-
# @valid_instance_opts = {
|
8
|
-
# :cid => '1000001', :login => 'teststore', :password => 'testpass'
|
9
|
-
# }
|
10
|
-
# @am = AccountManagerApi.new(@valid_instance_opts)
|
11
|
-
#
|
12
|
-
# @valid_register_opts = {
|
13
|
-
# :name => "Bob Parsons",
|
14
|
-
# :company => "Scaler Apps",
|
15
|
-
# :address1 => "1234 10th Avenue",
|
16
|
-
# :address2 => "Unit 123",
|
17
|
-
# :city => "Toronto",
|
18
|
-
# :province => "ON",
|
19
|
-
# :country => "Canada",
|
20
|
-
# :postal_code => "M2N9J9",
|
21
|
-
# :phone => "416-123-1234",
|
22
|
-
# :fax => "416-321-4321",
|
23
|
-
# :email => "hello@world.com",
|
24
|
-
# :comments => "No comments here. Move on.",
|
25
|
-
# :card_holder => "Bob Parsons",
|
26
|
-
# :card_number => "4111111111111111",
|
27
|
-
# :card_exp_month => (Time.now.month).to_s,
|
28
|
-
# :card_exp_year => (Time.now.year+1).to_s
|
29
|
-
# }
|
30
|
-
#
|
31
|
-
# end
|
32
|
-
#
|
33
|
-
# context "constants" do
|
34
|
-
# def test_test_url
|
35
|
-
# assert_equal AccountManagerApi::TEST_URL, 'https://dev.psigate.com:8645/Messenger/AMMessenger'
|
36
|
-
# end
|
37
|
-
# end
|
38
|
-
#
|
39
|
-
# context "new instance" do
|
40
|
-
# %w( cid login password ).each do |p|
|
41
|
-
# should "raise error when instantiating a new instance without the parameter #{p}" do
|
42
|
-
# @valid_instance_opts.delete(p.to_sym)
|
43
|
-
# assert_raises(ArgumentError) { AccountManagerApi.new(@valid_instance_opts) }
|
44
|
-
# end
|
45
|
-
# end
|
46
|
-
# end
|
47
|
-
#
|
48
|
-
# context "registering an account" do
|
49
|
-
# %w( name address1 city province country postal_code phone email card_holder card_number card_exp_month card_exp_year ).each do |p|
|
50
|
-
# should "raise error if #{p} is not included" do
|
51
|
-
# @valid_register_opts.delete(p.to_sym)
|
52
|
-
# assert_raises(ArgumentError) { @am.register(@valid_register_opts) }
|
53
|
-
# end
|
54
|
-
# end
|
55
|
-
#
|
56
|
-
# %w( company address2 fax comments ).each do |p|
|
57
|
-
# should "not raise error if #{p} is not included" do
|
58
|
-
# @valid_register_opts.delete(p.to_sym)
|
59
|
-
# assert_nothing_raised { @am.register(@valid_register_opts) }
|
60
|
-
# end
|
61
|
-
# end
|
62
|
-
#
|
63
|
-
# # should "form a valid request" do
|
64
|
-
# # valid_request = <<-EOF
|
65
|
-
# # <Request>
|
66
|
-
# # <CID>1000001</CID>
|
67
|
-
# # <UserID>teststore</UserID>
|
68
|
-
# # <Password>testpass</Password>
|
69
|
-
# # <Action>AMA00</Action>
|
70
|
-
# # <Condition>
|
71
|
-
# # <AccountID>1234567890</AccountID>
|
72
|
-
# # </Condition>
|
73
|
-
# # </Request>
|
74
|
-
# # EOF
|
75
|
-
# #
|
76
|
-
# # end
|
77
|
-
# end
|
78
|
-
#
|
79
|
-
# context "retrieving an account summary" do
|
80
|
-
# should "raise error if account_id is not included" do
|
81
|
-
# assert_raises(ArgumentError) { @am.retrieve_summary }
|
82
|
-
# end
|
83
|
-
#
|
84
|
-
# should "form a valid request" do
|
85
|
-
# # => Move this to remote test
|
86
|
-
# # response = @am.retrieve_summary(:account_id => "1234567890")
|
87
|
-
# # assert_success response
|
88
|
-
# end
|
89
|
-
# end
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
# end
|
96
|
-
# end
|