summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2019-01-21 19:16:31 +0100
committerHans de Graaff <hans@degraaff.org>2019-01-21 19:17:01 +0100
commitc44aba5158944dab72e154b8c7d08b54560e53e1 (patch)
tree99482889ac4c246073eb267c0167cfbfb2fce675 /ruby-stats/ruby_stats.py
parenteselect-ruby: support ruby 2.6 (diff)
downloadruby-scripts-c44aba5158944dab72e154b8c7d08b54560e53e1.tar.gz
ruby-scripts-c44aba5158944dab72e154b8c7d08b54560e53e1.tar.bz2
ruby-scripts-c44aba5158944dab72e154b8c7d08b54560e53e1.zip
Add ruby26 to the stats scripts
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'ruby-stats/ruby_stats.py')
-rwxr-xr-xruby-stats/ruby_stats.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 6ca294c..d8f7a9d 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -4,13 +4,18 @@
# 2010-01-21 180 144 142 68 52
date_fmt = "%Y-%m-%d"
-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')
+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')
import sys
import time
import os
import portage
+
def main():
stats = {}
for k in bins:
@@ -49,6 +54,8 @@ def main():
stats['ruby_targets_ruby24'].add(cpv)
if 'ruby_targets_ruby25' in iuse:
stats['ruby_targets_ruby25'].add(cpv)
+ if 'ruby_targets_ruby26' in iuse:
+ stats['ruby_targets_ruby26'].add(cpv)
if 'ruby_targets_jruby' in iuse:
stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse: