cg 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.document CHANGED
@@ -1,4 +1,4 @@
1
- README.rdoc
1
+ README.mkd
2
2
  lib/**/*.rb
3
3
  bin/*
4
4
  features/**/*.feature
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ README.html
@@ -0,0 +1,83 @@
1
+ cg
2
+ ================================================================================
3
+
4
+ Description
5
+ --------------------------------------------------------------------------------
6
+
7
+ cg is A Ruby based HTML "contents generator".
8
+
9
+
10
+ ### Required RubyGems
11
+
12
+ - rake
13
+ - jeweler
14
+ - tilt
15
+ - erubis
16
+ - rdiscount
17
+
18
+
19
+ ### Install
20
+
21
+ - RubyGems.org
22
+
23
+ $ sudo gem install cg
24
+
25
+ - GitHub
26
+
27
+ $ git clone http://github.com/Tomohiro/cg.git
28
+ $ rake build
29
+ $ sudo rake install
30
+
31
+
32
+ ### Usage
33
+
34
+ 1. First Step
35
+
36
+ $ cg scratch cg.example.com
37
+
38
+ 2. All Rebuild
39
+
40
+ $ cd cg.example.com
41
+ $ cg rebuild
42
+
43
+ 3. All Rebuild and Packing
44
+
45
+ $ cd cg.example.com
46
+ $ cg rebuild packing
47
+ $ tar zxvf public.tar.gz -C /var/www/html/
48
+
49
+ 3. Convert
50
+
51
+ $ cd cg.example.com/markdown/
52
+ $ cg convert markdown_file
53
+
54
+
55
+ ### Tips
56
+
57
+ 1. After save hook for Vim
58
+
59
+ $ vi .vimrc
60
+ > autocmd BufWritePost *.mkd :silent !cg convert % > /dev/null
61
+
62
+ 2. After save hoook for Emacs
63
+
64
+
65
+ ### Note on Patches/Pull Requests
66
+
67
+ - Fork the project.
68
+ - Make your feature addition or bug fix.
69
+ - Add tests for it. This is important so I don't break it in a
70
+ future version unintentionally.
71
+ - Commit, do not mess with rakefile, version, or history.
72
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
73
+ - Send me a pull request. Bonus points for topic branches.
74
+
75
+
76
+ ### Copyright
77
+
78
+ Copyright (c) 2010 Tomohiro, TAIRA.
79
+
80
+
81
+ ### Licence
82
+
83
+ The MIT License. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/cg.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cg}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tomohiro, TAIRA"]
@@ -16,13 +16,14 @@ Gem::Specification.new do |s|
16
16
  s.executables = ["cg"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.html",
20
+ "README.mkd"
20
21
  ]
21
22
  s.files = [
22
23
  ".document",
23
24
  ".gitignore",
24
25
  "LICENSE",
25
- "README.rdoc",
26
+ "README.mkd",
26
27
  "Rakefile",
27
28
  "VERSION",
28
29
  "bin/cg",
@@ -18,10 +18,7 @@ module CG
18
18
 
19
19
  def start
20
20
  mkdir(@site) unless dir_exists?(@site)
21
- cd(@site) do |dir|
22
- cp_r(Dir.glob(SKEL_PATH + '/*'), './')
23
- cp_r(Dir.glob(SKEL_PATH + '/.*'), './')
24
- end
21
+ cp_r(Dir.glob(SKEL_PATH + '/{*,.exclude}'), @site)
25
22
  end
26
23
 
27
24
  def dir_exists?(name)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tomohiro, TAIRA
@@ -95,12 +95,13 @@ extensions: []
95
95
 
96
96
  extra_rdoc_files:
97
97
  - LICENSE
98
- - README.rdoc
98
+ - README.html
99
+ - README.mkd
99
100
  files:
100
101
  - .document
101
102
  - .gitignore
102
103
  - LICENSE
103
- - README.rdoc
104
+ - README.mkd
104
105
  - Rakefile
105
106
  - VERSION
106
107
  - bin/cg
@@ -126,6 +127,7 @@ files:
126
127
  - spec/cg_spec.rb
127
128
  - spec/spec.opts
128
129
  - spec/spec_helper.rb
130
+ - README.html
129
131
  has_rdoc: true
130
132
  homepage: http://rubygems.org/gems/cg
131
133
  licenses: []
@@ -1,76 +0,0 @@
1
- = cg
2
-
3
- == Description
4
-
5
- cg is A Ruby based HTML "contents generator".
6
-
7
-
8
- == Required RubyGems
9
-
10
- * rake
11
- * jeweler
12
- * tilt
13
- * erubis
14
- * rdiscount
15
-
16
-
17
- == Install
18
-
19
- - RubyGems.org
20
-
21
- $ sudo gem install cg
22
-
23
- - GitHub
24
-
25
- $ git clone http://github.com/Tomohiro/cg.git
26
- $ rake build
27
- $ sudo rake install
28
-
29
-
30
- == Usage
31
-
32
- 1. First Step
33
-
34
- $ cg scratch cg.example.com
35
-
36
- 2. All Rebuild
37
-
38
- $ cd cg.example.com
39
- $ cg rebuild
40
-
41
- 3. Convert
42
-
43
- $ cd cg.example.com/markdown/
44
- $ cg convert markdown_file
45
-
46
-
47
- == Tips
48
-
49
- 1. After save hook for Vim
50
-
51
- $ vi .vimrc
52
- autocmd BufWritePost *.mkd :silent !cg convert %
53
-
54
-
55
- 2. After save hoook for Emacs
56
-
57
-
58
- == Note on Patches/Pull Requests
59
-
60
- * Fork the project.
61
- * Make your feature addition or bug fix.
62
- * Add tests for it. This is important so I don't break it in a
63
- future version unintentionally.
64
- * Commit, do not mess with rakefile, version, or history.
65
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
66
- * Send me a pull request. Bonus points for topic branches.
67
-
68
-
69
- == Copyright
70
-
71
- Copyright (c) 2010 Tomohiro, TAIRA.
72
-
73
-
74
- == Licence
75
-
76
- The MIT License. See LICENSE for details.