yac 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/lib/yac.rb +4 -2
- data/yac.gemspec +2 -2
- 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',
|
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
|
-
|
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
|
data/yac.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{yac}
|
5
|
-
s.version = "1.2.
|
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-
|
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.
|
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-
|
12
|
+
date: 2008-11-20 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|