deadly_serious 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 40a1ca779d70ca0a0dffb5198b7473142674772f
4
+ data.tar.gz: a032c8ee79050cbc50fc9b75b8bcaeff91b62133
5
+ SHA512:
6
+ metadata.gz: 22f26a794e3cc61adca4dc7f669930408ed972ed35d0b1b316e980c5a6bb4493d83e1325551f7d17741cd3cc75fb1703016108abbd13884405a5abc73fc73422
7
+ data.tar.gz: 7b61b110c41e95714fa27b55578e8f1daec865ef6f2f9055b8c257f8d02939dc7c9483cf49b9172469bbaa27a7a5ad404ea16d2cef33b1a31f8205a84187d036
@@ -11,6 +11,12 @@ module DeadlySerious
11
11
  @io.each { |line| yield JSON.parse(line) }
12
12
  end
13
13
 
14
+ def each_cons(qty)
15
+ @io.each_cons(qty) do |args|
16
+ yield *(args.map { |line| JSON.parse(line) })
17
+ end
18
+ end
19
+
14
20
  def <<(value)
15
21
  @io << value.to_json << "\n"
16
22
  end
@@ -23,6 +23,11 @@ module DeadlySerious
23
23
  @io.each &block
24
24
  end
25
25
 
26
+ def each_cons(qty, &block)
27
+ open_reader
28
+ @io.each_cons(qty, &block)
29
+ end
30
+
26
31
  def <<(element)
27
32
  open_writer
28
33
  @io << element
@@ -1,3 +1,3 @@
1
1
  module DeadlySerious
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadly_serious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
5
- prerelease:
4
+ version: 0.5.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ronie Uliana
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-28 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,33 +27,29 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Flow Based Programming Engine mechanically sympathetic to *nix.
@@ -91,27 +84,26 @@ files:
91
84
  homepage: https://github.com/ruliana/deadly_serious
92
85
  licenses:
93
86
  - MIT
87
+ metadata: {}
94
88
  post_install_message:
95
89
  rdoc_options: []
96
90
  require_paths:
97
91
  - lib
98
92
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
93
  requirements:
101
- - - ! '>='
94
+ - - '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
104
97
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
98
  requirements:
107
- - - ! '>='
99
+ - - '>='
108
100
  - !ruby/object:Gem::Version
109
101
  version: '0'
110
102
  requirements: []
111
103
  rubyforge_project:
112
- rubygems_version: 1.8.23
104
+ rubygems_version: 2.1.11
113
105
  signing_key:
114
- specification_version: 3
106
+ specification_version: 4
115
107
  summary: Flow Based Programming engine that relies on named pipes and Linux processes
116
108
  (sorry, it not works on Windows right now). That means it uses 'mechanical sympathy'
117
109
  with the Operating System, i.e., the S.O. is *part* of the program, it's not something