[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2024-08-12 Thread Hans de Graaff
commit: 1dafb4af622a61deb18a7bea2491b22b68fef42a
Author: Hans de Graaff  gentoo  org>
AuthorDate: Mon Aug 12 07:09:32 2024 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Mon Aug 12 07:10:09 2024 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=1dafb4af

Add ruby33 to targets plot scripts

Signed-off-by: Hans de Graaff  gentoo.org>

 ruby-stats/plot  | 3 ++-
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index db24988..2d91ec7 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -30,4 +30,5 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:16 with lines lt 1 lc 13 title "ruby27", \
  "data.txt" using 1:17 with lines lt 1 lc 14 title "ruby30", \
  "data.txt" using 1:18 with lines lt 1 lc 15 title "ruby31", \
- "data.txt" using 1:19 with lines lt 1 lc 16 title "ruby32"
+ "data.txt" using 1:19 with lines lt 1 lc 16 title "ruby32", \
+ "data.txt" using 1:20 with lines lt 1 lc 17 title "ruby33"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 4e63b55..6fd57c4 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -9,7 +9,7 @@ bins = ('ruby', 'ruby-ng', 'ruby_targets_ruby18', 
'ruby_targets_ruby19',
 '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_ruby30',
-'ruby_targets_ruby31', 'ruby_targets_ruby32')
+'ruby_targets_ruby31', 'ruby_targets_ruby32', 'ruby_targets_ruby33')
 
 import sys
 import time
@@ -65,6 +65,8 @@ def main():

stats['ruby_targets_ruby31'].add(cpv)
if 'ruby_targets_ruby32' in iuse:

stats['ruby_targets_ruby32'].add(cpv)
+   if 'ruby_targets_ruby33' in iuse:
+   
stats['ruby_targets_ruby33'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2024-08-12 Thread Hans de Graaff
commit: 5e6be96368908c199dcbe1a2dbb0156bfeda6d21
Author: Hans de Graaff  gentoo  org>
AuthorDate: Mon Aug 12 07:09:05 2024 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Mon Aug 12 07:10:03 2024 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=5e6be963

Make a bit bigger graph

Signed-off-by: Hans de Graaff  gentoo.org>

 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 8f25d7b..db24988 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -1,6 +1,6 @@
 # -*- mode: gnuplot -*-
 
-set terminal svg size 1024,768 enhanced
+set terminal svg size 1280,960 enhanced
 set termoption dashed
 
 set output "targets.svg"



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2023-04-09 Thread Hans de Graaff
commit: 112d2da0d92f7284d9bce3916409c594c917ed67
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Dec 25 13:19:50 2022 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Apr  9 07:36:28 2023 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=112d2da0

Add support for ruby31

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot  | 3 ++-
 ruby-stats/ruby_stats.py | 5 -
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index c97a738..1aeeca0 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -28,4 +28,5 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "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:17 with lines lt 1 lc 13 title "ruby30"
+ "data.txt" using 1:17 with lines lt 1 lc 13 title "ruby30", \
+ "data.txt" using 1:18 with lines lt 1 lc 13 title "ruby31"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 83f115b..ff6f8a5 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -8,7 +8,8 @@ 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_ruby30')
+'ruby_targets_ruby26', 'ruby_targets_ruby27', 'ruby_targets_ruby30',
+'ruby_targets_ruby31')
 
 import sys
 import time
@@ -60,6 +61,8 @@ def main():

stats['ruby_targets_ruby27'].add(cpv)
if 'ruby_targets_ruby30' in iuse:

stats['ruby_targets_ruby30'].add(cpv)
+   if 'ruby_targets_ruby31' in iuse:
+   
stats['ruby_targets_ruby31'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2023-04-09 Thread Hans de Graaff
commit: 74473a3917561dfa1b3e83eba8659f5f3fc6e478
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sat Mar  4 16:17:52 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Apr  9 07:37:01 2023 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=74473a39

Add ruby32 to statistics scripts

Also use different colors for each ruby version.

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot  | 5 +++--
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 1aeeca0..8f25d7b 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -28,5 +28,6 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "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:17 with lines lt 1 lc 13 title "ruby30", \
- "data.txt" using 1:18 with lines lt 1 lc 13 title "ruby31"
+ "data.txt" using 1:17 with lines lt 1 lc 14 title "ruby30", \
+ "data.txt" using 1:18 with lines lt 1 lc 15 title "ruby31", \
+ "data.txt" using 1:19 with lines lt 1 lc 16 title "ruby32"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index ff6f8a5..4e63b55 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -9,7 +9,7 @@ bins = ('ruby', 'ruby-ng', 'ruby_targets_ruby18', 
'ruby_targets_ruby19',
 '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_ruby30',
-'ruby_targets_ruby31')
+'ruby_targets_ruby31', 'ruby_targets_ruby32')
 
 import sys
 import time
@@ -63,6 +63,8 @@ def main():

stats['ruby_targets_ruby30'].add(cpv)
if 'ruby_targets_ruby31' in iuse:

stats['ruby_targets_ruby31'].add(cpv)
+   if 'ruby_targets_ruby32' in iuse:
+   
stats['ruby_targets_ruby32'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2022-03-12 Thread Hans de Graaff
commit: ba00ad61827650c8ecbf6c4227ea84305f22f287
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Feb 21 07:29:23 2021 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Feb 21 07:29:23 2021 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=ba00ad61

Add ruby30 to stats scripts

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot  | 3 ++-
 ruby-stats/ruby_stats.py | 4 +++-
 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:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2020-01-05 Thread Hans de Graaff
commit: c7ec24003a116fed67bbccb52ceefbf0c6d5f528
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Jan  5 08:08:26 2020 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jan  5 08:15:25 2020 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=c7ec2400

Add emacs mode variable to identify this as a gnuplot file

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index e588ec0..c730a78 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -1,3 +1,5 @@
+# -*- mode: gnuplot -*-
+
 set terminal svg size 1024,768 enhanced
 set termoption dashed
 



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2020-01-05 Thread Hans de Graaff
commit: 64af647884d3934051ce510e5dd751feef822682
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Jan  5 08:13:29 2020 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jan  5 08:15:32 2020 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=64af6478

Add ruby27

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot  | 3 ++-
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index c730a78..fcc07bc 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -26,4 +26,5 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:12 with lines lt 1 lc 9 title "ruby23", \
  "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:15 with lines lt 1 lc 12 title "ruby26", \
+ "data.txt" using 1:16 with lines lt 1 lc 13 title "ruby27"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index d8f7a9d..7316837 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_ruby26', 'ruby_targets_ruby27')
 
 import sys
 import time
@@ -56,6 +56,8 @@ def main():

stats['ruby_targets_ruby25'].add(cpv)
if 'ruby_targets_ruby26' in iuse:

stats['ruby_targets_ruby26'].add(cpv)
+   if 'ruby_targets_ruby27' in iuse:
+   
stats['ruby_targets_ruby27'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2019-01-21 Thread Hans de Graaff
commit: c44aba5158944dab72e154b8c7d08b54560e53e1
Author: Hans de Graaff  degraaff  org>
AuthorDate: Mon Jan 21 18:16:31 2019 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Mon Jan 21 18:17:01 2019 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=c44aba51

Add ruby26 to the stats scripts

Signed-off-by: Hans de Graaff  degraaff.org>

 ruby-stats/plot  | 4 +---
 ruby-stats/ruby_stats.py | 9 -
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 07e0905..e588ec0 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -24,6 +24,4 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:12 with lines lt 1 lc 9 title "ruby23", \
  "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:7 with lines lt 1 lc 4 title "jruby", \
- "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
- "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"
+ "data.txt" using 1:15 with lines lt 1 lc 12 title "ruby26"

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-21180 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:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2018-02-16 Thread Hans de Graaff
commit: 9c074d1c888f301e5a3304e3130467752bfffb7c
Author: Hans de Graaff  degraaff  org>
AuthorDate: Fri Feb 16 14:39:14 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Feb 16 14:39:14 2018 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=9c074d1c

update stats scripts for ruby25

 ruby-stats/plot  | 1 +
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 1e87e8e..07e0905 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -23,6 +23,7 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:11 with lines lt 1 lc 8 title "ruby22", \
  "data.txt" using 1:12 with lines lt 1 lc 9 title "ruby23", \
  "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:7 with lines lt 1 lc 4 title "jruby", \
  "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
  "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 29939f1..6ca294c 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -4,7 +4,7 @@
 # 2010-01-21180 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')
+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')
 
 import sys
 import time
@@ -47,6 +47,8 @@ def main():

stats['ruby_targets_ruby23'].add(cpv)
if 'ruby_targets_ruby24' in iuse:

stats['ruby_targets_ruby24'].add(cpv)
+   if 'ruby_targets_ruby25' in iuse:
+   
stats['ruby_targets_ruby25'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2016-12-24 Thread Hans de Graaff
commit: dd228b0b45cccfc62cc9cdd4ebb0261140450c2f
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Dec 25 06:56:23 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Dec 25 06:56:23 2016 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=dd228b0b

Add ruby24

 ruby-stats/plot  | 1 +
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index bcefeb4..1e87e8e 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -22,6 +22,7 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:10 with lines lt 1 lc 7 title "ruby21", \
  "data.txt" using 1:11 with lines lt 1 lc 8 title "ruby22", \
  "data.txt" using 1:12 with lines lt 1 lc 9 title "ruby23", \
+ "data.txt" using 1:13 with lines lt 1 lc 10 title "ruby24", \
  "data.txt" using 1:7 with lines lt 1 lc 4 title "jruby", \
  "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
  "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 25009a7..29939f1 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -4,7 +4,7 @@
 # 2010-01-21180 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')
+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')
 
 import sys
 import time
@@ -45,6 +45,8 @@ def main():

stats['ruby_targets_ruby22'].add(cpv)
if 'ruby_targets_ruby23' in iuse:

stats['ruby_targets_ruby23'].add(cpv)
+   if 'ruby_targets_ruby24' in iuse:
+   
stats['ruby_targets_ruby24'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2015-12-27 Thread Hans de Graaff
commit: f7b4697556ff481411815e174e676c35c59256e7
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Dec 27 08:46:03 2015 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Dec 27 08:46:03 2015 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=f7b46975

Add ruby23 to target plot

 ruby-stats/plot  | 1 +
 ruby-stats/ruby_stats.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 86edac6..bcefeb4 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -21,6 +21,7 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:6 with lines lt 1 lc 3 title "ruby20", \
  "data.txt" using 1:10 with lines lt 1 lc 7 title "ruby21", \
  "data.txt" using 1:11 with lines lt 1 lc 8 title "ruby22", \
+ "data.txt" using 1:12 with lines lt 1 lc 9 title "ruby23", \
  "data.txt" using 1:7 with lines lt 1 lc 4 title "jruby", \
  "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
  "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index ce51e98..25009a7 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -4,7 +4,7 @@
 # 2010-01-21180 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')
+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')
 
 import sys
 import time
@@ -43,6 +43,8 @@ def main():

stats['ruby_targets_ruby21'].add(cpv)
if 'ruby_targets_ruby22' in iuse:

stats['ruby_targets_ruby22'].add(cpv)
+   if 'ruby_targets_ruby23' in iuse:
+   
stats['ruby_targets_ruby23'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2015-09-30 Thread Hans de Graaff
commit: bddcc8724e75ee5aaec67eb072ab3225ac2902b4
Author: Hans de Graaff  degraaff  org>
AuthorDate: Thu Oct  1 06:27:20 2015 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Thu Oct  1 06:27:20 2015 +
URL:https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=bddcc872

Show year on x axis rather than meaningless day.

 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index f0bf2ba..86edac6 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -11,7 +11,7 @@ set ylabel "Packages"
 set xlabel "Time"
 set xdata time
 set timefmt "%Y-%m-%d"
-set format x "%b %d"
+set format x "%b '%y"
 set key left maxrows 3
 set key top left 
 



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2015-01-01 Thread Manuel Rüger
commit: 7c90dad1ba398e6c7c5f4955d538b449a0b46670
Author: Manuel Rüger  rueg  eu>
AuthorDate: Thu Jan  1 16:42:10 2015 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Thu Jan  1 16:42:10 2015 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=7c90dad1

Adjust keys.

---
 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 31605a9..f0bf2ba 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -12,7 +12,7 @@ set xlabel "Time"
 set xdata time
 set timefmt "%Y-%m-%d"
 set format x "%b %d"
-
+set key left maxrows 3
 set key top left 
 
 plot "data.txt" using 1:3 with lines lt 2 title "total", \



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-12-27 Thread Manuel Rüger
commit: 72ef1caf407f485525f424d38f3785049dbfff50
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat Dec 27 19:53:25 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Dec 27 19:53:25 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=72ef1caf

Update shebang.

---
 ruby-stats/ruby_stats.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index d60b153..ce51e98 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # dateruby.eclass ruby-ng.eclass  ruby18  ruby19  jruby
 # 2010-01-20181 143 141 68  51
 # 2010-01-21180 144 142 68  52



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/stable/

2014-12-27 Thread Manuel Rüger
commit: 2f46c6e92ad914ef3e07ab92eba98fc9344b8ae2
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat Dec 27 19:52:24 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Dec 27 19:52:24 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=2f46c6e9

Add script for stable statistics.

---
 ruby-stats/stable/plot | 26 +++
 ruby-stats/stable/ruby_stable_stats.py | 59 ++
 2 files changed, 85 insertions(+)

diff --git a/ruby-stats/stable/plot b/ruby-stats/stable/plot
new file mode 100644
index 000..b160d36
--- /dev/null
+++ b/ruby-stats/stable/plot
@@ -0,0 +1,26 @@
+set terminal svg size 1024,768 enhanced
+set termoption dashed
+
+set output "targets.svg"
+
+set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind
+set object 1 rect fc  rgb "white"  fillstyle solid 1.0
+
+set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest stable 
amd64 version per slot \\@ `cat $(portageq portdir 
2>/dev/null)/metadata/timestamp`}"
+set ylabel "Packages"
+set xlabel "Time"
+set xdata time
+set timefmt "%Y-%m-%d"
+set format x "%b %d"
+
+set key top left 
+
+plot "data.txt" using 1:3 with lines lt 2 title "total", \
+ "data.txt" using 1:4 with lines lt 1 lc 1 title "ruby18", \
+ "data.txt" using 1:5 with lines lt 1 lc 2 title "ruby19", \
+ "data.txt" using 1:6 with lines lt 1 lc 3 title "ruby20", \
+ "data.txt" using 1:10 with lines lt 1 lc 7 title "ruby21", \
+ "data.txt" using 1:11 with lines lt 1 lc 8 title "ruby22", \
+ "data.txt" using 1:7 with lines lt 1 lc 4 title "jruby", \
+ "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
+ "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"

diff --git a/ruby-stats/stable/ruby_stable_stats.py 
b/ruby-stats/stable/ruby_stable_stats.py
new file mode 100755
index 000..77cc9ae
--- /dev/null
+++ b/ruby-stats/stable/ruby_stable_stats.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python
+# dateruby.eclass ruby-ng.eclass  ruby18  ruby19  ruby20 
jruby ree18 rbx ruby21 ruby22
+# 2010-01-20181 143 141 68  51
+# 2010-01-21180 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')
+
+import sys
+import time
+import os
+import portage
+
+def main():
+   stats = {}
+   for k in bins:
+   stats[k] = set()
+
+   portdb = portage.portdb
+   portdb.porttrees = [portdb.porttree_root] # exclude overlays
+   for cp in portdb.cp_all():
+   slot_dict = {}
+   for cpv in portdb.cp_list(cp):
+   slot, iuse, inherited, keywords = portdb.aux_get(cpv, 
['SLOT', 'IUSE', 'INHERITED', 'KEYWORDS'])
+   if  "amd64" in keywords and not "~amd64" in keywords:
+   slot_dict.setdefault(slot, {})[cpv] = (iuse, 
inherited)
+   for slot, cpv_dict in slot_dict.items():
+   cpv = portage.best(list(cpv_dict))
+   if cpv:
+   iuse, inherited = cpv_dict[cpv]
+   iuse = set(iuse.split())
+   inherited = set(inherited.split())
+   if 'ruby' in inherited:
+   stats['ruby'].add(cpv)
+   if 'ruby-ng' in inherited:
+   stats['ruby-ng'].add(cpv)
+   if 'ruby_targets_ruby18' in iuse:
+   
stats['ruby_targets_ruby18'].add(cpv)
+   if 'ruby_targets_ruby19' in iuse:
+   
stats['ruby_targets_ruby19'].add(cpv)
+   if 'ruby_targets_ruby20' in iuse:
+   
stats['ruby_targets_ruby20'].add(cpv)
+   if 'ruby_targets_ruby21' in iuse:
+   
stats['ruby_targets_ruby21'].add(cpv)
+   if 'ruby_targets_ruby22' in iuse:
+   
stats['ruby_targets_ruby22'].add(cpv)
+   if 'ruby_targets_jruby' in iuse:
+   
stats['ruby_targets_jruby'].add(cpv)
+   if 'ruby_targets_ree18' in iuse:
+   
stats['ruby_targets_ree18'].add(cpv)
+   if 'ruby_targets_rbx' in iuse:
+   
stats['ruby_targets_rbx'].add(cpv

[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-12-27 Thread Manuel Rüger
commit: 08c9dacb08e5b38b7ae1d7d4e3d9230201d3c39f
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat Dec 27 19:21:59 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Dec 27 19:21:59 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=08c9dacb

Drop accidentally added message.

---
 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index b160d36..31605a9 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -6,7 +6,7 @@ set output "targets.svg"
 set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind
 set object 1 rect fc  rgb "white"  fillstyle solid 1.0
 
-set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest stable 
amd64 version per slot \\@ `cat $(portageq portdir 
2>/dev/null)/metadata/timestamp`}"
+set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest version 
per slot \\@ `cat $(portageq portdir 2>/dev/null)/metadata/timestamp`}"
 set ylabel "Packages"
 set xlabel "Time"
 set xdata time



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-12-27 Thread Manuel Rüger
commit: c7189750a842e86753368a3d781e397b79cb2492
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat Dec 27 19:20:33 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Dec 27 19:20:33 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=c7189750

Fix caf44a1224e944f3ba2f3c81011a2c2504b78195

---
 ruby-stats/plot  | 3 ++-
 ruby-stats/ruby_stats.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 4528f26..b160d36 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -6,7 +6,7 @@ set output "targets.svg"
 set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind
 set object 1 rect fc  rgb "white"  fillstyle solid 1.0
 
-set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest version 
per slot \\@ `cat $(portageq portdir 2>/dev/null)/metadata/timestamp`}"
+set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest stable 
amd64 version per slot \\@ `cat $(portageq portdir 
2>/dev/null)/metadata/timestamp`}"
 set ylabel "Packages"
 set xlabel "Time"
 set xdata time
@@ -20,6 +20,7 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:5 with lines lt 1 lc 2 title "ruby19", \
  "data.txt" using 1:6 with lines lt 1 lc 3 title "ruby20", \
  "data.txt" using 1:10 with lines lt 1 lc 7 title "ruby21", \
+ "data.txt" using 1:11 with lines lt 1 lc 8 title "ruby22", \
  "data.txt" using 1:7 with lines lt 1 lc 4 title "jruby", \
  "data.txt" using 1:8 with lines lt 1 lc 5 title "ree18", \
  "data.txt" using 1:9 with lines lt 1 lc 6 title "rbx"

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index b7ab3e0..d60b153 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -4,7 +4,7 @@
 # 2010-01-21180 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')
+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')
 
 import sys
 import time



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-12-27 Thread Manuel Rüger
commit: caf44a1224e944f3ba2f3c81011a2c2504b78195
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat Dec 27 19:03:19 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Dec 27 19:03:19 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=caf44a12

Count ruby 2.2 packages.

---
 ruby-stats/ruby_stats.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index 11be890..b7ab3e0 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -41,6 +41,8 @@ def main():

stats['ruby_targets_ruby20'].add(cpv)
if 'ruby_targets_ruby21' in iuse:

stats['ruby_targets_ruby21'].add(cpv)
+   if 'ruby_targets_ruby22' in iuse:
+   
stats['ruby_targets_ruby22'].add(cpv)
if 'ruby_targets_jruby' in iuse:

stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse:



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-11-09 Thread Hans de Graaff
commit: 12494bc8236f663426c0f1babdb211c1aa8c947d
Author: Hans de Graaff  degraaff  org>
AuthorDate: Sun Nov  9 08:07:36 2014 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Nov  9 08:07:36 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=12494bc8

Create a bit larger plot by default since the SVG can be scaled down easily.

---
 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 962734c..4528f26 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -1,4 +1,4 @@
-set terminal svg size 800,600 enhanced
+set terminal svg size 1024,768 enhanced
 set termoption dashed
 
 set output "targets.svg"



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-05-31 Thread Manuel Rüger
commit: 152afe6f9002a8998ee5ce16bebe0f05bcc1a9f8
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat May 31 13:26:20 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat May 31 13:26:20 2014 +
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=152afe6f

Do not hardcode portdir

---
 ruby-stats/plot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 990fd1b..7f13ce6 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -6,7 +6,7 @@ set output "targets.svg"
 set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind
 set object 1 rect fc  rgb "white"  fillstyle solid 1.0
 
-set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest version 
per slot \\@ `cat /usr/portage/metadata/timestamp`}"
+set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest version 
per slot \\@ `cat $(portageq portdir 2>/dev/null)/metadata/timestamp`}"
 set ylabel "Packages"
 set xlabel "Time"
 



[gentoo-commits] proj/ruby-scripts:master commit in: ruby-stats/

2014-05-31 Thread Manuel Rüger
commit: 0790fc284e46d953722823e90b381c98a5b94c76
Author: Manuel Rüger  rueg  eu>
AuthorDate: Sat May 31 13:30:31 2014 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat May 31 13:30:31 2014 +
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=0790fc28

Move keybox to the left.

---
 ruby-stats/plot | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ruby-stats/plot b/ruby-stats/plot
index 7f13ce6..962734c 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -9,11 +9,12 @@ set object 1 rect fc  rgb "white"  fillstyle solid 1.0
 set title "RUBY\\_TARGETS support in Gentoo\n{/*0.7 based on latest version 
per slot \\@ `cat $(portageq portdir 2>/dev/null)/metadata/timestamp`}"
 set ylabel "Packages"
 set xlabel "Time"
-
 set xdata time
 set timefmt "%Y-%m-%d"
 set format x "%b %d"
 
+set key top left 
+
 plot "data.txt" using 1:3 with lines lt 2 title "total", \
  "data.txt" using 1:4 with lines lt 1 lc 1 title "ruby18", \
  "data.txt" using 1:5 with lines lt 1 lc 2 title "ruby19", \