lib/flay.rb in flay-2.6.0 vs lib/flay.rb in flay-2.6.1
- old
+ new
@@ -13,11 +13,11 @@
alias :binread :read unless RUBY19
end
end
class Flay
- VERSION = "2.6.0" # :nodoc:
+ VERSION = "2.6.1" # :nodoc:
class Item < Struct.new(:structural_hash, :name, :bonus, :mass, :locations)
alias identical? bonus
end
@@ -132,10 +132,10 @@
if File.directory? p then
Dir[File.join(p, "**", "*.{#{extensions.join(",")}}")]
else
p
end
- }.flatten.map { |s| s[/^(\.\/)?/] = ""; s } # strip "./" from paths
+ }.flatten.map { |s| s.sub(/^\.\//, "") } # strip "./" from paths
end
# so I can move this to flog wholesale
DEFAULT_IGNORE = ".flayignore" # :nodoc: