vizjerai-google-checkout 0.0.5

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.
Files changed (67) hide show
  1. data/History.txt +14 -0
  2. data/MIT-LICENSE.txt +23 -0
  3. data/README.txt +143 -0
  4. data/Rakefile +34 -0
  5. data/VERSION.yml +4 -0
  6. data/examples/google_notifications_controller.rb +159 -0
  7. data/lib/duck_punches/hpricot.rb +24 -0
  8. data/lib/google-checkout/cart.rb +304 -0
  9. data/lib/google-checkout/command.rb +255 -0
  10. data/lib/google-checkout/geography/area.rb +11 -0
  11. data/lib/google-checkout/geography/postal.rb +26 -0
  12. data/lib/google-checkout/geography/us_country.rb +24 -0
  13. data/lib/google-checkout/geography/us_state.rb +22 -0
  14. data/lib/google-checkout/geography/us_zip.rb +22 -0
  15. data/lib/google-checkout/geography/world.rb +12 -0
  16. data/lib/google-checkout/geography.rb +7 -0
  17. data/lib/google-checkout/merchant_calculation.rb +30 -0
  18. data/lib/google-checkout/notification.rb +352 -0
  19. data/lib/google-checkout/shipping/filters.rb +32 -0
  20. data/lib/google-checkout/shipping/flat_rate.rb +26 -0
  21. data/lib/google-checkout/shipping/merchant_calculated.rb +29 -0
  22. data/lib/google-checkout/shipping/method.rb +11 -0
  23. data/lib/google-checkout/shipping/pickup.rb +22 -0
  24. data/lib/google-checkout/shipping/restrictions.rb +32 -0
  25. data/lib/google-checkout/shipping.rb +8 -0
  26. data/lib/google-checkout.rb +65 -0
  27. data/spec/fixtures/google/checkout-shopping-cart.xml +22 -0
  28. data/spec/fixtures/google/commands/add-merchant-order-number.xml +5 -0
  29. data/spec/fixtures/google/commands/add-tracking-data.xml +8 -0
  30. data/spec/fixtures/google/commands/archive-order.xml +3 -0
  31. data/spec/fixtures/google/commands/authorize-order.xml +2 -0
  32. data/spec/fixtures/google/commands/cancel-order.xml +5 -0
  33. data/spec/fixtures/google/commands/charge-order.xml +4 -0
  34. data/spec/fixtures/google/commands/deliver-order.xml +9 -0
  35. data/spec/fixtures/google/commands/process-order.xml +2 -0
  36. data/spec/fixtures/google/commands/refund-order.xml +6 -0
  37. data/spec/fixtures/google/commands/send-buyer-message.xml +7 -0
  38. data/spec/fixtures/google/commands/unarchive-order.xml +2 -0
  39. data/spec/fixtures/google/merchant_calculations/shipping.xml +40 -0
  40. data/spec/fixtures/google/notifications/authorization-amount-notification.xml +10 -0
  41. data/spec/fixtures/google/notifications/charge-amount-notification.xml +8 -0
  42. data/spec/fixtures/google/notifications/chargeback-amount-notification.xml +8 -0
  43. data/spec/fixtures/google/notifications/new-order-notification.xml +94 -0
  44. data/spec/fixtures/google/notifications/order-state-change-notification.xml +11 -0
  45. data/spec/fixtures/google/notifications/refund-amount-notification.xml +8 -0
  46. data/spec/fixtures/google/notifications/risk-information-notification.xml +23 -0
  47. data/spec/fixtures/google/responses/checkout-redirect.xml +5 -0
  48. data/spec/fixtures/google/responses/error-charged.xml +5 -0
  49. data/spec/fixtures/google/responses/error.xml +5 -0
  50. data/spec/fixtures/google/responses/request-received.xml +3 -0
  51. data/spec/google-checkout/cart_spec.rb +110 -0
  52. data/spec/google-checkout/command_spec.rb +216 -0
  53. data/spec/google-checkout/geography/postal_spec.rb +26 -0
  54. data/spec/google-checkout/geography/us_country_spec.rb +26 -0
  55. data/spec/google-checkout/geography/us_state_spec.rb +11 -0
  56. data/spec/google-checkout/geography/us_zip_spec.rb +11 -0
  57. data/spec/google-checkout/geography/world_spec.rb +12 -0
  58. data/spec/google-checkout/merchant_calculation_spec.rb +17 -0
  59. data/spec/google-checkout/notification_spec.rb +253 -0
  60. data/spec/google-checkout/response_spec.rb +49 -0
  61. data/spec/google-checkout/shipping/flat_rate_spec.rb +46 -0
  62. data/spec/google-checkout/shipping/merchant_calculated_spec.rb +70 -0
  63. data/spec/google-checkout/shipping/pickup_spec.rb +22 -0
  64. data/spec/google-checkout_spec.rb +15 -0
  65. data/spec/spec_helper.rb +47 -0
  66. data/support/cacert.pem +7815 -0
  67. metadata +145 -0
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vizjerai-google-checkout
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Peter Elmore
8
+ - Geoffrey Grosenbach
9
+ - Matt Lins
10
+ - Andrew Assarattanakul
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+
15
+ date: 2009-05-18 00:00:00 -07:00
16
+ default_executable:
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: ruby-hmac
20
+ type: :runtime
21
+ version_requirement:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: "0"
27
+ version:
28
+ description: An experimental library for sending payment requests to Google Checkout.
29
+ email: mattlins@gmail.com
30
+ executables: []
31
+
32
+ extensions: []
33
+
34
+ extra_rdoc_files:
35
+ - README.txt
36
+ files:
37
+ - History.txt
38
+ - MIT-LICENSE.txt
39
+ - README.txt
40
+ - Rakefile
41
+ - VERSION.yml
42
+ - examples/google_notifications_controller.rb
43
+ - lib/duck_punches/hpricot.rb
44
+ - lib/google-checkout.rb
45
+ - lib/google-checkout/cart.rb
46
+ - lib/google-checkout/command.rb
47
+ - lib/google-checkout/geography.rb
48
+ - lib/google-checkout/geography/area.rb
49
+ - lib/google-checkout/geography/postal.rb
50
+ - lib/google-checkout/geography/us_country.rb
51
+ - lib/google-checkout/geography/us_state.rb
52
+ - lib/google-checkout/geography/us_zip.rb
53
+ - lib/google-checkout/geography/world.rb
54
+ - lib/google-checkout/merchant_calculation.rb
55
+ - lib/google-checkout/notification.rb
56
+ - lib/google-checkout/shipping.rb
57
+ - lib/google-checkout/shipping/filters.rb
58
+ - lib/google-checkout/shipping/flat_rate.rb
59
+ - lib/google-checkout/shipping/merchant_calculated.rb
60
+ - lib/google-checkout/shipping/method.rb
61
+ - lib/google-checkout/shipping/pickup.rb
62
+ - lib/google-checkout/shipping/restrictions.rb
63
+ - spec/fixtures/google/checkout-shopping-cart.xml
64
+ - spec/fixtures/google/commands/add-merchant-order-number.xml
65
+ - spec/fixtures/google/commands/add-tracking-data.xml
66
+ - spec/fixtures/google/commands/archive-order.xml
67
+ - spec/fixtures/google/commands/authorize-order.xml
68
+ - spec/fixtures/google/commands/cancel-order.xml
69
+ - spec/fixtures/google/commands/charge-order.xml
70
+ - spec/fixtures/google/commands/deliver-order.xml
71
+ - spec/fixtures/google/commands/process-order.xml
72
+ - spec/fixtures/google/commands/refund-order.xml
73
+ - spec/fixtures/google/commands/send-buyer-message.xml
74
+ - spec/fixtures/google/commands/unarchive-order.xml
75
+ - spec/fixtures/google/merchant_calculations/shipping.xml
76
+ - spec/fixtures/google/notifications/authorization-amount-notification.xml
77
+ - spec/fixtures/google/notifications/charge-amount-notification.xml
78
+ - spec/fixtures/google/notifications/chargeback-amount-notification.xml
79
+ - spec/fixtures/google/notifications/new-order-notification.xml
80
+ - spec/fixtures/google/notifications/order-state-change-notification.xml
81
+ - spec/fixtures/google/notifications/refund-amount-notification.xml
82
+ - spec/fixtures/google/notifications/risk-information-notification.xml
83
+ - spec/fixtures/google/responses/checkout-redirect.xml
84
+ - spec/fixtures/google/responses/error-charged.xml
85
+ - spec/fixtures/google/responses/error.xml
86
+ - spec/fixtures/google/responses/request-received.xml
87
+ - spec/google-checkout/cart_spec.rb
88
+ - spec/google-checkout/command_spec.rb
89
+ - spec/google-checkout/geography/postal_spec.rb
90
+ - spec/google-checkout/geography/us_country_spec.rb
91
+ - spec/google-checkout/geography/us_state_spec.rb
92
+ - spec/google-checkout/geography/us_zip_spec.rb
93
+ - spec/google-checkout/geography/world_spec.rb
94
+ - spec/google-checkout/merchant_calculation_spec.rb
95
+ - spec/google-checkout/notification_spec.rb
96
+ - spec/google-checkout/response_spec.rb
97
+ - spec/google-checkout/shipping/flat_rate_spec.rb
98
+ - spec/google-checkout/shipping/merchant_calculated_spec.rb
99
+ - spec/google-checkout/shipping/pickup_spec.rb
100
+ - spec/google-checkout_spec.rb
101
+ - spec/spec_helper.rb
102
+ - support/cacert.pem
103
+ has_rdoc: true
104
+ homepage: http://github.com/mlins/google-checkout/
105
+ post_install_message:
106
+ rdoc_options:
107
+ - --charset=UTF-8
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: "0"
115
+ version:
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: "0"
121
+ version:
122
+ requirements: []
123
+
124
+ rubyforge_project:
125
+ rubygems_version: 1.2.0
126
+ signing_key:
127
+ specification_version: 2
128
+ summary: An experimental library for sending payment requests to Google Checkout.
129
+ test_files:
130
+ - spec/google-checkout/cart_spec.rb
131
+ - spec/google-checkout/command_spec.rb
132
+ - spec/google-checkout/geography/postal_spec.rb
133
+ - spec/google-checkout/geography/us_country_spec.rb
134
+ - spec/google-checkout/geography/us_state_spec.rb
135
+ - spec/google-checkout/geography/us_zip_spec.rb
136
+ - spec/google-checkout/geography/world_spec.rb
137
+ - spec/google-checkout/merchant_calculation_spec.rb
138
+ - spec/google-checkout/notification_spec.rb
139
+ - spec/google-checkout/response_spec.rb
140
+ - spec/google-checkout/shipping/flat_rate_spec.rb
141
+ - spec/google-checkout/shipping/merchant_calculated_spec.rb
142
+ - spec/google-checkout/shipping/pickup_spec.rb
143
+ - spec/google-checkout_spec.rb
144
+ - spec/spec_helper.rb
145
+ - examples/google_notifications_controller.rb