curdbee 0.0.1

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 (48) hide show
  1. data/Gemfile +16 -0
  2. data/Gemfile.lock +35 -0
  3. data/LICENSE +22 -0
  4. data/README.markdown +43 -0
  5. data/Rakefile +19 -0
  6. data/VERSION +1 -0
  7. data/curdbee.gemspec +103 -0
  8. data/examples/create_invoice_for_new_client.rb +58 -0
  9. data/lib/curdbee.rb +20 -0
  10. data/lib/curdbee/base.rb +75 -0
  11. data/lib/curdbee/client.rb +6 -0
  12. data/lib/curdbee/config.rb +33 -0
  13. data/lib/curdbee/error.rb +23 -0
  14. data/lib/curdbee/estimate.rb +14 -0
  15. data/lib/curdbee/invoice.rb +10 -0
  16. data/lib/curdbee/invoiceable.rb +35 -0
  17. data/lib/curdbee/item.rb +6 -0
  18. data/lib/curdbee/parser.rb +13 -0
  19. data/lib/curdbee/payment.rb +18 -0
  20. data/lib/curdbee/recurring_profile.rb +6 -0
  21. data/spec/client_spec.rb +144 -0
  22. data/spec/estimate_spec.rb +312 -0
  23. data/spec/fixtures/client.json +20 -0
  24. data/spec/fixtures/clients.json +20 -0
  25. data/spec/fixtures/customers.json +12 -0
  26. data/spec/fixtures/estimate.json +24 -0
  27. data/spec/fixtures/estimates.json +26 -0
  28. data/spec/fixtures/invoice.json +24 -0
  29. data/spec/fixtures/invoices.json +26 -0
  30. data/spec/fixtures/item.json +11 -0
  31. data/spec/fixtures/items.json +11 -0
  32. data/spec/fixtures/new_client.json +20 -0
  33. data/spec/fixtures/new_estimate.json +24 -0
  34. data/spec/fixtures/new_invoice.json +24 -0
  35. data/spec/fixtures/new_item.json +11 -0
  36. data/spec/fixtures/new_payment.json +10 -0
  37. data/spec/fixtures/new_recurring_profile.json +26 -0
  38. data/spec/fixtures/payment.json +10 -0
  39. data/spec/fixtures/payments.json +10 -0
  40. data/spec/fixtures/recurring_profile.json +26 -0
  41. data/spec/fixtures/recurring_profiles.json +28 -0
  42. data/spec/invoice_spec.rb +280 -0
  43. data/spec/item_spec.rb +137 -0
  44. data/spec/payment_spec.rb +143 -0
  45. data/spec/recurring_profile_spec.rb +140 -0
  46. data/spec/spec_helper.rb +24 -0
  47. data/spec/support/fakeweb_stubs.rb +33 -0
  48. metadata +156 -0
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: curdbee
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Lakshan Perera
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-09-28 00:00:00 +05:30
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: httparty
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 5
30
+ - 2
31
+ version: 0.5.2
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: hashie
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 1
44
+ - 8
45
+ version: 0.1.8
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: json
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ type: :runtime
59
+ version_requirements: *id003
60
+ description:
61
+ email: lakshan@vesess.com
62
+ executables: []
63
+
64
+ extensions: []
65
+
66
+ extra_rdoc_files:
67
+ - LICENSE
68
+ - README.markdown
69
+ files:
70
+ - Gemfile
71
+ - Gemfile.lock
72
+ - LICENSE
73
+ - README.markdown
74
+ - Rakefile
75
+ - VERSION
76
+ - curdbee.gemspec
77
+ - examples/create_invoice_for_new_client.rb
78
+ - lib/curdbee.rb
79
+ - lib/curdbee/base.rb
80
+ - lib/curdbee/client.rb
81
+ - lib/curdbee/config.rb
82
+ - lib/curdbee/error.rb
83
+ - lib/curdbee/estimate.rb
84
+ - lib/curdbee/invoice.rb
85
+ - lib/curdbee/invoiceable.rb
86
+ - lib/curdbee/item.rb
87
+ - lib/curdbee/parser.rb
88
+ - lib/curdbee/payment.rb
89
+ - lib/curdbee/recurring_profile.rb
90
+ - spec/client_spec.rb
91
+ - spec/estimate_spec.rb
92
+ - spec/fixtures/client.json
93
+ - spec/fixtures/clients.json
94
+ - spec/fixtures/customers.json
95
+ - spec/fixtures/estimate.json
96
+ - spec/fixtures/estimates.json
97
+ - spec/fixtures/invoice.json
98
+ - spec/fixtures/invoices.json
99
+ - spec/fixtures/item.json
100
+ - spec/fixtures/items.json
101
+ - spec/fixtures/new_client.json
102
+ - spec/fixtures/new_estimate.json
103
+ - spec/fixtures/new_invoice.json
104
+ - spec/fixtures/new_item.json
105
+ - spec/fixtures/new_payment.json
106
+ - spec/fixtures/new_recurring_profile.json
107
+ - spec/fixtures/payment.json
108
+ - spec/fixtures/payments.json
109
+ - spec/fixtures/recurring_profile.json
110
+ - spec/fixtures/recurring_profiles.json
111
+ - spec/invoice_spec.rb
112
+ - spec/item_spec.rb
113
+ - spec/payment_spec.rb
114
+ - spec/recurring_profile_spec.rb
115
+ - spec/spec_helper.rb
116
+ - spec/support/fakeweb_stubs.rb
117
+ has_rdoc: true
118
+ homepage: http://github.com/vesess/curdbee
119
+ licenses: []
120
+
121
+ post_install_message:
122
+ rdoc_options:
123
+ - --charset=UTF-8
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 0
139
+ version: "0"
140
+ requirements: []
141
+
142
+ rubyforge_project:
143
+ rubygems_version: 1.3.6
144
+ signing_key:
145
+ specification_version: 3
146
+ summary: Ruby wrapper for the Chargify API
147
+ test_files:
148
+ - spec/client_spec.rb
149
+ - spec/estimate_spec.rb
150
+ - spec/invoice_spec.rb
151
+ - spec/item_spec.rb
152
+ - spec/payment_spec.rb
153
+ - spec/recurring_profile_spec.rb
154
+ - spec/spec_helper.rb
155
+ - spec/support/fakeweb_stubs.rb
156
+ - examples/create_invoice_for_new_client.rb