nub 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nub/cmds.rb +2 -9
- data/lib/nub/config.rb +1 -8
- data/lib/nub/log.rb +1 -8
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1157d43c2cd6ea52eebd62edc3623007b1cd595e7eab0820537ec4543a1a396d
|
4
|
+
data.tar.gz: 7753566c6f7e895742e02b25b70b76023ea40e59a7b6663d9a6398192f247fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72924307d8d2ace44b11c43ab64d52937cd7f88bce1688f5fe64db4bceaf73998516d5b819f830b5371a77c0a5605df25ce30940dc1023086e22f40214e370d5
|
7
|
+
data.tar.gz: 64f72a99f8aef30681f71a5b908d17b933cb14f61a9430cfdecb8e4a4ac658e943a2eab6cff9875655fdafafe4f0cca67a4c21050d9b2a61ae6f2e8154f2cb48
|
data/lib/nub/cmds.rb
CHANGED
@@ -19,15 +19,8 @@
|
|
19
19
|
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
20
|
#SOFTWARE.
|
21
21
|
|
22
|
-
require 'optparse'
|
23
|
-
|
24
|
-
begin
|
25
|
-
require 'colorize'
|
26
|
-
rescue Exception => e
|
27
|
-
mod = e.message.split(' ').last.sub('/', '-')
|
28
|
-
mod = e.message[/.*Could not find '(.*?)'.*/, 1] if e.message.include?("Could not find")
|
29
|
-
!puts("Error: install missing package with 'sudo pacman -S ruby-#{mod}'") and exit
|
30
|
-
end
|
22
|
+
require 'optparse'
|
23
|
+
require 'colorize'
|
31
24
|
|
32
25
|
# Command option class provides a way to encapsulate a command with
|
33
26
|
# any additional properties.
|
data/lib/nub/config.rb
CHANGED
@@ -20,14 +20,7 @@
|
|
20
20
|
#SOFTWARE.
|
21
21
|
|
22
22
|
require 'yaml'
|
23
|
-
|
24
|
-
begin
|
25
|
-
require 'colorize'
|
26
|
-
rescue Exception => e
|
27
|
-
mod = e.message.split(' ').last.sub('/', '-')
|
28
|
-
mod = e.message[/.*Could not find '(.*?)'.*/, 1] if e.message.include?("Could not find")
|
29
|
-
!puts("Error: install missing package with 'sudo pacman -S ruby-#{mod}'") and exit
|
30
|
-
end
|
23
|
+
require 'colorize'
|
31
24
|
|
32
25
|
require_relative 'user'
|
33
26
|
require_relative 'log'
|
data/lib/nub/log.rb
CHANGED
@@ -22,14 +22,7 @@
|
|
22
22
|
require 'time'
|
23
23
|
require 'monitor'
|
24
24
|
require 'ostruct'
|
25
|
-
|
26
|
-
begin
|
27
|
-
require 'colorize'
|
28
|
-
rescue Exception => e
|
29
|
-
mod = e.message.split(' ').last.sub('/', '-')
|
30
|
-
mod = e.message[/.*Could not find '(.*?)'.*/, 1] if e.message.include?("Could not find")
|
31
|
-
!puts("Error: install missing package with 'sudo pacman -S ruby-#{mod}'") and exit
|
32
|
-
end
|
25
|
+
require 'colorize'
|
33
26
|
|
34
27
|
ColorPair = Struct.new(:str, :color)
|
35
28
|
ColorMap = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Crummett
|
@@ -11,33 +11,33 @@ cert_chain: []
|
|
11
11
|
date: 2018-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: colorize
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.8.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.8.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.11.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.11.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|