LRH 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LRH.rb +31 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc78ed20889896b5790c7f3502d30710c607c91
|
4
|
+
data.tar.gz: 9acca681dcfc86e5325f899fce938a3995914297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9065ae354e5244d6738294e71fa07e3024416f3efd9ac34230a0c43e53888485123bb37dffae71488d43c5ca4a357111f79c0417679e8ca444e3ca29363b24e0
|
7
|
+
data.tar.gz: e873e321e8e2176e9cfa10604d43b2c58b0b4d38da49f4b02c1b13ba70f780cdabf0ba237bbe6b34800146c51211fbbbe8d7557cee330ef42f87b51cb0b1ca76
|
data/LRH.rb
CHANGED
@@ -67,6 +67,37 @@ class Lister < IOAble
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
class ListerJoiner < IOAble
|
71
|
+
def initialize
|
72
|
+
super
|
73
|
+
end
|
74
|
+
|
75
|
+
def _join(lister_output)
|
76
|
+
self.join(lister_output)
|
77
|
+
end
|
78
|
+
|
79
|
+
def join(lister_output)
|
80
|
+
# Creates an instance
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class MultiLister < Lister
|
85
|
+
def initialize(main_lister, joiner)
|
86
|
+
@basic_lister = main_lister
|
87
|
+
@joiner = joiner
|
88
|
+
end
|
89
|
+
|
90
|
+
def list
|
91
|
+
@basic_lister.list do |basic_list_element|
|
92
|
+
joined = @joiner.join(basic_list_element)
|
93
|
+
|
94
|
+
joined.list do |sublist_element|
|
95
|
+
yield sublist_element
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
70
101
|
class ParallelLister < Lister
|
71
102
|
def initialize(threads=4)
|
72
103
|
super()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: LRH
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Scalabrino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Lister-Runner-Harvester framework
|
14
14
|
email: s.scalabrino9@gmail.com
|
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
36
|
version: '0'
|
37
37
|
requirements: []
|
38
38
|
rubyforge_project:
|
39
|
-
rubygems_version: 2.6.
|
39
|
+
rubygems_version: 2.6.13
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
42
|
summary: Lister-Runner-Harvester framework
|