kicker 2.5.0 → 2.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {<img src="https://secure.travis-ci.org/alloy/kicker.png" />}[http://travis-ci.org/alloy/kicker]
4
4
 
5
- A lean, agnostic, flexible file-change watcher, using OS X FSEvents.
5
+ A lean, agnostic, flexible file-change watcher.
6
6
 
7
7
  https://github.com/alloy/kicker/raw/master/html/images/kikker.jpg
8
8
 
data/lib/kicker.rb CHANGED
@@ -95,7 +95,7 @@ class Kicker #:nodoc:
95
95
  end
96
96
 
97
97
  def files_in_directory(dir)
98
- Dir.entries(dir)[2..-1].map { |f| File.join(dir, f) }
98
+ Dir.entries(dir).sort[2..-1].map { |f| File.join(dir, f) }
99
99
  rescue Errno::ENOENT
100
100
  []
101
101
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rb-fsevent'
3
+ require 'listen'
4
4
 
5
5
  class Kicker
6
6
  class FSEvents
@@ -23,11 +23,12 @@ class Kicker
23
23
  end
24
24
 
25
25
  def self.start_watching(paths, options={}, &block)
26
- fsevent = ::FSEvent.new
27
- fsevent.watch(paths, options) do |directories|
26
+ listener = Listen.to(*(paths.dup << options))
27
+ listener.change do |args|
28
+ files = args.flatten
29
+ directories = files.map {|file| File.dirname file}.uniq
28
30
  yield directories.map { |directory| Kicker::FSEvents::FSEvent.new(directory) }
29
- end
30
- fsevent.run
31
+ end.start
31
32
  end
32
33
  end
33
- end
34
+ end
@@ -171,4 +171,9 @@ end
171
171
 
172
172
  recipe :ruby do
173
173
  process Kicker::Recipes::Ruby
174
+
175
+ # When changing the Gemfile, install dependencies
176
+ process do |files|
177
+ execute 'bundle install' if files.delete('Gemfile')
178
+ end
174
179
  end
@@ -1,3 +1,3 @@
1
1
  class Kicker
2
- VERSION = "2.5.0"
2
+ VERSION = "2.6.0.rc1"
3
3
  end
metadata CHANGED
@@ -1,105 +1,120 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: kicker
3
- version: !ruby/object:Gem::Version
4
- version: 2.5.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 2
7
+ - 6
8
+ - 0
9
+ - rc1
10
+ version: 2.6.0.rc1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Eloy Duran
9
14
  - Manfred Stienstra
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
- date: 2012-02-04 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rb-fsevent
17
- requirement: &70258430386300 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
18
+
19
+ date: 2012-06-12 00:00:00 +02:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: listen
24
24
  prerelease: false
25
- version_requirements: *70258430386300
26
- - !ruby/object:Gem::Dependency
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
27
35
  name: rake
28
- requirement: &70258430385620 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
36
  prerelease: false
36
- version_requirements: *70258430385620
37
- - !ruby/object:Gem::Dependency
38
- name: rdoc
39
- requirement: &70258430385060 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
45
44
  type: :development
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
46
48
  prerelease: false
47
- version_requirements: *70258430385060
48
- - !ruby/object:Gem::Dependency
49
- name: mocha
50
- requirement: &70258430384360 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
56
  type: :development
57
+ version_requirements: *id003
58
+ - !ruby/object:Gem::Dependency
59
+ name: mocha
57
60
  prerelease: false
58
- version_requirements: *70258430384360
59
- - !ruby/object:Gem::Dependency
60
- name: test-unit
61
- requirement: &70258430411940 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
61
+ requirement: &id004 !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
67
+ version: "0"
67
68
  type: :development
69
+ version_requirements: *id004
70
+ - !ruby/object:Gem::Dependency
71
+ name: test-unit
68
72
  prerelease: false
69
- version_requirements: *70258430411940
70
- - !ruby/object:Gem::Dependency
71
- name: test-spec
72
- requirement: &70258430407460 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
73
+ requirement: &id005 !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
79
+ version: "0"
78
80
  type: :development
81
+ version_requirements: *id005
82
+ - !ruby/object:Gem::Dependency
83
+ name: test-spec
79
84
  prerelease: false
80
- version_requirements: *70258430407460
81
- - !ruby/object:Gem::Dependency
82
- name: activesupport
83
- requirement: &70258430406080 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ! '>='
87
- - !ruby/object:Gem::Version
88
- version: '0'
85
+ requirement: &id006 !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ segments:
90
+ - 0
91
+ version: "0"
89
92
  type: :development
93
+ version_requirements: *id006
94
+ - !ruby/object:Gem::Dependency
95
+ name: activesupport
90
96
  prerelease: false
91
- version_requirements: *70258430406080
97
+ requirement: &id007 !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
103
+ version: "0"
104
+ type: :development
105
+ version_requirements: *id007
92
106
  description:
93
- email:
107
+ email:
94
108
  - eloy.de.enige@gmail.com
95
109
  - manfred@fngtps.com
96
- executables:
110
+ executables:
97
111
  - kicker
98
112
  extensions: []
99
- extra_rdoc_files:
113
+
114
+ extra_rdoc_files:
100
115
  - LICENSE
101
116
  - README.rdoc
102
- files:
117
+ files:
103
118
  - bin/kicker
104
119
  - lib/kicker/callback_chain.rb
105
120
  - lib/kicker/core_ext.rb
@@ -123,35 +138,38 @@ files:
123
138
  - README.rdoc
124
139
  - LICENSE
125
140
  - html/images/kikker.jpg
141
+ has_rdoc: true
126
142
  homepage: http://github.com/alloy/kicker
127
143
  licenses: []
144
+
128
145
  post_install_message:
129
146
  rdoc_options: []
130
- require_paths:
147
+
148
+ require_paths:
131
149
  - lib
132
150
  - vendor
133
- required_ruby_version: !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - ! '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- segments:
140
- - 0
141
- hash: 1334081187386863213
142
- required_rubygems_version: !ruby/object:Gem::Requirement
143
- none: false
144
- requirements:
145
- - - ! '>='
146
- - !ruby/object:Gem::Version
147
- version: '0'
148
- segments:
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ segments:
149
156
  - 0
150
- hash: 1334081187386863213
157
+ version: "0"
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">"
161
+ - !ruby/object:Gem::Version
162
+ segments:
163
+ - 1
164
+ - 3
165
+ - 1
166
+ version: 1.3.1
151
167
  requirements: []
168
+
152
169
  rubyforge_project:
153
- rubygems_version: 1.8.11
170
+ rubygems_version: 1.3.6
154
171
  signing_key:
155
172
  specification_version: 3
156
- summary: A lean, agnostic, flexible file-change watcher, using OS X FSEvents.
173
+ summary: A lean, agnostic, flexible file-change watcher.
157
174
  test_files: []
175
+