seamus 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/seamus/builder.rb +2 -2
- data/lib/seamus.rb +1 -0
- data/seamus.gemspec +1 -1
- metadata +3 -3
data/lib/seamus/builder.rb
CHANGED
@@ -4,8 +4,8 @@ module Seamus
|
|
4
4
|
extend self
|
5
5
|
def new(file)
|
6
6
|
path = file.is_a?(File) ? Pathname.new(file.path) : Pathname.new(file)
|
7
|
-
|
8
|
-
|
7
|
+
extension = path.extname[/\w+$/]
|
8
|
+
type = file_type(extension)
|
9
9
|
build_class(type, extension).new(path.to_s)
|
10
10
|
end
|
11
11
|
|
data/lib/seamus.rb
CHANGED
data/seamus.gemspec
CHANGED
metadata
CHANGED