ffilewatch 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/filewatch/watch.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 829dcc5451842718057f3e2916b96d65616220ff
4
- data.tar.gz: ddee5a1d1e691e0b308b210ff6e04f4dbeafb35d
3
+ metadata.gz: f676a022d59f3b2eaff4b98f1009235c30415b76
4
+ data.tar.gz: 4eb6b4ae97db37102500968a429365b25ad6523e
5
5
  SHA512:
6
- metadata.gz: 361b21094d3e94ca3f052ef0605141cd0e66e422d2c56e2d320db9d298f736136f74a3a88bcdecf1fa9f32aba61f5ffb4ac8d82c3ddacb34d1a71036993592ab
7
- data.tar.gz: fb95934e8663c2f8eb4cd12d9a67c877a461d1fecee4eae0a0437d4c218327a9916294415c4cce8cc0fb64769a5854a93f1354375165d6cb06c8c59e92e77a99
6
+ metadata.gz: 37db768459c9fdeca113bd204688b1d19fbe22e92aa573cc3750def2724db7ff849db9809e62de53d80faf367ad92ae664a98d34a5338d9f3af0755030818bd2
7
+ data.tar.gz: 795ab6d6a1c79d55f71dc3cb104357caebf81bd038c29bce2bafff8b6cc410e316e0c456dac8ee5b04c1b88166160899ee87bbfc7cea1db3639c2bac0870c125
@@ -129,7 +129,11 @@ module FileWatch
129
129
 
130
130
  private
131
131
  def real path
132
- Pathname.new(path).realpath.to_s rescue path
132
+ if defined? JRUBY_VERSION
133
+ java.io.File.new(path).canonical_path rescue path
134
+ else
135
+ File.realpath(path) rescue path
136
+ end
133
137
  end
134
138
 
135
139
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffilewatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel