Skip to content

Commit 7e944b1

Browse files
committed
Ensure .ry files are created not-too-soon and not-too-late for rake release
1 parent 9a104ab commit 7e944b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Rakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ rule '.rb' => '.ry' do |t|
5959
end
6060

6161
path = "pkg/#{hoe.spec.full_name}"
62-
package_parser_files = PARSER_FILES.map { |file| "#{path}/#{file}" }
62+
63+
package_parser_files = PARSER_FILES.map do |parser_file|
64+
package_parser_file = "#{path}/#{parser_file}"
65+
file package_parser_file => parser_file # ensure copy runs before racc
66+
package_parser_file
67+
end
68+
6369
task "#{path}.gem" => package_parser_files
6470

6571
# These tasks expect to have the following directory structure:

0 commit comments

Comments
 (0)