guard-zen 0.0.2
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/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/guard-zen.gemspec +21 -0
- data/lib/guard/zen.rb +48 -0
- data/lib/guard/zen/templates/Guardfile +6 -0
- data/lib/guard/zen/version.rb +5 -0
- metadata +52 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
data/guard-zen.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "guard/zen/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "guard-zen"
|
7
|
+
s.version = Guard::Zen::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Andrey Eremeev"]
|
10
|
+
s.email = ["andrey.eremeyev@gmail.com"]
|
11
|
+
s.homepage = "http://iscra.co.uk"
|
12
|
+
s.summary = "guard gem for koans"
|
13
|
+
s.description = "gaurd gem for koans"
|
14
|
+
|
15
|
+
s.rubyforge_project = "guard-zen"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
end
|
data/lib/guard/zen.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'guard'
|
2
|
+
require 'guard/guard'
|
3
|
+
|
4
|
+
module Guard
|
5
|
+
class Zen < Guard
|
6
|
+
|
7
|
+
def initialize(watchers=[], options={})
|
8
|
+
super
|
9
|
+
# init stuff here, thx!
|
10
|
+
end
|
11
|
+
|
12
|
+
# =================
|
13
|
+
# = Guard methods =
|
14
|
+
# =================
|
15
|
+
|
16
|
+
# If one of those methods raise an exception, the Guard::GuardName instance
|
17
|
+
# will be removed from the active guards.
|
18
|
+
|
19
|
+
# Called once when Guard starts
|
20
|
+
# Please override initialize method to init stuff
|
21
|
+
def start
|
22
|
+
true
|
23
|
+
end
|
24
|
+
|
25
|
+
# Called on Ctrl-C signal (when Guard quits)
|
26
|
+
def stop
|
27
|
+
true
|
28
|
+
end
|
29
|
+
|
30
|
+
# Called on Ctrl-Z signal
|
31
|
+
# This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
|
32
|
+
def reload
|
33
|
+
true
|
34
|
+
end
|
35
|
+
|
36
|
+
# Called on Ctrl-\ signal
|
37
|
+
# This method should be principally used for long action like running all specs/tests/...
|
38
|
+
def run_all
|
39
|
+
true
|
40
|
+
end
|
41
|
+
|
42
|
+
# Called on file(s) modifications
|
43
|
+
def run_on_change(paths)
|
44
|
+
true
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-zen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Andrey Eremeev
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-08-25 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
14
|
+
description: gaurd gem for koans
|
15
|
+
email:
|
16
|
+
- andrey.eremeyev@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitignore
|
22
|
+
- Gemfile
|
23
|
+
- Rakefile
|
24
|
+
- guard-zen.gemspec
|
25
|
+
- lib/guard/zen.rb
|
26
|
+
- lib/guard/zen/templates/Guardfile
|
27
|
+
- lib/guard/zen/version.rb
|
28
|
+
homepage: http://iscra.co.uk
|
29
|
+
licenses: []
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubyforge_project: guard-zen
|
48
|
+
rubygems_version: 1.8.1
|
49
|
+
signing_key:
|
50
|
+
specification_version: 3
|
51
|
+
summary: guard gem for koans
|
52
|
+
test_files: []
|