google4r-checkout 1.1.beta1 → 1.1.beta2

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.
data/CHANGES CHANGED
@@ -1,5 +1,21 @@
1
1
  =google4r-checkout Changelog
2
2
 
3
+ == 1.1.beta2 (2010-06-23)
4
+
5
+ * Make gem compatible with Money 3.x (thanks George Palmer!)
6
+ * Use Bundler for running test suite
7
+
8
+ == 1.1.beta1 (2010-04-21)
9
+
10
+ * Full Ruby 1.9.x compatibility
11
+ * Major overhaul of automated test suite
12
+ * Support for merchant-calculated and allow-us-po-box tags
13
+ * Update to Money library version 2.3 (beware - this may break things if you expect the currency to be a string)
14
+ * Verify that we are actually talking to Google's servers when sending checkout commands
15
+ * Generated XML will no longer include extra whitespace, to help comply with Google's XML schema
16
+ * Use BigDecimal instead of Float for all calculations due to weird rounding errors in Ruby's standard library
17
+ * Fixed deprecation warnings
18
+
3
19
  == 1.0.6.1 (2010-04-20)
4
20
 
5
21
  * Fixed issue #14 - will not load on Ruby 1.9.x
data/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # google4r/checkout
2
+
3
+ google4r/checkout is a library to access the Google Checkout API.
4
+
5
+ ### License
6
+
7
+ google4r itself is distributed under an MIT style license.
8
+
9
+ However, the library includes the [cacert.pem](http://curl.haxx.se/ca/cacert.pem) file from the Mozilla project. This file is distributed under the [MPL](http://www.mozilla.org/MPL/).
10
+
11
+ ### Installing
12
+
13
+ Gems are hosted on rubygems.org (aka Gemcutter), so on reasonably recent versions of Rubygems, you should be able to install just like this:
14
+
15
+ gem install google4r-checkout
16
+
17
+ Or, go to [our page on rubygems.org](http://rubygems.org/gems/google4r-checkout).
18
+
19
+ ### Issue Tracking and Wiki
20
+
21
+ Our issue tracker and wiki can be found [on Google Code](http://code.google.com/p/google-checkout-ruby-sample-code/). The best way to let us know about bugs or feature requests is to report an issue there.
22
+
23
+ ### Documentation
24
+
25
+ We've got RDoc documentation for the google4r-checkout library [generated on rdoc.info](http://rdoc.info/projects/nbudin/google4r-checkout).
26
+
27
+ You can find more information on the Google Checkout API [here](http://code.google.com/apis/checkout/developer/index.html). Note that the API documentation assumes an understanding of the Google Checkout XML API.
28
+
29
+ ## Google Checkout Tests
30
+
31
+ You have to place a file called 'frontend_configuration.rb' in the directory'test' with the configuration for the Google4R::Checkout::Frontend class to use for running the tests.
32
+
33
+ The file should contain content similar to:
34
+
35
+ # Uncomment the following line if you are using Google Checkout in Great Britain
36
+ # and adjust it if you want to test google4r-checkout against any other (future)
37
+ # Google Checkout service.
38
+
39
+ # Money.default_currency = 'GBP'
40
+
41
+ # The test configuration for the Google4R::Checkout::Frontend class.
42
+ FRONTEND_CONFIGURATION =
43
+ {
44
+ :merchant_id => '<your merchant id>',
45
+ :merchant_key => '<your merchant key>',
46
+ :use_sandbox => true
47
+ }
48
+
49
+ ## Dependencies
50
+
51
+ The unit tests use Mocha so you have to install the gem "mocha" to run the tests. You will also need the money gem library.
52
+
53
+ ## How To: Freeze a google4r version in a Rails project
54
+
55
+ <code>rake rails:freeze:gems</code> only works for the Rails gems. So, how do you freeze your own gems like google4r? It turns out to be pretty straightforward:
56
+
57
+ cd RAILS_ROOT
58
+ cd vendor
59
+ gem unpack google4r-checkout
60
+ ls
61
+ # ... google4r-checkout-0.1.1 ...
62
+
63
+ Then, open RAILS_ROOT/config/environment.rb in your favourite text editor and add the following lines at the top of the file just below <code>require File.join(File.dirname(__FILE__), 'boot')</code>:
64
+
65
+ # Freeze non-Rails gem.
66
+ Dir.glob(File.join(RAILS_ROOT, 'vendor', '*', 'lib')) do |path|
67
+ $LOAD_PATH << path
68
+ end
69
+
70
+ Now you can use the following in your own code:
71
+
72
+ require 'google4r/checkout'
@@ -272,7 +272,7 @@ module Google4R #:nodoc:
272
272
  item_element.add_element('item-name').text = item.name
273
273
  item_element.add_element('item-description').text = item.description
274
274
 
275
- item_element.add_element('unit-price', { 'currency' => item.unit_price.currency }).text = item.unit_price.to_s
275
+ item_element.add_element('unit-price', { 'currency' => item.unit_price.currency.to_s }).text = item.unit_price.to_s
276
276
  item_element.add_element('quantity').text = item.quantity.to_i
277
277
 
278
278
  if not item.id.nil? then
@@ -356,7 +356,7 @@ module Google4R #:nodoc:
356
356
  end
357
357
 
358
358
  if not payment.maximum_charge.nil? then
359
- payment_element.add_element('maximum-charge', { 'currency' => payment.maximum_charge.currency }).text = payment.maximum_charge.to_s
359
+ payment_element.add_element('maximum-charge', { 'currency' => payment.maximum_charge.currency.to_s }).text = payment.maximum_charge.to_s
360
360
  end
361
361
  end
362
362
 
@@ -401,7 +401,7 @@ module Google4R #:nodoc:
401
401
  def process_shipping(shipping_type, parent, shipping)
402
402
  element = parent.add_element(shipping_type)
403
403
  element.add_attribute('name', shipping.name)
404
- element.add_element('price', { 'currency' => shipping.price.currency }).text = shipping.price.to_s
404
+ element.add_element('price', { 'currency' => shipping.price.currency.to_s }).text = shipping.price.to_s
405
405
 
406
406
  if shipping.shipping_restrictions_excluded_areas.length +
407
407
  shipping.shipping_restrictions_allowed_areas.length > 0 then
@@ -465,7 +465,7 @@ module Google4R #:nodoc:
465
465
  def process_pickup(parent, shipping)
466
466
  element = parent.add_element('pickup')
467
467
  element.add_attribute('name', shipping.name)
468
- element.add_element('price', { 'currency' => shipping.price.currency }).text = shipping.price.to_s
468
+ element.add_element('price', { 'currency' => shipping.price.currency.to_s }).text = shipping.price.to_s
469
469
  end
470
470
 
471
471
  def process_carrier_calculated_shipping(shipping_type, parent, shipping)
@@ -482,7 +482,7 @@ module Google4R #:nodoc:
482
482
 
483
483
  def process_carrier_calculated_shipping_option(parent, option)
484
484
  element = parent.add_element('carrier-calculated-shipping-option')
485
- element.add_element('price', { 'currency' => option.price.currency }).text = option.price.to_s
485
+ element.add_element('price', { 'currency' => option.price.currency.to_s }).text = option.price.to_s
486
486
  element.add_element('shipping-company').text = option.shipping_company
487
487
  element.add_element('shipping-type').text = option.shipping_type
488
488
  if not option.carrier_pickup.nil?
@@ -490,7 +490,7 @@ module Google4R #:nodoc:
490
490
  end
491
491
  if not option.additional_fixed_charge.nil?
492
492
  element.add_element('additional-fixed-charge',
493
- { 'currency' => option.additional_fixed_charge.currency }).text =
493
+ { 'currency' => option.additional_fixed_charge.currency.to_s }).text =
494
494
  option.additional_fixed_charge.to_s
495
495
  end
496
496
  if not option.additional_variable_charge_percent.nil?
@@ -615,7 +615,7 @@ module Google4R #:nodoc:
615
615
  def process_money(parent, money)
616
616
  amount_element = parent.add_element('amount')
617
617
  amount_element.text = money.to_s
618
- amount_element.add_attribute('currency', money.currency)
618
+ amount_element.add_attribute('currency', money.currency.to_s)
619
619
  end
620
620
  end
621
621
 
@@ -634,7 +634,7 @@ module Google4R #:nodoc:
634
634
  def process_money(parent, money)
635
635
  amount_element = parent.add_element('amount')
636
636
  amount_element.text = money.to_s
637
- amount_element.add_attribute('currency', money.currency)
637
+ amount_element.add_attribute('currency', money.currency.to_s)
638
638
  end
639
639
 
640
640
  # add the comment element to the refund command
@@ -811,12 +811,12 @@ module Google4R #:nodoc:
811
811
  element.add_attribute("address-id", merchant_calculation_result.address_id)
812
812
  shipping_rate = element.add_element("shipping-rate")
813
813
  shipping_rate.text = merchant_calculation_result.shipping_rate.to_s
814
- shipping_rate.add_attribute("currency", merchant_calculation_result.shipping_rate.currency)
814
+ shipping_rate.add_attribute("currency", merchant_calculation_result.shipping_rate.currency.to_s)
815
815
  element.add_element("shippable").text = merchant_calculation_result.shippable.to_s
816
816
  if (!merchant_calculation_result.total_tax.nil?)
817
817
  total_tax = element.add_element("total-tax")
818
818
  total_tax.text = merchant_calculation_result.total_tax.to_s
819
- total_tax.add_attribute("currency", merchant_calculation_result.total_tax.currency)
819
+ total_tax.add_attribute("currency", merchant_calculation_result.total_tax.currency.to_s)
820
820
  end
821
821
  process_code_results(element, merchant_calculation_result.merchant_code_results)
822
822
  end
@@ -840,7 +840,7 @@ module Google4R #:nodoc:
840
840
  element.add_element("code").text = merchant_code_result.code.to_s
841
841
  calculated_amount = element.add_element("calculated-amount")
842
842
  calculated_amount.text = merchant_code_result.calculated_amount.to_s
843
- calculated_amount.add_attribute("currency", merchant_code_result.calculated_amount.currency)
843
+ calculated_amount.add_attribute("currency", merchant_code_result.calculated_amount.currency.to_s)
844
844
  element.add_element("message").text = merchant_code_result.message
845
845
  end
846
846
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google4r-checkout
3
3
  version: !ruby/object:Gem::Version
4
+ hash: -1848230122
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - beta1
9
- version: 1.1.beta1
9
+ - beta2
10
+ version: 1.1.beta2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tony Chan
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-21 00:00:00 -04:00
18
+ date: 2010-06-23 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: money
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
- - - ~>
27
+ - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 2
29
32
  - 3
@@ -38,20 +41,80 @@ executables: []
38
41
  extensions: []
39
42
 
40
43
  extra_rdoc_files:
41
- - README
44
+ - README.md
42
45
  - LICENSE
43
46
  - CHANGES
44
47
  files:
45
- - lib/google4r/checkout.rb
48
+ - lib/google4r/checkout/commands.rb
46
49
  - lib/google4r/checkout/frontend.rb
47
- - lib/google4r/checkout/shared.rb
50
+ - lib/google4r/checkout/merchant_calculation.rb
48
51
  - lib/google4r/checkout/notifications.rb
52
+ - lib/google4r/checkout/shared.rb
49
53
  - lib/google4r/checkout/utils.rb
50
54
  - lib/google4r/checkout/xml_generation.rb
51
- - lib/google4r/checkout/commands.rb
52
- - lib/google4r/checkout/merchant_calculation.rb
55
+ - lib/google4r/checkout.rb
53
56
  - var/cacert.pem
54
- - README
57
+ - test/integration/checkout_command_test.rb
58
+ - test/unit/add_merchant_order_number_command_test.rb
59
+ - test/unit/add_tracking_data_command_test.rb
60
+ - test/unit/address_test.rb
61
+ - test/unit/anonymous_address_test.rb
62
+ - test/unit/archive_order_command_test.rb
63
+ - test/unit/area_test.rb
64
+ - test/unit/authorization_amount_notification_test.rb
65
+ - test/unit/authorize_order_command_test.rb
66
+ - test/unit/backorder_items_command_test.rb
67
+ - test/unit/callback_handler_test.rb
68
+ - test/unit/cancel_items_command_test.rb
69
+ - test/unit/cancel_order_command_test.rb
70
+ - test/unit/carrier_calculated_shipping_test.rb
71
+ - test/unit/charge_amount_notification_test.rb
72
+ - test/unit/charge_order_command_test.rb
73
+ - test/unit/chargeback_amount_notification_test.rb
74
+ - test/unit/checkout_command_test.rb
75
+ - test/unit/checkout_command_xml_generator_test.rb
76
+ - test/unit/command_test.rb
77
+ - test/unit/deliver_order_command_test.rb
78
+ - test/unit/delivery_method_test.rb
79
+ - test/unit/digital_content_test.rb
80
+ - test/unit/flat_rate_shipping_test.rb
81
+ - test/unit/frontend_test.rb
82
+ - test/unit/item_info_test.rb
83
+ - test/unit/item_test.rb
84
+ - test/unit/marketing_preferences_test.rb
85
+ - test/unit/merchant_calculated_shipping_test.rb
86
+ - test/unit/merchant_calculation_callback_test.rb
87
+ - test/unit/merchant_calculation_result_test.rb
88
+ - test/unit/merchant_calculation_results_test.rb
89
+ - test/unit/merchant_code_result_test.rb
90
+ - test/unit/merchant_code_test.rb
91
+ - test/unit/new_order_notification_test.rb
92
+ - test/unit/notification_acknowledgement_test.rb
93
+ - test/unit/notification_handler_test.rb
94
+ - test/unit/order_adjustment_test.rb
95
+ - test/unit/order_report_command_test.rb
96
+ - test/unit/order_state_change_notification_test.rb
97
+ - test/unit/pickup_shipping_test.rb
98
+ - test/unit/postal_area_test.rb
99
+ - test/unit/private_data_parser_test.rb
100
+ - test/unit/refund_amount_notification_test.rb
101
+ - test/unit/refund_order_command_test.rb
102
+ - test/unit/reset_items_shipping_information_command_test.rb
103
+ - test/unit/return_items_command_test.rb
104
+ - test/unit/risk_information_notification_test.rb
105
+ - test/unit/send_buyer_message_command_test.rb
106
+ - test/unit/ship_items_command_test.rb
107
+ - test/unit/shipping_adjustment_test.rb
108
+ - test/unit/shopping_cart_test.rb
109
+ - test/unit/tax_rule_test.rb
110
+ - test/unit/tax_table_test.rb
111
+ - test/unit/tracking_data_test.rb
112
+ - test/unit/unarchive_order_command_test.rb
113
+ - test/unit/us_country_area_test.rb
114
+ - test/unit/us_state_area_test.rb
115
+ - test/unit/us_zip_area_test.rb
116
+ - test/unit/world_area_test.rb
117
+ - README.md
55
118
  - LICENSE
56
119
  - CHANGES
57
120
  has_rdoc: true
@@ -64,18 +127,22 @@ rdoc_options: []
64
127
  require_paths:
65
128
  - lib
66
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
67
131
  requirements:
68
132
  - - ">="
69
133
  - !ruby/object:Gem::Version
134
+ hash: 63
70
135
  segments:
71
136
  - 1
72
137
  - 8
73
138
  - 4
74
139
  version: 1.8.4
75
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
+ none: false
76
142
  requirements:
77
143
  - - ">"
78
144
  - !ruby/object:Gem::Version
145
+ hash: 25
79
146
  segments:
80
147
  - 1
81
148
  - 3
@@ -84,68 +151,68 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
151
  requirements: []
85
152
 
86
153
  rubyforge_project:
87
- rubygems_version: 1.3.6
154
+ rubygems_version: 1.3.7
88
155
  signing_key:
89
156
  specification_version: 3
90
157
  summary: Ruby library to access the Google Checkout service and implement notification handlers.
91
158
  test_files:
92
159
  - test/integration/checkout_command_test.rb
93
- - test/unit/order_adjustment_test.rb
94
- - test/unit/pickup_shipping_test.rb
95
- - test/unit/merchant_code_test.rb
96
- - test/unit/chargeback_amount_notification_test.rb
160
+ - test/unit/add_merchant_order_number_command_test.rb
161
+ - test/unit/add_tracking_data_command_test.rb
162
+ - test/unit/address_test.rb
163
+ - test/unit/anonymous_address_test.rb
164
+ - test/unit/archive_order_command_test.rb
165
+ - test/unit/area_test.rb
166
+ - test/unit/authorization_amount_notification_test.rb
97
167
  - test/unit/authorize_order_command_test.rb
98
- - test/unit/merchant_calculation_results_test.rb
99
- - test/unit/risk_information_notification_test.rb
100
- - test/unit/ship_items_command_test.rb
101
- - test/unit/tax_table_test.rb
102
168
  - test/unit/backorder_items_command_test.rb
103
- - test/unit/flat_rate_shipping_test.rb
104
- - test/unit/refund_order_command_test.rb
105
- - test/unit/merchant_code_result_test.rb
106
169
  - test/unit/callback_handler_test.rb
107
- - test/unit/charge_order_command_test.rb
108
- - test/unit/charge_amount_notification_test.rb
170
+ - test/unit/cancel_items_command_test.rb
171
+ - test/unit/cancel_order_command_test.rb
109
172
  - test/unit/carrier_calculated_shipping_test.rb
110
- - test/unit/return_items_command_test.rb
111
- - test/unit/add_merchant_order_number_command_test.rb
112
- - test/unit/authorization_amount_notification_test.rb
173
+ - test/unit/charge_amount_notification_test.rb
174
+ - test/unit/charge_order_command_test.rb
175
+ - test/unit/chargeback_amount_notification_test.rb
176
+ - test/unit/checkout_command_test.rb
177
+ - test/unit/checkout_command_xml_generator_test.rb
178
+ - test/unit/command_test.rb
179
+ - test/unit/deliver_order_command_test.rb
180
+ - test/unit/delivery_method_test.rb
181
+ - test/unit/digital_content_test.rb
182
+ - test/unit/flat_rate_shipping_test.rb
113
183
  - test/unit/frontend_test.rb
114
- - test/unit/add_tracking_data_command_test.rb
115
- - test/unit/address_test.rb
116
184
  - test/unit/item_info_test.rb
117
- - test/unit/order_state_change_notification_test.rb
118
- - test/unit/us_state_area_test.rb
119
- - test/unit/notification_handler_test.rb
120
- - test/unit/us_country_area_test.rb
121
- - test/unit/shopping_cart_test.rb
122
- - test/unit/reset_items_shipping_information_command_test.rb
123
- - test/unit/order_report_command_test.rb
124
- - test/unit/send_buyer_message_command_test.rb
125
185
  - test/unit/item_test.rb
126
- - test/unit/deliver_order_command_test.rb
127
- - test/unit/cancel_order_command_test.rb
128
- - test/unit/archive_order_command_test.rb
129
- - test/unit/world_area_test.rb
130
- - test/unit/new_order_notification_test.rb
131
- - test/unit/private_data_parser_test.rb
186
+ - test/unit/marketing_preferences_test.rb
132
187
  - test/unit/merchant_calculated_shipping_test.rb
133
- - test/unit/cancel_items_command_test.rb
134
- - test/unit/checkout_command_test.rb
135
- - test/unit/area_test.rb
188
+ - test/unit/merchant_calculation_callback_test.rb
136
189
  - test/unit/merchant_calculation_result_test.rb
137
- - test/unit/marketing_preferences_test.rb
190
+ - test/unit/merchant_calculation_results_test.rb
191
+ - test/unit/merchant_code_result_test.rb
192
+ - test/unit/merchant_code_test.rb
193
+ - test/unit/new_order_notification_test.rb
138
194
  - test/unit/notification_acknowledgement_test.rb
195
+ - test/unit/notification_handler_test.rb
196
+ - test/unit/order_adjustment_test.rb
197
+ - test/unit/order_report_command_test.rb
198
+ - test/unit/order_state_change_notification_test.rb
199
+ - test/unit/pickup_shipping_test.rb
200
+ - test/unit/postal_area_test.rb
201
+ - test/unit/private_data_parser_test.rb
139
202
  - test/unit/refund_amount_notification_test.rb
140
- - test/unit/tax_rule_test.rb
141
- - test/unit/unarchive_order_command_test.rb
142
- - test/unit/delivery_method_test.rb
143
- - test/unit/checkout_command_xml_generator_test.rb
203
+ - test/unit/refund_order_command_test.rb
204
+ - test/unit/reset_items_shipping_information_command_test.rb
205
+ - test/unit/return_items_command_test.rb
206
+ - test/unit/risk_information_notification_test.rb
207
+ - test/unit/send_buyer_message_command_test.rb
208
+ - test/unit/ship_items_command_test.rb
144
209
  - test/unit/shipping_adjustment_test.rb
210
+ - test/unit/shopping_cart_test.rb
211
+ - test/unit/tax_rule_test.rb
212
+ - test/unit/tax_table_test.rb
145
213
  - test/unit/tracking_data_test.rb
146
- - test/unit/postal_area_test.rb
147
- - test/unit/anonymous_address_test.rb
214
+ - test/unit/unarchive_order_command_test.rb
215
+ - test/unit/us_country_area_test.rb
216
+ - test/unit/us_state_area_test.rb
148
217
  - test/unit/us_zip_area_test.rb
149
- - test/unit/digital_content_test.rb
150
- - test/unit/command_test.rb
151
- - test/unit/merchant_calculation_callback_test.rb
218
+ - test/unit/world_area_test.rb
data/README DELETED
@@ -1,58 +0,0 @@
1
- = google4r/checkout
2
-
3
- google4r/checkout is a library to access the Google Checkout API.
4
-
5
- === License
6
-
7
- google4r itself is distributed under an MIT style license.
8
-
9
- However, the library includes the cacert.pem:http://curl.haxx.se/ca/cacert.pem file from the Mozilla project. This file is distributed under the MPL:http://www.mozilla.org/MPL/.
10
-
11
- == More Information
12
-
13
- You can find more information on the Google Checkout API here:http://code.google.com/apis/checkout/developer/index.html. Note that the API documentation assumes an understanding of the Google Checkout XML API.
14
-
15
- == Google Checkout Tests
16
-
17
- You have to place a file called 'frontend_configuration.rb' in the directory'test' with the configuration for the Google4R::Checkout::Frontend class to use for running the tests.
18
-
19
- The file should contain content similar to:
20
-
21
- # Uncomment the following line if you are using Google Checkout in Great Britain
22
- # and adjust it if you want to test google4r-checkout against any other (future)
23
- # Google Checkout service.
24
-
25
- # Money.default_currency = 'GBP'
26
-
27
- # The test configuration for the Google4R::Checkout::Frontend class.
28
- FRONTEND_CONFIGURATION =
29
- {
30
- :merchant_id => '<your merchant id>',
31
- :merchant_key => '<your merchant key>',
32
- :use_sandbox => true
33
- }
34
-
35
- == Dependencies
36
-
37
- The unit tests use Mocha so you have to install the gem "mocha" to run the tests. You will also need the money gem library.
38
-
39
- == How To: Freeze a google4r version in a Rails project
40
-
41
- <code>rake rails:freeze:gems</code> only works for the Rails gems. So, how do you freeze your own gems like google4r? It turns out to be pretty straightforward:
42
-
43
- cd RAILS_ROOT
44
- cd vendor
45
- gem unpack google4r-checkout
46
- ls
47
- # ... google4r-checkout-0.1.1 ...
48
-
49
- Then, open RAILS_ROOT/config/environment.rb in your favourite text editor and add the following lines at the top of the file just below <code>require File.join(File.dirname(__FILE__), 'boot')</code>:
50
-
51
- # Freeze non-Rails gem.
52
- Dir.glob(File.join(RAILS_ROOT, 'vendor', '*', 'lib')) do |path|
53
- $LOAD_PATH << path
54
- end
55
-
56
- Now you can use the following in your own code:
57
-
58
- require 'google4r/checkout'