rubyvis_charts 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build_and_publish.yml +44 -0
- data/.github/workflows/rspec_build.yml +18 -0
- data/Gemfile.lock +13 -11
- data/README.md +12 -12
- data/lib/rubyvis_charts/version.rb +1 -1
- data/rubyvis_charts.gemspec +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a18444de0e779e5c879dab18e2845ba476f36e0e8fe1aed0b668014760a2f8
|
4
|
+
data.tar.gz: 1e3aa49204f70b46c9a088b842af76b8332f2d2ada17591420289d75eed9a842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1805ac380d68fc45005d1b82f0da32b2549ea140d072e1d6788ba808b719ef2893aee521360188e6d8a45bff6ee18374f1943342334d48faf97868856b821f43
|
7
|
+
data.tar.gz: d67c631c598e1b621df1d6df44e51489758c8f735f38ceba5b41345f915ba241e6524d7637483b535052f22150faf62c73bd31cba95e8483132260cd18635064
|
@@ -0,0 +1,44 @@
|
|
1
|
+
name: build_and_publish
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
tags:
|
5
|
+
- 'v*.*.*'
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
strategy:
|
9
|
+
fail-fast: true
|
10
|
+
name: build and publish gem
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
permissions:
|
13
|
+
packages: write
|
14
|
+
contents: read
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
|
18
|
+
- name: setup ruby
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: 2.7
|
22
|
+
bundler-cache: true
|
23
|
+
|
24
|
+
- name: install gems
|
25
|
+
run: bundle install
|
26
|
+
|
27
|
+
- name: version check
|
28
|
+
run: |
|
29
|
+
export GEM_VERSION=$(ruby -e "require 'rubygems'; puts Gem::Specification::load('${{github.event.repository.name}}.gemspec').version")
|
30
|
+
if [ "v$GEM_VERSION" != "${{github.ref_name}}" ] ; then
|
31
|
+
echo "Pushed git tag '${{github.ref_name}}' does not match gem version 'v{gem_version}', expected: 'v$GEM_VERSION'"
|
32
|
+
exit 1
|
33
|
+
fi
|
34
|
+
|
35
|
+
- name: publish to rubygems
|
36
|
+
run: |
|
37
|
+
mkdir -p $HOME/.gem
|
38
|
+
touch $HOME/.gem/credentials
|
39
|
+
chmod 0600 $HOME/.gem/credentials
|
40
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
41
|
+
gem build *.gemspec
|
42
|
+
gem push *.gem
|
43
|
+
env:
|
44
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: rspec_build
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
branches:
|
5
|
+
- master
|
6
|
+
jobs:
|
7
|
+
test:
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
name: Run rspec
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 2.7 # Not needed with a .ruby-version file
|
17
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
18
|
+
- run: bundle exec rspec
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubyvis_charts (0.1.
|
4
|
+
rubyvis_charts (0.1.5)
|
5
5
|
activesupport
|
6
6
|
rubyvis (~> 0.6.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (
|
11
|
+
activesupport (6.0.0)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 0.7, < 2)
|
14
14
|
minitest (~> 5.1)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
16
17
|
byebug (10.0.2)
|
17
|
-
concurrent-ruby (1.1.
|
18
|
+
concurrent-ruby (1.1.5)
|
18
19
|
diff-lcs (1.3)
|
19
|
-
i18n (1.
|
20
|
+
i18n (1.6.0)
|
20
21
|
concurrent-ruby (~> 1.0)
|
21
|
-
mini_portile2 (2.
|
22
|
+
mini_portile2 (2.4.0)
|
22
23
|
minitest (5.11.3)
|
23
|
-
nokogiri (1.
|
24
|
-
mini_portile2 (~> 2.
|
25
|
-
rake (
|
24
|
+
nokogiri (1.10.4)
|
25
|
+
mini_portile2 (~> 2.4.0)
|
26
|
+
rake (13.0.1)
|
26
27
|
rspec (3.7.0)
|
27
28
|
rspec-core (~> 3.7.0)
|
28
29
|
rspec-expectations (~> 3.7.0)
|
@@ -40,6 +41,7 @@ GEM
|
|
40
41
|
thread_safe (0.3.6)
|
41
42
|
tzinfo (1.2.5)
|
42
43
|
thread_safe (~> 0.1)
|
44
|
+
zeitwerk (2.1.9)
|
43
45
|
|
44
46
|
PLATFORMS
|
45
47
|
ruby
|
@@ -47,10 +49,10 @@ PLATFORMS
|
|
47
49
|
DEPENDENCIES
|
48
50
|
bundler (~> 1.16)
|
49
51
|
byebug (~> 10.0)
|
50
|
-
nokogiri (~> 1.
|
51
|
-
rake (~>
|
52
|
+
nokogiri (~> 1.10.4)
|
53
|
+
rake (~> 13.0)
|
52
54
|
rspec (~> 3.0)
|
53
55
|
rubyvis_charts!
|
54
56
|
|
55
57
|
BUNDLED WITH
|
56
|
-
1.
|
58
|
+
1.17.2
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
### BarTimelineChart
|
24
|
-
```
|
24
|
+
```ruby
|
25
25
|
data = {
|
26
26
|
:legend_titles => ["Value1", "Value2"],
|
27
27
|
:values => [81000, 67000, 287000, 174000, 217000, 185000, 280000, 230000, 219000, 138000, 93000, 74000, 89000, 67000],
|
@@ -41,12 +41,12 @@ RubyvisCharts::BarTimelineChart.new(data).render
|
|
41
41
|
```
|
42
42
|
|
43
43
|
<p align="center">
|
44
|
-
<img src ="/images/BarTimelineChart.png" width="
|
44
|
+
<img src ="/images/BarTimelineChart.png" width="450"/>
|
45
45
|
</p>
|
46
46
|
|
47
47
|
|
48
48
|
### GroupedBarTimelineChart
|
49
|
-
```
|
49
|
+
```ruby
|
50
50
|
data = {
|
51
51
|
:legend_titles => ["Value1", "Value2"],
|
52
52
|
:values => [81000, 67000, 287000, 174000, 217000, 185000, 280000, 230000, 219000, 138000, 93000, 74000, 89000, 67000],
|
@@ -65,11 +65,11 @@ data = {
|
|
65
65
|
RubyvisCharts::GroupedBarTimelineChart.new(data).render
|
66
66
|
```
|
67
67
|
<p align="center">
|
68
|
-
<img src ="/images/GroupedBarTimelineChart.png" width="
|
68
|
+
<img src ="/images/GroupedBarTimelineChart.png" width="450"/>
|
69
69
|
</p>
|
70
70
|
|
71
71
|
### StackedBarTimelineChart
|
72
|
-
```
|
72
|
+
```ruby
|
73
73
|
data = {
|
74
74
|
:legend_titles=>["Value1", "Value2"],
|
75
75
|
:values=>[[5310, 2000, 9760, 2100, 7700, 6140, 9070], [106, 700, 41, 249, 800, 700, 44]],
|
@@ -88,11 +88,11 @@ data = {
|
|
88
88
|
RubyvisCharts::StackedBarTimelineChart.new(data).render
|
89
89
|
```
|
90
90
|
<p align="center">
|
91
|
-
<img src ="/images/StackedBarTimelineChart.png" width="
|
91
|
+
<img src ="/images/StackedBarTimelineChart.png" width="450"/>
|
92
92
|
</p>
|
93
93
|
|
94
94
|
### LineTimelineChart
|
95
|
-
```
|
95
|
+
```ruby
|
96
96
|
data = {
|
97
97
|
:legend_titles=>["Value"],
|
98
98
|
:legend_colors=>["#83c9e9"],
|
@@ -108,11 +108,11 @@ data = {
|
|
108
108
|
RubyvisCharts::LineTimelineChart.new(data).render
|
109
109
|
```
|
110
110
|
<p align="center">
|
111
|
-
<img src ="/images/LineTimelineChart.png" width="
|
111
|
+
<img src ="/images/LineTimelineChart.png" width="450"/>
|
112
112
|
</p>
|
113
113
|
|
114
114
|
### AreaTimelineChart
|
115
|
-
```
|
115
|
+
```ruby
|
116
116
|
data = {
|
117
117
|
:areas_colors=>["#8CB2D4", "#14a792"],
|
118
118
|
:dates_height_ratio=>0.1,
|
@@ -128,14 +128,14 @@ data = {
|
|
128
128
|
RubyvisCharts::AreaTimelineChart.new(data).render
|
129
129
|
```
|
130
130
|
<p align="center">
|
131
|
-
<img src ="/images/AreaTimelineChart.png" width="
|
131
|
+
<img src ="/images/AreaTimelineChart.png" width="450"/>
|
132
132
|
</p>
|
133
133
|
|
134
134
|
You can use keys dates, marks, y_scale_max, numbers_formatter, numbers_color, numbers_font, title_text, title_color, title_font, dates_formatter, dates_color, dates_font, marks_color, rules_color, rules_count, weekend_bar_color, timeline_width_ratio, dates_height_ratio, marks_height_ratio, legend_titles, legend_colors, legend_text_color, legend_font, legend_shape, legend_chars, custom_legend_offset, threshold_number, threshold_color, threshold_width, threshold_caption
|
135
135
|
for all timeline charts
|
136
136
|
|
137
137
|
### DonutChart
|
138
|
-
```
|
138
|
+
```ruby
|
139
139
|
data = {
|
140
140
|
:values=>[{percentage: 0.18906606},
|
141
141
|
{percentage: 0.05694761},
|
@@ -153,7 +153,7 @@ data = {
|
|
153
153
|
RubyvisCharts::DonutChart.new(data).render
|
154
154
|
```
|
155
155
|
<p align="center">
|
156
|
-
<img src ="/images/DonutChart.png" width="
|
156
|
+
<img src ="/images/DonutChart.png" width="200"/>
|
157
157
|
</p>
|
158
158
|
|
159
159
|
|
data/rubyvis_charts.gemspec
CHANGED
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'activesupport'
|
31
31
|
|
32
32
|
spec.add_development_dependency "bundler", "~> 1.16"
|
33
|
-
spec.add_development_dependency "rake", "~>
|
33
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
34
34
|
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
-
spec.add_development_dependency "nokogiri", "~> 1.
|
35
|
+
spec.add_development_dependency "nokogiri", "~> 1.10.4"
|
36
36
|
spec.add_development_dependency "byebug", "~> 10.0"
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyvis_charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andriy Solonyna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyvis
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.10.4
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.10.4
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: byebug
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,6 +115,8 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
+
- ".github/workflows/build_and_publish.yml"
|
119
|
+
- ".github/workflows/rspec_build.yml"
|
118
120
|
- ".gitignore"
|
119
121
|
- ".rspec"
|
120
122
|
- ".travis.yml"
|
@@ -163,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
165
|
- !ruby/object:Gem::Version
|
164
166
|
version: '0'
|
165
167
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.7
|
168
|
+
rubygems_version: 3.1.6
|
168
169
|
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: Rubyvis charts
|