huffshell 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +4 -0
  2. data/Gemfile.lock +8 -1
  3. data/Readme.md +7 -0
  4. data/bin/huffshell +8 -2
  5. metadata +4 -4
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source :rubygems
2
2
  gemspec
3
3
  gem 'rspec'
4
4
  gem 'colorize'
5
+
6
+ group :test do
7
+ gem 'simplecov'
8
+ end
data/Gemfile.lock CHANGED
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- huffshell (0.0.1)
4
+ huffshell (0.0.3)
5
+ colorize
5
6
 
6
7
  GEM
7
8
  remote: http://rubygems.org/
8
9
  specs:
9
10
  colorize (0.5.8)
10
11
  diff-lcs (1.1.3)
12
+ multi_json (1.2.0)
11
13
  rspec (2.10.0)
12
14
  rspec-core (~> 2.10.0)
13
15
  rspec-expectations (~> 2.10.0)
@@ -16,6 +18,10 @@ GEM
16
18
  rspec-expectations (2.10.0)
17
19
  diff-lcs (~> 1.1.3)
18
20
  rspec-mocks (2.10.1)
21
+ simplecov (0.6.4)
22
+ multi_json (~> 1.0)
23
+ simplecov-html (~> 0.5.3)
24
+ simplecov-html (0.5.3)
19
25
 
20
26
  PLATFORMS
21
27
  ruby
@@ -24,3 +30,4 @@ DEPENDENCIES
24
30
  colorize
25
31
  huffshell!
26
32
  rspec
33
+ simplecov
data/Readme.md CHANGED
@@ -41,6 +41,13 @@ huffshell
41
41
  alias > ~/.aliases.cache
42
42
  ```
43
43
 
44
+ Update
45
+ ---------------------
46
+
47
+ ```script
48
+ gem update huffshell
49
+ ````
50
+
44
51
  Fixes
45
52
  ---------------------
46
53
 
data/bin/huffshell CHANGED
@@ -4,13 +4,19 @@ require 'huffshell'
4
4
  require 'colorize'
5
5
 
6
6
  cs = CommandSuggestor.new
7
- history_filename = '~/.zsh_history'
7
+
8
+ files = ['~/.zsh_history', '~/.zshhistory', '~/.zhistory']
9
+ history_filename = files.map{|f| File.expand_path(f) }.select{|f| File.exist?(f) }.first
10
+
11
+ puts "Huffshel"
12
+ puts "============="
13
+ puts ["History found:", history_filename, File.size(history_filename).to_s].join(" ")
8
14
 
9
15
  OhMyZshReader.new(history_filename).
10
16
  shell_commands.
11
17
  each{ |l| cs.add(l) }
12
18
 
13
- puts "Huffshel"
19
+ puts ""
14
20
  puts "============="
15
21
  puts [cs.commands.size.to_s.green, "unique keywords"].join(" ")
16
22
 
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
16
- requirement: &70101664442100 !ruby/object:Gem::Requirement
16
+ requirement: &70115917714360 !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: *70101664442100
24
+ version_requirements: *70115917714360
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
@@ -46,7 +46,7 @@ files:
46
46
  - Gemfile.lock
47
47
  - Rakefile
48
48
  - Readme.md
49
- homepage: http://rubygems.org/gems/huffshell
49
+ homepage: https://github.com/paulmars/huffshell
50
50
  licenses: []
51
51
  post_install_message:
52
52
  rdoc_options: []