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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34bbce0691e3d41bbb084b91d87da30ee5d93442af202b412f111daba676ddea
4
- data.tar.gz: ac018683aeae286fd1cbcbcc9dc029cd40952f833fa848f7abd8f9270b17e4b2
3
+ metadata.gz: 9ed578569a32738b77fd112c9a9b5c4be1405b3d6ce338e2c3bb0a64874d76a4
4
+ data.tar.gz: 42647973d9272ffaae8b94989f1b784f5a656d5b526799e44fc397714ba16aad
5
5
  SHA512:
6
- metadata.gz: 8fb65bf03fec28509cdf5f32b173c26b2dba4f25c1376584a7dcea078fb20aef7ea4c6cb5e6d4237f417140784f3702e9cef829dd64e014201838d69a22e55a6
7
- data.tar.gz: 8a4e397f66d4b30ece4aa2a47fa51af76d1c8dd8a0a97f7d4ca43c5a3ca5c3713ea54ac34be35b3594ba03b4fa48144c569fc7a81af6bbef85d35daff324d69d
6
+ metadata.gz: b6b171c76b1d02e80c944d3e0925004594afaa82cea3e18c89e9fb4b216147e6ac24a27a4b161c9f39917fe1c537b6a4f5916f3f2544ee4ca2e908ceaaaf8b4e
7
+ data.tar.gz: e7a02d9b66cefdf14c0753fe95b231290f4fe9d5f7e92d7c48953ffaa7c082c16cf4129a8df55b3f1501b091d2a4b685b46c8bb7e1a4092c005f16c14b5b7728
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- a_parser_client (0.1.9)
4
+ a_parser_client (0.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- if api_driver
12
- unless api_driver.alive?
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 = api_driver.get_tasks_list
26
+ data = @driver.get_tasks_list
25
27
  data['data'] ? data['data'] : []
26
28
  end
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module AParserClient
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  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.9
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-02-29 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler