a_parser_client 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/a_parser_client.rb +6 -4
- data/lib/a_parser_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ed578569a32738b77fd112c9a9b5c4be1405b3d6ce338e2c3bb0a64874d76a4
|
4
|
+
data.tar.gz: 42647973d9272ffaae8b94989f1b784f5a656d5b526799e44fc397714ba16aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6b171c76b1d02e80c944d3e0925004594afaa82cea3e18c89e9fb4b216147e6ac24a27a4b161c9f39917fe1c537b6a4f5916f3f2544ee4ca2e908ceaaaf8b4e
|
7
|
+
data.tar.gz: e7a02d9b66cefdf14c0753fe95b231290f4fe9d5f7e92d7c48953ffaa7c082c16cf4129a8df55b3f1501b091d2a4b685b46c8bb7e1a4092c005f16c14b5b7728
|
data/Gemfile.lock
CHANGED
data/lib/a_parser_client.rb
CHANGED
@@ -5,11 +5,13 @@ module AParserClient
|
|
5
5
|
class Error < StandardError; end
|
6
6
|
|
7
7
|
class Control
|
8
|
-
attr_reader :tasks
|
8
|
+
attr_reader :tasks, :driver
|
9
9
|
|
10
10
|
def initialize(api_driver)
|
11
|
-
|
12
|
-
|
11
|
+
@driver = api_driver
|
12
|
+
|
13
|
+
if @driver
|
14
|
+
unless @driver.alive?
|
13
15
|
raise "API driver should be alive to take control of parser."
|
14
16
|
end
|
15
17
|
|
@@ -21,7 +23,7 @@ module AParserClient
|
|
21
23
|
end
|
22
24
|
|
23
25
|
def fetch_tasks
|
24
|
-
data =
|
26
|
+
data = @driver.get_tasks_list
|
25
27
|
data['data'] ? data['data'] : []
|
26
28
|
end
|
27
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a_parser_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Shevchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|