Skip to content

Commit

Permalink
reject empty paths
Browse files Browse the repository at this point in the history
  • Loading branch information
swistaczek committed Mar 30, 2013
1 parent e10c601 commit 5c91e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/network_manager/modem.rb
Expand Up @@ -84,7 +84,7 @@ def scan
class << self
def fetch(paths_array, opts = {})
devices = []
paths_array.each do |path|
paths_array.compact.reject {|x| x && x.size <= 0 }.each do |path|
devices << self.new(opts.merge({bus_path: path}) unless path.nil?
end
devices
Expand Down
2 changes: 1 addition & 1 deletion ruby-network-manager.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = "ruby-network-manager"
s.version = "0.0.0"
s.version = "0.1.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ernest Bursa"]
Expand Down

0 comments on commit 5c91e6b

Please sign in to comment.