huffshell 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/huffshell CHANGED
@@ -34,6 +34,8 @@ end
34
34
  puts ""
35
35
  puts "Most common commands:"
36
36
 
37
+ puts cs.wordtree.root.children["huffshell"].inspect
38
+
37
39
  cs.wordtree.root.minimum(10).sort{|a, b| a[1].line_count <=> b[1].line_count }.reverse[0,10].each do |word, node|
38
40
  puts [node.word, node.line_count.to_s.green].join(" ")
39
41
  end
@@ -5,7 +5,10 @@ class BinaryChecker
5
5
 
6
6
  def exist?
7
7
  # would love something better
8
- out = `command -v #{@command} >/dev/null 2>&1`
9
- $?.to_s.scan("0") != []
8
+ # out = `command -v #{@command} >/dev/null 2>&1`
9
+ # $?.to_s.scan("0") != []
10
+ !ENV['PATH'].split(':').
11
+ each {|folder| puts File.exists?(folder+'/'+@command)}.
12
+ inject(false){|a,b| a || b }
10
13
  end
11
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huffshell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2012-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
16
- requirement: &70228294016280 !ruby/object:Gem::Requirement
16
+ requirement: &70354203220720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70228294016280
24
+ version_requirements: *70354203220720
25
25
  description: A parser and recommendation system for your shell aliases based on your
26
26
  shell history
27
27
  email: paul.mckellar@gmail.com