Skip to content

Commit ac9a363

Browse files
Ruby < 2.0 is no longer supported
1 parent 96b52ea commit ac9a363

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

lib/thor/actions/directory.rb

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,12 @@ def execute!
9696
end
9797
end
9898

99-
if RUBY_VERSION < "2.0"
100-
def file_level_lookup(previous_lookup)
101-
File.join(previous_lookup, "{*,.[a-z]*}")
102-
end
103-
104-
def files(lookup)
105-
Dir[lookup]
106-
end
107-
else
108-
def file_level_lookup(previous_lookup)
109-
File.join(previous_lookup, "*")
110-
end
99+
def file_level_lookup(previous_lookup)
100+
File.join(previous_lookup, "*")
101+
end
111102

112-
def files(lookup)
113-
Dir.glob(lookup, File::FNM_DOTMATCH)
114-
end
103+
def files(lookup)
104+
Dir.glob(lookup, File::FNM_DOTMATCH)
115105
end
116106
end
117107
end

0 commit comments

Comments
 (0)