google-checkout 0.5.0

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 (42) hide show
  1. data/History.txt +19 -0
  2. data/Isolate +13 -0
  3. data/MIT-LICENSE.txt +23 -0
  4. data/Manifest.txt +41 -0
  5. data/README.txt +148 -0
  6. data/Rakefile +35 -0
  7. data/examples/google_notifications_controller.rb +159 -0
  8. data/lib/duck_punches/hpricot.rb +24 -0
  9. data/lib/google-checkout.rb +61 -0
  10. data/lib/google-checkout/cart.rb +351 -0
  11. data/lib/google-checkout/command.rb +191 -0
  12. data/lib/google-checkout/notification.rb +226 -0
  13. data/spec/fixtures/google/checkout-shopping-cart.xml +22 -0
  14. data/spec/fixtures/google/commands/add-merchant-order-number.xml +5 -0
  15. data/spec/fixtures/google/commands/add-tracking-data.xml +8 -0
  16. data/spec/fixtures/google/commands/archive-order.xml +3 -0
  17. data/spec/fixtures/google/commands/authorize-order.xml +2 -0
  18. data/spec/fixtures/google/commands/cancel-order.xml +5 -0
  19. data/spec/fixtures/google/commands/charge-order.xml +4 -0
  20. data/spec/fixtures/google/commands/deliver-order.xml +9 -0
  21. data/spec/fixtures/google/commands/process-order.xml +2 -0
  22. data/spec/fixtures/google/commands/refund-order.xml +6 -0
  23. data/spec/fixtures/google/commands/send-buyer-message.xml +7 -0
  24. data/spec/fixtures/google/commands/unarchive-order.xml +2 -0
  25. data/spec/fixtures/google/notifications/authorization-amount-notification.xml +10 -0
  26. data/spec/fixtures/google/notifications/charge-amount-notification.xml +8 -0
  27. data/spec/fixtures/google/notifications/chargeback-amount-notification.xml +8 -0
  28. data/spec/fixtures/google/notifications/new-order-notification.xml +85 -0
  29. data/spec/fixtures/google/notifications/order-state-change-notification.xml +11 -0
  30. data/spec/fixtures/google/notifications/refund-amount-notification.xml +8 -0
  31. data/spec/fixtures/google/notifications/risk-information-notification.xml +23 -0
  32. data/spec/fixtures/google/responses/checkout-redirect.xml +5 -0
  33. data/spec/fixtures/google/responses/error.xml +5 -0
  34. data/spec/fixtures/google/responses/request-received.xml +3 -0
  35. data/spec/google-checkout/cart_spec.rb +101 -0
  36. data/spec/google-checkout/command_spec.rb +131 -0
  37. data/spec/google-checkout/notification_spec.rb +181 -0
  38. data/spec/google-checkout/response_spec.rb +49 -0
  39. data/spec/google-checkout_spec.rb +15 -0
  40. data/spec/spec_helper.rb +47 -0
  41. data/support/cacert.pem +7815 -0
  42. metadata +247 -0
metadata ADDED
@@ -0,0 +1,247 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-checkout
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
+ platform: ruby
12
+ authors:
13
+ - Geoffrey Grosenbach
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-02-08 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: builder
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: nokogiri
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: money
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 7
58
+ segments:
59
+ - 3
60
+ - 0
61
+ version: "3.0"
62
+ type: :runtime
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: activesupport
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ type: :runtime
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ name: hoe
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - "="
85
+ - !ruby/object:Gem::Version
86
+ hash: 19
87
+ segments:
88
+ - 2
89
+ - 8
90
+ version: "2.8"
91
+ type: :development
92
+ version_requirements: *id005
93
+ - !ruby/object:Gem::Dependency
94
+ name: hoe-doofus
95
+ prerelease: false
96
+ requirement: &id006 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - "="
100
+ - !ruby/object:Gem::Version
101
+ hash: 23
102
+ segments:
103
+ - 1
104
+ - 0
105
+ - 0
106
+ version: 1.0.0
107
+ type: :development
108
+ version_requirements: *id006
109
+ - !ruby/object:Gem::Dependency
110
+ name: hoe-git
111
+ prerelease: false
112
+ requirement: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - "="
116
+ - !ruby/object:Gem::Version
117
+ hash: 27
118
+ segments:
119
+ - 1
120
+ - 3
121
+ - 0
122
+ version: 1.3.0
123
+ type: :development
124
+ version_requirements: *id007
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ prerelease: false
128
+ requirement: &id008 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - "="
132
+ - !ruby/object:Gem::Version
133
+ hash: 27
134
+ segments:
135
+ - 1
136
+ - 3
137
+ - 0
138
+ version: 1.3.0
139
+ type: :development
140
+ version_requirements: *id008
141
+ - !ruby/object:Gem::Dependency
142
+ name: hoe
143
+ prerelease: false
144
+ requirement: &id009 !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 47
150
+ segments:
151
+ - 2
152
+ - 8
153
+ - 0
154
+ version: 2.8.0
155
+ type: :development
156
+ version_requirements: *id009
157
+ description: Experimental library for working with GoogleCheckout. Currently in use for payment at http://peepcode.com.
158
+ email:
159
+ - boss@topfunky.com
160
+ executables: []
161
+
162
+ extensions: []
163
+
164
+ extra_rdoc_files:
165
+ - History.txt
166
+ - MIT-LICENSE.txt
167
+ - Manifest.txt
168
+ - README.txt
169
+ files:
170
+ - History.txt
171
+ - Isolate
172
+ - MIT-LICENSE.txt
173
+ - Manifest.txt
174
+ - README.txt
175
+ - Rakefile
176
+ - examples/google_notifications_controller.rb
177
+ - lib/duck_punches/hpricot.rb
178
+ - lib/google-checkout.rb
179
+ - lib/google-checkout/cart.rb
180
+ - lib/google-checkout/command.rb
181
+ - lib/google-checkout/notification.rb
182
+ - spec/fixtures/google/checkout-shopping-cart.xml
183
+ - spec/fixtures/google/commands/add-merchant-order-number.xml
184
+ - spec/fixtures/google/commands/add-tracking-data.xml
185
+ - spec/fixtures/google/commands/archive-order.xml
186
+ - spec/fixtures/google/commands/authorize-order.xml
187
+ - spec/fixtures/google/commands/cancel-order.xml
188
+ - spec/fixtures/google/commands/charge-order.xml
189
+ - spec/fixtures/google/commands/deliver-order.xml
190
+ - spec/fixtures/google/commands/process-order.xml
191
+ - spec/fixtures/google/commands/refund-order.xml
192
+ - spec/fixtures/google/commands/send-buyer-message.xml
193
+ - spec/fixtures/google/commands/unarchive-order.xml
194
+ - spec/fixtures/google/notifications/authorization-amount-notification.xml
195
+ - spec/fixtures/google/notifications/charge-amount-notification.xml
196
+ - spec/fixtures/google/notifications/chargeback-amount-notification.xml
197
+ - spec/fixtures/google/notifications/new-order-notification.xml
198
+ - spec/fixtures/google/notifications/order-state-change-notification.xml
199
+ - spec/fixtures/google/notifications/refund-amount-notification.xml
200
+ - spec/fixtures/google/notifications/risk-information-notification.xml
201
+ - spec/fixtures/google/responses/checkout-redirect.xml
202
+ - spec/fixtures/google/responses/error.xml
203
+ - spec/fixtures/google/responses/request-received.xml
204
+ - spec/google-checkout/cart_spec.rb
205
+ - spec/google-checkout/command_spec.rb
206
+ - spec/google-checkout/notification_spec.rb
207
+ - spec/google-checkout/response_spec.rb
208
+ - spec/google-checkout_spec.rb
209
+ - spec/spec_helper.rb
210
+ - support/cacert.pem
211
+ has_rdoc: true
212
+ homepage: http://github.com/topfunky/google-checkout
213
+ licenses: []
214
+
215
+ post_install_message:
216
+ rdoc_options:
217
+ - --main
218
+ - README.txt
219
+ require_paths:
220
+ - lib
221
+ required_ruby_version: !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 3
227
+ segments:
228
+ - 0
229
+ version: "0"
230
+ required_rubygems_version: !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ hash: 3
236
+ segments:
237
+ - 0
238
+ version: "0"
239
+ requirements: []
240
+
241
+ rubyforge_project: google-checkout
242
+ rubygems_version: 1.3.7
243
+ signing_key:
244
+ specification_version: 3
245
+ summary: Experimental library for working with GoogleCheckout
246
+ test_files: []
247
+