d3-rails 3.4.4 → 7.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bf7a62496e32ed2626849bd502e7bf4068822828
4
- data.tar.gz: 6ee0a0b582a1cf5a40e1c50bcfb301e48e31dba8
2
+ SHA256:
3
+ metadata.gz: 872c8c61c83f4a64bac7ee1fa88bdbd866740c24f8f90a5bda16d1e36744fabd
4
+ data.tar.gz: bce7e7c6211e662ff499e5b01d12c3a004bd4dae20cec53df5668d2b6c68848e
5
5
  SHA512:
6
- metadata.gz: 6b594a8af29f6428c7b4e73b700e8308fd341a5b1355e76b36b8b4cc6558d9973bec5f6f4fa2e04d63e397fd817134f8feeb1b4ce1f1d09a6239b4913dd05266
7
- data.tar.gz: f3ac661ab30160f21c0aebbea2610e01e33434870fb1966ef732ea6a16685f6cf06027ff6736bb5905e48b2dcd87d050ca0565ea9b541fd01ee0af5fbbbadc39
6
+ metadata.gz: 2d323d4461910aa437c2c82421ec1d34f6c810ff757cbe55d901bf5eacc6b30033b6ec1c43bf75300bcfbaad1acfb4d784642863cb86cd1d8476373a4b26e697
7
+ data.tar.gz: 8c352574589f6f1bd4fe666b130fc966fbd66b667123ef84184677e95f4db475f5c45f91fc1c33cc6658429f8a312bc7337766d35f3755c4f23b9cd04a18f6e9
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ imports/*
8
8
  .*.swp
9
9
  .*.swo
10
10
  Gemfile.lock
11
+ .project
data/CHANGELOG.md CHANGED
@@ -1,3 +1,98 @@
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
+
76
+ ## 3.5.6 (29 July 2015)
77
+
78
+ * Upgrade D3 to 3.5.6
79
+
80
+ ## 3.5.5 (8 March 2015)
81
+
82
+ * Upgrade D3 to 3.5.5
83
+
84
+ ## 3.5.2 (16 December 2014)
85
+
86
+ * Upgrade D3 to 3.5.2
87
+
88
+ ## 3.4.13 (3 November 2014)
89
+
90
+ * Upgrade D3 to 3.4.13
91
+
92
+ ## 3.4.11 (12 September 2014)
93
+
94
+ * Upgrade D3 to 3.4.11
95
+
1
96
  ## 3.4.4 (2 April 2014)
2
97
 
3
98
  * Upgrade D3 to 3.4.4
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.4.4 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