teplohod 0.0.1.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.md +5 -0
- data/Rakefile +21 -0
- data/bin/teplohod +14 -0
- data/example/main.rb +50 -0
- data/lib/teplohod/cli.rb +63 -0
- data/lib/teplohod/initializers/banner.rb +31 -0
- data/lib/teplohod/initializers/boot.rb +15 -0
- data/lib/teplohod/initializers/daemonizer.rb +51 -0
- data/lib/teplohod/initializers/logger.rb +14 -0
- data/lib/teplohod/initializers/options.rb +57 -0
- data/lib/teplohod/initializers/pid.rb +16 -0
- data/lib/teplohod/initializers/redis.rb +14 -0
- data/lib/teplohod/initializers/web.rb +13 -0
- data/lib/teplohod/initializers.rb +25 -0
- data/lib/teplohod/launcher.rb +28 -0
- data/lib/teplohod/logging.rb +87 -0
- data/lib/teplohod/manager.rb +19 -0
- data/lib/teplohod/pipeline/base.rb +89 -0
- data/lib/teplohod/processor/base.rb +9 -0
- data/lib/teplohod/processor/equality.rb +11 -0
- data/lib/teplohod/provider/base.rb +48 -0
- data/lib/teplohod/queue/base.rb +25 -0
- data/lib/teplohod/queue/memory/base.rb +33 -0
- data/lib/teplohod/signal_handler.rb +39 -0
- data/lib/teplohod/stats.rb +36 -0
- data/lib/teplohod/utils.rb +31 -0
- data/lib/teplohod/version.rb +3 -0
- data/lib/teplohod/web.rb +19 -0
- data/lib/teplohod.rb +57 -0
- data/teplohod.gemspec +38 -0
- data/web/assets/stylesheets/turret.css +7821 -0
- data/web/views/index.erb +48 -0
- data/web/views/layout.erb +18 -0
- metadata +291 -0
data/web/views/index.erb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
<h1 class="lead">Providers</h1>
|
2
|
+
|
3
|
+
<% providers.each do |provider| %>
|
4
|
+
<figure>
|
5
|
+
<figcaption>
|
6
|
+
<strong>
|
7
|
+
<i class="fa fa-bank" aria-hidden="true"></i>
|
8
|
+
<%= provider.key %>
|
9
|
+
</strong>
|
10
|
+
</figcaption>
|
11
|
+
|
12
|
+
<% provider.pipelines.reverse_each do |pipeline| %>
|
13
|
+
<figure>
|
14
|
+
<% stats = Teplohod::Stats.all(pipeline) %>
|
15
|
+
<div class="row">
|
16
|
+
<div class="column-1-3">
|
17
|
+
<p>
|
18
|
+
<i class="fa fa-database" aria-hidden="true"></i>
|
19
|
+
<%= pipeline.key %>
|
20
|
+
</p>
|
21
|
+
<p class="pullout">
|
22
|
+
<%= pipeline.name %>
|
23
|
+
</p>
|
24
|
+
<p class="pullout">
|
25
|
+
<%= pipeline.description %>
|
26
|
+
</p>
|
27
|
+
</div>
|
28
|
+
<div class="column-1-3">
|
29
|
+
<dl>
|
30
|
+
<dt>Processed:</dt>
|
31
|
+
<dd><%= stats[:processed] || 0%></dd>
|
32
|
+
<dt>Items in queue:</dt>
|
33
|
+
<dd><%= pipeline.queue.length %></dd>
|
34
|
+
</dl>
|
35
|
+
</div>
|
36
|
+
<div class="column-1-3">
|
37
|
+
<dl>
|
38
|
+
<dt>Top 5 from queue:</dt>
|
39
|
+
<% pipeline.queue.last(5).each do |data| %>
|
40
|
+
<dd><%= data %></dd>
|
41
|
+
<% end %>
|
42
|
+
</dl>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</figure>
|
46
|
+
<% end %>
|
47
|
+
</figure>
|
48
|
+
<% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= Teplohod::NAME %></title>
|
5
|
+
<meta charset="utf8" />
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
7
|
+
<meta name="google" content="notranslate" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="stylesheets/turret.css" />
|
9
|
+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<div class="container">
|
13
|
+
<div class="row">
|
14
|
+
<%= yield %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</body>
|
18
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,291 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: teplohod
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergey Kuchmistov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.0.beta2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.0.beta2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: redis
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: connection_pool
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: redis-namespace
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thin
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.13'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.13'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '5.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '5.0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov-console
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: minitest-reporters
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: fakeredis
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rubocop
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: yard
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: Framework for persisted ongoing data processing like scraping or analyzing.
|
224
|
+
email:
|
225
|
+
- sergey.kuchmistov@gmail.com
|
226
|
+
executables:
|
227
|
+
- teplohod
|
228
|
+
extensions: []
|
229
|
+
extra_rdoc_files: []
|
230
|
+
files:
|
231
|
+
- ".gitignore"
|
232
|
+
- ".rubocop.yml"
|
233
|
+
- ".travis.yml"
|
234
|
+
- Gemfile
|
235
|
+
- README.md
|
236
|
+
- Rakefile
|
237
|
+
- bin/teplohod
|
238
|
+
- example/main.rb
|
239
|
+
- lib/teplohod.rb
|
240
|
+
- lib/teplohod/cli.rb
|
241
|
+
- lib/teplohod/initializers.rb
|
242
|
+
- lib/teplohod/initializers/banner.rb
|
243
|
+
- lib/teplohod/initializers/boot.rb
|
244
|
+
- lib/teplohod/initializers/daemonizer.rb
|
245
|
+
- lib/teplohod/initializers/logger.rb
|
246
|
+
- lib/teplohod/initializers/options.rb
|
247
|
+
- lib/teplohod/initializers/pid.rb
|
248
|
+
- lib/teplohod/initializers/redis.rb
|
249
|
+
- lib/teplohod/initializers/web.rb
|
250
|
+
- lib/teplohod/launcher.rb
|
251
|
+
- lib/teplohod/logging.rb
|
252
|
+
- lib/teplohod/manager.rb
|
253
|
+
- lib/teplohod/pipeline/base.rb
|
254
|
+
- lib/teplohod/processor/base.rb
|
255
|
+
- lib/teplohod/processor/equality.rb
|
256
|
+
- lib/teplohod/provider/base.rb
|
257
|
+
- lib/teplohod/queue/base.rb
|
258
|
+
- lib/teplohod/queue/memory/base.rb
|
259
|
+
- lib/teplohod/signal_handler.rb
|
260
|
+
- lib/teplohod/stats.rb
|
261
|
+
- lib/teplohod/utils.rb
|
262
|
+
- lib/teplohod/version.rb
|
263
|
+
- lib/teplohod/web.rb
|
264
|
+
- teplohod.gemspec
|
265
|
+
- web/assets/stylesheets/turret.css
|
266
|
+
- web/views/index.erb
|
267
|
+
- web/views/layout.erb
|
268
|
+
homepage: http://raisintech.com/teplohod
|
269
|
+
licenses: []
|
270
|
+
metadata: {}
|
271
|
+
post_install_message:
|
272
|
+
rdoc_options: []
|
273
|
+
require_paths:
|
274
|
+
- lib
|
275
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
276
|
+
requirements:
|
277
|
+
- - ">="
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '0'
|
280
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">"
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: 1.3.1
|
285
|
+
requirements: []
|
286
|
+
rubyforge_project:
|
287
|
+
rubygems_version: 2.5.1
|
288
|
+
signing_key:
|
289
|
+
specification_version: 4
|
290
|
+
summary: Framework for persisted ongoing data processing
|
291
|
+
test_files: []
|