d3-rails 3.5.6 → 7.0.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
- SHA1:
3
- metadata.gz: f4248de15052215109c579231cb857f01ed0e41e
4
- data.tar.gz: be5e561627dd2317bc9f1f4f16481c43db892b29
2
+ SHA256:
3
+ metadata.gz: 872c8c61c83f4a64bac7ee1fa88bdbd866740c24f8f90a5bda16d1e36744fabd
4
+ data.tar.gz: bce7e7c6211e662ff499e5b01d12c3a004bd4dae20cec53df5668d2b6c68848e
5
5
  SHA512:
6
- metadata.gz: f574492f975ac847f022cafcbac261b0e6462d42a25dec884ba9679bce9326fef7340a5b9c386f78e7e060be8f89e9c9652833b2c99f4dac0ed52cfecd1ed72b
7
- data.tar.gz: d0de79275f1ff6918e38cff15261a9ac7ded53034688af9d4ea762097ed67894ed8848b9890b374e8211033c13a5c33bd9720b5034532e3a1310e5a2558678e4
6
+ metadata.gz: 2d323d4461910aa437c2c82421ec1d34f6c810ff757cbe55d901bf5eacc6b30033b6ec1c43bf75300bcfbaad1acfb4d784642863cb86cd1d8476373a4b26e697
7
+ data.tar.gz: 8c352574589f6f1bd4fe666b130fc966fbd66b667123ef84184677e95f4db475f5c45f91fc1c33cc6658429f8a312bc7337766d35f3755c4f23b9cd04a18f6e9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,78 @@
1
+ ## 7.0.0 (18 June 2021)
2
+ * Update updater to update to version 7
3
+ * Upgrade D3 to 7.0.0
4
+
5
+ ## 6.6.2 (3 April 2021)
6
+ * Update updater to update to version 6
7
+ * Upgrade D3 to 6.6.3
8
+
9
+ ## 5.16.0 (31 March 2021)
10
+ * Upgrade D3 to 5.16.0
11
+
12
+ ## 5.9.2 (28 May 2019)
13
+ * Upgrade D3 to 5.9.2
14
+
15
+ ## 5.7.0 (29 Sep 2018)
16
+ * Upgrade D3 to 5.7.0
17
+
18
+ ## 5.5.0 (31 July 2018)
19
+ * Upgrade D3 to 5.5.0
20
+
21
+ ## 5.4.0 (25 May 2018)
22
+ * Upgrade D3 to 5.4.0
23
+
24
+ ## 4.13.0 (05 Mar 2018)
25
+ * Upgrade D3 to 4.13.0
26
+
27
+ ## 4.10.2 (11 Sep 2017)
28
+ * Upgrade D3 to 4.10.2
29
+
30
+ ## 4.10.0 (19 Jul 2017)
31
+ * Upgrade D3 to 4.10.0
32
+
33
+ ## 4.9.1 (16 May 2017)
34
+ * Upgrade D3 to 4.9.1
35
+
36
+ ## 4.9.0 (15 May 2017)
37
+ * Upgrade D3 to 4.9.0
38
+
39
+ ## 4.8.0 (15 April 2017)
40
+ * Upgrade D3 to 4.8.0
41
+
42
+ ## 4.7.0 (28 February 2017)
43
+ * Upgrade D3 to 4.7.0
44
+
45
+ ## 4.4.0 (23 November 2016)
46
+ * Upgrade D3 to 4.4.0
47
+
48
+ ## 4.3.0 (28 October 2016)
49
+ * Upgrade D3 to 4.3.0
50
+
51
+ ## 4.2.6 (26 September 2016)
52
+ * Upgrade D3 to 4.2.6
53
+
54
+ ## 4.2.5 (23 September 2016)
55
+ * Upgrade D3 to 4.2.5
56
+
57
+ ## 4.2.4 (20 September 2016)
58
+ * Upgrade D3 to 4.2.4
59
+
60
+ ## 4.2.2 (16 August 2016)
61
+ * Upgrade D3 to 4.2.2
62
+
63
+ ## 4.1.0 (7 July 2016)
64
+ * Upgrade D3 to 4.1.0
65
+ * Keep D3.v3 at 3.5.17
66
+
67
+ ## 3.5.17 (3 July 2016)
68
+ * Upgrade D3 to 3.5.17
69
+
70
+ ## 3.5.16 (28 March 2016)
71
+ * Upgrade D3 to 3.5.16
72
+
73
+ ## 3.5.11 (15 December 2015)
74
+ * Upgrade D3 to 3.5.11
75
+
1
76
  ## 3.5.6 (29 July 2015)
2
77
 
3
78
  * Upgrade D3 to 3.5.6
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
data/LICENSE CHANGED
@@ -3,7 +3,7 @@ license applies:
3
3
 
4
4
  The MIT License
5
5
 
6
- Copyright (c) 2012-2014 Markus Fenske
6
+ Copyright (c) 2012-2021 Markus Fenske
7
7
 
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
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 7.0.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,24 @@
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.v7.js`
8
+ `curl -o app/assets/javascripts/d3.min.js https://d3js.org/d3.v7.min.js`
9
+ `cp app/assets/javascripts/d3.js app/assets/javascripts/d3.v7.js`
10
+ `cp app/assets/javascripts/d3.min.js app/assets/javascripts/d3.v7.min.js`
11
+ version = File.open("app/assets/javascripts/d3.js") { |f|
12
+ f.each_line.lazy.select { |line|
13
+ line.match(/((\d+\.)(\d+\.)(\*|\d+))/)
14
+ }.first; $1
15
+ }
16
+ message = <<-MSG
17
+ Please update the version to #{version} manually in the following files:
18
+ * CHANGELOG.md
19
+ * README.md
20
+ * lib/d3/rails/version.rb
21
+ MSG
22
+ puts message.strip.squeeze ' '
23
+ end
24
+ end