jekyll_and_hyde 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ Slippy is HTML presentation library written with jQuery that takes a HTML file i
12
12
 
13
13
  # Why?
14
14
 
15
- Combining Jekyll and Slippy can provide a powerful yet simple solution to create presentations: you use the jekyll_and_hyde gem to generate a Jekyll scaffold with Slippy properly hooking up; you write your slides using Makrdown or Textile; then you publish your slides by pushing it to a Git repository.
15
+ Combining Jekyll and Slippy can provide a powerful yet simple solution to create presentations: use the jekyll_and_hyde gem to generate a Jekyll template with Slippy properly integrated; write slides with Makrdown or Textile; publish slides by pushing it to a Git repository, present slides in a browser.
16
16
 
17
17
  # How?
18
18
 
@@ -26,7 +26,7 @@ Combining Jekyll and Slippy can provide a powerful yet simple solution to create
26
26
  > cd my_slides
27
27
  > jh generate my-first-slide
28
28
 
29
- The "--github" optional flag in "jh new" means setting up branching information for GitHub Pages.
29
+ The "--github" optional flag is to set up a branch for GitHub Pages, details in <http://pages.github.com/>.
30
30
 
31
31
  ## Other tasks:
32
32
 
@@ -34,7 +34,11 @@ The "--github" optional flag in "jh new" means setting up branching information
34
34
  > jh list [SEARCH]
35
35
  > jh help [TASK]
36
36
 
37
- The "github" task is to set up branching information for GitHub Pages. The "list" task is to list the available tasks by giving it an optional SEARCH terms. The "help" is to display the usage for a specific task.
37
+ The "github" task is to set up branching information for GitHub Pages. The "list" task is to list all the available tasks by giving it an optional SEARCH term. The "help" task is to display usage for a specific task.
38
+
39
+ # Demo
40
+
41
+ <http://owenou.com/jekyll_and_hyde_demo>
38
42
 
39
43
  # License
40
44
 
@@ -14,11 +14,12 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "jekyll_and_hyde"
16
16
 
17
+ s.requirements = ["git 1.6.0.0, or greater"]
18
+
17
19
  s.add_dependency('thor')
18
20
 
19
21
  s.add_development_dependency('rspec')
20
22
  s.add_development_dependency('cucumber')
21
- s.add_development_dependency('fakefs')
22
23
 
23
24
  s.files = `git ls-files`.split("\n")
24
25
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -14,7 +14,8 @@ module JekyllAndHyde
14
14
  self.shell.set_color(string, color, bold)
15
15
  end
16
16
 
17
- def validate_installation
17
+ def validate_installation(message="Validating installation...")
18
+ say message
18
19
  self.class.source_root(destination_root)
19
20
  find_in_source_paths("_config.yml")
20
21
  end
@@ -5,6 +5,7 @@ module JekyllAndHyde
5
5
 
6
6
  argument :app_path, :type => :string, :required => true, :desc => "The app path to generate the skeletal installation"
7
7
  class_option :github, :type => :boolean, :desc => "Create branching information for GitHub Project Pages, details in http://pages.github.com/."
8
+ class_option :template, :type => :string, :default => JEKYLL_AND_HYDE_TEMPLATE_GIT_REPO, :desc => "The Git repository of the generated Jekyll template to download."
8
9
  desc "Generate a skeletal jekyll_and_hyde installation in [APP_PATH]."
9
10
 
10
11
  def make_app_path_dir
@@ -14,7 +15,7 @@ module JekyllAndHyde
14
15
  # TODO: pass in the url as parameter
15
16
  def git_clone_template
16
17
  inside_app_path do
17
- run_command "git clone #{JEKYLL_AND_HYDE_TEMPLATE_GIT_REPO} ."
18
+ run_command "git clone #{options[:template]} ."
18
19
  remove_file('.git')
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllAndHyde
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 1.1.0
9
+ version: 1.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jingwen Owen Ou
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-28 00:00:00 -08:00
17
+ date: 2011-01-29 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -56,19 +56,6 @@ dependencies:
56
56
  version: "0"
57
57
  type: :development
58
58
  version_requirements: *id003
59
- - !ruby/object:Gem::Dependency
60
- name: fakefs
61
- prerelease: false
62
- requirement: &id004 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
70
- type: :development
71
- version_requirements: *id004
72
59
  description: JekyllAndHyde is a HTML presentation generator that generates a basic Jekyll scaffold with Slippy hooking up.
73
60
  email:
74
61
  - owen@owenou.com
@@ -135,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
122
  segments:
136
123
  - 0
137
124
  version: "0"
138
- requirements: []
139
-
125
+ requirements:
126
+ - git 1.6.0.0, or greater
140
127
  rubyforge_project: jekyll_and_hyde
141
128
  rubygems_version: 1.3.7
142
129
  signing_key: