chartkick 2.3.5 → 3.3.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.

Potentially problematic release.


This version of chartkick might be problematic. Click here for more details.

metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.5
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2019-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,33 +53,23 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description:
56
- email:
57
- - andrew@chartkick.com
56
+ email: andrew@chartkick.com
58
57
  executables: []
59
58
  extensions: []
60
59
  extra_rdoc_files: []
61
60
  files:
62
- - ".github/ISSUE_TEMPLATE.md"
63
- - ".github/stale.yml"
64
- - ".gitignore"
65
61
  - CHANGELOG.md
66
62
  - CONTRIBUTING.md
67
- - Gemfile
68
63
  - LICENSE.txt
69
64
  - README.md
70
- - Rakefile
71
- - chartkick.gemspec
72
65
  - lib/chartkick.rb
73
66
  - lib/chartkick/engine.rb
74
67
  - lib/chartkick/helper.rb
75
- - lib/chartkick/rails.rb
76
68
  - lib/chartkick/sinatra.rb
77
69
  - lib/chartkick/version.rb
78
- - test/chartkick_test.rb
79
- - test/test_helper.rb
80
70
  - vendor/assets/javascripts/Chart.bundle.js
81
71
  - vendor/assets/javascripts/chartkick.js
82
- homepage: https://www.chartkick.com
72
+ homepage: https://chartkick.com
83
73
  licenses:
84
74
  - MIT
85
75
  metadata: {}
@@ -91,18 +81,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
81
  requirements:
92
82
  - - ">="
93
83
  - !ruby/object:Gem::Version
94
- version: '0'
84
+ version: '2.2'
95
85
  required_rubygems_version: !ruby/object:Gem::Requirement
96
86
  requirements:
97
87
  - - ">="
98
88
  - !ruby/object:Gem::Version
99
89
  version: '0'
100
90
  requirements: []
101
- rubyforge_project:
102
- rubygems_version: 2.7.6
91
+ rubygems_version: 3.0.3
103
92
  signing_key:
104
93
  specification_version: 4
105
94
  summary: Create beautiful JavaScript charts with one line of Ruby
106
- test_files:
107
- - test/chartkick_test.rb
108
- - test/test_helper.rb
95
+ test_files: []
@@ -1,7 +0,0 @@
1
- Hi,
2
-
3
- Before creating an issue, please check out the Contributing Guide:
4
-
5
- https://github.com/ankane/chartkick/blob/master/CONTRIBUTING.md
6
-
7
- Thanks!
data/.github/stale.yml DELETED
@@ -1,16 +0,0 @@
1
- # Number of days of inactivity before an issue becomes stale
2
- daysUntilStale: 7
3
- # Number of days of inactivity before a stale issue is closed
4
- daysUntilClose: 7
5
- # Issues with these labels will never be considered stale
6
- exemptLabels:
7
- - enhancement
8
- # Label to use when marking an issue as stale
9
- staleLabel: stale
10
- # Comment to post when marking an issue as stale. Set to `false` to disable
11
- markComment: >
12
- This issue has been automatically marked as stale because it has not had
13
- recent activity. It will be closed if no further activity occurs. Thank you
14
- for your contributions.
15
- # Comment to post when closing a stale issue. Set to `false` to disable
16
- closeComment: true
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in chartkick.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- task default: :test
5
- Rake::TestTask.new do |t|
6
- t.libs << "test"
7
- t.pattern = "test/**/*_test.rb"
8
- end
data/chartkick.gemspec DELETED
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "chartkick/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "chartkick"
8
- spec.version = Chartkick::VERSION
9
- spec.authors = ["Andrew Kane"]
10
- spec.email = ["andrew@chartkick.com"]
11
- spec.summary = "Create beautiful JavaScript charts with one line of Ruby"
12
- spec.homepage = "https://www.chartkick.com"
13
- spec.license = "MIT"
14
-
15
- spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
16
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ["lib"]
19
-
20
- spec.add_development_dependency "bundler"
21
- spec.add_development_dependency "rake"
22
- spec.add_development_dependency "minitest"
23
- end
@@ -1,5 +0,0 @@
1
- if Rails.version >= "3.1"
2
- require "chartkick/engine"
3
- else
4
- ActionView::Base.send :include, Chartkick::Helper
5
- end
@@ -1,43 +0,0 @@
1
- require "test_helper"
2
-
3
- class TestChartkick < Minitest::Test
4
- include Chartkick::Helper
5
-
6
- # TODO actual tests
7
-
8
- def setup
9
- @data = [[34, 42], [56, 49]]
10
- end
11
-
12
- def test_line_chart
13
- assert line_chart(@data)
14
- end
15
-
16
- def test_pie_chart
17
- assert pie_chart(@data)
18
- end
19
-
20
- def test_column_chart
21
- assert column_chart(@data)
22
- end
23
-
24
- def test_options_not_mutated
25
- options = {id: "boom"}
26
- line_chart @data, options
27
- assert_equal "boom", options[:id]
28
- end
29
-
30
- def test_chartkick_deep_merge_different_inner_key
31
- global_option = {library: {backgroundColor: "#eee"}}
32
- local_option = {library: {title: "test"}}
33
- correct_merge = {library: {backgroundColor: "#eee", title: "test"}}
34
- assert_equal chartkick_deep_merge(global_option, local_option), correct_merge
35
- end
36
-
37
- def test_chartkick_deep_merge_same_inner_key
38
- global_option = {library: {backgroundColor: "#eee"}}
39
- local_option = {library: {backgroundColor: "#fff"}}
40
- correct_merge = {library: {backgroundColor: "#fff"}}
41
- assert_equal chartkick_deep_merge(global_option, local_option), correct_merge
42
- end
43
- end
data/test/test_helper.rb DELETED
@@ -1,4 +0,0 @@
1
- require "bundler/setup"
2
- Bundler.require(:default)
3
- require "minitest/autorun"
4
- require "minitest/pride"