Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 4a98b8d

Browse files
committed
Restore Rakefile
1 parent f6e8cc5 commit 4a98b8d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Rakefile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,13 @@ task :whatsnew do
7878
print 'Generating data for the What\'s New digest: $ '.magenta
7979

8080
# Generate tmp/whats-new.yml
81-
report =
82-
if since.nil? || since.empty?
83-
`bin/whatsup_github since '#{last_update}'`
84-
elsif since.is_a? String
85-
`bin/whatsup_github since #{since}`
86-
else
87-
abort 'The "since" argument must be a string. Example: "jul 4"'
88-
end
81+
if since.nil? || since.empty?
82+
sh 'bin/whatsup_github', 'since', last_update
83+
elsif since.is_a? String
84+
sh 'bin/whatsup_github', 'since', since
85+
else
86+
abort 'The "since" argument must be a string. Example: "jul 4"'
87+
end
8988

9089
# Merge generated tmp/whats-new.yml with existing src/_data/whats-new.yml
9190
generated_data = YAML.load_file generated_file
@@ -95,9 +94,6 @@ task :whatsnew do
9594

9695
puts "Writing updates to #{current_file}"
9796
File.write current_file, current_data.to_yaml
98-
99-
abort report if report.include? 'MISSING whatsnew'
100-
puts report
10197
end
10298

10399
desc 'Generate index for Algolia'

0 commit comments

Comments
 (0)