yac 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/format.rb +1 -1
- data/lib/yac.rb +1 -1
- data/yac.gemspec +2 -2
- metadata +2 -2
data/lib/format.rb
CHANGED
@@ -15,7 +15,7 @@ module Format
|
|
15
15
|
case `file "#{file}" 2>/dev/null`
|
16
16
|
when / PDF document/
|
17
17
|
colorful(Pdf_Error,'warn') unless system("#{Yac::CONFIG["pdf_command"]||'evince'} '#{file}' 2>/dev/null")
|
18
|
-
when /( image )|(\.svg)/
|
18
|
+
when /( image)|( bitmap)|(\.svg)/
|
19
19
|
colorful(Image_Error,'warn') unless system("#{Yac::CONFIG["image_command"]||'eog'} '#{file}' 2>/dev/null")
|
20
20
|
when /Office Document/
|
21
21
|
open_office(file)
|
data/lib/yac.rb
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH << File.dirname(__FILE__)
|
|
4
4
|
module Yac
|
5
5
|
include Format
|
6
6
|
extend self
|
7
|
-
VERSION = '1.3.
|
7
|
+
VERSION = '1.3.2'
|
8
8
|
YACRC = File.join("#{ENV['HOME']}",".yacrc")
|
9
9
|
|
10
10
|
FileUtils.cp(File.join(File.dirname(__FILE__), "..","resources","yacrc"), YACRC) unless File.exist?(YACRC)
|
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.3.
|
5
|
+
s.version = "1.3.2"
|
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-
|
9
|
+
s.date = %q{2008-12-15}
|
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.3.
|
4
|
+
version: 1.3.2
|
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-
|
12
|
+
date: 2008-12-15 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|