qiflib 0.2.0 → 0.3.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.
- checksums.yaml +7 -0
- data/README.rdoc +37 -37
- data/html/Qiflib/Category.html +243 -262
- data/html/Qiflib/Date.html +255 -294
- data/html/Qiflib/Money.html +213 -226
- data/html/Qiflib/Transaction.html +517 -568
- data/html/Qiflib/Util.html +322 -333
- data/html/Qiflib.html +197 -234
- data/html/README_rdoc.html +144 -130
- data/html/index.html +125 -155
- data/html/rdoc.css +170 -338
- data/html/table_of_contents.html +130 -0
- data/lib/qiflib_constants.rb +6 -7
- data/lib/qiflib_util.rb +35 -36
- metadata +15 -25
- data/html/lib/qiflib_category_rb.html +0 -52
- data/html/lib/qiflib_constants_rb.html +0 -56
- data/html/lib/qiflib_date_rb.html +0 -52
- data/html/lib/qiflib_money_rb.html +0 -52
- data/html/lib/qiflib_rb.html +0 -68
- data/html/lib/qiflib_transaction_rb.html +0 -52
- data/html/lib/qiflib_util_rb.html +0 -52
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a10f3259aeca5b02f386fd1522fb18b499bec4d3
|
4
|
+
data.tar.gz: d314812b6e03ad2d47c7f35b337ec4d64e6c1f91
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ffb80d8f9efa95fe7497ce6b11a07d1f565a7636a633dbd6308979ec14f2e4d2afa580ccdfa3fc941b5fedf8b56698f0238b99d96c56f0330ba8d1d310411af8
|
7
|
+
data.tar.gz: 2d46e01f884817457f1ee6537a0174e69d09b75ff1314bc03b21438b07a5b15632a815b153932f35ea1217778ac5dc86a23d20bf62930153386c9050dcbd06be
|
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
== Qiflib
|
1
|
+
== Qiflib version 0.3.0
|
2
2
|
|
3
3
|
A ruby library for reading and parsing qif files.
|
4
4
|
|
@@ -8,7 +8,7 @@ list of fields for each transaction.
|
|
8
8
|
|
9
9
|
Category-name parsing is also supported.
|
10
10
|
|
11
|
-
Also includes DDL generation for importing the parsed categories and
|
11
|
+
Also includes DDL generation for importing the parsed categories and
|
12
12
|
transactions into a sqlite3 database.
|
13
13
|
|
14
14
|
== Install
|
@@ -16,70 +16,70 @@ transactions into a sqlite3 database.
|
|
16
16
|
gem install qiflib
|
17
17
|
|
18
18
|
== Synopsis
|
19
|
-
|
19
|
+
|
20
20
|
# Parse the transactions from one or more files to csv.
|
21
21
|
# Due to a discrepancy between the way iBank and Quicken export
|
22
22
|
# qif files, you need to specify either Qiflib::SOURCE_IBANK or
|
23
23
|
# Qiflib::SOURCE_QUICKEN as the :source.
|
24
|
-
|
24
|
+
|
25
25
|
input_list = []
|
26
|
-
input_list << {
|
26
|
+
input_list << {
|
27
27
|
:owner => 'Chris',
|
28
28
|
:filename => 'data/ibank_cj.qif',
|
29
29
|
:source => Qiflib::SOURCE_IBANK }
|
30
|
-
input_list << {
|
30
|
+
input_list << {
|
31
31
|
:owner => 'Teri',
|
32
32
|
:filename => 'data/ibank_tj.qif',
|
33
33
|
:source => Qiflib::SOURCE_QUICKEN }
|
34
|
-
|
35
|
-
csv_lines = Qiflib::Util.transactions_to_csv(input_list)
|
36
|
-
|
34
|
+
|
35
|
+
csv_lines = Qiflib::Util.transactions_to_csv(input_list)
|
36
|
+
|
37
37
|
... write csv_lines to a file
|
38
38
|
|
39
39
|
|
40
|
-
# Parse the transactions from one or more files to ^-delimited text.
|
40
|
+
# Parse the transactions from one or more files to ^-delimited text.
|
41
41
|
# The text lines are suitable for loading to sqlite3.
|
42
|
-
|
42
|
+
|
43
43
|
input_list = []
|
44
|
-
input_list << {
|
44
|
+
input_list << {
|
45
45
|
:owner => 'Chris',
|
46
46
|
:filename => 'data/ibank_cj.qif',
|
47
47
|
:source => Qiflib::SOURCE_IBANK }
|
48
|
-
|
48
|
+
|
49
49
|
delim_lines = Qiflib::Util.transactions_to_delim(input_list)
|
50
|
-
|
50
|
+
|
51
51
|
... write delim_lines to a file
|
52
52
|
|
53
53
|
|
54
54
|
# Parse the categories from one or more files to csv.
|
55
|
-
|
55
|
+
|
56
56
|
input_list = [ 'data/ibank_cj.qif' ]
|
57
57
|
csv_lines = Qiflib::Util.catetory_names_to_csv(input_list)
|
58
|
-
|
59
|
-
... write csv_lines to a file
|
60
|
-
|
61
58
|
|
62
|
-
|
63
|
-
|
64
|
-
|
59
|
+
... write csv_lines to a file
|
60
|
+
|
61
|
+
|
62
|
+
# Parse the categories from one or more files to ^-delimited text.
|
63
|
+
# The text lines are suitable for loading to sqlite3.
|
64
|
+
|
65
65
|
input_list = [ 'data/ibank_cj.qif' ]
|
66
66
|
delim_lines = Qiflib::Util.catetory_names_to_delim(input_list)
|
67
|
-
|
68
|
-
... write delim_lines to a file
|
67
|
+
|
68
|
+
... write delim_lines to a file
|
69
69
|
|
70
70
|
|
71
71
|
# Generate the DDL for a sqlite3 database with categories and transactions tables.
|
72
|
-
|
72
|
+
|
73
73
|
ddl_lines = Qiflib::Util.generate_sqlite_ddl
|
74
|
-
|
75
|
-
... write ddl_lines to a file; use it in the following bash-shell script
|
76
74
|
|
75
|
+
... write ddl_lines to a file; use it in the following bash-shell script
|
77
76
|
|
78
|
-
|
77
|
+
|
78
|
+
# Generate a bash-shell script to load the categories and transactions
|
79
79
|
# delimited files into a sqlite3 database, using the above DDL.
|
80
|
-
|
81
|
-
sh_lines = Qiflib::Util.generate_sqlite_load_script
|
82
|
-
|
80
|
+
|
81
|
+
sh_lines = Qiflib::Util.generate_sqlite_load_script
|
82
|
+
|
83
83
|
... write sh_lines to a file; chmod 744; run it.
|
84
84
|
|
85
85
|
|
@@ -128,22 +128,22 @@ transactions into a sqlite3 database.
|
|
128
128
|
|
129
129
|
.separator '^'
|
130
130
|
|
131
|
-
.import qiflib_transactions.txt transactions
|
132
|
-
.import qiflib_categories.txt categories
|
131
|
+
.import private/qiflib_transactions.txt transactions
|
132
|
+
.import private/qiflib_categories.txt categories
|
133
133
|
|
134
134
|
|
135
|
-
== Generated shell script
|
135
|
+
== Generated shell script
|
136
136
|
|
137
|
-
# bash-shell script
|
137
|
+
# bash-shell script
|
138
138
|
|
139
139
|
#!/bin/bash
|
140
140
|
|
141
141
|
sqlite3 qiflib.db < qiflib.ddl
|
142
|
-
|
143
|
-
|
142
|
+
|
143
|
+
|
144
144
|
== Copyright and License
|
145
145
|
|
146
146
|
Copyright 2013, Chris Joakim <cjoakim@bellsouth.net>.
|
147
147
|
|
148
148
|
GNU General Public License (GPLv3) license.
|
149
|
-
See http://www.gnu.org/copyleft/gpl.html
|
149
|
+
See http://www.gnu.org/copyleft/gpl.html
|