xero_gateway-float 2.0.18 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/Rakefile +7 -1
  2. data/examples/partner_app.rb +2 -2
  3. data/lib/xero_gateway/accounts_list.rb +0 -4
  4. data/lib/xero_gateway/bank_transaction.rb +0 -2
  5. data/lib/xero_gateway/contact.rb +6 -9
  6. data/lib/xero_gateway/credit_note.rb +1 -3
  7. data/lib/xero_gateway/error.rb +16 -0
  8. data/lib/xero_gateway/exceptions.rb +5 -0
  9. data/lib/xero_gateway/gateway.rb +184 -82
  10. data/lib/xero_gateway/http.rb +38 -32
  11. data/lib/xero_gateway/invoice.rb +17 -9
  12. data/lib/xero_gateway/journal_line.rb +102 -0
  13. data/lib/xero_gateway/line_item_calculations.rb +0 -4
  14. data/lib/xero_gateway/manual_journal.rb +163 -0
  15. data/lib/xero_gateway/oauth.rb +29 -23
  16. data/lib/xero_gateway/partner_app.rb +6 -1
  17. data/lib/xero_gateway/response.rb +2 -0
  18. data/lib/xero_gateway/tax_rate.rb +1 -1
  19. data/lib/xero_gateway.rb +3 -0
  20. data/test/integration/accounts_list_test.rb +4 -4
  21. data/test/integration/create_invoice_test.rb +6 -0
  22. data/test/integration/create_manual_journal_test.rb +35 -0
  23. data/test/integration/create_payments_test.rb +35 -0
  24. data/test/integration/get_invoice_test.rb +27 -12
  25. data/test/integration/get_manual_journal_test.rb +50 -0
  26. data/test/integration/get_manual_journals_test.rb +88 -0
  27. data/test/integration/update_manual_journal_test.rb +31 -0
  28. data/test/test_helper.rb +39 -1
  29. data/test/unit/bank_transaction_test.rb +1 -1
  30. data/test/unit/credit_note_test.rb +1 -1
  31. data/test/unit/gateway_test.rb +15 -15
  32. data/test/unit/invoice_test.rb +3 -2
  33. data/test/unit/manual_journal_test.rb +93 -0
  34. data/test/unit/payment_test.rb +34 -0
  35. data/xero_gateway.gemspec +2 -2
  36. metadata +11 -2
data/xero_gateway.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "xero_gateway-float"
3
- s.version = "2.0.18"
4
- s.date = "2013-01-17"
3
+ s.version = "2.1.1"
4
+ s.date = "2012-12-18"
5
5
  s.summary = "Enables ruby based applications to communicate with the Xero API"
6
6
  s.email = "tim@connorsoftware.com"
7
7
  s.homepage = "http://github.com/latentflip/xero_gateway"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xero_gateway-float
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.18
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-17 00:00:00.000000000 Z
14
+ date: 2012-12-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: builder
@@ -90,8 +90,10 @@ files:
90
90
  - lib/xero_gateway/http.rb
91
91
  - lib/xero_gateway/http_encoding_helper.rb
92
92
  - lib/xero_gateway/invoice.rb
93
+ - lib/xero_gateway/journal_line.rb
93
94
  - lib/xero_gateway/line_item.rb
94
95
  - lib/xero_gateway/line_item_calculations.rb
96
+ - lib/xero_gateway/manual_journal.rb
95
97
  - lib/xero_gateway/money.rb
96
98
  - lib/xero_gateway/oauth.rb
97
99
  - lib/xero_gateway/organisation.rb
@@ -109,6 +111,8 @@ files:
109
111
  - test/integration/create_contact_test.rb
110
112
  - test/integration/create_credit_note_test.rb
111
113
  - test/integration/create_invoice_test.rb
114
+ - test/integration/create_manual_journal_test.rb
115
+ - test/integration/create_payments_test.rb
112
116
  - test/integration/get_accounts_test.rb
113
117
  - test/integration/get_bank_transaction_test.rb
114
118
  - test/integration/get_bank_transactions_test.rb
@@ -119,12 +123,15 @@ files:
119
123
  - test/integration/get_currencies_test.rb
120
124
  - test/integration/get_invoice_test.rb
121
125
  - test/integration/get_invoices_test.rb
126
+ - test/integration/get_manual_journal_test.rb
127
+ - test/integration/get_manual_journals_test.rb
122
128
  - test/integration/get_organisation_test.rb
123
129
  - test/integration/get_tax_rates_test.rb
124
130
  - test/integration/get_tracking_categories_test.rb
125
131
  - test/integration/update_bank_transaction_test.rb
126
132
  - test/integration/update_contact_test.rb
127
133
  - test/integration/update_invoice_test.rb
134
+ - test/integration/update_manual_journal_test.rb
128
135
  - test/test_helper.rb
129
136
  - test/unit/account_test.rb
130
137
  - test/unit/bank_transaction_test.rb
@@ -133,8 +140,10 @@ files:
133
140
  - test/unit/currency_test.rb
134
141
  - test/unit/gateway_test.rb
135
142
  - test/unit/invoice_test.rb
143
+ - test/unit/manual_journal_test.rb
136
144
  - test/unit/oauth_test.rb
137
145
  - test/unit/organisation_test.rb
146
+ - test/unit/payment_test.rb
138
147
  - test/unit/tax_rate_test.rb
139
148
  - test/unit/tracking_category_test.rb
140
149
  - lib/xero_gateway/ca-certificates.crt