kicker 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/.kick +20 -0
- data/README.rdoc +1 -1
- data/VERSION.yml +2 -2
- data/html/images/kikker.jpg +0 -0
- data/kicker.gemspec +95 -0
- data/lib/kicker.rb +2 -0
- data/test/filesystem_change_test.rb +4 -0
- metadata +5 -1
data/.gitignore
ADDED
data/.kick
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'ignore'
|
2
|
+
|
3
|
+
process do |files|
|
4
|
+
test_files = files.take_and_map do |file|
|
5
|
+
case file
|
6
|
+
when %r{^test/.+_test\.rb$}
|
7
|
+
file
|
8
|
+
when %r{^lib/kicker(\.rb|/validate\.rb|/growl\.rb)$}
|
9
|
+
["test/initialization_test.rb", ("test/filesystem_change_test.rb" if $1 == '.rb')]
|
10
|
+
when %r{^lib/kicker/(.+)\.rb$}
|
11
|
+
"test/#{$1}_test.rb"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
run_ruby_tests test_files
|
16
|
+
end
|
17
|
+
|
18
|
+
process do |files|
|
19
|
+
execute("rake docs:generate && open -a Safari html/index.html") if files.delete("README.rdoc")
|
20
|
+
end
|
data/README.rdoc
CHANGED
data/VERSION.yml
CHANGED
Binary file
|
data/kicker.gemspec
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{kicker}
|
8
|
+
s.version = "2.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Eloy Duran"]
|
12
|
+
s.date = %q{2009-09-30}
|
13
|
+
s.email = %q{eloy.de.enige@gmail.com}
|
14
|
+
s.executables = ["kicker", "kicker"]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
".kick",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"TODO.rdoc",
|
26
|
+
"VERSION.yml",
|
27
|
+
"bin/kicker",
|
28
|
+
"html/images/kikker.jpg",
|
29
|
+
"kicker.gemspec",
|
30
|
+
"lib/kicker.rb",
|
31
|
+
"lib/kicker/callback_chain.rb",
|
32
|
+
"lib/kicker/core_ext.rb",
|
33
|
+
"lib/kicker/growl.rb",
|
34
|
+
"lib/kicker/options.rb",
|
35
|
+
"lib/kicker/recipes/could_not_handle_file.rb",
|
36
|
+
"lib/kicker/recipes/dot_kick.rb",
|
37
|
+
"lib/kicker/recipes/execute_cli_command.rb",
|
38
|
+
"lib/kicker/recipes/ignore.rb",
|
39
|
+
"lib/kicker/recipes/jstest.rb",
|
40
|
+
"lib/kicker/recipes/rails.rb",
|
41
|
+
"lib/kicker/utils.rb",
|
42
|
+
"lib/kicker/validate.rb",
|
43
|
+
"test/callback_chain_test.rb",
|
44
|
+
"test/core_ext_test.rb",
|
45
|
+
"test/filesystem_change_test.rb",
|
46
|
+
"test/fixtures/a_file_thats_reloaded.rb",
|
47
|
+
"test/initialization_test.rb",
|
48
|
+
"test/options_test.rb",
|
49
|
+
"test/recipes/could_not_handle_file_test.rb",
|
50
|
+
"test/recipes/dot_kick_test.rb",
|
51
|
+
"test/recipes/execute_cli_command_test.rb",
|
52
|
+
"test/recipes/ignore_test.rb",
|
53
|
+
"test/recipes/jstest_test.rb",
|
54
|
+
"test/recipes/rails_test.rb",
|
55
|
+
"test/test_helper.rb",
|
56
|
+
"test/utils_test.rb",
|
57
|
+
"vendor/growlnotifier/growl.rb",
|
58
|
+
"vendor/growlnotifier/growl.rb",
|
59
|
+
"vendor/growlnotifier/growl_helpers.rb",
|
60
|
+
"vendor/growlnotifier/growl_helpers.rb",
|
61
|
+
"vendor/rucola/fsevents.rb",
|
62
|
+
"vendor/rucola/fsevents.rb"
|
63
|
+
]
|
64
|
+
s.homepage = %q{http://github.com/alloy/kicker}
|
65
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
66
|
+
s.require_paths = ["lib", "vendor"]
|
67
|
+
s.rubygems_version = %q{1.3.5}
|
68
|
+
s.summary = %q{A lean, agnostic, flexible file-change watcher, using OS X FSEvents.}
|
69
|
+
s.test_files = [
|
70
|
+
"test/callback_chain_test.rb",
|
71
|
+
"test/core_ext_test.rb",
|
72
|
+
"test/filesystem_change_test.rb",
|
73
|
+
"test/fixtures/a_file_thats_reloaded.rb",
|
74
|
+
"test/initialization_test.rb",
|
75
|
+
"test/options_test.rb",
|
76
|
+
"test/recipes/could_not_handle_file_test.rb",
|
77
|
+
"test/recipes/dot_kick_test.rb",
|
78
|
+
"test/recipes/execute_cli_command_test.rb",
|
79
|
+
"test/recipes/ignore_test.rb",
|
80
|
+
"test/recipes/jstest_test.rb",
|
81
|
+
"test/recipes/rails_test.rb",
|
82
|
+
"test/test_helper.rb",
|
83
|
+
"test/utils_test.rb"
|
84
|
+
]
|
85
|
+
|
86
|
+
if s.respond_to? :specification_version then
|
87
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
88
|
+
s.specification_version = 3
|
89
|
+
|
90
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
91
|
+
else
|
92
|
+
end
|
93
|
+
else
|
94
|
+
end
|
95
|
+
end
|
data/lib/kicker.rb
CHANGED
@@ -42,6 +42,10 @@ describe "Kicker, when a change occurs" do
|
|
42
42
|
@kicker.send(:changed_files, events).should == [file1, file3]
|
43
43
|
end
|
44
44
|
|
45
|
+
it "should return an empty array when a directory doesn't exist while collecting the files in it" do
|
46
|
+
@kicker.send(:files_in_directory, '/does/not/exist').should == []
|
47
|
+
end
|
48
|
+
|
45
49
|
it "should not break when determining changed files from events with missing files" do
|
46
50
|
file1 = touch('1')
|
47
51
|
file2 = touch('2')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -24,12 +24,16 @@ extra_rdoc_files:
|
|
24
24
|
- LICENSE
|
25
25
|
- README.rdoc
|
26
26
|
files:
|
27
|
+
- .gitignore
|
28
|
+
- .kick
|
27
29
|
- LICENSE
|
28
30
|
- README.rdoc
|
29
31
|
- Rakefile
|
30
32
|
- TODO.rdoc
|
31
33
|
- VERSION.yml
|
32
34
|
- bin/kicker
|
35
|
+
- html/images/kikker.jpg
|
36
|
+
- kicker.gemspec
|
33
37
|
- lib/kicker.rb
|
34
38
|
- lib/kicker/callback_chain.rb
|
35
39
|
- lib/kicker/core_ext.rb
|