sumskyi-google-checkout 0.3.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 (41) hide show
  1. data/History.txt +14 -0
  2. data/MIT-LICENSE.txt +23 -0
  3. data/Manifest.txt +41 -0
  4. data/README.txt +148 -0
  5. data/Rakefile +34 -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 +61 -0
  9. data/lib/google-checkout/cart.rb +351 -0
  10. data/lib/google-checkout/command.rb +191 -0
  11. data/lib/google-checkout/notification.rb +226 -0
  12. data/spec/fixtures/google/checkout-shopping-cart.xml +22 -0
  13. data/spec/fixtures/google/commands/add-merchant-order-number.xml +5 -0
  14. data/spec/fixtures/google/commands/add-tracking-data.xml +8 -0
  15. data/spec/fixtures/google/commands/archive-order.xml +3 -0
  16. data/spec/fixtures/google/commands/authorize-order.xml +2 -0
  17. data/spec/fixtures/google/commands/cancel-order.xml +5 -0
  18. data/spec/fixtures/google/commands/charge-order.xml +4 -0
  19. data/spec/fixtures/google/commands/deliver-order.xml +9 -0
  20. data/spec/fixtures/google/commands/process-order.xml +2 -0
  21. data/spec/fixtures/google/commands/refund-order.xml +6 -0
  22. data/spec/fixtures/google/commands/send-buyer-message.xml +7 -0
  23. data/spec/fixtures/google/commands/unarchive-order.xml +2 -0
  24. data/spec/fixtures/google/notifications/authorization-amount-notification.xml +10 -0
  25. data/spec/fixtures/google/notifications/charge-amount-notification.xml +8 -0
  26. data/spec/fixtures/google/notifications/chargeback-amount-notification.xml +8 -0
  27. data/spec/fixtures/google/notifications/new-order-notification.xml +85 -0
  28. data/spec/fixtures/google/notifications/order-state-change-notification.xml +11 -0
  29. data/spec/fixtures/google/notifications/refund-amount-notification.xml +8 -0
  30. data/spec/fixtures/google/notifications/risk-information-notification.xml +23 -0
  31. data/spec/fixtures/google/responses/checkout-redirect.xml +5 -0
  32. data/spec/fixtures/google/responses/error.xml +5 -0
  33. data/spec/fixtures/google/responses/request-received.xml +3 -0
  34. data/spec/google-checkout/cart_spec.rb +101 -0
  35. data/spec/google-checkout/command_spec.rb +131 -0
  36. data/spec/google-checkout/notification_spec.rb +181 -0
  37. data/spec/google-checkout/response_spec.rb +49 -0
  38. data/spec/google-checkout_spec.rb +15 -0
  39. data/spec/spec_helper.rb +47 -0
  40. data/support/cacert.pem +7815 -0
  41. metadata +140 -0
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sumskyi-google-checkout
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
+ platform: ruby
12
+ authors:
13
+ - Peter Elmore
14
+ - Geoffrey Grosenbach
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2008-07-31 00:00:00 +03:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: ruby-hmac
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: hoe
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 5
45
+ segments:
46
+ - 1
47
+ - 5
48
+ - 3
49
+ version: 1.5.3
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ description: "== DESCRIPTION: Experimental library for working with GoogleCheckout. Currently in use for payment at http://peepcode.com."
53
+ email: boss@topfunky.com
54
+ executables: []
55
+
56
+ extensions: []
57
+
58
+ extra_rdoc_files:
59
+ - History.txt
60
+ - Manifest.txt
61
+ - README.txt
62
+ - MIT-LICENSE.txt
63
+ files:
64
+ - History.txt
65
+ - Manifest.txt
66
+ - README.txt
67
+ - Rakefile
68
+ - lib/duck_punches/hpricot.rb
69
+ - lib/google-checkout.rb
70
+ - lib/google-checkout/cart.rb
71
+ - lib/google-checkout/command.rb
72
+ - lib/google-checkout/notification.rb
73
+ - spec/fixtures/google/checkout-shopping-cart.xml
74
+ - spec/fixtures/google/commands/add-merchant-order-number.xml
75
+ - spec/fixtures/google/commands/add-tracking-data.xml
76
+ - spec/fixtures/google/commands/archive-order.xml
77
+ - spec/fixtures/google/commands/authorize-order.xml
78
+ - spec/fixtures/google/commands/cancel-order.xml
79
+ - spec/fixtures/google/commands/charge-order.xml
80
+ - spec/fixtures/google/commands/deliver-order.xml
81
+ - spec/fixtures/google/commands/process-order.xml
82
+ - spec/fixtures/google/commands/refund-order.xml
83
+ - spec/fixtures/google/commands/send-buyer-message.xml
84
+ - spec/fixtures/google/commands/unarchive-order.xml
85
+ - spec/fixtures/google/notifications/authorization-amount-notification.xml
86
+ - spec/fixtures/google/notifications/charge-amount-notification.xml
87
+ - spec/fixtures/google/notifications/chargeback-amount-notification.xml
88
+ - spec/fixtures/google/notifications/new-order-notification.xml
89
+ - spec/fixtures/google/notifications/order-state-change-notification.xml
90
+ - spec/fixtures/google/notifications/refund-amount-notification.xml
91
+ - spec/fixtures/google/notifications/risk-information-notification.xml
92
+ - spec/fixtures/google/responses/checkout-redirect.xml
93
+ - spec/fixtures/google/responses/error.xml
94
+ - spec/fixtures/google/responses/request-received.xml
95
+ - spec/google-checkout/cart_spec.rb
96
+ - spec/google-checkout/command_spec.rb
97
+ - spec/google-checkout/notification_spec.rb
98
+ - spec/google-checkout/response_spec.rb
99
+ - spec/google-checkout_spec.rb
100
+ - spec/spec_helper.rb
101
+ - support/cacert.pem
102
+ - examples/google_notifications_controller.rb
103
+ - MIT-LICENSE.txt
104
+ has_rdoc: true
105
+ homepage: http://rubyforge.org/projects/google-checkout
106
+ licenses: []
107
+
108
+ post_install_message:
109
+ rdoc_options:
110
+ - --main
111
+ - README.txt
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
131
+ version: "0"
132
+ requirements: []
133
+
134
+ rubyforge_project: sumskyi-google-checkout
135
+ rubygems_version: 1.3.7
136
+ signing_key:
137
+ specification_version: 2
138
+ summary: An experimental library for sending payment requests to Google Checkout.
139
+ test_files: []
140
+