sundae 1.0.5 → 1.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/lib/sundae.rb +10 -3
  2. data/version.txt +1 -1
  3. metadata +2 -2
data/lib/sundae.rb CHANGED
@@ -148,6 +148,10 @@ module Sundae
148
148
  collections = path.children.delete_if {|c| c.basename.to_s =~ /^\./}
149
149
 
150
150
  return collections.map do |c|
151
+ unless c.exist?
152
+ warn("Skipping mnt: #{c}")
153
+ next
154
+ end
151
155
  if c.children(false).include? Pathname.new('.sundae_path')
152
156
  c
153
157
  else
@@ -156,14 +160,17 @@ module Sundae
156
160
  collection_mnts.reject! { |k| ! (path + c + k).directory? }
157
161
  collection_mnts.map! { |mnt| (c + mnt) }
158
162
  end
159
- end.flatten.sort.uniq
163
+ end.flatten.compact.sort.uniq
160
164
  end
161
165
 
162
166
  # Return all mnts for every path as an array.
163
167
  #
164
168
  def self.all_mnts
165
- @paths.map do |path|
166
- next unless path.exist?
169
+ @all_mnts ||= @paths.map do |path|
170
+ unless path.exist?
171
+ warn "Path doesn't exist: #{path}"
172
+ next
173
+ end
167
174
  mnts_in_path(path)
168
175
  end.compact.flatten
169
176
  end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sundae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.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-11-21 00:00:00.000000000 Z
12
+ date: 2012-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline