pxpay 0.1.5 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/pxpay/response.rb +7 -7
  3. data/pxpay.gemspec +11 -11
  4. metadata +90 -95
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.8
@@ -2,28 +2,28 @@ module Pxpay
2
2
  # The response object received from Payment Express
3
3
  class Response
4
4
  attr_accessor :post
5
-
5
+
6
6
  # Create a new Payment Express response object by passing in the return parameters provided to the success/failure URL
7
-
7
+
8
8
  def initialize(params)
9
9
  @result = params[:result]
10
10
  @user_id = params[:userid]
11
11
  @post = build_xml( params[:result] )
12
12
  end
13
-
13
+
14
14
  # Retrieving the transaction details from Payment Express as an instance of Pxpay::Notification
15
15
  def response
16
16
  require 'rest_client'
17
- response = ::RestClient.post( 'https://www.paymentexpress.com/pxpay/pxaccess.aspx', self.post )
17
+ response = ::RestClient.post( "https://sec.paymentexpress.com/pxpay/pxaccess.aspx", self.post )
18
18
  return ::Pxpay::Notification.new( response )
19
19
  end
20
-
20
+
21
21
  private
22
22
  # Internal method to build the xml to send to Payment Express
23
23
  def build_xml( result )
24
24
  xml = ::Builder::XmlMarkup.new
25
-
26
- xml.ProcessResponse do
25
+
26
+ xml.ProcessResponse do
27
27
  xml.PxPayUserId PXPAY_CONFIG[:pxpay][:pxpay_user_id]
28
28
  xml.PxPayKey PXPAY_CONFIG[:pxpay][:pxpay_key]
29
29
  xml.Response result
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{pxpay}
8
- s.version = "0.1.5"
7
+ s.name = "pxpay"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Bradley Priest}]
12
- s.date = %q{2011-06-15}
13
- s.description = %q{A Ruby wrapper around the DPS-hosted PxPay service}
14
- s.email = %q{bradleypriest@gmail.com}
11
+ s.authors = ["Bradley Priest"]
12
+ s.date = "2011-11-27"
13
+ s.description = "A Ruby wrapper around the DPS-hosted PxPay service"
14
+ s.email = "bradleypriest@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md"
@@ -39,11 +39,11 @@ Gem::Specification.new do |s|
39
39
  "test/response.xml",
40
40
  "test/test_pxpay.rb"
41
41
  ]
42
- s.homepage = %q{http://github.com/bradleypriest/pxpay}
43
- s.licenses = [%q{MIT}]
44
- s.require_paths = [%q{lib}]
45
- s.rubygems_version = %q{1.8.5}
46
- s.summary = %q{Ruby wrapper for the Payment Express' PxPay API}
42
+ s.homepage = "http://github.com/bradleypriest/pxpay"
43
+ s.licenses = ["MIT"]
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = "1.8.10"
46
+ s.summary = "Ruby wrapper for the Payment Express' PxPay API"
47
47
  s.test_files = [
48
48
  "test/helper.rb",
49
49
  "test/test_pxpay.rb"
metadata CHANGED
@@ -1,137 +1,134 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pxpay
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.8
4
5
  prerelease:
5
- version: 0.1.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Bradley Priest
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-15 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: shoulda
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70283730098120 !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *70283730098120
25
+ - !ruby/object:Gem::Dependency
27
26
  name: bundler
28
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &70283730112860 !ruby/object:Gem::Requirement
29
28
  none: false
30
- requirements:
29
+ requirements:
31
30
  - - ~>
32
- - !ruby/object:Gem::Version
31
+ - !ruby/object:Gem::Version
33
32
  version: 1.0.0
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *70283730112860
36
+ - !ruby/object:Gem::Dependency
38
37
  name: jeweler
39
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &70283730111880 !ruby/object:Gem::Requirement
40
39
  none: false
41
- requirements:
40
+ requirements:
42
41
  - - ~>
43
- - !ruby/object:Gem::Version
42
+ - !ruby/object:Gem::Version
44
43
  version: 1.5.2
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *70283730111880
47
+ - !ruby/object:Gem::Dependency
49
48
  name: rcov
50
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &70283730110620 !ruby/object:Gem::Requirement
51
50
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70283730110620
58
+ - !ruby/object:Gem::Dependency
60
59
  name: builder
61
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &70283730108680 !ruby/object:Gem::Requirement
62
61
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *70283730108680
69
+ - !ruby/object:Gem::Dependency
71
70
  name: nokogiri
72
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ requirement: &70283730106400 !ruby/object:Gem::Requirement
73
72
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
78
77
  type: :development
79
78
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *70283730106400
80
+ - !ruby/object:Gem::Dependency
82
81
  name: rest-client
83
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ requirement: &70283730132840 !ruby/object:Gem::Requirement
84
83
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
89
88
  type: :development
90
89
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *70283730132840
91
+ - !ruby/object:Gem::Dependency
93
92
  name: nokogiri
94
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ requirement: &70283730131280 !ruby/object:Gem::Requirement
95
94
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
100
99
  type: :runtime
101
100
  prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *70283730131280
102
+ - !ruby/object:Gem::Dependency
104
103
  name: rest-client
105
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ requirement: &70283730129680 !ruby/object:Gem::Requirement
106
105
  none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
111
110
  type: :runtime
112
111
  prerelease: false
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
112
+ version_requirements: *70283730129680
113
+ - !ruby/object:Gem::Dependency
115
114
  name: builder
116
- requirement: &id010 !ruby/object:Gem::Requirement
115
+ requirement: &70283730127940 !ruby/object:Gem::Requirement
117
116
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
122
121
  type: :runtime
123
122
  prerelease: false
124
- version_requirements: *id010
123
+ version_requirements: *70283730127940
125
124
  description: A Ruby wrapper around the DPS-hosted PxPay service
126
125
  email: bradleypriest@gmail.com
127
126
  executables: []
128
-
129
127
  extensions: []
130
-
131
- extra_rdoc_files:
128
+ extra_rdoc_files:
132
129
  - LICENSE.txt
133
130
  - README.md
134
- files:
131
+ files:
135
132
  - .document
136
133
  - Gemfile
137
134
  - Gemfile.lock
@@ -154,35 +151,33 @@ files:
154
151
  - test/response.xml
155
152
  - test/test_pxpay.rb
156
153
  homepage: http://github.com/bradleypriest/pxpay
157
- licenses:
154
+ licenses:
158
155
  - MIT
159
156
  post_install_message:
160
157
  rdoc_options: []
161
-
162
- require_paths:
158
+ require_paths:
163
159
  - lib
164
- required_ruby_version: !ruby/object:Gem::Requirement
160
+ required_ruby_version: !ruby/object:Gem::Requirement
165
161
  none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3241203709650298010
170
- segments:
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ segments:
171
167
  - 0
172
- version: "0"
173
- required_rubygems_version: !ruby/object:Gem::Requirement
168
+ hash: -1395613620569097916
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
170
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: "0"
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
179
175
  requirements: []
180
-
181
176
  rubyforge_project:
182
- rubygems_version: 1.8.5
177
+ rubygems_version: 1.8.10
183
178
  signing_key:
184
179
  specification_version: 3
185
180
  summary: Ruby wrapper for the Payment Express' PxPay API
186
- test_files:
181
+ test_files:
187
182
  - test/helper.rb
188
183
  - test/test_pxpay.rb