Skip to content

Commit

Permalink
Update message in task and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelchev committed Jul 30, 2015
1 parent 24fa3af commit 4b9eedc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Then add it to your manifest file, most probably at `app/assets/javascripts/appl

## Development

To update D3 version in gem run rake task:
To update the D3 version contained in the gem, you can run the following rake task
```bash
bundle exec rake d3:update_version
```
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ namespace :d3 do
`curl -o app/assets/javascripts/d3.min.js https://raw.githubusercontent.com/mbostock/d3/master/d3.min.js`
`cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v3.js`
`cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v3.min.js`
puts "Update manually version to #{`grep 'version: ".*"' app/assets/javascripts/d3.js | cut -d '"' -f 2`}CHANGELOG.md\nREADME.md\nlib/d3/rails/version.rb\n"
version = `grep 'version: ".*"' app/assets/javascripts/d3.js | cut -d '"' -f 2`.strip
message = <<-MSG
Please update the version to #{version} manually in the following files:
* CHANGELOG.md
* README.md
* lib/d3/rails/version.rb
MSG
puts message.strip.squeeze ' '
end
end

0 comments on commit 4b9eedc

Please sign in to comment.