ruminate 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.md +4 -0
  2. data/lib/ruminate.rb +2 -2
  3. metadata +2 -2
data/History.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Ruminate Changelog
2
2
  =====================
3
3
 
4
+ 0.0.6
5
+
6
+ - Handle stale links a little better.
7
+
4
8
  0.0.5
5
9
 
6
10
  - Remove deprecated railtie_name
@@ -76,8 +76,8 @@ ruminate(
76
76
  full_plugin_dir = File.expand_path(plugin_dir)
77
77
  Dir["#{munin_plugin_dir}/*"].each do |plugin_file|
78
78
  next unless File.symlink?(plugin_file)
79
- dest = File.readlink(plugin_file)
80
- if File.dirname(dest).end_with?(plugin_dir)
79
+ dest = File.readlink(plugin_file) rescue nil
80
+ if !dest || File.dirname(dest).end_with?(plugin_dir)
81
81
  puts "Removing #{plugin_file}"
82
82
  FileUtils.rm_f(plugin_file)
83
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruminate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-20 00:00:00.000000000 Z
12
+ date: 2012-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rumx