yac 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/Contributors +1 -0
  3. data/Manifest +1 -0
  4. data/lib/yac.rb +2 -4
  5. data/yac.gemspec +10 -21
  6. metadata +26 -47
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d11c1e7165739e9f5bbee86b87727926078985a
4
+ data.tar.gz: 9019e6027e49f6ec996c26f0309dd06463d3a35c
5
+ SHA512:
6
+ metadata.gz: 811af454ddba44faeec1f56c53aee5c29dc13e9650f7f3b9871447255370c90043ae31b90b8ad0641ffb87000b6ca53da54d45110c1859586379a8ce834ebca3
7
+ data.tar.gz: 3f194c8e8bad0ecc589555944681785a5b930968f34f2ce42a104582b39f7d9cbdf66a37dbaedbb6c20a4c6fbad953071db6baa86c188e344ba9d02cbdbd7e2a
@@ -0,0 +1 @@
1
+ Jose Pablo Barrantes - http://jpablobr.com/
data/Manifest CHANGED
@@ -1,4 +1,5 @@
1
1
  CHANGELOG
2
+ Contributors
2
3
  Manifest
3
4
  README.rdoc
4
5
  Rakefile
data/lib/yac.rb CHANGED
@@ -5,7 +5,7 @@ module Yac
5
5
  include Format
6
6
  extend self
7
7
 
8
- VERSION = '1.4.5'
8
+ VERSION = '1.4.6'
9
9
 
10
10
  @color = {
11
11
  'head1' => "1;31",
@@ -33,8 +33,6 @@ module Yac
33
33
 
34
34
  @main_path = File.join(CONFIG["root"],"/main/")
35
35
  @pri_path = File.join(CONFIG["root"],"/private/")
36
- Dir.mkdir(@main_path) unless File.exist?(@main_path)
37
- Dir.mkdir(@pri_path) unless File.exist?(@pri_path)
38
36
 
39
37
  def new(args)
40
38
  operate, target = args.shift.to_s , args.join(' ').to_s
@@ -58,7 +56,7 @@ module Yac
58
56
 
59
57
  def init
60
58
  {"main" => @main_path,"private" => @pri_path}.each do |name,path|
61
- if File.exist?(path)
59
+ if Dir.foreach(".").include?(name)
62
60
  colorful("#{name} repository has already initialized.","notice")
63
61
  elsif CONFIG["#{name}"] && CONFIG["#{name}"]['clone-from']
64
62
  colorful("Initialize #{name} repository from #{CONFIG[name]['clone-from']}","notice")
@@ -1,32 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{yac}
5
- s.version = "1.4.5"
4
+ s.name = "yac"
5
+ s.version = "1.4.6"
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{2010-08-19}
10
- s.default_executable = %q{yac}
11
- s.description = %q{Yet Another Cheat: sexy command line tool for cheat sheet.}
12
- s.email = %q{wosmvp@gmail.com}
9
+ s.date = "2013-03-19"
10
+ s.description = "Yet Another Cheat: sexy command line tool for cheat sheet."
11
+ s.email = "wosmvp@gmail.com"
13
12
  s.executables = ["yac"]
14
13
  s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "bin/yac", "lib/format.rb", "lib/git.rb", "lib/symbol.rb", "lib/yac.rb"]
15
- s.files = ["CHANGELOG", "Manifest", "README.rdoc", "Rakefile", "bin/yac", "lib/format.rb", "lib/git.rb", "lib/symbol.rb", "lib/yac.rb", "resources/yacrc", "yac.gemspec"]
16
- s.homepage = %q{http://www.zhangjinzhu.com}
14
+ s.files = ["CHANGELOG", "Contributors", "Manifest", "README.rdoc", "Rakefile", "bin/yac", "lib/format.rb", "lib/git.rb", "lib/symbol.rb", "lib/yac.rb", "resources/yacrc", "yac.gemspec"]
15
+ s.homepage = "http://www.zhangjinzhu.com"
17
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Yac", "--main", "README.rdoc"]
18
17
  s.require_paths = ["lib"]
19
- s.rubyforge_project = %q{yac}
20
- s.rubygems_version = %q{1.3.7}
21
- s.summary = %q{Yet Another Cheat: sexy command line tool for cheat sheet.}
22
-
23
- if s.respond_to? :specification_version then
24
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
- s.specification_version = 3
26
-
27
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- else
29
- end
30
- else
31
- end
18
+ s.rubyforge_project = "yac"
19
+ s.rubygems_version = "2.0.3"
20
+ s.summary = "Yet Another Cheat: sexy command line tool for cheat sheet."
32
21
  end
metadata CHANGED
@@ -1,31 +1,21 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: yac
3
- version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 4
9
- - 5
10
- version: 1.4.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.6
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Jinzhu Zhang
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2010-08-19 00:00:00 +08:00
19
- default_executable:
11
+ date: 2013-03-19 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
- description: "Yet Another Cheat: sexy command line tool for cheat sheet."
13
+ description: 'Yet Another Cheat: sexy command line tool for cheat sheet.'
23
14
  email: wosmvp@gmail.com
24
- executables:
15
+ executables:
25
16
  - yac
26
17
  extensions: []
27
-
28
- extra_rdoc_files:
18
+ extra_rdoc_files:
29
19
  - CHANGELOG
30
20
  - README.rdoc
31
21
  - bin/yac
@@ -33,8 +23,9 @@ extra_rdoc_files:
33
23
  - lib/git.rb
34
24
  - lib/symbol.rb
35
25
  - lib/yac.rb
36
- files:
26
+ files:
37
27
  - CHANGELOG
28
+ - Contributors
38
29
  - Manifest
39
30
  - README.rdoc
40
31
  - Rakefile
@@ -45,45 +36,33 @@ files:
45
36
  - lib/yac.rb
46
37
  - resources/yacrc
47
38
  - yac.gemspec
48
- has_rdoc: true
49
39
  homepage: http://www.zhangjinzhu.com
50
40
  licenses: []
51
-
41
+ metadata: {}
52
42
  post_install_message:
53
- rdoc_options:
43
+ rdoc_options:
54
44
  - --line-numbers
55
45
  - --inline-source
56
46
  - --title
57
47
  - Yac
58
48
  - --main
59
49
  - README.rdoc
60
- require_paths:
50
+ require_paths:
61
51
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
69
- - 0
70
- version: "0"
71
- required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 11
77
- segments:
78
- - 1
79
- - 2
80
- version: "1.2"
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
81
62
  requirements: []
82
-
83
63
  rubyforge_project: yac
84
- rubygems_version: 1.3.7
64
+ rubygems_version: 2.0.3
85
65
  signing_key:
86
- specification_version: 3
87
- summary: "Yet Another Cheat: sexy command line tool for cheat sheet."
66
+ specification_version: 4
67
+ summary: 'Yet Another Cheat: sexy command line tool for cheat sheet.'
88
68
  test_files: []
89
-