d3-rails 3.5.6 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4248de15052215109c579231cb857f01ed0e41e
4
- data.tar.gz: be5e561627dd2317bc9f1f4f16481c43db892b29
3
+ metadata.gz: 116018ec5d739f94fb042b3933af724f751df5c7
4
+ data.tar.gz: 8d00e13fdd210e0421ad2d7133b173f65689eafe
5
5
  SHA512:
6
- metadata.gz: f574492f975ac847f022cafcbac261b0e6462d42a25dec884ba9679bce9326fef7340a5b9c386f78e7e060be8f89e9c9652833b2c99f4dac0ed52cfecd1ed72b
7
- data.tar.gz: d0de79275f1ff6918e38cff15261a9ac7ded53034688af9d4ea762097ed67894ed8848b9890b374e8211033c13a5c33bd9720b5034532e3a1310e5a2558678e4
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 manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS.
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 3.5.6 of D3.js. and will track the always
10
- mirror the version of D3 it comes with.
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* need to copy their files into your application. Rails will get them from d3-rails automatically.
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 `app/assets/javascripts/application.js`:
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