trick_bag 0.34.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
data/RELEASE_NOTES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.35.0
2
+
3
+ * Added start_pos and max_count accessors to FileLineReader.
4
+
5
+
1
6
  ## v0.34.0
2
7
 
3
8
  * Added FileLineReader, StartMax. Added strategies to dos2unix.
@@ -25,6 +25,16 @@ class FileLineReader
25
25
  end
26
26
 
27
27
 
28
+ def start_pos
29
+ start_and_max.start_pos
30
+ end
31
+
32
+
33
+ def max_count
34
+ start_and_max.max_count
35
+ end
36
+
37
+
28
38
  def line_valid?(line)
29
39
  ! (line.empty? || /^#/ === line)
30
40
  end
@@ -1,3 +1,3 @@
1
1
  module TrickBag
2
- VERSION = "0.34.0"
2
+ VERSION = "0.35.0"
3
3
  end
@@ -113,6 +113,15 @@ nbc.com
113
113
  enumerator = subject.each
114
114
  expect(-> { 3.times { enumerator.close } }).not_to raise_error
115
115
  end
116
+
117
+ specify "start_pos returns the value passed to the constructor" do
118
+ expect(FileLineReader.new(@tempfile.path, 10).start_pos).to eq(10)
119
+ end
120
+
121
+ specify "max_count returns the value passed to the constructor" do
122
+ expect(FileLineReader.new(@tempfile.path, 10, 200).max_count).to eq(200)
123
+ end
124
+
116
125
  end
117
126
  end
118
127
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trick_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: