riif 0.7.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6d39578438343ae050542e1b4e27e7640aaa9775
4
- data.tar.gz: 8f3a87719dc4091ed695c055d38a57c4111144b5
2
+ SHA256:
3
+ metadata.gz: f7b71c29ce897c5400b64b0216cc2e0c774b71cbe91cc04736365aa9e029a001
4
+ data.tar.gz: 7586e41a421dce76cdd122ad22b6712dddab32b95ce4e5f73f1d2cfdc48e3b0d
5
5
  SHA512:
6
- metadata.gz: 118a854025d2d6ea66f1938285d7f226f8e8b94e61f72c0f857f6f35f7b6931c80eccb619f0931fe1caf94b9cb7ad502a89cd73fdc3bf7f0ef97cc82b48a114c
7
- data.tar.gz: b64dc3dfea5bfdad37993f38e36469927798f294d2f2f5825974427dc1710d97aeaa8809e037d2c5d51ffef9bdee6481d13e92152b334c14f4f451b572e83e00
6
+ metadata.gz: 5fb2f175ad86af5dab984299e68953877b28b63ce508150fd39122251cf88a41fe14a756bfc0d6a2f012bc5e17c20b17f2102ffe7104aa13327fd180fe5c93b2
7
+ data.tar.gz: 7c80c439340540b06d8edf5f345b29d87030578f12f4050b85373df1e7f7c8ea26759c514299017287dce4efba9dd171c6544d1e2bfb0a8b025cc1b8839eee6e
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [linjunpop]
4
+ patreon: linjunpop
@@ -1 +1 @@
1
- ruby 2.4.3
1
+ ruby 2.6.0
@@ -2,52 +2,58 @@
2
2
 
3
3
  ## NEXT (unreleased)
4
4
 
5
+ ## 0.8.0
6
+
7
+ - #38 Deprecation warning on Rails 6.0.0.rc1. [@jaredmoody](https://github.com/jaredmoody)
8
+
5
9
  ## 0.7.0
6
10
 
7
- * #34 Resolved issues on Rails 2. [@newmedio](https://github.com/newmedio)
8
- * #34 Fixes class & 1099 issues. [@newmedio](https://github.com/newmedio)
11
+ - #34 Resolved issues on Rails 2. [@newmedio](https://github.com/newmedio)
12
+ - #34 Fixes class & 1099 issues. [@newmedio](https://github.com/newmedio)
9
13
 
10
14
  ## 0.6.0
11
15
 
12
- * #10 Add option to pass an argument to `Riif.new`. [@ghiculescu](https://github.com/ghiculescu)
16
+ - #10 Add option to pass an argument to `Riif.new`. [@ghiculescu](https://github.com/ghiculescu)
13
17
 
14
18
  ## 0.5.0
15
19
 
16
- * #9 Implement TIMERHDR. [@ghiculescu](https://github.com/ghiculescu)
20
+ - #9 Implement TIMERHDR. [@ghiculescu](https://github.com/ghiculescu)
17
21
 
18
22
  ## 0.4.0
19
23
 
20
- * #7 Add missing paymeth to transaction type. [@jphpsf](https://github.com/jphpsf)
24
+ - #7 Add missing paymeth to transaction type. [@jphpsf](https://github.com/jphpsf)
21
25
 
22
26
  ## 0.3.0
23
27
 
24
- * #6 by [@jphpsf](https://github.com/jphpsf)
25
- * Shipping address (SADDR1 to SADDR5)
26
- * Sales rep (rep)
27
- * Invoice title and memo (INVTITLE and INVMEMO)
28
- * Purchase order number (PONUM)
28
+ - #6 by [@jphpsf](https://github.com/jphpsf)
29
+ - Shipping address (SADDR1 to SADDR5)
30
+ - Sales rep (rep)
31
+ - Invoice title and memo (INVTITLE and INVMEMO)
32
+ - Purchase order number (PONUM)
29
33
 
30
34
  ## 0.2.0
31
- * #4 - Add support to customize filename
32
- * #5 - Separate different lists into groups
35
+
36
+ - #4 - Add support to customize filename
37
+ - #5 - Separate different lists into groups
33
38
 
34
39
  ## 0.1.0
35
- * #2 - Implement Mixed document in one IIF file. (DSL had been changed)
40
+
41
+ - #2 - Implement Mixed document in one IIF file. (DSL had been changed)
36
42
 
37
43
  ## 0.0.1
38
- * Implement OTHERNAME
39
- * Implement TIMEACT
40
- * Implement TERMS
41
- * Implement VEND
42
- * Implement VTYPE
43
- * Implement SHIPMETH
44
- * Implement PAYMETH
45
- * Implement INVMEMO
46
- * Implement INVITEM
47
- * Implement CTYPE
48
- * Implement CLASS
49
- * Implement ACCNT
50
- * Implement EMP
51
- * Implement CUST
52
- * Implement TRNS and SPL
53
44
 
45
+ - Implement OTHERNAME
46
+ - Implement TIMEACT
47
+ - Implement TERMS
48
+ - Implement VEND
49
+ - Implement VTYPE
50
+ - Implement SHIPMETH
51
+ - Implement PAYMETH
52
+ - Implement INVMEMO
53
+ - Implement INVITEM
54
+ - Implement CTYPE
55
+ - Implement CLASS
56
+ - Implement ACCNT
57
+ - Implement EMP
58
+ - Implement CUST
59
+ - Implement TRNS and SPL
data/README.md CHANGED
@@ -167,7 +167,7 @@ au BufWinEnter,BufRead,BufNewFile *.riif set filetype=ruby
167
167
 
168
168
  ## Resources
169
169
 
170
- [Use Intuit Interchange Format (.iif) files](http://support.quickbooks.intuit.com/support/articles/HOW12778)
170
+ [Export or import Intuit Interchange Format (.IIF) files](https://quickbooks.intuit.com/community/Reports-and-accounting/Export-or-import-Intuit-Interchange-Format-IIF-files/m-p/203229)
171
171
 
172
172
  ## Contributing
173
173
 
@@ -4,11 +4,13 @@ module Riif
4
4
  cattr_accessor :default_format
5
5
  self.default_format = Mime[:iif]
6
6
 
7
- def self.call(template)
7
+ def self.call(template, source = nil)
8
+ source ||= template.source
9
+
8
10
  <<-RUBY
9
11
  iif = ::Riif::IIF.new
10
12
 
11
- #{template.source}
13
+ #{source}
12
14
 
13
15
  iif.output
14
16
  RUBY
@@ -1,3 +1,3 @@
1
1
  module Riif
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-23 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -145,6 +145,7 @@ extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
147
  - ".coveralls.yml"
148
+ - ".github/FUNDING.yml"
148
149
  - ".gitignore"
149
150
  - ".rspec"
150
151
  - ".tool-versions"
@@ -244,8 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  - !ruby/object:Gem::Version
245
246
  version: '0'
246
247
  requirements: []
247
- rubyforge_project:
248
- rubygems_version: 2.6.14
248
+ rubygems_version: 3.0.1
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: A simple DSL to generate QuickBooks IIF file