rspreedly 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.document +5 -0
  2. data/.gitignore +5 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +78 -0
  5. data/Rakefile +48 -0
  6. data/VERSION +1 -0
  7. data/lib/rspreedly/base.rb +76 -0
  8. data/lib/rspreedly/complimentary_subscription.rb +5 -0
  9. data/lib/rspreedly/complimentary_time_extension.rb +5 -0
  10. data/lib/rspreedly/config.rb +84 -0
  11. data/lib/rspreedly/error.rb +9 -0
  12. data/lib/rspreedly/invoice.rb +61 -0
  13. data/lib/rspreedly/line_item.rb +5 -0
  14. data/lib/rspreedly/payment_method.rb +7 -0
  15. data/lib/rspreedly/subscriber.rb +153 -0
  16. data/lib/rspreedly/subscription_plan.rb +40 -0
  17. data/lib/rspreedly.rb +29 -0
  18. data/spec/config_spec.rb +144 -0
  19. data/spec/fixtures/complimentary_failed_active.xml +1 -0
  20. data/spec/fixtures/complimentary_failed_inactive.xml +1 -0
  21. data/spec/fixtures/complimentary_not_valid.xml +3 -0
  22. data/spec/fixtures/complimentary_success.xml +25 -0
  23. data/spec/fixtures/create_subscriber.xml +25 -0
  24. data/spec/fixtures/existing_subscriber.xml +1 -0
  25. data/spec/fixtures/free_plan_not_elligable.xml +1 -0
  26. data/spec/fixtures/free_plan_not_free.xml +1 -0
  27. data/spec/fixtures/free_plan_not_set.xml +1 -0
  28. data/spec/fixtures/free_plan_success.xml +25 -0
  29. data/spec/fixtures/invalid_subscriber.xml +1 -0
  30. data/spec/fixtures/invalid_update.xml +1 -0
  31. data/spec/fixtures/invoice_created.xml +43 -0
  32. data/spec/fixtures/invoice_invalid.xml +1 -0
  33. data/spec/fixtures/no_plans.xml +2 -0
  34. data/spec/fixtures/no_subscribers.xml +2 -0
  35. data/spec/fixtures/payment_already_paid.xml +1 -0
  36. data/spec/fixtures/payment_invalid.xml +1 -0
  37. data/spec/fixtures/payment_not_found.xml +1 -0
  38. data/spec/fixtures/payment_success.xml +43 -0
  39. data/spec/fixtures/plan_disabled.xml +1 -0
  40. data/spec/fixtures/plan_not_found.xml +1 -0
  41. data/spec/fixtures/subscriber.xml +25 -0
  42. data/spec/fixtures/subscriber_not_found.xml +1 -0
  43. data/spec/fixtures/subscribers.xml +75 -0
  44. data/spec/fixtures/subscription_plan_list.xml +91 -0
  45. data/spec/invoice_spec.rb +129 -0
  46. data/spec/spec_helper.rb +44 -0
  47. data/spec/subscriber_spec.rb +442 -0
  48. data/spec/subscription_plan_spec.rb +36 -0
  49. metadata +107 -0
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspreedly
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Richard Livsey
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-29 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: richard@livsey.org
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.rdoc
25
+ files:
26
+ - .document
27
+ - .gitignore
28
+ - LICENSE
29
+ - README.rdoc
30
+ - Rakefile
31
+ - VERSION
32
+ - lib/rspreedly.rb
33
+ - lib/rspreedly/base.rb
34
+ - lib/rspreedly/complimentary_subscription.rb
35
+ - lib/rspreedly/complimentary_time_extension.rb
36
+ - lib/rspreedly/config.rb
37
+ - lib/rspreedly/error.rb
38
+ - lib/rspreedly/invoice.rb
39
+ - lib/rspreedly/line_item.rb
40
+ - lib/rspreedly/payment_method.rb
41
+ - lib/rspreedly/subscriber.rb
42
+ - lib/rspreedly/subscription_plan.rb
43
+ - spec/config_spec.rb
44
+ - spec/fixtures/complimentary_failed_active.xml
45
+ - spec/fixtures/complimentary_failed_inactive.xml
46
+ - spec/fixtures/complimentary_not_valid.xml
47
+ - spec/fixtures/complimentary_success.xml
48
+ - spec/fixtures/create_subscriber.xml
49
+ - spec/fixtures/existing_subscriber.xml
50
+ - spec/fixtures/free_plan_not_elligable.xml
51
+ - spec/fixtures/free_plan_not_free.xml
52
+ - spec/fixtures/free_plan_not_set.xml
53
+ - spec/fixtures/free_plan_success.xml
54
+ - spec/fixtures/invalid_subscriber.xml
55
+ - spec/fixtures/invalid_update.xml
56
+ - spec/fixtures/invoice_created.xml
57
+ - spec/fixtures/invoice_invalid.xml
58
+ - spec/fixtures/no_plans.xml
59
+ - spec/fixtures/no_subscribers.xml
60
+ - spec/fixtures/payment_already_paid.xml
61
+ - spec/fixtures/payment_invalid.xml
62
+ - spec/fixtures/payment_not_found.xml
63
+ - spec/fixtures/payment_success.xml
64
+ - spec/fixtures/plan_disabled.xml
65
+ - spec/fixtures/plan_not_found.xml
66
+ - spec/fixtures/subscriber.xml
67
+ - spec/fixtures/subscriber_not_found.xml
68
+ - spec/fixtures/subscribers.xml
69
+ - spec/fixtures/subscription_plan_list.xml
70
+ - spec/invoice_spec.rb
71
+ - spec/spec_helper.rb
72
+ - spec/subscriber_spec.rb
73
+ - spec/subscription_plan_spec.rb
74
+ has_rdoc: true
75
+ homepage: http://github.com/rlivsey/rspreedly
76
+ licenses: []
77
+
78
+ post_install_message:
79
+ rdoc_options:
80
+ - --charset=UTF-8
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: "0"
88
+ version:
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ version:
95
+ requirements: []
96
+
97
+ rubyforge_project:
98
+ rubygems_version: 1.3.5
99
+ signing_key:
100
+ specification_version: 3
101
+ summary: Ruby library for the Spreedly API
102
+ test_files:
103
+ - spec/config_spec.rb
104
+ - spec/invoice_spec.rb
105
+ - spec/spec_helper.rb
106
+ - spec/subscriber_spec.rb
107
+ - spec/subscription_plan_spec.rb