mlins-google-checkout 0.0.2

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