We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b52ea commit ac9a363Copy full SHA for ac9a363
lib/thor/actions/directory.rb
@@ -96,22 +96,12 @@ def execute!
96
end
97
98
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
107
- else
108
109
- File.join(previous_lookup, "*")
110
+ def file_level_lookup(previous_lookup)
+ File.join(previous_lookup, "*")
+ end
111
112
113
- Dir.glob(lookup, File::FNM_DOTMATCH)
114
+ def files(lookup)
+ Dir.glob(lookup, File::FNM_DOTMATCH)
115
116
117
0 commit comments