huffshell 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bin/huffshell +0 -2
- data/lib/shell/binary_checker.rb +2 -5
- metadata +52 -30
data/Gemfile.lock
CHANGED
data/bin/huffshell
CHANGED
@@ -34,8 +34,6 @@ end
|
|
34
34
|
puts ""
|
35
35
|
puts "Most common commands:"
|
36
36
|
|
37
|
-
puts cs.wordtree.root.children["huffshell"].inspect
|
38
|
-
|
39
37
|
cs.wordtree.root.minimum(10).sort{|a, b| a[1].line_count <=> b[1].line_count }.reverse[0,10].each do |word, node|
|
40
38
|
puts [node.word, node.line_count.to_s.green].join(" ")
|
41
39
|
end
|
data/lib/shell/binary_checker.rb
CHANGED
@@ -4,11 +4,8 @@ class BinaryChecker
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def exist?
|
7
|
-
|
8
|
-
|
9
|
-
# $?.to_s.scan("0") != []
|
10
|
-
!ENV['PATH'].split(':').
|
11
|
-
each {|folder| puts File.exists?(folder+'/'+@command)}.
|
7
|
+
!!ENV['PATH'].split(':').
|
8
|
+
map {|folder| File.exists?(folder+'/'+@command)}.
|
12
9
|
inject(false){|a,b| a || b }
|
13
10
|
end
|
14
11
|
end
|
metadata
CHANGED
@@ -1,35 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: huffshell
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Paul McKellar
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-06-20 00:00:00 -07:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: colorize
|
16
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
22
33
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
description: A parser and recommendation system for your shell aliases based on your
|
26
|
-
shell history
|
34
|
+
version_requirements: *id001
|
35
|
+
description: A parser and recommendation system for your shell aliases based on your shell history
|
27
36
|
email: paul.mckellar@gmail.com
|
28
|
-
executables:
|
37
|
+
executables:
|
29
38
|
- huffshell
|
30
39
|
extensions: []
|
40
|
+
|
31
41
|
extra_rdoc_files: []
|
32
|
-
|
42
|
+
|
43
|
+
files:
|
33
44
|
- lib/command/command_suggestion.rb
|
34
45
|
- lib/command/command_suggestor.rb
|
35
46
|
- lib/command/command_word.rb
|
@@ -46,28 +57,39 @@ files:
|
|
46
57
|
- Gemfile.lock
|
47
58
|
- Rakefile
|
48
59
|
- Readme.md
|
60
|
+
has_rdoc: true
|
49
61
|
homepage: https://github.com/paulmars/huffshell
|
50
62
|
licenses: []
|
63
|
+
|
51
64
|
post_install_message:
|
52
65
|
rdoc_options: []
|
53
|
-
|
66
|
+
|
67
|
+
require_paths:
|
54
68
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
70
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
79
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
67
87
|
requirements: []
|
88
|
+
|
68
89
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.6.2
|
70
91
|
signing_key:
|
71
92
|
specification_version: 3
|
72
93
|
summary: Automatic shell alias recommondations based on usage!
|
73
94
|
test_files: []
|
95
|
+
|