riif 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/README.md +7 -1
- data/lib/riif/dsl/trns.rb +10 -1
- data/lib/riif/version.rb +1 -1
- data/riif.gemspec +3 -3
- data/spec/fixtures/mixed.iif +1 -1
- data/spec/fixtures/rails/invoices.iif +1 -1
- data/spec/fixtures/trns.iif +2 -2
- data/spec/riif/dsl/trns_spec.rb +3 -0
- metadata +34 -28
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## NEXT (unreleased)
|
4
4
|
|
5
|
+
## 0.3.0
|
6
|
+
|
7
|
+
* #6 by [@jphpsf](https://github.com/jphpsf)
|
8
|
+
* Shipping address (SADDR1 to SADDR5)
|
9
|
+
* Sales rep (rep)
|
10
|
+
* Invoice title and memo (INVTITLE and INVMEMO)
|
11
|
+
* Purchase order number (PONUM)
|
12
|
+
|
5
13
|
## 0.2.0
|
6
14
|
* #4 - Add support to customize filename
|
7
15
|
* #5 - Separate different lists into groups
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
A simple DSL to generate IIF file.
|
4
4
|
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://travis-ci.org/linjunpop/riif.png?branch=master)](https://travis-ci.org/linjunpop/riif)
|
6
6
|
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/linjunpop/riif)
|
7
7
|
|
8
8
|
## Installation
|
@@ -159,6 +159,12 @@ au BufWinEnter,BufRead,BufNewFile *.riif set filetype=ruby
|
|
159
159
|
4. Push to the branch (`git push origin my-new-feature`)
|
160
160
|
5. Create new Pull Request
|
161
161
|
|
162
|
+
## Contributors
|
163
|
+
|
164
|
+
:beers:
|
165
|
+
|
166
|
+
https://github.com/linjunpop/riif/graphs/contributors
|
167
|
+
|
162
168
|
## Changes
|
163
169
|
|
164
170
|
See [CHANGELOG.md]()
|
data/lib/riif/dsl/trns.rb
CHANGED
@@ -17,10 +17,19 @@ module Riif::DSL
|
|
17
17
|
:addr3,
|
18
18
|
:addr4,
|
19
19
|
:addr5,
|
20
|
+
:saddr1,
|
21
|
+
:saddr2,
|
22
|
+
:saddr3,
|
23
|
+
:saddr4,
|
24
|
+
:saddr5,
|
20
25
|
:duedate,
|
21
26
|
:terms,
|
22
27
|
:paid,
|
23
|
-
:shipdate
|
28
|
+
:shipdate,
|
29
|
+
:rep,
|
30
|
+
:ponum,
|
31
|
+
:invtitle,
|
32
|
+
:invmemo
|
24
33
|
]
|
25
34
|
START_COLUMN = 'TRNS'
|
26
35
|
END_COLUMN = 'ENDTRNS'
|
data/lib/riif/version.rb
CHANGED
data/riif.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Riif::VERSION
|
9
9
|
gem.authors = ["Jun Lin"]
|
10
10
|
gem.email = ["linjunpop@gmail.com"]
|
11
|
-
gem.description = "DSL to generate IIF file"
|
12
|
-
gem.summary = "A simple DSL to generate
|
13
|
-
gem.homepage = ""
|
11
|
+
gem.description = "A simple DSL to generate QuickBooks IIF file"
|
12
|
+
gem.summary = "A simple DSL to generate QuickBooks IIF file"
|
13
|
+
gem.homepage = "https://github.com/linjunpop/riif"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/spec/fixtures/mixed.iif
CHANGED
@@ -4,7 +4,7 @@ CUST Joker Amoy
|
|
4
4
|
!BUD ACCNT PERIOD AMOUNT STARTDATE CLASS CUSTOMER
|
5
5
|
BUD Accounts Receivable MONTH foo 3/14/12
|
6
6
|
BUD Accounts Payable MONTH 123 3/15/12
|
7
|
-
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 DUEDATE TERMS PAID SHIPDATE
|
7
|
+
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 SADDR1 SADDR2 SADDR3 SADDR4 SADDR5 DUEDATE TERMS PAID SHIPDATE REP PONUM INVTITLE INVMEMO
|
8
8
|
!SPL SPLID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR QNTY PRICE INVITEM PAYMETH TAXABLE REIMBEXP EXTRA
|
9
9
|
!ENDTRNS
|
10
10
|
TRNS foo
|
@@ -1,4 +1,4 @@
|
|
1
|
-
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 DUEDATE TERMS PAID SHIPDATE
|
1
|
+
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 SADDR1 SADDR2 SADDR3 SADDR4 SADDR5 DUEDATE TERMS PAID SHIPDATE REP PONUM INVTITLE INVMEMO
|
2
2
|
!SPL SPLID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR QNTY PRICE INVITEM PAYMETH TAXABLE REIMBEXP EXTRA
|
3
3
|
!ENDTRNS
|
4
4
|
TRNS 12345 BILL 3/14/1984 Accounts Payable EZ -300 12345 N
|
data/spec/fixtures/trns.iif
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 DUEDATE TERMS PAID SHIPDATE
|
1
|
+
!TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 SADDR1 SADDR2 SADDR3 SADDR4 SADDR5 DUEDATE TERMS PAID SHIPDATE REP PONUM INVTITLE INVMEMO
|
2
2
|
!SPL SPLID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR QNTY PRICE INVITEM PAYMETH TAXABLE REIMBEXP EXTRA
|
3
3
|
!ENDTRNS
|
4
|
-
TRNS 123 INVOICE 8/31/1988 Accounts Receivable Customer 20 1 N N Baker Customer
|
4
|
+
TRNS 123 INVOICE 8/31/1988 Accounts Receivable Customer 20 1 N N Baker Customer Watson Recipient BOB
|
5
5
|
SPL 777 INVOICE 8/31/1988 Income Account -20 N -2 10 Sales Item N
|
6
6
|
SPL 888
|
7
7
|
ENDTRNS
|
data/spec/riif/dsl/trns_spec.rb
CHANGED
metadata
CHANGED
@@ -2,128 +2,128 @@
|
|
2
2
|
name: riif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.3.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jun Lin
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
type: :development
|
15
16
|
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
|
-
none: false
|
21
22
|
name: pry
|
22
|
-
type: :development
|
23
23
|
prerelease: false
|
24
24
|
requirement: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
25
26
|
requirements:
|
26
27
|
- - ! '>='
|
27
28
|
- !ruby/object:Gem::Version
|
28
29
|
version: '0'
|
29
|
-
none: false
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
+
type: :development
|
31
32
|
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
32
34
|
requirements:
|
33
35
|
- - ! '>='
|
34
36
|
- !ruby/object:Gem::Version
|
35
37
|
version: '0'
|
36
|
-
none: false
|
37
38
|
name: rails
|
38
|
-
type: :development
|
39
39
|
prerelease: false
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
41
42
|
requirements:
|
42
43
|
- - ! '>='
|
43
44
|
- !ruby/object:Gem::Version
|
44
45
|
version: '0'
|
45
|
-
none: false
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
+
type: :development
|
47
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
48
50
|
requirements:
|
49
51
|
- - ! '>='
|
50
52
|
- !ruby/object:Gem::Version
|
51
53
|
version: '0'
|
52
|
-
none: false
|
53
54
|
name: rspec
|
54
|
-
type: :development
|
55
55
|
prerelease: false
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
57
58
|
requirements:
|
58
59
|
- - ! '>='
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
none: false
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
+
type: :development
|
63
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
64
66
|
requirements:
|
65
67
|
- - ! '>='
|
66
68
|
- !ruby/object:Gem::Version
|
67
69
|
version: '0'
|
68
|
-
none: false
|
69
70
|
name: rspec-rails
|
70
|
-
type: :development
|
71
71
|
prerelease: false
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
73
74
|
requirements:
|
74
75
|
- - ! '>='
|
75
76
|
- !ruby/object:Gem::Version
|
76
77
|
version: '0'
|
77
|
-
none: false
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
+
type: :development
|
79
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
80
82
|
requirements:
|
81
83
|
- - ! '>='
|
82
84
|
- !ruby/object:Gem::Version
|
83
85
|
version: '0'
|
84
|
-
none: false
|
85
86
|
name: awesome_print
|
86
|
-
type: :development
|
87
87
|
prerelease: false
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
89
90
|
requirements:
|
90
91
|
- - ! '>='
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
|
-
none: false
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
+
type: :development
|
95
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
96
98
|
requirements:
|
97
99
|
- - ~>
|
98
100
|
- !ruby/object:Gem::Version
|
99
101
|
version: 0.3.1
|
100
|
-
none: false
|
101
102
|
name: combustion
|
102
|
-
type: :development
|
103
103
|
prerelease: false
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
105
106
|
requirements:
|
106
107
|
- - ~>
|
107
108
|
- !ruby/object:Gem::Version
|
108
109
|
version: 0.3.1
|
109
|
-
none: false
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
+
type: :development
|
111
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
112
114
|
requirements:
|
113
115
|
- - ! '>='
|
114
116
|
- !ruby/object:Gem::Version
|
115
117
|
version: '0'
|
116
|
-
none: false
|
117
118
|
name: fuubar
|
118
|
-
type: :development
|
119
119
|
prerelease: false
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
121
122
|
requirements:
|
122
123
|
- - ! '>='
|
123
124
|
- !ruby/object:Gem::Version
|
124
125
|
version: '0'
|
125
|
-
|
126
|
-
description: DSL to generate IIF file
|
126
|
+
description: A simple DSL to generate QuickBooks IIF file
|
127
127
|
email:
|
128
128
|
- linjunpop@gmail.com
|
129
129
|
executables: []
|
@@ -208,30 +208,36 @@ files:
|
|
208
208
|
- spec/riif/dsl/vtype_spec.rb
|
209
209
|
- spec/riif/iif_spec.rb
|
210
210
|
- spec/spec_helper.rb
|
211
|
-
homepage:
|
211
|
+
homepage: https://github.com/linjunpop/riif
|
212
212
|
licenses: []
|
213
213
|
post_install_message:
|
214
214
|
rdoc_options: []
|
215
215
|
require_paths:
|
216
216
|
- lib
|
217
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
218
219
|
requirements:
|
219
220
|
- - ! '>='
|
220
221
|
- !ruby/object:Gem::Version
|
222
|
+
segments:
|
223
|
+
- 0
|
224
|
+
hash: 110501218732985089
|
221
225
|
version: '0'
|
222
|
-
none: false
|
223
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
|
+
none: false
|
224
228
|
requirements:
|
225
229
|
- - ! '>='
|
226
230
|
- !ruby/object:Gem::Version
|
231
|
+
segments:
|
232
|
+
- 0
|
233
|
+
hash: 110501218732985089
|
227
234
|
version: '0'
|
228
|
-
none: false
|
229
235
|
requirements: []
|
230
236
|
rubyforge_project:
|
231
237
|
rubygems_version: 1.8.23
|
232
238
|
signing_key:
|
233
239
|
specification_version: 3
|
234
|
-
summary: A simple DSL to generate
|
240
|
+
summary: A simple DSL to generate QuickBooks IIF file
|
235
241
|
test_files:
|
236
242
|
- spec/controllers/invoices_controller_spec.rb
|
237
243
|
- spec/fixtures/accnt.iif
|