Skip to content

Commit

Permalink
upgrade d3js to v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hampl committed Jul 7, 2016
1 parent 941cc16 commit e737f3e
Show file tree
Hide file tree
Showing 8 changed files with 31,818 additions and 8,983 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 4.1.0 (7 July 2016)
* Upgrade D3 to 4.1.0
* Keep D3.v3 at 3.5.17

## 3.5.17 (3 July 2016)
* Upgrade D3 to 3.5.17

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@ d3-rails provides D3 for Rails 3.1 and higher.

## Version

d3-rails comes with version 3.5.17 of D3.js. The d3-rails version will
d3-rails comes with version 4.1.0 of D3.js. The d3-rails version will
always mirror the version of D3. If you need a newer version of
d3-rails, see section Development (below).

Expand Down
8 changes: 4 additions & 4 deletions Rakefile
Expand Up @@ -4,10 +4,10 @@ Bundler::GemHelper.install_tasks
namespace :d3 do
desc 'Update d3 version'
task :update_version do
`curl -o app/assets/javascripts/d3.js https://raw.githubusercontent.com/mbostock/d3/master/d3.js`
`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`
`curl -o app/assets/javascripts/d3.js https://d3js.org/d3.v4.js`
`curl -o app/assets/javascripts/d3.min.js https://d3js.org/d3.v4.min.js`
`cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v4.js`
`cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v4.min.js`
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:
Expand Down

0 comments on commit e737f3e

Please sign in to comment.