ruconomic 0.9.0 → 0.9.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.
- checksums.yaml +4 -4
- data/.yardopts +4 -0
- data/CHANGELOG.md +11 -0
- data/README.md +4 -0
- data/lib/ruconomic/api.rb +60 -0
- data/lib/ruconomic/soap/document.rb +1 -1
- data/lib/ruconomic/version.rb +2 -2
- data/ruconomic.gemspec +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2128a2079d2ac0699d3d1b503a5c8a5357f8e6b
|
|
4
|
+
data.tar.gz: d7dfd60953a0be2d91a93fcf168ed2c6de2b23ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 922e981a7f565370a108d59c1d090d33609d48cefd7ea0cdfb5bb743d558f726d7939f51ff4463f75f9a4764eedae0fc0cf6e6872cb454f0b4330a7a5e587f47
|
|
7
|
+
data.tar.gz: d6419bc754d9f51d300c4680182f4692e9b4b762c6051ddcdf6dc75299b5485ee2761437873bcdca8c8aff0da3d4e630ca7921cc751ff88e704af090ab9ab3bd
|
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -61,6 +61,10 @@ end
|
|
|
61
61
|
# => Ruconomic::Fault { :code => 'soap:Client', :reason => 'Economic.Api.Exceptions.IntegrityException(E06000): The debtor does not exist. (id=<id>)', :details => '' }
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
## Documentation
|
|
65
|
+
|
|
66
|
+
You can find the latest API documentation at [http://rdoc.info/github/ta/ruconomic/index](http://rdoc.info/github/ta/ruconomic/index) or generate your own copy with ```bundle install && bundle exec yardoc``` after cloning the repository.
|
|
67
|
+
|
|
64
68
|
## Contributing
|
|
65
69
|
|
|
66
70
|
1. Fork it ( https://github.com/ta/ruconomic/fork )
|
data/lib/ruconomic/api.rb
CHANGED
|
@@ -2,6 +2,66 @@ module Ruconomic
|
|
|
2
2
|
module API
|
|
3
3
|
extend Ruconomic::WebService
|
|
4
4
|
|
|
5
|
+
autoload(:Account, 'ruconomic/api/account.rb')
|
|
6
|
+
autoload(:AccountingPeriod, 'ruconomic/api/accounting_period.rb')
|
|
7
|
+
autoload(:AccountingYear, 'ruconomic/api/accounting_year.rb')
|
|
8
|
+
autoload(:Activity, 'ruconomic/api/activity.rb')
|
|
9
|
+
autoload(:BankPaymentType, 'ruconomic/api/bank_payment_type.rb')
|
|
10
|
+
autoload(:BudgetFigure, 'ruconomic/api/budget_figure.rb')
|
|
11
|
+
autoload(:CashBook, 'ruconomic/api/cash_book.rb')
|
|
12
|
+
autoload(:CashBookEntry, 'ruconomic/api/cash_book_entry.rb')
|
|
13
|
+
autoload(:Company, 'ruconomic/api/company.rb')
|
|
14
|
+
autoload(:CostType, 'ruconomic/api/cost_type.rb')
|
|
15
|
+
autoload(:CostTypeGroup, 'ruconomic/api/cost_type_group.rb')
|
|
16
|
+
autoload(:Creditor, 'ruconomic/api/creditor.rb')
|
|
17
|
+
autoload(:CreditorContact, 'ruconomic/api/creditor_contact.rb')
|
|
18
|
+
autoload(:CreditorEntry, 'ruconomic/api/creditor_entry.rb')
|
|
19
|
+
autoload(:CreditorGroup, 'ruconomic/api/creditor_group.rb')
|
|
20
|
+
autoload(:Currency, 'ruconomic/api/currency.rb')
|
|
21
|
+
autoload(:CurrentInvoice, 'ruconomic/api/current_invoice.rb')
|
|
22
|
+
autoload(:CurrentInvoiceLine, 'ruconomic/api/current_invoice_line.rb')
|
|
23
|
+
autoload(:CurrentSupplierInvoice, 'ruconomic/api/current_supplier_invoice.rb')
|
|
24
|
+
autoload(:CurrentSupplierInvoiceLine, 'ruconomic/api/current_supplier_invoice_line.rb')
|
|
25
|
+
autoload(:Debtor, 'ruconomic/api/debtor.rb')
|
|
26
|
+
autoload(:DebtorContact, 'ruconomic/api/debtor_contact.rb')
|
|
27
|
+
autoload(:DebtorEntry, 'ruconomic/api/debtor_entry.rb')
|
|
28
|
+
autoload(:DebtorGroup, 'ruconomic/api/debtor_group.rb')
|
|
29
|
+
autoload(:DeliveryLocation, 'ruconomic/api/delivery_location.rb')
|
|
30
|
+
autoload(:Department, 'ruconomic/api/department.rb')
|
|
31
|
+
autoload(:DistributionKey, 'ruconomic/api/distribution_key.rb')
|
|
32
|
+
autoload(:DocumentArchiveCategory, 'ruconomic/api/document_archive_category.rb')
|
|
33
|
+
autoload(:Employee, 'ruconomic/api/employee.rb')
|
|
34
|
+
autoload(:EmployeeGroup, 'ruconomic/api/employee_group.rb')
|
|
35
|
+
autoload(:Entry, 'ruconomic/api/entry.rb')
|
|
36
|
+
autoload(:ExtendedVatZone, 'ruconomic/api/extended_vat_zone.rb')
|
|
37
|
+
autoload(:InventoryLocation, 'ruconomic/api/inventory_location.rb')
|
|
38
|
+
autoload(:Invoice, 'ruconomic/api/invoice.rb')
|
|
39
|
+
autoload(:InvoiceLine, 'ruconomic/api/invoice_line.rb')
|
|
40
|
+
autoload(:KeyFigureCode, 'ruconomic/api/key_figure_code.rb')
|
|
41
|
+
autoload(:MileageEntry, 'ruconomic/api/mileage_entry.rb')
|
|
42
|
+
autoload(:Order, 'ruconomic/api/order.rb')
|
|
43
|
+
autoload(:OrderLine, 'ruconomic/api/order_line.rb')
|
|
44
|
+
autoload(:PriceGroup, 'ruconomic/api/price_group.rb')
|
|
45
|
+
autoload(:Product, 'ruconomic/api/product.rb')
|
|
46
|
+
autoload(:ProductGroup, 'ruconomic/api/product_group.rb')
|
|
47
|
+
autoload(:ProductPrice, 'ruconomic/api/product_price.rb')
|
|
48
|
+
autoload(:Project, 'ruconomic/api/project.rb')
|
|
49
|
+
autoload(:ProjectGroup, 'ruconomic/api/project_group.rb')
|
|
50
|
+
autoload(:Quotation, 'ruconomic/api/quotation.rb')
|
|
51
|
+
autoload(:QuotationLine, 'ruconomic/api/quotation_line.rb')
|
|
52
|
+
autoload(:ReportCode, 'ruconomic/api/report_code.rb')
|
|
53
|
+
autoload(:ReportCodeSet, 'ruconomic/api/report_code_set.rb')
|
|
54
|
+
autoload(:ScannedDocument, 'ruconomic/api/scanned_document.rb')
|
|
55
|
+
autoload(:Subscriber, 'ruconomic/api/subscriber.rb')
|
|
56
|
+
autoload(:Subscription, 'ruconomic/api/subscription.rb')
|
|
57
|
+
autoload(:SubscriptionLine, 'ruconomic/api/subscription_line.rb')
|
|
58
|
+
autoload(:SumInterval, 'ruconomic/api/sum_interval.rb')
|
|
59
|
+
autoload(:TemplateCollection, 'ruconomic/api/template_collection.rb')
|
|
60
|
+
autoload(:TermOfPayment, 'ruconomic/api/term_of_payment.rb')
|
|
61
|
+
autoload(:TimeEntry, 'ruconomic/api/time_entry.rb')
|
|
62
|
+
autoload(:Unit, 'ruconomic/api/unit.rb')
|
|
63
|
+
autoload(:VatAccount, 'ruconomic/api/vat_account.rb')
|
|
64
|
+
|
|
5
65
|
# Connects to the server.
|
|
6
66
|
#
|
|
7
67
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Connect
|
|
@@ -29,7 +29,7 @@ module Ruconomic
|
|
|
29
29
|
h[:Envelope][:body]
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# We want #string to return a Ruconomic::SOAP::Document
|
|
32
|
+
# We want #string to return a Ruconomic::SOAP::Document and not a LibXML::XML::Document
|
|
33
33
|
def self.string(value, options = {})
|
|
34
34
|
document = Ruconomic::SOAP::Document.new
|
|
35
35
|
document.root = document.import(super(value, options).root)
|
data/lib/ruconomic/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module Ruconomic
|
|
2
|
-
VERSION = "0.9.
|
|
3
|
-
end
|
|
2
|
+
VERSION = "0.9.1"
|
|
3
|
+
end
|
data/ruconomic.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.version = Ruconomic::VERSION
|
|
9
9
|
spec.authors = ["Tonni Tølbøll Lund Aagesen"]
|
|
10
10
|
spec.email = ["tonni@toelboell-lund.dk"]
|
|
11
|
-
spec.summary = %q{
|
|
11
|
+
spec.summary = %q{Lightweight, speedy and easy-to-use ruby wrapper for the e-conomic.com SOAP web service}
|
|
12
12
|
spec.homepage = "https://github.com/ta/ruconomic"
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruconomic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tonni Tølbøll Lund Aagesen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-07-
|
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: curb
|
|
@@ -102,6 +102,8 @@ extensions: []
|
|
|
102
102
|
extra_rdoc_files: []
|
|
103
103
|
files:
|
|
104
104
|
- ".gitignore"
|
|
105
|
+
- ".yardopts"
|
|
106
|
+
- CHANGELOG.md
|
|
105
107
|
- Gemfile
|
|
106
108
|
- LICENSE.txt
|
|
107
109
|
- README.md
|
|
@@ -197,6 +199,7 @@ rubyforge_project:
|
|
|
197
199
|
rubygems_version: 2.2.2
|
|
198
200
|
signing_key:
|
|
199
201
|
specification_version: 4
|
|
200
|
-
summary:
|
|
202
|
+
summary: Lightweight, speedy and easy-to-use ruby wrapper for the e-conomic.com SOAP
|
|
203
|
+
web service
|
|
201
204
|
test_files: []
|
|
202
205
|
has_rdoc:
|