yac 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -1
  2. data/lib/yac.rb +4 -2
  3. data/yac.gemspec +2 -2
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -1,8 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
+ require './lib/yac.rb'
4
5
 
5
- Echoe.new('yac', '1.2.0') do |p|
6
+ Echoe.new('yac',Yac::VERSION) do |p|
6
7
  p.description = "Yet Another Cheat: sexy command line tool for cheat sheet."
7
8
  p.url = "http://www.zhangjinzhu.com"
8
9
  p.author = "Jinzhu Zhang"
data/lib/yac.rb CHANGED
@@ -1,9 +1,10 @@
1
- $:.unshift File.dirname(__FILE__)
1
+ $LOAD_PATH << File.dirname(__FILE__)
2
2
  %w(git fileutils yaml format).each {|f| require f}
3
+
3
4
  module Yac
4
5
  include Format
5
6
  extend self
6
-
7
+ VERSION = '1.2.1'
7
8
  YACRC = File.join("#{ENV['HOME']}",".yacrc")
8
9
 
9
10
  FileUtils.cp(File.join(File.dirname(__FILE__), "..","resources","yacrc"), YACRC) unless File.exist?(YACRC)
@@ -30,6 +31,7 @@ module Yac
30
31
  when "-s" then shell(args[1,args.size])
31
32
  when "-r" then rm(args[1,args.size])
32
33
  when "-m" then mv(args[1,args.size])
34
+ when "-v" then colorful("Yac Version: #{Yac::VERSION}",'notice')
33
35
  else show(args)
34
36
  end
35
37
  rescue
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{yac}
5
- s.version = "1.2.0"
5
+ s.version = "1.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jinzhu Zhang"]
9
- s.date = %q{2008-11-18}
9
+ s.date = %q{2008-11-20}
10
10
  s.default_executable = %q{yac}
11
11
  s.description = %q{Yet Another Cheat: sexy command line tool for cheat sheet.}
12
12
  s.email = %q{wosmvp@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jinzhu Zhang
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-18 00:00:00 +08:00
12
+ date: 2008-11-20 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15