From b23477b2e0e7b337b94751752cbe9c276d45f8e2 Mon Sep 17 00:00:00 2001 From: Giovanni Lodi Date: Mon, 18 Jun 2018 21:07:30 +1000 Subject: [PATCH] Update copy --- Rakefile | 6 +++--- header.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 0634cfd..20ded62 100644 --- a/Rakefile +++ b/Rakefile @@ -31,9 +31,8 @@ end def title_temp_file(issue) f = Tempfile.open('title') begin - f.puts '# The iOS Times' issue_number = File.basename(issue, '.*').split('-').last.to_i - f.puts "## Year #{2015 - Time.now.year + 1} Issue #{issue_number}" + f.puts "# The iOS Times - #{issue_number}" f.puts "### #{File.basename(issue)[0, 10]}" ensure f.close @@ -43,7 +42,8 @@ end desc "Generate the HTML code for the latest issue, and copy it to the clipboar" task :build => [:update] do - latest = Dir["#{issues_folder}/*.md"].reject { |f| File.basename(f) == "README.md" }.last + latest = Dir["#{issues_folder}/*.md"].reject { |f| File.basename(f) == "README.md" }.sort.last + puts latest issue = File.open(latest) temp_issue = stripped_front_matter_temp_file(issue) temp_title = title_temp_file(issue) diff --git a/header.md b/header.md index 8c4f7c4..ede40e2 100644 --- a/header.md +++ b/header.md @@ -1,4 +1,4 @@ -**Your weekly digest with the most interesting Swift and Objective-C project from the past 7 days. Find useful tools, inspiration, projects to contribute to.** +_Your weekly digest full of interesting open source projects in the Apple ecosystem. Find useful tools, inspiration, projects to contribute to._