summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2021-02-21 08:29:23 +0100
committerHans de Graaff <hans@degraaff.org>2021-02-21 08:29:23 +0100
commitba00ad61827650c8ecbf6c4227ea84305f22f287 (patch)
tree231bd7c013fe01f58eb23ac4fd430fd35ef7dac9 /ruby-stats
parentAdd support for ruby 3.0 (diff)
downloadruby-scripts-ba00ad61827650c8ecbf6c4227ea84305f22f287.tar.gz
ruby-scripts-ba00ad61827650c8ecbf6c4227ea84305f22f287.tar.bz2
ruby-scripts-ba00ad61827650c8ecbf6c4227ea84305f22f287.zip
Add ruby30 to stats scripts
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'ruby-stats')
-rw-r--r--ruby-stats/plot3
-rwxr-xr-xruby-stats/ruby_stats.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/ruby-stats/plot b/ruby-stats/plot
index fcc07bc..c97a738 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -27,4 +27,5 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
"data.txt" using 1:13 with lines lt 1 lc 10 title "ruby24", \
"data.txt" using 1:14 with lines lt 1 lc 11 title "ruby25", \
"data.txt" using 1:15 with lines lt 1 lc 12 title "ruby26", \
- "data.txt" using 1:16 with lines lt 1 lc 13 title "ruby27"
+ "data.txt" using 1:16 with lines lt 1 lc 13 title "ruby27", \
+ "data.txt" using 1:17 with lines lt 1 lc 13 title "ruby30"
diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 7316837..83f115b 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -8,7 +8,7 @@ bins = ('ruby', 'ruby-ng', 'ruby_targets_ruby18', 'ruby_targets_ruby19',
'ruby_targets_ruby20', 'ruby_targets_jruby', 'ruby_targets_ree18',
'ruby_targets_rbx', 'ruby_targets_ruby21', 'ruby_targets_ruby22',
'ruby_targets_ruby23', 'ruby_targets_ruby24', 'ruby_targets_ruby25',
- 'ruby_targets_ruby26', 'ruby_targets_ruby27')
+ 'ruby_targets_ruby26', 'ruby_targets_ruby27', 'ruby_targets_ruby30')
import sys
import time
@@ -58,6 +58,8 @@ def main():
stats['ruby_targets_ruby26'].add(cpv)
if 'ruby_targets_ruby27' in iuse:
stats['ruby_targets_ruby27'].add(cpv)
+ if 'ruby_targets_ruby30' in iuse:
+ stats['ruby_targets_ruby30'].add(cpv)
if 'ruby_targets_jruby' in iuse:
stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse: