xeroizer 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/Gemfile.lock +55 -0
- data/VERSION +1 -1
- data/lib/xeroizer/models/bank_account.rb +1 -1
- data/lib/xeroizer/record/base_model.rb +0 -2
- data/lib/xeroizer/report/aged_receivables_by_contact.rb +7 -8
- data/lib/xeroizer/report/factory.rb +1 -3
- data/lib/xeroizer/report/row/header.rb +2 -2
- data/lib/xeroizer/report/row/row.rb +0 -1
- data/test/acceptance/about_creating_bank_transactions_test.rb +6 -6
- data/test/acceptance/acceptance_test.rb +2 -2
- data/test/acceptance/bank_transaction_reference_data.rb +4 -4
- data/test/test_helper.rb +1 -1
- data/xeroizer.gemspec +10 -39
- metadata +61 -74
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.3)
|
5
|
+
i18n (~> 0.6)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
ansi (1.4.2)
|
8
|
+
builder (3.0.0)
|
9
|
+
git (1.2.5)
|
10
|
+
i18n (0.6.0)
|
11
|
+
jeweler (1.8.3)
|
12
|
+
bundler (~> 1.0)
|
13
|
+
git (>= 1.2.5)
|
14
|
+
rake
|
15
|
+
rdoc
|
16
|
+
json (1.6.6)
|
17
|
+
metaclass (0.0.1)
|
18
|
+
mime-types (1.18)
|
19
|
+
mocha (0.10.5)
|
20
|
+
metaclass (~> 0.0.1)
|
21
|
+
multi_json (1.2.0)
|
22
|
+
nokogiri (1.5.2)
|
23
|
+
oauth (0.4.5)
|
24
|
+
rake (0.9.2.2)
|
25
|
+
rdoc (3.12)
|
26
|
+
json (~> 1.4)
|
27
|
+
rest-client (1.6.7)
|
28
|
+
mime-types (>= 1.16)
|
29
|
+
shoulda (3.0.1)
|
30
|
+
shoulda-context (~> 1.0.0)
|
31
|
+
shoulda-matchers (~> 1.0.0)
|
32
|
+
shoulda-context (1.0.0)
|
33
|
+
shoulda-matchers (1.0.0)
|
34
|
+
test-unit (2.4.8)
|
35
|
+
turn (0.9.4)
|
36
|
+
ansi
|
37
|
+
yard (0.7.5)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
activesupport
|
44
|
+
ansi
|
45
|
+
builder (>= 2.1.2)
|
46
|
+
i18n
|
47
|
+
jeweler
|
48
|
+
mocha
|
49
|
+
nokogiri
|
50
|
+
oauth (>= 0.3.6)
|
51
|
+
rest-client
|
52
|
+
shoulda
|
53
|
+
test-unit
|
54
|
+
turn
|
55
|
+
yard
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
@@ -2,29 +2,29 @@ module Xeroizer
|
|
2
2
|
module Report
|
3
3
|
class AgedReceivablesByContact < Base
|
4
4
|
|
5
|
-
extend ActiveSupport::Memoizable
|
6
|
-
|
7
5
|
public
|
8
6
|
|
9
7
|
def total
|
10
|
-
summary.cell(:Total).value
|
8
|
+
@_total_cache ||= summary.cell(:Total).value
|
11
9
|
end
|
12
10
|
|
13
11
|
def total_paid
|
14
|
-
summary.cell(:Paid).value
|
12
|
+
@_total_paid_cache ||= summary.cell(:Paid).value
|
15
13
|
end
|
16
14
|
|
17
15
|
def total_credited
|
18
|
-
summary.cell(:Credited).value
|
16
|
+
@_total_credited_cache ||= summary.cell(:Credited).value
|
19
17
|
end
|
20
18
|
|
21
19
|
def total_due
|
22
|
-
summary.cell(:Due).value
|
20
|
+
@_total_due_cache ||= summary.cell(:Due).value
|
23
21
|
end
|
24
22
|
|
25
23
|
def total_overdue
|
24
|
+
return @_total_due_cache if @_total_due_cache
|
25
|
+
|
26
26
|
now = Time.now
|
27
|
-
sum(:Due) do | row |
|
27
|
+
@_total_due_cache = sum(:Due) do | row |
|
28
28
|
due_date = row.cell('Due Date').value
|
29
29
|
due_date && due_date < now
|
30
30
|
end
|
@@ -37,7 +37,6 @@ module Xeroizer
|
|
37
37
|
sum
|
38
38
|
end
|
39
39
|
end
|
40
|
-
memoize :total, :total_paid, :total_credited, :total_due, :total_overdue, :sum
|
41
40
|
|
42
41
|
end
|
43
42
|
end
|
@@ -6,7 +6,6 @@ module Xeroizer
|
|
6
6
|
module Report
|
7
7
|
class Factory
|
8
8
|
|
9
|
-
extend ActiveSupport::Memoizable
|
10
9
|
include ApplicationHttpProxy
|
11
10
|
|
12
11
|
attr_reader :application
|
@@ -35,12 +34,11 @@ module Xeroizer
|
|
35
34
|
|
36
35
|
def klass
|
37
36
|
begin
|
38
|
-
Xeroizer::Report.const_get(report_type)
|
37
|
+
@_klass_cache ||= Xeroizer::Report.const_get(report_type)
|
39
38
|
rescue NameError => ex # use default class
|
40
39
|
Base
|
41
40
|
end
|
42
41
|
end
|
43
|
-
memoize :klass
|
44
42
|
|
45
43
|
protected
|
46
44
|
|
@@ -3,9 +3,9 @@ module Xeroizer
|
|
3
3
|
class HeaderRow < Row
|
4
4
|
|
5
5
|
def column_index(column_name)
|
6
|
-
|
6
|
+
@_column_index_cache ||= {}
|
7
|
+
@_column_index_cache[column_name] ||= cells.find_index { | cell | cell.value == column_name.to_s }
|
7
8
|
end
|
8
|
-
memoize :column_index
|
9
9
|
|
10
10
|
end
|
11
11
|
end
|
@@ -11,8 +11,8 @@ class AboutCreatingBankTransactions < Test::Unit::TestCase
|
|
11
11
|
def setup
|
12
12
|
super
|
13
13
|
all_accounts = client.Account.all
|
14
|
-
@account = all_accounts.select{|
|
15
|
-
@bank_account = all_accounts.select{|
|
14
|
+
@account = all_accounts.select{|acct| acct.status == "ACTIVE" && acct.type == "REVENUE"}.first
|
15
|
+
@bank_account = all_accounts.select{|acct| acct.status == "ACTIVE" && acct.type == "BANK"}.first
|
16
16
|
end
|
17
17
|
|
18
18
|
can "create a new SPEND bank transaction" do
|
@@ -20,7 +20,7 @@ class AboutCreatingBankTransactions < Test::Unit::TestCase
|
|
20
20
|
:type => "SPEND",
|
21
21
|
:contact => { :name => "Jazz Kang" },
|
22
22
|
:line_items => any_line_items(@account),
|
23
|
-
:bank_account => { :
|
23
|
+
:bank_account => { :account_id => @bank_account.account_id }
|
24
24
|
)
|
25
25
|
|
26
26
|
assert new_transaction.save, "Save failed with the following errors: #{new_transaction.errors.inspect}"
|
@@ -32,7 +32,7 @@ class AboutCreatingBankTransactions < Test::Unit::TestCase
|
|
32
32
|
:type => "SPEND",
|
33
33
|
:contact => { :name => "Jazz Kang" },
|
34
34
|
:line_items => any_line_items(@account),
|
35
|
-
:bank_account => { :
|
35
|
+
:bank_account => { :account_id => @bank_account.account_id }
|
36
36
|
)
|
37
37
|
|
38
38
|
assert new_transaction.save, "Save failed with the following errors: #{new_transaction.errors.inspect}"
|
@@ -60,7 +60,7 @@ class AboutCreatingBankTransactions < Test::Unit::TestCase
|
|
60
60
|
:type => "SPEND",
|
61
61
|
:contact => { :name => "Jazz Kang" },
|
62
62
|
:line_items => any_line_items(@account),
|
63
|
-
:bank_account => { :
|
63
|
+
:bank_account => { :account_id => @bank_account.account_id },
|
64
64
|
:line_amount_types => "Exclusive"
|
65
65
|
)
|
66
66
|
|
@@ -123,7 +123,7 @@ class AboutCreatingBankTransactions < Test::Unit::TestCase
|
|
123
123
|
:type => "RECEIVE",
|
124
124
|
:contact => { :name => "Jazz Kang" },
|
125
125
|
:line_items => any_line_items(@account),
|
126
|
-
:bank_account => { :
|
126
|
+
:bank_account => { :account_id => @bank_account.account_id }
|
127
127
|
)
|
128
128
|
|
129
129
|
assert new_transaction.save, "Save failed with the following errors: #{new_transaction.errors.inspect}"
|
@@ -14,7 +14,7 @@ module AcceptanceTest
|
|
14
14
|
return unless block_given?
|
15
15
|
|
16
16
|
unless respond_to? symbol
|
17
|
-
define_method symbol
|
17
|
+
define_method symbol do
|
18
18
|
cached_method_result = instance_variable_get ivar_name = "@#{symbol}"
|
19
19
|
instance_variable_set(ivar_name, instance_eval(&block)) if cached_method_result.nil?
|
20
20
|
instance_variable_get ivar_name
|
@@ -36,7 +36,7 @@ module AcceptanceTest
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def load_config_from_file
|
39
|
-
the_file_name =
|
39
|
+
the_file_name = File.join(File.dirname(__FILE__), '..', '..', '.oauth')
|
40
40
|
|
41
41
|
return nil unless File.exists? the_file_name
|
42
42
|
|
@@ -7,9 +7,9 @@ class BankTransactionReferenceData
|
|
7
7
|
def new_bank_transaction
|
8
8
|
all_accounts = @client.Account.all
|
9
9
|
|
10
|
-
account = all_accounts.select{|
|
11
|
-
bank_account = all_accounts.select{|
|
12
|
-
|
10
|
+
account = all_accounts.select{|acct| acct.status == "ACTIVE" && acct.type == "REVENUE"}.first
|
11
|
+
bank_account = all_accounts.select{|acct| acct.status == "ACTIVE" && acct.type == "BANK"}.first
|
12
|
+
|
13
13
|
result = @client.BankTransaction.build(
|
14
14
|
:type => "SPEND",
|
15
15
|
:contact => { :name => "Jazz Kang" },
|
@@ -21,7 +21,7 @@ class BankTransactionReferenceData
|
|
21
21
|
:account_code => account.code,
|
22
22
|
:tax_type => account.tax_type
|
23
23
|
],
|
24
|
-
:bank_account => { :
|
24
|
+
:bank_account => { :account_id => bank_account.account_id }
|
25
25
|
)
|
26
26
|
|
27
27
|
fail("Expected save to have succeeded, but it failed. #{result.errors.inspect}") unless result.save
|
data/test/test_helper.rb
CHANGED
data/xeroizer.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.4.
|
7
|
+
s.name = "xeroizer"
|
8
|
+
s.version = "0.4.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wayne Robinson"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2012-04-09"
|
13
|
+
s.description = "Ruby library for the Xero accounting system API."
|
14
|
+
s.email = "wayne.robinson@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.md"
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".bundle/config",
|
21
21
|
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
22
23
|
"LICENSE.txt",
|
23
24
|
"README.md",
|
24
25
|
"Rakefile",
|
@@ -350,46 +351,16 @@ Gem::Specification.new do |s|
|
|
350
351
|
"test/unit/report_test.rb",
|
351
352
|
"xeroizer.gemspec"
|
352
353
|
]
|
353
|
-
s.homepage =
|
354
|
+
s.homepage = "http://github.com/waynerobinson/xeroizer"
|
354
355
|
s.licenses = ["MIT"]
|
355
356
|
s.require_paths = ["lib"]
|
356
|
-
s.rubygems_version =
|
357
|
-
s.summary =
|
358
|
-
s.test_files = [
|
359
|
-
"test/acceptance/about_creating_bank_transactions_test.rb",
|
360
|
-
"test/acceptance/about_fetching_bank_transactions_test.rb",
|
361
|
-
"test/acceptance/acceptance_test.rb",
|
362
|
-
"test/acceptance/bank_transaction_reference_data.rb",
|
363
|
-
"test/stub_responses/refresh_responses.rb",
|
364
|
-
"test/test_helper.rb",
|
365
|
-
"test/unit/models/bank_transaction_model_parsing_test.rb",
|
366
|
-
"test/unit/models/bank_transaction_test.rb",
|
367
|
-
"test/unit/models/bank_transaction_validation_test.rb",
|
368
|
-
"test/unit/models/contact_test.rb",
|
369
|
-
"test/unit/models/credit_note_test.rb",
|
370
|
-
"test/unit/models/invoice_test.rb",
|
371
|
-
"test/unit/models/line_item_sum_test.rb",
|
372
|
-
"test/unit/models/line_item_test.rb",
|
373
|
-
"test/unit/oauth_config_test.rb",
|
374
|
-
"test/unit/oauth_test.rb",
|
375
|
-
"test/unit/private_application_test.rb",
|
376
|
-
"test/unit/record/base_model_test.rb",
|
377
|
-
"test/unit/record/base_test.rb",
|
378
|
-
"test/unit/record/block_validator_test.rb",
|
379
|
-
"test/unit/record/model_definition_test.rb",
|
380
|
-
"test/unit/record/parse_where_hash_test.rb",
|
381
|
-
"test/unit/record/record_association_test.rb",
|
382
|
-
"test/unit/record/validators_test.rb",
|
383
|
-
"test/unit/record_definition_test.rb",
|
384
|
-
"test/unit/report_definition_test.rb",
|
385
|
-
"test/unit/report_test.rb"
|
386
|
-
]
|
357
|
+
s.rubygems_version = "1.8.10"
|
358
|
+
s.summary = "Xero library"
|
387
359
|
|
388
360
|
if s.respond_to? :specification_version then
|
389
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
390
361
|
s.specification_version = 3
|
391
362
|
|
392
|
-
if Gem::Version.new(Gem::
|
363
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
393
364
|
s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
|
394
365
|
s.add_runtime_dependency(%q<oauth>, [">= 0.3.6"])
|
395
366
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xeroizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.4.1
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wayne Robinson
|
@@ -15,173 +15,184 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-04-09 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
prerelease: false
|
23
|
-
name: builder
|
24
|
-
type: :runtime
|
25
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
27
|
+
hash: 15
|
29
28
|
segments:
|
30
29
|
- 2
|
31
30
|
- 1
|
32
31
|
- 2
|
33
|
-
segments_generated: true
|
34
32
|
version: 2.1.2
|
35
33
|
requirement: *id001
|
34
|
+
name: builder
|
35
|
+
type: :runtime
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
prerelease: false
|
38
|
-
name: oauth
|
39
|
-
type: :runtime
|
40
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
41
40
|
requirements:
|
42
41
|
- - ">="
|
43
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 31
|
44
44
|
segments:
|
45
45
|
- 0
|
46
46
|
- 3
|
47
47
|
- 6
|
48
|
-
segments_generated: true
|
49
48
|
version: 0.3.6
|
50
49
|
requirement: *id002
|
50
|
+
name: oauth
|
51
|
+
type: :runtime
|
51
52
|
- !ruby/object:Gem::Dependency
|
52
53
|
prerelease: false
|
53
|
-
name: activesupport
|
54
|
-
type: :runtime
|
55
54
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
59
60
|
segments:
|
60
61
|
- 0
|
61
|
-
segments_generated: true
|
62
62
|
version: "0"
|
63
63
|
requirement: *id003
|
64
|
+
name: activesupport
|
65
|
+
type: :runtime
|
64
66
|
- !ruby/object:Gem::Dependency
|
65
67
|
prerelease: false
|
66
|
-
name: nokogiri
|
67
|
-
type: :runtime
|
68
68
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
69
70
|
requirements:
|
70
71
|
- - ">="
|
71
72
|
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
72
74
|
segments:
|
73
75
|
- 0
|
74
|
-
segments_generated: true
|
75
76
|
version: "0"
|
76
77
|
requirement: *id004
|
78
|
+
name: nokogiri
|
79
|
+
type: :runtime
|
77
80
|
- !ruby/object:Gem::Dependency
|
78
81
|
prerelease: false
|
79
|
-
name: i18n
|
80
|
-
type: :runtime
|
81
82
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
82
84
|
requirements:
|
83
85
|
- - ">="
|
84
86
|
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
85
88
|
segments:
|
86
89
|
- 0
|
87
|
-
segments_generated: true
|
88
90
|
version: "0"
|
89
91
|
requirement: *id005
|
92
|
+
name: i18n
|
93
|
+
type: :runtime
|
90
94
|
- !ruby/object:Gem::Dependency
|
91
95
|
prerelease: false
|
92
|
-
name: yard
|
93
|
-
type: :runtime
|
94
96
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
95
98
|
requirements:
|
96
99
|
- - ">="
|
97
100
|
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
98
102
|
segments:
|
99
103
|
- 0
|
100
|
-
segments_generated: true
|
101
104
|
version: "0"
|
102
105
|
requirement: *id006
|
106
|
+
name: yard
|
107
|
+
type: :runtime
|
103
108
|
- !ruby/object:Gem::Dependency
|
104
109
|
prerelease: false
|
105
|
-
name: builder
|
106
|
-
type: :runtime
|
107
110
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
108
112
|
requirements:
|
109
113
|
- - ">="
|
110
114
|
- !ruby/object:Gem::Version
|
115
|
+
hash: 15
|
111
116
|
segments:
|
112
117
|
- 2
|
113
118
|
- 1
|
114
119
|
- 2
|
115
|
-
segments_generated: true
|
116
120
|
version: 2.1.2
|
117
121
|
requirement: *id007
|
122
|
+
name: builder
|
123
|
+
type: :runtime
|
118
124
|
- !ruby/object:Gem::Dependency
|
119
125
|
prerelease: false
|
120
|
-
name: oauth
|
121
|
-
type: :runtime
|
122
126
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
123
128
|
requirements:
|
124
129
|
- - ">="
|
125
130
|
- !ruby/object:Gem::Version
|
131
|
+
hash: 31
|
126
132
|
segments:
|
127
133
|
- 0
|
128
134
|
- 3
|
129
135
|
- 6
|
130
|
-
segments_generated: true
|
131
136
|
version: 0.3.6
|
132
137
|
requirement: *id008
|
138
|
+
name: oauth
|
139
|
+
type: :runtime
|
133
140
|
- !ruby/object:Gem::Dependency
|
134
141
|
prerelease: false
|
135
|
-
name: activesupport
|
136
|
-
type: :runtime
|
137
142
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
138
144
|
requirements:
|
139
145
|
- - ">="
|
140
146
|
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
141
148
|
segments:
|
142
149
|
- 0
|
143
|
-
segments_generated: true
|
144
150
|
version: "0"
|
145
151
|
requirement: *id009
|
152
|
+
name: activesupport
|
153
|
+
type: :runtime
|
146
154
|
- !ruby/object:Gem::Dependency
|
147
155
|
prerelease: false
|
148
|
-
name: nokogiri
|
149
|
-
type: :runtime
|
150
156
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
151
158
|
requirements:
|
152
159
|
- - ">="
|
153
160
|
- !ruby/object:Gem::Version
|
161
|
+
hash: 3
|
154
162
|
segments:
|
155
163
|
- 0
|
156
|
-
segments_generated: true
|
157
164
|
version: "0"
|
158
165
|
requirement: *id010
|
166
|
+
name: nokogiri
|
167
|
+
type: :runtime
|
159
168
|
- !ruby/object:Gem::Dependency
|
160
169
|
prerelease: false
|
161
|
-
name: mocha
|
162
|
-
type: :development
|
163
170
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
164
172
|
requirements:
|
165
173
|
- - ">="
|
166
174
|
- !ruby/object:Gem::Version
|
175
|
+
hash: 3
|
167
176
|
segments:
|
168
177
|
- 0
|
169
|
-
segments_generated: true
|
170
178
|
version: "0"
|
171
179
|
requirement: *id011
|
180
|
+
name: mocha
|
181
|
+
type: :development
|
172
182
|
- !ruby/object:Gem::Dependency
|
173
183
|
prerelease: false
|
174
|
-
name: shoulda
|
175
|
-
type: :development
|
176
184
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
177
186
|
requirements:
|
178
187
|
- - ">="
|
179
188
|
- !ruby/object:Gem::Version
|
189
|
+
hash: 3
|
180
190
|
segments:
|
181
191
|
- 0
|
182
|
-
segments_generated: true
|
183
192
|
version: "0"
|
184
193
|
requirement: *id012
|
194
|
+
name: shoulda
|
195
|
+
type: :development
|
185
196
|
description: Ruby library for the Xero accounting system API.
|
186
197
|
email: wayne.robinson@gmail.com
|
187
198
|
executables: []
|
@@ -194,6 +205,7 @@ extra_rdoc_files:
|
|
194
205
|
files:
|
195
206
|
- .bundle/config
|
196
207
|
- Gemfile
|
208
|
+
- Gemfile.lock
|
197
209
|
- LICENSE.txt
|
198
210
|
- README.md
|
199
211
|
- Rakefile
|
@@ -524,7 +536,6 @@ files:
|
|
524
536
|
- test/unit/report_definition_test.rb
|
525
537
|
- test/unit/report_test.rb
|
526
538
|
- xeroizer.gemspec
|
527
|
-
has_rdoc: true
|
528
539
|
homepage: http://github.com/waynerobinson/xeroizer
|
529
540
|
licenses:
|
530
541
|
- MIT
|
@@ -534,53 +545,29 @@ rdoc_options: []
|
|
534
545
|
require_paths:
|
535
546
|
- lib
|
536
547
|
required_ruby_version: !ruby/object:Gem::Requirement
|
548
|
+
none: false
|
537
549
|
requirements:
|
538
550
|
- - ">="
|
539
551
|
- !ruby/object:Gem::Version
|
552
|
+
hash: 3
|
540
553
|
segments:
|
541
554
|
- 0
|
542
|
-
segments_generated: true
|
543
555
|
version: "0"
|
544
556
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
557
|
+
none: false
|
545
558
|
requirements:
|
546
559
|
- - ">="
|
547
560
|
- !ruby/object:Gem::Version
|
561
|
+
hash: 3
|
548
562
|
segments:
|
549
563
|
- 0
|
550
|
-
segments_generated: true
|
551
564
|
version: "0"
|
552
565
|
requirements: []
|
553
566
|
|
554
567
|
rubyforge_project:
|
555
|
-
rubygems_version: 1.
|
568
|
+
rubygems_version: 1.8.10
|
556
569
|
signing_key:
|
557
570
|
specification_version: 3
|
558
571
|
summary: Xero library
|
559
|
-
test_files:
|
560
|
-
|
561
|
-
- test/acceptance/about_fetching_bank_transactions_test.rb
|
562
|
-
- test/acceptance/acceptance_test.rb
|
563
|
-
- test/acceptance/bank_transaction_reference_data.rb
|
564
|
-
- test/stub_responses/refresh_responses.rb
|
565
|
-
- test/test_helper.rb
|
566
|
-
- test/unit/models/bank_transaction_model_parsing_test.rb
|
567
|
-
- test/unit/models/bank_transaction_test.rb
|
568
|
-
- test/unit/models/bank_transaction_validation_test.rb
|
569
|
-
- test/unit/models/contact_test.rb
|
570
|
-
- test/unit/models/credit_note_test.rb
|
571
|
-
- test/unit/models/invoice_test.rb
|
572
|
-
- test/unit/models/line_item_sum_test.rb
|
573
|
-
- test/unit/models/line_item_test.rb
|
574
|
-
- test/unit/oauth_config_test.rb
|
575
|
-
- test/unit/oauth_test.rb
|
576
|
-
- test/unit/private_application_test.rb
|
577
|
-
- test/unit/record/base_model_test.rb
|
578
|
-
- test/unit/record/base_test.rb
|
579
|
-
- test/unit/record/block_validator_test.rb
|
580
|
-
- test/unit/record/model_definition_test.rb
|
581
|
-
- test/unit/record/parse_where_hash_test.rb
|
582
|
-
- test/unit/record/record_association_test.rb
|
583
|
-
- test/unit/record/validators_test.rb
|
584
|
-
- test/unit/record_definition_test.rb
|
585
|
-
- test/unit/report_definition_test.rb
|
586
|
-
- test/unit/report_test.rb
|
572
|
+
test_files: []
|
573
|
+
|