diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c00a179 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*~ +*.gem +.bundle +Gemfile.lock +pkg/* diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c0026c6 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "http://rubygems.org" + +# Specify your gem's dependencies in persistent-shel-history.gemspec +gemspec diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..0bbbf40 --- /dev/null +++ b/Rakefile @@ -0,0 +1,4 @@ +require 'bundler/gem_tasks' + +task :default => :build + diff --git a/bash_history.rb b/bin/bash_history.rb similarity index 100% rename from bash_history.rb rename to bin/bash_history.rb diff --git a/lib/persistent-shell-history.rb b/lib/persistent-shell-history.rb new file mode 100644 index 0000000..bd1b661 --- /dev/null +++ b/lib/persistent-shell-history.rb @@ -0,0 +1,9 @@ +require "persistent-shell-history/version" + +module Persistent + module Shell + module History + # Your code goes here... + end + end +end diff --git a/lib/persistent-shell-history/version.rb b/lib/persistent-shell-history/version.rb new file mode 100644 index 0000000..28374c9 --- /dev/null +++ b/lib/persistent-shell-history/version.rb @@ -0,0 +1,7 @@ +module Persistent + module Shell + module History + VERSION = "0.0.1" + end + end +end diff --git a/persistent-shell-history.gemspec b/persistent-shell-history.gemspec new file mode 100644 index 0000000..c6b4244 --- /dev/null +++ b/persistent-shell-history.gemspec @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "persistent-shell-history/version" + +Gem::Specification.new do |s| + s.name = "persistent-shell-history" + s.version = Persistent::Shell::History::VERSION + s.authors = ["Vincent Batts"] + s.email = ["vbatts@hashbangbash.com"] + s.homepage = "" + s.summary = %q{bash shell history collection} + s.description = %q{ +This is a quick job, to have a local database, to collect _all_ commands +from ~/.bash_history +See README for other implementation helpers. +} + + s.rubyforge_project = "persistent-shell-history" + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] +end