guard-jekyll2 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in guard-jekyll2.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # Guard jekyll
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "guard/guard-jekyll2/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "guard-jekyll2"
7
+ s.version = Guard::GuardJekyll2::VERSION
8
+ s.authors = ["Alexey Vakhov"]
9
+ s.email = ["vakhov@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Guard jekyll}
12
+ s.description = %q{Guard jekyll support}
13
+
14
+ s.rubyforge_project = "guard-jekyll2"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
@@ -0,0 +1,3 @@
1
+ guard 'jekyll' do
2
+ watch /.*/
3
+ end
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module GuardJekyll2
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,30 @@
1
+ require 'guard/guard-jekyll2/version'
2
+ require 'guard'
3
+ require 'guard/guard'
4
+
5
+ module Guard
6
+ class GuardJekyll2 < Guard
7
+ def initialize(watchers = [], options = {})
8
+ super
9
+ end
10
+
11
+ def start
12
+ UI.info "waiting for file changes..."
13
+ end
14
+
15
+ def run_all
16
+ generate!
17
+ end
18
+
19
+ def run_on_change(paths)
20
+ generate!
21
+ end
22
+
23
+ private
24
+ def generate!
25
+ UI.info "running."
26
+ `jekyll`
27
+ UI.info "complete."
28
+ end
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-jekyll2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Alexey Vakhov
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-02-14 00:00:00 +04:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Guard jekyll support
23
+ email:
24
+ - vakhov@gmail.com
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - README.md
35
+ - Rakefile
36
+ - guard-jekyll2.gemspec
37
+ - lib/guard-jekyll2.rb
38
+ - lib/guard/guard-jekyll2/templates/Guardfile
39
+ - lib/guard/guard-jekyll2/version.rb
40
+ has_rdoc: true
41
+ homepage: ""
42
+ licenses: []
43
+
44
+ post_install_message:
45
+ rdoc_options: []
46
+
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ requirements: []
68
+
69
+ rubyforge_project: guard-jekyll2
70
+ rubygems_version: 1.5.2
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Guard jekyll
74
+ test_files: []
75
+