clearbooks 0.16.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS.md +31 -0
  3. data/CHANGELOG.md +0 -0
  4. data/COPYING.md +12 -0
  5. data/FAQ.md +8 -0
  6. data/Gemfile +105 -0
  7. data/LICENSE.md +14 -0
  8. data/MAINTAINERS.md +40 -0
  9. data/README.md +549 -0
  10. data/Rakefile +94 -0
  11. data/Thorfile +80 -0
  12. data/bin/clearbooks +28 -0
  13. data/clearbooks.gemspec +119 -0
  14. data/examples/demo.rb +8 -0
  15. data/lib/clearbooks.rb +92 -0
  16. data/lib/clearbooks/core_ext.rb +8 -0
  17. data/lib/clearbooks/core_ext/array.rb +51 -0
  18. data/lib/clearbooks/core_ext/hash.rb +47 -0
  19. data/lib/clearbooks/core_ext/io_binary_read.rb +20 -0
  20. data/lib/clearbooks/core_ext/string.rb +21 -0
  21. data/lib/clearbooks/error.rb +8 -0
  22. data/lib/clearbooks/error/errors.rb +228 -0
  23. data/lib/clearbooks/interface/rake/cucumber.rb +36 -0
  24. data/lib/clearbooks/interface/rake/default.rb +28 -0
  25. data/lib/clearbooks/interface/rake/documentation.rb +45 -0
  26. data/lib/clearbooks/interface/rake/guard.rb +13 -0
  27. data/lib/clearbooks/interface/rake/helpers.rb +27 -0
  28. data/lib/clearbooks/interface/rake/library.rb +126 -0
  29. data/lib/clearbooks/interface/rake/metric.rb +15 -0
  30. data/lib/clearbooks/interface/rake/rspec.rb +31 -0
  31. data/lib/clearbooks/interface/thor/info.thor +292 -0
  32. data/lib/clearbooks/interface/thor/mixin/config_choice.rb +27 -0
  33. data/lib/clearbooks/interface/thor/mixin/configuration.rb +28 -0
  34. data/lib/clearbooks/interface/thor/mixin/default.rb +30 -0
  35. data/lib/clearbooks/interface/thor/mixin/default_config.rb +31 -0
  36. data/lib/clearbooks/interface/thor/mixin/guess.rb +57 -0
  37. data/lib/clearbooks/interface/thor/mixin/shell.rb +225 -0
  38. data/lib/clearbooks/interface/thor/version.thor +34 -0
  39. data/lib/clearbooks/library/client.rb +257 -0
  40. data/lib/clearbooks/library/configuration.rb +34 -0
  41. data/lib/clearbooks/model/account_code.rb +65 -0
  42. data/lib/clearbooks/model/base.rb +67 -0
  43. data/lib/clearbooks/model/entity.rb +225 -0
  44. data/lib/clearbooks/model/invoice.rb +163 -0
  45. data/lib/clearbooks/model/item.rb +78 -0
  46. data/lib/clearbooks/model/journal.rb +74 -0
  47. data/lib/clearbooks/model/ledger.rb +52 -0
  48. data/lib/clearbooks/model/payment.rb +113 -0
  49. data/lib/clearbooks/model/project.rb +58 -0
  50. data/lib/clearbooks/version.rb +12 -0
  51. data/spec/clearbooks/clearbooks_spec.rb +27 -0
  52. data/spec/clearbooks/model/account_code_spec.rb +52 -0
  53. data/spec/clearbooks/model/entity_spec.rb +107 -0
  54. data/spec/clearbooks/model/invoice_spec.rb +109 -0
  55. data/spec/clearbooks/model/journal_spec.rb +77 -0
  56. data/spec/clearbooks/model/payment_spec.rb +103 -0
  57. data/spec/clearbooks/model/project_spec.rb +72 -0
  58. data/spec/fixtures/response/allocate_payment.xml +12 -0
  59. data/spec/fixtures/response/create_entity.xml +12 -0
  60. data/spec/fixtures/response/create_invoice.xml +11 -0
  61. data/spec/fixtures/response/create_journal.xml +12 -0
  62. data/spec/fixtures/response/create_payment.xml +12 -0
  63. data/spec/fixtures/response/create_project.xml +12 -0
  64. data/spec/fixtures/response/delete_entity.xml +12 -0
  65. data/spec/fixtures/response/delete_journal.xml +12 -0
  66. data/spec/fixtures/response/list_account_codes.xml +168 -0
  67. data/spec/fixtures/response/list_entities.xml +45 -0
  68. data/spec/fixtures/response/list_invoices.xml +56 -0
  69. data/spec/fixtures/response/list_projects.xml +16 -0
  70. data/spec/fixtures/response/no_api_key_fault.xml +8 -0
  71. data/spec/fixtures/response/well_formed_request.xml +10 -0
  72. data/spec/fixtures/response/wrong_api_key_fault.xml +8 -0
  73. data/spec/spec_helper.rb +26 -0
  74. metadata +212 -0
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: clearbooks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.3
5
+ platform: ruby
6
+ authors:
7
+ - Bjoern Rennhak
8
+ - Oleg Kukareka
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-05-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.19'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '0.19'
28
+ - !ruby/object:Gem::Dependency
29
+ name: savon
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.11'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.11'
42
+ - !ruby/object:Gem::Dependency
43
+ name: andand
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.3'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.3'
56
+ - !ruby/object:Gem::Dependency
57
+ name: pry
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.10'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.10'
70
+ description: Unofficial Clear Books PLC (https://www.clearbooks.co.uk) gem handling
71
+ all interactions of their SOAP API via native Ruby interface
72
+ email:
73
+ - bjoern@greylon.com
74
+ - oleg@kukareka.com
75
+ executables:
76
+ - clearbooks
77
+ extensions: []
78
+ extra_rdoc_files: []
79
+ files:
80
+ - AUTHORS.md
81
+ - CHANGELOG.md
82
+ - COPYING.md
83
+ - FAQ.md
84
+ - Gemfile
85
+ - LICENSE.md
86
+ - MAINTAINERS.md
87
+ - README.md
88
+ - Rakefile
89
+ - Thorfile
90
+ - bin/clearbooks
91
+ - clearbooks.gemspec
92
+ - examples/demo.rb
93
+ - lib/clearbooks.rb
94
+ - lib/clearbooks/core_ext.rb
95
+ - lib/clearbooks/core_ext/array.rb
96
+ - lib/clearbooks/core_ext/hash.rb
97
+ - lib/clearbooks/core_ext/io_binary_read.rb
98
+ - lib/clearbooks/core_ext/string.rb
99
+ - lib/clearbooks/error.rb
100
+ - lib/clearbooks/error/errors.rb
101
+ - lib/clearbooks/interface/rake/cucumber.rb
102
+ - lib/clearbooks/interface/rake/default.rb
103
+ - lib/clearbooks/interface/rake/documentation.rb
104
+ - lib/clearbooks/interface/rake/guard.rb
105
+ - lib/clearbooks/interface/rake/helpers.rb
106
+ - lib/clearbooks/interface/rake/library.rb
107
+ - lib/clearbooks/interface/rake/metric.rb
108
+ - lib/clearbooks/interface/rake/rspec.rb
109
+ - lib/clearbooks/interface/thor/info.thor
110
+ - lib/clearbooks/interface/thor/mixin/config_choice.rb
111
+ - lib/clearbooks/interface/thor/mixin/configuration.rb
112
+ - lib/clearbooks/interface/thor/mixin/default.rb
113
+ - lib/clearbooks/interface/thor/mixin/default_config.rb
114
+ - lib/clearbooks/interface/thor/mixin/guess.rb
115
+ - lib/clearbooks/interface/thor/mixin/shell.rb
116
+ - lib/clearbooks/interface/thor/version.thor
117
+ - lib/clearbooks/library/client.rb
118
+ - lib/clearbooks/library/configuration.rb
119
+ - lib/clearbooks/model/account_code.rb
120
+ - lib/clearbooks/model/base.rb
121
+ - lib/clearbooks/model/entity.rb
122
+ - lib/clearbooks/model/invoice.rb
123
+ - lib/clearbooks/model/item.rb
124
+ - lib/clearbooks/model/journal.rb
125
+ - lib/clearbooks/model/ledger.rb
126
+ - lib/clearbooks/model/payment.rb
127
+ - lib/clearbooks/model/project.rb
128
+ - lib/clearbooks/version.rb
129
+ - spec/clearbooks/clearbooks_spec.rb
130
+ - spec/clearbooks/model/account_code_spec.rb
131
+ - spec/clearbooks/model/entity_spec.rb
132
+ - spec/clearbooks/model/invoice_spec.rb
133
+ - spec/clearbooks/model/journal_spec.rb
134
+ - spec/clearbooks/model/payment_spec.rb
135
+ - spec/clearbooks/model/project_spec.rb
136
+ - spec/fixtures/response/allocate_payment.xml
137
+ - spec/fixtures/response/create_entity.xml
138
+ - spec/fixtures/response/create_invoice.xml
139
+ - spec/fixtures/response/create_journal.xml
140
+ - spec/fixtures/response/create_payment.xml
141
+ - spec/fixtures/response/create_project.xml
142
+ - spec/fixtures/response/delete_entity.xml
143
+ - spec/fixtures/response/delete_journal.xml
144
+ - spec/fixtures/response/list_account_codes.xml
145
+ - spec/fixtures/response/list_entities.xml
146
+ - spec/fixtures/response/list_invoices.xml
147
+ - spec/fixtures/response/list_projects.xml
148
+ - spec/fixtures/response/no_api_key_fault.xml
149
+ - spec/fixtures/response/well_formed_request.xml
150
+ - spec/fixtures/response/wrong_api_key_fault.xml
151
+ - spec/spec_helper.rb
152
+ homepage: http://github.com/greylon/clearbooks
153
+ licenses:
154
+ - MIT
155
+ metadata:
156
+ issue_tracker: http://github.com/greylon/clearbooks/issues
157
+ post_install_message: " \n
158
+ \ ____ _ _____ _ ____ ____ ___ ___ _ ______ \n / ___|
159
+ | | ____| / | _ | __ ) / _ / _ | |/ / ___| \n | | | | | _| / _
160
+ \ | |_) | _ | | | | | | | ' /___ \n | |___| |___| |___ / ___ | _ <| |_) |
161
+ |_| | |_| | . ___) |\n ____|_____|_____/_/ __| _____/ ___/ ___/|_|_____/
162
+ \n \n\n (c) 2015-05-01
163
+ 00:00:00 UTC, All rights reserved\n Bjoern Rennhak, Greylon Ltd.\n\n Don't
164
+ forget to get Clearbooks API key from http://clearbooks.co.uk\n and save it in
165
+ ~/.clearbooks/config.yml:\n\n $ echo \"api_key: {your_api_key}\" >> ~/.clearbooks/config.yml\n\n
166
+ \ You can also provide the API key in ENV['CLEARBOOKS_API_KEY']:\n\n $ CLEARBOOKS_API_KEY=your_api_key
167
+ clearbooks\n\n Thanks for installing unofficial Clearbooks Gem !\n"
168
+ rdoc_options: []
169
+ require_paths:
170
+ - lib
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '1.9'
176
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ requirements: []
182
+ rubyforge_project:
183
+ rubygems_version: 2.4.6
184
+ signing_key:
185
+ specification_version: 4
186
+ summary: Unofficial Clear Books PLC (https://www.clearbooks.co.uk) gem handling all
187
+ interactions of their SOAP API via native Ruby interface
188
+ test_files:
189
+ - spec/fixtures/response/list_projects.xml
190
+ - spec/fixtures/response/create_invoice.xml
191
+ - spec/fixtures/response/list_invoices.xml
192
+ - spec/fixtures/response/create_payment.xml
193
+ - spec/fixtures/response/list_entities.xml
194
+ - spec/fixtures/response/no_api_key_fault.xml
195
+ - spec/fixtures/response/create_entity.xml
196
+ - spec/fixtures/response/create_project.xml
197
+ - spec/fixtures/response/well_formed_request.xml
198
+ - spec/fixtures/response/delete_entity.xml
199
+ - spec/fixtures/response/list_account_codes.xml
200
+ - spec/fixtures/response/delete_journal.xml
201
+ - spec/fixtures/response/wrong_api_key_fault.xml
202
+ - spec/fixtures/response/create_journal.xml
203
+ - spec/fixtures/response/allocate_payment.xml
204
+ - spec/clearbooks/model/payment_spec.rb
205
+ - spec/clearbooks/model/project_spec.rb
206
+ - spec/clearbooks/model/invoice_spec.rb
207
+ - spec/clearbooks/model/entity_spec.rb
208
+ - spec/clearbooks/model/account_code_spec.rb
209
+ - spec/clearbooks/model/journal_spec.rb
210
+ - spec/clearbooks/clearbooks_spec.rb
211
+ - spec/spec_helper.rb
212
+ has_rdoc: