a_parser_client 0.1.5 → 0.1.6
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/README.md +3 -3
- data/a_parser_client.gemspec +3 -3
- data/lib/a_parser_client.rb +2 -2
- data/lib/a_parser_client/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce1ab499b36e7ca18f90688137769f8a4dc153a1b7c6ffc683ec967fda1c6ff
|
4
|
+
data.tar.gz: 21f8cb0c7fab8275665471654c6fa9a1029412f37a236455fec9aa20951ef651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40deb64d676410e4c1bfc35c33078eb589855459378456806f3e7d3b07c1db47e53b4a9d6dd43a1be70512bc671b538ad25c4eb16a265f31d44d555b8a0181ed
|
7
|
+
data.tar.gz: 3280913d3d3afad37c3132074a015704de50e89bc9ed2f78e3905f86e073c9173f199fcdcfbdb7aeacbcb50784f69eebd03b793c08d1d37887b75ccf487d7574
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -56,10 +56,10 @@ The code sample below is all for now...
|
|
56
56
|
```ruby
|
57
57
|
require 'a_parser_client'
|
58
58
|
|
59
|
-
api = AParserClient::API.new 'http://<your_host_running_aparser>:9091/API, ''
|
60
|
-
api.ping
|
59
|
+
api = AParserClient::API.new 'http://<your_host_running_aparser>:9091/API, ''
|
60
|
+
api.ping
|
61
61
|
|
62
|
-
|
62
|
+
=> {"success" : 1, "data" : "pong"}
|
63
63
|
```
|
64
64
|
|
65
65
|
## Development
|
data/a_parser_client.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Yaroslav Shevchenko"]
|
9
9
|
spec.email = ["yvshevchenko@gmail.com"]
|
10
10
|
|
11
|
-
spec.summary = %q{A simple inerface to
|
12
|
-
spec.description = %q{Gem allowing to use
|
11
|
+
spec.summary = %q{A simple inerface to A-Parser API.}
|
12
|
+
spec.description = %q{Gem allowing to use A-Parser API simple way.}
|
13
13
|
spec.homepage = "https://github.com/yvshevchenko/a_parser_client"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
19
19
|
spec.metadata["source_code_uri"] = "https://github.com/yvshevchenko/a_parser_client"
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/yvshevchenko/a_parser_client"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/yvshevchenko/a_parser_client/wiki/Changes-Log"
|
21
21
|
|
22
22
|
# Specify which files should be added to the gem when it is released.
|
23
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/lib/a_parser_client.rb
CHANGED
@@ -20,7 +20,7 @@ module AParserClient
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
23
|
+
def ping
|
24
24
|
request = {
|
25
25
|
password: @api_pass,
|
26
26
|
action: 'ping'
|
@@ -30,7 +30,7 @@ module AParserClient
|
|
30
30
|
|
31
31
|
#updates alive status
|
32
32
|
def alive?
|
33
|
-
@alive =
|
33
|
+
@alive = ping ? true : false
|
34
34
|
end
|
35
35
|
|
36
36
|
|
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.6
|
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-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description: Gem allowing to use
|
55
|
+
description: Gem allowing to use A-Parser API simple way.
|
56
56
|
email:
|
57
57
|
- yvshevchenko@gmail.com
|
58
58
|
executables: []
|
@@ -80,7 +80,7 @@ metadata:
|
|
80
80
|
allowed_push_host: https://rubygems.org
|
81
81
|
homepage_uri: https://github.com/yvshevchenko/a_parser_client
|
82
82
|
source_code_uri: https://github.com/yvshevchenko/a_parser_client
|
83
|
-
changelog_uri: https://github.com/yvshevchenko/a_parser_client
|
83
|
+
changelog_uri: https://github.com/yvshevchenko/a_parser_client/wiki/Changes-Log
|
84
84
|
post_install_message:
|
85
85
|
rdoc_options: []
|
86
86
|
require_paths:
|
@@ -100,5 +100,5 @@ rubyforge_project:
|
|
100
100
|
rubygems_version: 2.7.7
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
|
-
summary: A simple inerface to
|
103
|
+
summary: A simple inerface to A-Parser API.
|
104
104
|
test_files: []
|