gmo 0.2.0 → 0.2.1

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.
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.1
4
+ * Fix handling of ClientField options on GMO::Payment::ShopAPI#exec_tran
5
+
3
6
  ## 0.2.0
4
7
 
5
8
  * Use https scheme for rubygems source
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'gmo/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
- gem.name = "gmo"
7
+ gem.name = "gmo"
8
8
  gem.description = %q{Ruby client library for the GMO Payment Platform.}
9
9
  gem.summary = %q{GMO Payment API client: Ruby client library for the GMO Payment Platform.}
10
10
  gem.homepage = "https://github.com/t-k/gmo-payment-ruby"
11
- gem.version = GMO::VERSION
12
-
11
+ gem.version = GMO::VERSION
12
+ gem.license = "MIT"
13
13
  gem.authors = ["Tatsuo Kaniwa"]
14
14
  gem.email = ["tatsuo@kaniwa.biz"]
15
15
 
@@ -97,12 +97,12 @@ module GMO
97
97
  # pay_times: 1,
98
98
  # card_no: "4111111111111111",
99
99
  # expire: "1405", #format YYMM
100
- # client_field1: "client_field1"
100
+ # client_field_1: "client_field1"
101
101
  # })
102
102
  # {"ACS"=>"0", "OrderID"=>"100", "Forward"=>"2a99662", "Method"=>"1", "PayTimes"=>"", "Approve"=>"6294780", "TranID"=>"1302160543111111111111192829", "TranDate"=>"20130216054346", "CheckString"=>"3e455a2168fefc90dbb7db7ef7b0fe82", "ClientField1"=>"client_field1", "ClientField2"=>"", "ClientField3"=>""}
103
103
  def exec_tran(options = {})
104
104
  name = "ExecTran.idPass"
105
- if options[:client_field1] || options[:client_field2] || options[:client_field3]
105
+ if options[:client_field_1] || options[:client_field_2] || options[:client_field_3]
106
106
  options[:client_field_flg] = "1"
107
107
  else
108
108
  options[:client_field_flg] = "0"
@@ -120,9 +120,9 @@ module GMO
120
120
  # "HttpAccept" => options[:http_accept],
121
121
  # "HttpUserAgent" => options[:http_ua],
122
122
  # "DeviceCategory" => "0",
123
- # "ClientField1" => options[:client_field1],
124
- # "ClientField2" => options[:client_field2],
125
- # "ClientField3" => options[:client_field3],
123
+ # "ClientField1" => options[:client_field_1],
124
+ # "ClientField2" => options[:client_field_2],
125
+ # "ClientField3" => options[:client_field_3],
126
126
  # "ClientFieldFlag" => client_field_flg
127
127
  # }
128
128
  required = [:access_id, :access_pass, :order_id, :card_no, :expire]
@@ -1,3 +1,3 @@
1
1
  module GMO
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -74,7 +74,7 @@ describe "GMO::Payment::ShopAPI" do
74
74
  describe "#exec_tran" do
75
75
  it "gets data about a transaction", :vcr do
76
76
  order_id = generate_id
77
- client_field1 = "client_field1"
77
+ client_field_1 = "client_field1"
78
78
  result = @service.entry_tran({
79
79
  :order_id => order_id,
80
80
  :job_cd => "AUTH",
@@ -90,7 +90,7 @@ describe "GMO::Payment::ShopAPI" do
90
90
  :pay_times => 1,
91
91
  :card_no => "4111111111111111",
92
92
  :expire => "1405",
93
- :client_field1 => client_field1
93
+ :client_field_1 => client_field_1
94
94
  })
95
95
  result["ACS"].nil?.should_not be_true
96
96
  result["OrderID"].nil?.should_not be_true
@@ -102,7 +102,7 @@ describe "GMO::Payment::ShopAPI" do
102
102
  result["TranDate"].nil?.should_not be_true
103
103
  result["CheckString"].nil?.should_not be_true
104
104
  result["ClientField1"].nil?.should_not be_true
105
- (result["ClientField1"] == client_field1).should be_true
105
+ (result["ClientField1"] == client_field_1).should be_true
106
106
  result["ClientField3"].nil?.should_not be_true
107
107
  end
108
108
 
@@ -116,7 +116,7 @@ describe "GMO::Payment::ShopAPI" do
116
116
  describe "#exec_tran_cvs" do
117
117
  it "gets data about a transaction", :vcr do
118
118
  order_id = generate_id
119
- client_field1 = "client_field1"
119
+ client_field_1 = "client_field1"
120
120
  result = @service.entry_tran_cvs({
121
121
  :order_id => order_id,
122
122
  :amount => 100
@@ -134,7 +134,7 @@ describe "GMO::Payment::ShopAPI" do
134
134
  :receipts_disp_11 => 'RSpec Helpdesk',
135
135
  :receipts_disp_12 => 'RSpec hotline',
136
136
  :receipts_disp_13 => '00:00-00:15',
137
- :client_field_1 => client_field1
137
+ :client_field_1 => client_field_1
138
138
  })
139
139
  result["OrderID"].nil?.should_not be_true
140
140
  result["Convenience"].nil?.should_not be_true
@@ -144,7 +144,7 @@ describe "GMO::Payment::ShopAPI" do
144
144
  result["TranDate"].nil?.should_not be_true
145
145
  result["CheckString"].nil?.should_not be_true
146
146
  result["ClientField1"].nil?.should_not be_true
147
- (result["ClientField1"] == client_field1).should be_true
147
+ (result["ClientField1"] == client_field_1).should be_true
148
148
  result["ClientField3"].nil?.should_not be_true
149
149
  end
150
150
 
@@ -305,7 +305,7 @@ describe "GMO::Payment::ShopAPI" do
305
305
 
306
306
  describe "#search_trade_multi" do
307
307
  it "gets data about order", :vcr do
308
- client_field1 = "client_field1"
308
+ client_field_1 = "client_field1"
309
309
  result = @service.search_trade_multi({
310
310
  :order_id => @order_id,
311
311
  :pay_type => "0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -170,7 +170,8 @@ files:
170
170
  - spec/support/vcr.rb
171
171
  - travis.yml
172
172
  homepage: https://github.com/t-k/gmo-payment-ruby
173
- licenses: []
173
+ licenses:
174
+ - MIT
174
175
  post_install_message:
175
176
  rdoc_options:
176
177
  - --line-numbers
@@ -187,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
188
  version: '0'
188
189
  segments:
189
190
  - 0
190
- hash: -4076184411211171372
191
+ hash: 3518760350246848399
191
192
  required_rubygems_version: !ruby/object:Gem::Requirement
192
193
  none: false
193
194
  requirements:
@@ -196,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
197
  version: '0'
197
198
  segments:
198
199
  - 0
199
- hash: -4076184411211171372
200
+ hash: 3518760350246848399
200
201
  requirements: []
201
202
  rubyforge_project:
202
203
  rubygems_version: 1.8.25