listen 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -0
- data/lib/listen/directory_record.rb +2 -2
- data/lib/listen/version.rb +1 -1
- metadata +10 -10
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.4.4 - June 8, 2012
|
2
|
+
|
3
|
+
### Bug fixes
|
4
|
+
|
5
|
+
- [#39](https://github.com/guard/listen/issues/39). Unexisting path insertion bug. (reported by [@textgoeshere][], fixed by [@thibaudgg][])
|
6
|
+
- Fix relative path for directories containing special characters. (reported by [@napcs][], fixed by [@netzpirat][])
|
7
|
+
|
1
8
|
## 0.4.3 - June 6, 2012
|
2
9
|
|
3
10
|
### Bug fixes
|
@@ -101,4 +108,7 @@
|
|
101
108
|
[@akerbos]: https://github.com/akerbos
|
102
109
|
[@fny]: https://github.com/fny
|
103
110
|
[@cobychapple]: https://github.com/cobychapple
|
111
|
+
[@napcs]: https://github.com/napcs
|
112
|
+
[@netzpirat]: https://github.com/netzpirat
|
104
113
|
[@nex3]: https://github.com/nex3
|
114
|
+
[@textgoeshere]: https://github.com/textgoeshere
|
@@ -163,7 +163,7 @@ module Listen
|
|
163
163
|
#
|
164
164
|
def relative_to_base(path)
|
165
165
|
return nil unless path[@directory]
|
166
|
-
path.sub(%r{^#{@directory}#{File::SEPARATOR}?}, '')
|
166
|
+
path.sub(%r{^#{Regexp.quote(@directory)}#{File::SEPARATOR}?}, '')
|
167
167
|
end
|
168
168
|
|
169
169
|
private
|
@@ -239,8 +239,8 @@ module Listen
|
|
239
239
|
elsif !ignored?(path) && filtered?(path) && !existing_path?(path)
|
240
240
|
if File.file?(path)
|
241
241
|
@changes[:added] << (options[:relative_paths] ? relative_to_base(path) : path)
|
242
|
+
insert_path(path)
|
242
243
|
end
|
243
|
-
insert_path(path)
|
244
244
|
end
|
245
245
|
end
|
246
246
|
end
|
data/lib/listen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rb-fsevent
|
@@ -85,17 +85,17 @@ executables: []
|
|
85
85
|
extensions: []
|
86
86
|
extra_rdoc_files: []
|
87
87
|
files:
|
88
|
-
- lib/listen.rb
|
89
|
-
- lib/listen/version.rb
|
90
88
|
- lib/listen/adapter.rb
|
91
|
-
- lib/listen/multi_listener.rb
|
92
|
-
- lib/listen/listener.rb
|
93
|
-
- lib/listen/turnstile.rb
|
94
|
-
- lib/listen/directory_record.rb
|
95
|
-
- lib/listen/adapters/polling.rb
|
96
89
|
- lib/listen/adapters/darwin.rb
|
97
90
|
- lib/listen/adapters/linux.rb
|
91
|
+
- lib/listen/adapters/polling.rb
|
98
92
|
- lib/listen/adapters/windows.rb
|
93
|
+
- lib/listen/directory_record.rb
|
94
|
+
- lib/listen/listener.rb
|
95
|
+
- lib/listen/multi_listener.rb
|
96
|
+
- lib/listen/turnstile.rb
|
97
|
+
- lib/listen/version.rb
|
98
|
+
- lib/listen.rb
|
99
99
|
- CHANGELOG.md
|
100
100
|
- LICENSE
|
101
101
|
- README.md
|
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
segments:
|
115
115
|
- 0
|
116
|
-
hash:
|
116
|
+
hash: 2089958766278719923
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|