xeroizer 0.3.5 → 0.4.0
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.
- data/.bundle/config +2 -2
- data/Gemfile +5 -0
- data/Rakefile +17 -1
- data/VERSION +1 -1
- data/lib/xeroizer.rb +5 -1
- data/lib/xeroizer/configuration.rb +19 -0
- data/lib/xeroizer/generic_application.rb +2 -1
- data/lib/xeroizer/logging.rb +8 -0
- data/lib/xeroizer/models/account.rb +2 -1
- data/lib/xeroizer/models/bank_account.rb +12 -0
- data/lib/xeroizer/models/bank_transaction.rb +74 -0
- data/lib/xeroizer/models/invoice.rb +17 -12
- data/lib/xeroizer/models/item.rb +3 -3
- data/lib/xeroizer/models/item_purchase_details.rb +19 -0
- data/lib/xeroizer/models/{item_purchase_sale_details.rb → item_sales_details.rb} +5 -3
- data/lib/xeroizer/models/line_amount_type.rb +11 -0
- data/lib/xeroizer/models/line_item.rb +2 -12
- data/lib/xeroizer/models/line_item_sum.rb +21 -0
- data/lib/xeroizer/models/payment.rb +2 -6
- data/lib/xeroizer/oauth.rb +1 -1
- data/lib/xeroizer/record/base.rb +21 -2
- data/lib/xeroizer/record/validation_helper.rb +14 -2
- data/lib/xeroizer/record/validators/block_validator.rb +22 -0
- data/lib/xeroizer/record/validators/validator.rb +14 -5
- data/lib/xeroizer/record/xml_helper.rb +24 -7
- data/test/acceptance/about_creating_bank_transactions_test.rb +162 -0
- data/test/acceptance/about_fetching_bank_transactions_test.rb +56 -0
- data/test/acceptance/acceptance_test.rb +53 -0
- data/test/acceptance/bank_transaction_reference_data.rb +31 -0
- data/test/test_helper.rb +11 -1
- data/test/unit/models/bank_transaction_model_parsing_test.rb +131 -0
- data/test/unit/models/bank_transaction_test.rb +47 -0
- data/test/unit/models/bank_transaction_validation_test.rb +87 -0
- data/test/unit/models/contact_test.rb +2 -2
- data/test/unit/models/credit_note_test.rb +2 -2
- data/test/unit/models/invoice_test.rb +43 -17
- data/test/unit/models/line_item_sum_test.rb +24 -0
- data/test/unit/models/line_item_test.rb +54 -0
- data/test/unit/oauth_config_test.rb +20 -0
- data/test/unit/oauth_test.rb +1 -1
- data/test/unit/private_application_test.rb +2 -2
- data/test/unit/record/base_model_test.rb +2 -2
- data/test/unit/record/base_test.rb +38 -1
- data/test/unit/record/block_validator_test.rb +125 -0
- data/test/unit/record/model_definition_test.rb +2 -2
- data/test/unit/record/parse_where_hash_test.rb +2 -2
- data/test/unit/record/record_association_test.rb +1 -1
- data/test/unit/record/validators_test.rb +51 -3
- data/test/unit/record_definition_test.rb +2 -2
- data/test/unit/report_definition_test.rb +2 -2
- data/test/unit/report_test.rb +1 -1
- data/xeroizer.gemspec +60 -6
- metadata +124 -66
- data/lib/.DS_Store +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class OAuthConfigTest < Test::Unit::TestCase
|
4
|
+
include Xeroizer
|
5
|
+
|
6
|
+
must "load oauth configuration from yaml" do
|
7
|
+
the_yaml = "
|
8
|
+
consumer:
|
9
|
+
key: key
|
10
|
+
secret: secret
|
11
|
+
key_file: key_file
|
12
|
+
"
|
13
|
+
|
14
|
+
result = OAuthConfig.load the_yaml
|
15
|
+
|
16
|
+
assert_equal "key", result.consumer_key, "Unexpected consumer_key value"
|
17
|
+
assert_equal "secret", result.consumer_secret, "Unexpected consumer_secret value"
|
18
|
+
assert_equal "key_file", result.key_file, "Unexpected key_file value"
|
19
|
+
end
|
20
|
+
end
|
data/test/unit/oauth_test.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'test_helper'
|
2
2
|
|
3
3
|
class PrivateApplicationTest < Test::Unit::TestCase
|
4
4
|
include TestHelper
|
@@ -17,4 +17,4 @@ class PrivateApplicationTest < Test::Unit::TestCase
|
|
17
17
|
|
18
18
|
end
|
19
19
|
|
20
|
-
end
|
20
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'test_helper'
|
2
2
|
|
3
3
|
class RecordBaseTest < Test::Unit::TestCase
|
4
4
|
include TestHelper
|
@@ -54,4 +54,41 @@ class RecordBaseTest < Test::Unit::TestCase
|
|
54
54
|
|
55
55
|
end
|
56
56
|
|
57
|
+
context "about logging" do
|
58
|
+
setup do
|
59
|
+
@example_class = Class.new(Xeroizer::Record::Base) do
|
60
|
+
def valid?; true; end
|
61
|
+
def to_xml(b = nil); "<FakeRequest />" end
|
62
|
+
string :id
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
must "log the request and response xml when saving a new record" do
|
67
|
+
Xeroizer::Logging::Log.expects(:info).once.with {|arg| arg =~ /\[CREATE SENT\]/}
|
68
|
+
Xeroizer::Logging::Log.expects(:info).once.with {|arg| arg =~ /\[CREATE RECEIVED\]/}
|
69
|
+
|
70
|
+
a_fake_parent = mock "Mock parent",
|
71
|
+
:http_put => "<FakeResponse />",
|
72
|
+
:parse_response => stub("Stub response", :response_items => [])
|
73
|
+
|
74
|
+
an_example_instance = @example_class.new(a_fake_parent)
|
75
|
+
|
76
|
+
an_example_instance.id = nil
|
77
|
+
an_example_instance.save
|
78
|
+
end
|
79
|
+
|
80
|
+
must "log the request and response xml when updating an existing record" do
|
81
|
+
Xeroizer::Logging::Log.expects(:info).once.with {|arg| arg =~ /\[UPDATE SENT\]/}
|
82
|
+
Xeroizer::Logging::Log.expects(:info).once.with {|arg| arg =~ /\[UPDATE RECEIVED\]/}
|
83
|
+
|
84
|
+
a_fake_parent = mock "Mock parent",
|
85
|
+
:http_post => "<FakeResponse />",
|
86
|
+
:parse_response => stub("Stub response", :response_items => [])
|
87
|
+
|
88
|
+
an_example_instance = @example_class.new(a_fake_parent)
|
89
|
+
|
90
|
+
an_example_instance.id = "phil's lunch box"
|
91
|
+
an_example_instance.save
|
92
|
+
end
|
93
|
+
end
|
57
94
|
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class BlockValidatorTest < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@fake_record_class = Class.new do
|
6
|
+
attr_accessor :errors
|
7
|
+
def initialize; @errors = []; end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
it "returns valid when block returns true" do
|
12
|
+
record = @fake_record_class.new
|
13
|
+
|
14
|
+
the_block_returning_true = Proc.new{ true }
|
15
|
+
|
16
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
17
|
+
:name,
|
18
|
+
:block => the_block_returning_true
|
19
|
+
)
|
20
|
+
|
21
|
+
block_validator.valid?(record)
|
22
|
+
|
23
|
+
assert_empty record.errors, "Expected validation to pass. #{record.errors.inspect}"
|
24
|
+
end
|
25
|
+
|
26
|
+
it "returns invalid when block returns a non-null object" do
|
27
|
+
record = @fake_record_class.new
|
28
|
+
|
29
|
+
the_block_returning_true = Proc.new{ Object }
|
30
|
+
|
31
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
32
|
+
:name,
|
33
|
+
:block => the_block_returning_true
|
34
|
+
)
|
35
|
+
|
36
|
+
block_validator.valid?(record)
|
37
|
+
|
38
|
+
assert_equal 1, record.errors.size, "Expected validation to fail with one error. #{record.errors.inspect}"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "returns invalid when block returns false" do
|
42
|
+
record = @fake_record_class.new
|
43
|
+
|
44
|
+
the_block_returning_false = Proc.new{ false }
|
45
|
+
|
46
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
47
|
+
:name,
|
48
|
+
{
|
49
|
+
:block => the_block_returning_false
|
50
|
+
}
|
51
|
+
)
|
52
|
+
|
53
|
+
block_validator.valid?(record)
|
54
|
+
|
55
|
+
assert_equal 1, record.errors.size, "Expected validation to fail with one error. #{record.errors.inspect}"
|
56
|
+
end
|
57
|
+
|
58
|
+
it "uses the message supplied when validation fails" do
|
59
|
+
record = @fake_record_class.new
|
60
|
+
|
61
|
+
the_block_returning_false = Proc.new{ false }
|
62
|
+
|
63
|
+
expected_error = "Cornrows are usually a headwear mistake"
|
64
|
+
|
65
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
66
|
+
:name,
|
67
|
+
{
|
68
|
+
:block => the_block_returning_false,
|
69
|
+
:message => expected_error
|
70
|
+
}
|
71
|
+
)
|
72
|
+
|
73
|
+
block_validator.valid?(record)
|
74
|
+
|
75
|
+
assert_equal 1, record.errors.size,
|
76
|
+
"Expected validation to fail with one error. #{record.errors.inspect}"
|
77
|
+
assert_equal expected_error, record.errors.first[1],
|
78
|
+
"There is an error, but it doesn't match"
|
79
|
+
end
|
80
|
+
|
81
|
+
it "uses a default message when validation fails and no message has been supplied" do
|
82
|
+
record = @fake_record_class.new
|
83
|
+
|
84
|
+
the_block_returning_false = Proc.new{ false }
|
85
|
+
|
86
|
+
expected_error = "block condition failed"
|
87
|
+
|
88
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
89
|
+
:name,
|
90
|
+
{
|
91
|
+
:block => the_block_returning_false
|
92
|
+
}
|
93
|
+
)
|
94
|
+
|
95
|
+
block_validator.valid?(record)
|
96
|
+
|
97
|
+
assert_equal 1, record.errors.size,
|
98
|
+
"Expected validation to fail with one error. #{record.errors.inspect}"
|
99
|
+
assert_equal expected_error, record.errors.first[1],
|
100
|
+
"There is an error, but it doesn't match"
|
101
|
+
end
|
102
|
+
|
103
|
+
it "uses a default message when validation fails and message has been supplied as empty" do
|
104
|
+
record = @fake_record_class.new
|
105
|
+
|
106
|
+
the_block_returning_false = Proc.new{ false }
|
107
|
+
|
108
|
+
expected_error = "block condition failed"
|
109
|
+
|
110
|
+
block_validator = Xeroizer::Record::Validator::BlockValidator.new(
|
111
|
+
:name,
|
112
|
+
{
|
113
|
+
:block => the_block_returning_false,
|
114
|
+
:message => ""
|
115
|
+
}
|
116
|
+
)
|
117
|
+
|
118
|
+
block_validator.valid?(record)
|
119
|
+
|
120
|
+
assert_equal 1, record.errors.size,
|
121
|
+
"Expected validation to fail with one error. #{record.errors.inspect}"
|
122
|
+
assert_equal expected_error, record.errors.first[1],
|
123
|
+
"There is an error, but it doesn't match"
|
124
|
+
end
|
125
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'test_helper'
|
2
2
|
|
3
3
|
class ModelDefinitionsTest < Test::Unit::TestCase
|
4
4
|
include TestHelper
|
@@ -156,4 +156,4 @@ class ModelDefinitionsTest < Test::Unit::TestCase
|
|
156
156
|
|
157
157
|
end
|
158
158
|
|
159
|
-
end
|
159
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'test_helper'
|
2
2
|
|
3
3
|
class ValidatorsTest < Test::Unit::TestCase
|
4
4
|
include TestHelper
|
@@ -11,6 +11,8 @@ class ValidatorsTest < Test::Unit::TestCase
|
|
11
11
|
string :name
|
12
12
|
string :name_conditional_if
|
13
13
|
string :name_conditional_unless
|
14
|
+
string :name_conditional_method_if
|
15
|
+
string :name_conditional_method_unless
|
14
16
|
string :type
|
15
17
|
string :type_blank
|
16
18
|
integer :value
|
@@ -21,10 +23,20 @@ class ValidatorsTest < Test::Unit::TestCase
|
|
21
23
|
validates_presence_of :name, :message => "blank"
|
22
24
|
validates_presence_of :name_conditional_if, :if => Proc.new { | record | record.value == 10 }, :message => "blank_if_10"
|
23
25
|
validates_presence_of :name_conditional_unless, :unless => Proc.new { | record | record.value == 20 }, :message => "blank_unless_20"
|
26
|
+
validates_presence_of :name_conditional_method_if, :if => :value_equals_ten?, :message => "blank_if_10"
|
27
|
+
validates_presence_of :name_conditional_method_unless, :unless => :value_equals_twenty?, :message => "blank_unless_20"
|
24
28
|
validates_inclusion_of :type, :in => %w(phone fax mobile), :message => "not_included"
|
25
29
|
validates_inclusion_of :type_blank, :in => %w(phone fax mobile), :message => "not_included_blank", :allow_blanks => true
|
26
30
|
validates_associated :contact, :message => "association_invalid"
|
27
31
|
validates_associated :addresses, :message => "association_invalid_blank", :allow_blanks => true
|
32
|
+
|
33
|
+
def value_equals_ten?
|
34
|
+
value == 10
|
35
|
+
end
|
36
|
+
|
37
|
+
def value_equals_twenty?
|
38
|
+
value == 20
|
39
|
+
end
|
28
40
|
end
|
29
41
|
|
30
42
|
def setup
|
@@ -157,6 +169,24 @@ class ValidatorsTest < Test::Unit::TestCase
|
|
157
169
|
assert_nil(error)
|
158
170
|
end
|
159
171
|
|
172
|
+
should "have name if value_equals_ten?" do
|
173
|
+
@record.value = 10
|
174
|
+
assert_equal(false, @record.valid?)
|
175
|
+
error = @record.errors_for(:name_conditional_method_if).first
|
176
|
+
assert_equal('blank_if_10', error)
|
177
|
+
|
178
|
+
@record.name_conditional_method_if = "NOT BLANK"
|
179
|
+
@record.valid?
|
180
|
+
error = @record.errors_for(:name_conditional_method_if).first
|
181
|
+
assert_nil(error)
|
182
|
+
|
183
|
+
@record.name_conditional_method_if = nil
|
184
|
+
@record.value = 50
|
185
|
+
@record.valid?
|
186
|
+
error = @record.errors_for(:name_conditional_method_if).first
|
187
|
+
assert_nil(error)
|
188
|
+
end
|
189
|
+
|
160
190
|
should "have name unless value is 20" do
|
161
191
|
@record.value = 50
|
162
192
|
assert_equal(false, @record.valid?)
|
@@ -174,7 +204,25 @@ class ValidatorsTest < Test::Unit::TestCase
|
|
174
204
|
error = @record.errors_for(:name_conditional_unless).first
|
175
205
|
assert_nil(error)
|
176
206
|
end
|
177
|
-
|
207
|
+
|
208
|
+
should "have name unless value_equals_twenty?" do
|
209
|
+
@record.value = 50
|
210
|
+
assert_equal(false, @record.valid?)
|
211
|
+
error = @record.errors_for(:name_conditional_method_unless).first
|
212
|
+
assert_equal('blank_unless_20', error)
|
213
|
+
|
214
|
+
@record.name_conditional_method_unless = "NOT BLANK"
|
215
|
+
@record.valid?
|
216
|
+
error = @record.errors_for(:name_conditional_method_unless).first
|
217
|
+
assert_nil(error)
|
218
|
+
|
219
|
+
@record.name_conditional_method_unless = nil
|
220
|
+
@record.value = 20
|
221
|
+
@record.valid?
|
222
|
+
error = @record.errors_for(:name_conditional_method_unless).first
|
223
|
+
assert_nil(error)
|
224
|
+
end
|
225
|
+
|
178
226
|
end
|
179
227
|
|
180
|
-
end
|
228
|
+
end
|
data/test/unit/report_test.rb
CHANGED
data/xeroizer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xeroizer}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
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 = %q{
|
12
|
+
s.date = %q{2012-02-10}
|
13
13
|
s.description = %q{Ruby library for the Xero accounting system API.}
|
14
14
|
s.email = %q{wayne.robinson@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -23,18 +23,21 @@ Gem::Specification.new do |s|
|
|
23
23
|
"README.md",
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
|
-
"lib/.DS_Store",
|
27
26
|
"lib/big_decimal_to_s.rb",
|
28
27
|
"lib/class_level_inheritable_attributes.rb",
|
29
28
|
"lib/xeroizer.rb",
|
30
29
|
"lib/xeroizer/application_http_proxy.rb",
|
31
30
|
"lib/xeroizer/ca-certificates.crt",
|
31
|
+
"lib/xeroizer/configuration.rb",
|
32
32
|
"lib/xeroizer/exceptions.rb",
|
33
33
|
"lib/xeroizer/generic_application.rb",
|
34
34
|
"lib/xeroizer/http.rb",
|
35
35
|
"lib/xeroizer/http_encoding_helper.rb",
|
36
|
+
"lib/xeroizer/logging.rb",
|
36
37
|
"lib/xeroizer/models/account.rb",
|
37
38
|
"lib/xeroizer/models/address.rb",
|
39
|
+
"lib/xeroizer/models/bank_account.rb",
|
40
|
+
"lib/xeroizer/models/bank_transaction.rb",
|
38
41
|
"lib/xeroizer/models/branding_theme.rb",
|
39
42
|
"lib/xeroizer/models/contact.rb",
|
40
43
|
"lib/xeroizer/models/contact_group.rb",
|
@@ -44,10 +47,13 @@ Gem::Specification.new do |s|
|
|
44
47
|
"lib/xeroizer/models/external_link.rb",
|
45
48
|
"lib/xeroizer/models/invoice.rb",
|
46
49
|
"lib/xeroizer/models/item.rb",
|
47
|
-
"lib/xeroizer/models/
|
50
|
+
"lib/xeroizer/models/item_purchase_details.rb",
|
51
|
+
"lib/xeroizer/models/item_sales_details.rb",
|
48
52
|
"lib/xeroizer/models/journal.rb",
|
49
53
|
"lib/xeroizer/models/journal_line.rb",
|
54
|
+
"lib/xeroizer/models/line_amount_type.rb",
|
50
55
|
"lib/xeroizer/models/line_item.rb",
|
56
|
+
"lib/xeroizer/models/line_item_sum.rb",
|
51
57
|
"lib/xeroizer/models/manual_journal.rb",
|
52
58
|
"lib/xeroizer/models/manual_journal_line.rb",
|
53
59
|
"lib/xeroizer/models/option.rb",
|
@@ -69,6 +75,7 @@ Gem::Specification.new do |s|
|
|
69
75
|
"lib/xeroizer/record/record_association_helper.rb",
|
70
76
|
"lib/xeroizer/record/validation_helper.rb",
|
71
77
|
"lib/xeroizer/record/validators/associated_validator.rb",
|
78
|
+
"lib/xeroizer/record/validators/block_validator.rb",
|
72
79
|
"lib/xeroizer/record/validators/inclusion_of_validator.rb",
|
73
80
|
"lib/xeroizer/record/validators/presence_of_validator.rb",
|
74
81
|
"lib/xeroizer/record/validators/validator.rb",
|
@@ -85,6 +92,10 @@ Gem::Specification.new do |s|
|
|
85
92
|
"lib/xeroizer/report/row/xml_helper.rb",
|
86
93
|
"lib/xeroizer/report/xml_helper.rb",
|
87
94
|
"lib/xeroizer/response.rb",
|
95
|
+
"test/acceptance/about_creating_bank_transactions_test.rb",
|
96
|
+
"test/acceptance/about_fetching_bank_transactions_test.rb",
|
97
|
+
"test/acceptance/acceptance_test.rb",
|
98
|
+
"test/acceptance/bank_transaction_reference_data.rb",
|
88
99
|
"test/stub_responses/accounts.xml",
|
89
100
|
"test/stub_responses/api_exception.xml",
|
90
101
|
"test/stub_responses/bogus_oauth_error",
|
@@ -316,13 +327,20 @@ Gem::Specification.new do |s|
|
|
316
327
|
"test/stub_responses/tracking_categories.xml",
|
317
328
|
"test/stub_responses/unknown_error.xml",
|
318
329
|
"test/test_helper.rb",
|
330
|
+
"test/unit/models/bank_transaction_model_parsing_test.rb",
|
331
|
+
"test/unit/models/bank_transaction_test.rb",
|
332
|
+
"test/unit/models/bank_transaction_validation_test.rb",
|
319
333
|
"test/unit/models/contact_test.rb",
|
320
334
|
"test/unit/models/credit_note_test.rb",
|
321
335
|
"test/unit/models/invoice_test.rb",
|
336
|
+
"test/unit/models/line_item_sum_test.rb",
|
337
|
+
"test/unit/models/line_item_test.rb",
|
338
|
+
"test/unit/oauth_config_test.rb",
|
322
339
|
"test/unit/oauth_test.rb",
|
323
340
|
"test/unit/private_application_test.rb",
|
324
341
|
"test/unit/record/base_model_test.rb",
|
325
342
|
"test/unit/record/base_test.rb",
|
343
|
+
"test/unit/record/block_validator_test.rb",
|
326
344
|
"test/unit/record/model_definition_test.rb",
|
327
345
|
"test/unit/record/parse_where_hash_test.rb",
|
328
346
|
"test/unit/record/record_association_test.rb",
|
@@ -335,17 +353,49 @@ Gem::Specification.new do |s|
|
|
335
353
|
s.homepage = %q{http://github.com/waynerobinson/xeroizer}
|
336
354
|
s.licenses = ["MIT"]
|
337
355
|
s.require_paths = ["lib"]
|
338
|
-
s.rubygems_version = %q{1.
|
356
|
+
s.rubygems_version = %q{1.3.6}
|
339
357
|
s.summary = %q{Xero library}
|
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
|
+
]
|
340
387
|
|
341
388
|
if s.respond_to? :specification_version then
|
389
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
342
390
|
s.specification_version = 3
|
343
391
|
|
344
|
-
if Gem::Version.new(Gem::
|
392
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
345
393
|
s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
|
346
394
|
s.add_runtime_dependency(%q<oauth>, [">= 0.3.6"])
|
347
395
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
348
396
|
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
397
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0"])
|
398
|
+
s.add_runtime_dependency(%q<yard>, [">= 0"])
|
349
399
|
s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
|
350
400
|
s.add_runtime_dependency(%q<oauth>, [">= 0.3.6"])
|
351
401
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
@@ -357,6 +407,8 @@ Gem::Specification.new do |s|
|
|
357
407
|
s.add_dependency(%q<oauth>, [">= 0.3.6"])
|
358
408
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
359
409
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
410
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
411
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
360
412
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
361
413
|
s.add_dependency(%q<oauth>, [">= 0.3.6"])
|
362
414
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
@@ -369,6 +421,8 @@ Gem::Specification.new do |s|
|
|
369
421
|
s.add_dependency(%q<oauth>, [">= 0.3.6"])
|
370
422
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
371
423
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
424
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
425
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
372
426
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
373
427
|
s.add_dependency(%q<oauth>, [">= 0.3.6"])
|
374
428
|
s.add_dependency(%q<activesupport>, [">= 0"])
|