d3-rails 3.5.6 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +25 -5
- data/Rakefile +18 -0
- data/app/assets/javascripts/d3.js +15616 -8932
- data/app/assets/javascripts/d3.min.js +8 -5
- data/app/assets/javascripts/d3.v3.js +199 -148
- data/app/assets/javascripts/d3.v3.min.js +5 -5
- data/app/assets/javascripts/d3.v4.js +16187 -0
- data/app/assets/javascripts/d3.v4.min.js +8 -0
- data/lib/d3/rails/version.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 116018ec5d739f94fb042b3933af724f751df5c7
|
4
|
+
data.tar.gz: 8d00e13fdd210e0421ad2d7133b173f65689eafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8fa97c9011441a4fe61c7b403aa67b9c4e977694269c1dc4474fe7cdb494c51626a3bd499560e9fb93c07a0d77f54bf80a9d6d9ac395790bcc0eb10d82dea81
|
7
|
+
data.tar.gz: 952d225ca7b85da5eb883d0faba00ff36a1298750fbc32d9b81d633c772c3bfba4767619d9c42b9effc9400b21fda379ac87be6dfb817faf9c7ed43dc36a7b02
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
## 4.1.0 (7 July 2016)
|
2
|
+
* Upgrade D3 to 4.1.0
|
3
|
+
* Keep D3.v3 at 3.5.17
|
4
|
+
|
5
|
+
## 3.5.17 (3 July 2016)
|
6
|
+
* Upgrade D3 to 3.5.17
|
7
|
+
|
8
|
+
## 3.5.16 (28 March 2016)
|
9
|
+
* Upgrade D3 to 3.5.16
|
10
|
+
|
11
|
+
## 3.5.11 (15 December 2015)
|
12
|
+
* Upgrade D3 to 3.5.11
|
13
|
+
|
1
14
|
## 3.5.6 (29 July 2015)
|
2
15
|
|
3
16
|
* Upgrade D3 to 3.5.6
|
data/README.md
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
# d3-rails
|
2
2
|
|
3
|
-
[D3.js](http://github.com/mbostock/d3) is a JavaScript library for
|
3
|
+
[D3.js](http://github.com/mbostock/d3) is a JavaScript library for
|
4
|
+
manipulating documents based on data. D3 helps you bring data to life
|
5
|
+
using HTML, SVG and CSS.
|
4
6
|
|
5
7
|
d3-rails provides D3 for Rails 3.1 and higher.
|
6
8
|
|
7
9
|
## Version
|
8
10
|
|
9
|
-
d3-rails comes with version
|
10
|
-
mirror the version of D3
|
11
|
+
d3-rails comes with version 4.1.0 of D3.js. The d3-rails version will
|
12
|
+
always mirror the version of D3. If you need a newer version of
|
13
|
+
d3-rails, see section Development (below).
|
11
14
|
|
12
15
|
|
13
16
|
## Installation
|
@@ -16,8 +19,25 @@ Add this line to your `Gemfile`:
|
|
16
19
|
|
17
20
|
gem "d3-rails"
|
18
21
|
|
19
|
-
Please note that D3 is provided via the asset pipeline and you do *not*
|
22
|
+
Please note that D3 is provided via the asset pipeline and you do *not*
|
23
|
+
need to copy their files into your application. Rails will get them from
|
24
|
+
d3-rails automatically.
|
20
25
|
|
21
|
-
Then add it to your manifest file, most probably at
|
26
|
+
Then add it to your manifest file, most probably at
|
27
|
+
`app/assets/javascripts/application.js`:
|
22
28
|
|
23
29
|
//= require d3
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
If you need a newer version of d3, please do the following:
|
34
|
+
|
35
|
+
1. Fork this repository
|
36
|
+
2. Clone your repository to a local directory
|
37
|
+
3. Create a branch called update-version in your repository
|
38
|
+
4. Run `bundle exec rake d3:update_version`
|
39
|
+
5. Create a commit stating the version you updated to
|
40
|
+
6. Push to your repository
|
41
|
+
7. Create a pull request
|
42
|
+
|
43
|
+
I will then merge and release a new version of the gem.
|
data/Rakefile
CHANGED
@@ -1,2 +1,20 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
namespace :d3 do
|
5
|
+
desc 'Update d3 version'
|
6
|
+
task :update_version do
|
7
|
+
`curl -o app/assets/javascripts/d3.js https://d3js.org/d3.v4.js`
|
8
|
+
`curl -o app/assets/javascripts/d3.min.js https://d3js.org/d3.v4.min.js`
|
9
|
+
`cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v4.js`
|
10
|
+
`cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v4.min.js`
|
11
|
+
version = `grep 'version: ".*"' app/assets/javascripts/d3.js | cut -d '"' -f 2`.strip
|
12
|
+
message = <<-MSG
|
13
|
+
Please update the version to #{version} manually in the following files:
|
14
|
+
* CHANGELOG.md
|
15
|
+
* README.md
|
16
|
+
* lib/d3/rails/version.rb
|
17
|
+
MSG
|
18
|
+
puts message.strip.squeeze ' '
|
19
|
+
end
|
20
|
+
end
|