xeroizer 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/xeroizer/models/manual_journal.rb +3 -5
- data/xeroizer.gemspec +2 -2
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -11,7 +11,7 @@ module Xeroizer
|
|
11
11
|
|
12
12
|
JOURNAL_STATUS = {
|
13
13
|
'DRAFT' => 'Draft',
|
14
|
-
'
|
14
|
+
'POSTED' => 'Posted'
|
15
15
|
} unless defined?(INVOICE_TYPE)
|
16
16
|
JOURNAL_STATUSES = JOURNAL_STATUS.keys.sort
|
17
17
|
|
@@ -24,16 +24,14 @@ module Xeroizer
|
|
24
24
|
string :status
|
25
25
|
string :line_amount_types
|
26
26
|
string :narration
|
27
|
+
string :url, :api_name => 'URL'
|
27
28
|
datetime :updated_date_utc, :api_name => 'UpdatedDateUTC'
|
28
29
|
|
29
30
|
has_many :journal_lines, :model_name => 'ManualJournalLine'
|
30
31
|
|
31
32
|
validates_presence_of :narration
|
32
33
|
validates_associated :journal_lines
|
33
|
-
|
34
|
-
# Can only create/update manual journals in DRAFT status
|
35
|
-
validates_inclusion_of :status, :in => %w(DRAFT)
|
36
|
-
|
34
|
+
|
37
35
|
public
|
38
36
|
|
39
37
|
end
|
data/xeroizer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "xeroizer"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.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 = "2012-04-
|
12
|
+
s.date = "2012-04-17"
|
13
13
|
s.description = "Ruby library for the Xero accounting system API."
|
14
14
|
s.email = "wayne.robinson@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xeroizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wayne Robinson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
18
|
+
date: 2012-04-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
prerelease: false
|