Skip to content

Commit

Permalink
Update D3 to 7.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Fazzari <[email protected]>
  • Loading branch information
kyrofa committed Jun 18, 2021
1 parent e71c12a commit 0587916
Show file tree
Hide file tree
Showing 9 changed files with 1,150 additions and 470 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 7.0.0 (18 June 2021)
* Update updater to update to version 7
* Upgrade D3 to 7.0.0

## 6.6.2 (3 April 2021)
* Update updater to update to version 6
* Upgrade D3 to 6.6.3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ d3-rails provides D3 for Rails 3.1 and higher.

## Version

d3-rails comes with version 6.6.2 of D3.js. The d3-rails version will
d3-rails comes with version 7.0.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
Original file line number Diff line number Diff line change
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://d3js.org/d3.v6.js`
`curl -o app/assets/javascripts/d3.min.js https://d3js.org/d3.v6.min.js`
`cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v6.js`
`cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v6.min.js`
`curl -o app/assets/javascripts/d3.js https://d3js.org/d3.v7.js`
`curl -o app/assets/javascripts/d3.min.js https://d3js.org/d3.v7.min.js`
`cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v7.js`
`cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v7.min.js`
version = File.open("app/assets/javascripts/d3.js") { |f|
f.each_line.lazy.select { |line|
line.match(/((\d+\.)(\d+\.)(\*|\d+))/)
Expand Down
Loading

0 comments on commit 0587916

Please sign in to comment.