Sha256: d701207af5013d97c825f51262723c92616635e4708d9abc852e8ebe482776e3

Contents?: true

Size: 682 Bytes

Versions: 66

Compression:

Stored size: 682 Bytes

Contents

#!/usr/bin/env ruby

readme = IO.read('README.md')
blog_project = '/Users/ttscoff/Sites/dev/bt/source/_projects/howzit.md'
blog_changelog = '/Users/ttscoff/Sites/dev/bt/source/_projects/changelogs/howzit.md'

project = readme.match(/<!--BEGIN PROJECT-->(.*?)<!--END PROJECT-->/m)[0]
changelog = readme.match(/<!--BEGIN CHANGELOG-->(.*?)<!--END CHANGELOG-->/m)[1]
blog_project_content = IO.read(blog_project)
blog_project_content.sub!(/<!--BEGIN PROJECT-->(.*?)<!--END PROJECT-->/m, project)
File.open(blog_project, 'w') { |f| f.puts blog_project_content }
File.open(blog_changelog, 'w') { |f| f.puts changelog.strip }
puts "Updated project file and changelog for BrettTerpstra.com"

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
howzit-2.1.18 update_readmes.rb
howzit-2.1.16 update_readmes.rb
howzit-2.1.15 update_readmes.rb
howzit-2.1.14 update_readmes.rb
howzit-2.1.13 update_readmes.rb
howzit-2.1.12 update_readmes.rb
howzit-2.1.10 update_readmes.rb
howzit-2.1.9 update_readmes.rb
howzit-2.1.8 update_readmes.rb
howzit-2.1.7 update_readmes.rb
howzit-2.1.6 update_readmes.rb
howzit-2.1.5 update_readmes.rb
howzit-2.1.4 update_readmes.rb
howzit-2.1.3 update_readmes.rb
howzit-2.1.2 update_readmes.rb
howzit-2.1.1 update_readmes.rb
howzit-2.1.0 update_readmes.rb
howzit-2.0.34 update_readmes.rb
howzit-2.0.33 update_readmes.rb
howzit-2.0.32 update_readmes.rb