deadly_serious 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40a1ca779d70ca0a0dffb5198b7473142674772f
4
- data.tar.gz: a032c8ee79050cbc50fc9b75b8bcaeff91b62133
3
+ metadata.gz: d23e28dcbb3b663230662efee896380d76d50c35
4
+ data.tar.gz: 26f2d96349624ea4c96610da398a32247a305023
5
5
  SHA512:
6
- metadata.gz: 22f26a794e3cc61adca4dc7f669930408ed972ed35d0b1b316e980c5a6bb4493d83e1325551f7d17741cd3cc75fb1703016108abbd13884405a5abc73fc73422
7
- data.tar.gz: 7b61b110c41e95714fa27b55578e8f1daec865ef6f2f9055b8c257f8d02939dc7c9483cf49b9172469bbaa27a7a5ad404ea16d2cef33b1a31f8205a84187d036
6
+ metadata.gz: da85a130c1aea27bdc2d25f2205937a894d21bfc09fb6b9ebe9c56c37c73fc0a8e8d47e045f243355780aabe5b95838617b66bfe00de04740956cbf42571f87f
7
+ data.tar.gz: 4d0379d0437f184b1478ecb5ddc7965873b5303c9755dd561953e1a9ce8e78f5dc51b27fc4a7e40c9e75821d94d3a327f1151655fce91df6b7e0b9b4bf70ccae
@@ -17,6 +17,10 @@ module DeadlySerious
17
17
  end
18
18
  end
19
19
 
20
+ def each_with_object(object)
21
+ @io.each_with_object(object) { |line, object| yield JSON.parse(line), object }
22
+ end
23
+
20
24
  def <<(value)
21
25
  @io << value.to_json << "\n"
22
26
  end
@@ -28,6 +28,11 @@ module DeadlySerious
28
28
  @io.each_cons(qty, &block)
29
29
  end
30
30
 
31
+ def each_with_object(object, &block)
32
+ open_reader
33
+ @io.each_with_object(object, &block)
34
+ end
35
+
31
36
  def <<(element)
32
37
  open_writer
33
38
  @io << element
@@ -1,3 +1,3 @@
1
1
  module DeadlySerious
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadly_serious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronie Uliana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-02 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler