qif 0.4 → 0.5

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/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.5 Writes qif files without a record separator after the header. [jscipione]
2
+
1
3
  v0.4 Follow QIF specification that an end of entry should not appear under a
2
4
  header [jscipione]
3
5
 
data/lib/qif/writer.rb CHANGED
@@ -39,7 +39,7 @@ module Qif
39
39
  @format = format
40
40
  @transactions = []
41
41
  end
42
-
42
+
43
43
  # Add a transaction for writing
44
44
  def <<(transaction)
45
45
  @transactions << transaction
@@ -59,7 +59,7 @@ module Qif
59
59
  private
60
60
 
61
61
  def write_header
62
- write_record('!Type:%s' % @type)
62
+ @io.write("!Type:%s\n" % @type)
63
63
  end
64
64
 
65
65
  def write_transactions
data/qif.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{qif}
5
- s.version = "0.4"
5
+ s.version = "0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeremy Wells"]
@@ -45,7 +45,7 @@ describe Qif::Writer do
45
45
  describe '#write' do
46
46
  it 'should write the header' do
47
47
  @instance.write
48
- @buffer.should include("!Type:Bank\n^")
48
+ @buffer.should include("!Type:Bank\n")
49
49
  end
50
50
 
51
51
  it 'should write any pending transactions' do
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qif
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Wells