openbd_api 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openbd/openbd_cli.rb +15 -1
- data/lib/openbd/version.rb +1 -1
- data/lib/openbd_api.rb +2 -0
- data/openbd_api.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94982978119bb00a0a943e74c0a97983483090a3
|
4
|
+
data.tar.gz: 98f9d13e78555c18b393681c18f0d7fbfa459df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fad167a8635b44d3952ca9f012316fceb0f07101cbcfaa73c9dc2600a340250ec97c0284b67a46c785e0f2eb14fd2d82d1e6a243c54296ed8b38c672d84e043e
|
7
|
+
data.tar.gz: 02f591f4d6913bf40272eb196d82d3fd40d512812f0da55ab171dff16fc5fffe056a831f0e648e2f93c9b07e03a13fa909c2bfde7dd5ead9cef8f0a85daa960a
|
data/lib/openbd/openbd_cli.rb
CHANGED
@@ -4,7 +4,21 @@ class OpenbdCLI
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def call
|
7
|
-
|
7
|
+
opts = Slop.parse do |o|
|
8
|
+
o.banner = "Usage: openbd <method> [arguments] [options]"
|
9
|
+
o.on '-v', '--version', 'print the version' do
|
10
|
+
puts "openbd_api #{Openbd::VERSION}"
|
11
|
+
exit
|
12
|
+
end
|
13
|
+
o.on '-h', '--help', 'print help' do
|
14
|
+
puts o
|
15
|
+
exit
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
if method_name.nil?
|
20
|
+
puts opts
|
21
|
+
elsif params.empty?
|
8
22
|
puts OpenBD.send(method_name)
|
9
23
|
else
|
10
24
|
puts OpenBD.send(method_name, params)
|
data/lib/openbd/version.rb
CHANGED
data/lib/openbd_api.rb
CHANGED
data/openbd_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openbd_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nasum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: slop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '4.4'
|
55
69
|
description: This gem wraps openBD Web API.
|
56
70
|
email:
|
57
71
|
- tomato.wonder.life@gmail.com
|