viiite 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +70 -0
- data/Gemfile +2 -9
- data/Gemfile.lock +11 -32
- data/README.md +42 -123
- data/examples/bench_attr_vs_method-1.8.7.jpeg +0 -0
- data/examples/bench_attr_vs_method-1.9.3.jpeg +0 -0
- data/examples/bench_attr_vs_method.rb +18 -0
- data/examples/bench_iteration.rb +2 -4
- data/examples/bench_sort.rb +2 -7
- data/lib/viiite.rb +40 -18
- data/lib/viiite/bdb.rb +28 -0
- data/lib/viiite/bdb/cached.rb +63 -0
- data/lib/viiite/bdb/immediate.rb +46 -0
- data/lib/viiite/bdb/utils.rb +16 -0
- data/lib/viiite/benchmark.rb +35 -0
- data/lib/viiite/benchmark/runner.rb +50 -0
- data/lib/viiite/command.rb +33 -2
- data/lib/viiite/command/commons.rb +22 -0
- data/lib/viiite/command/help.rb +4 -5
- data/lib/viiite/command/plot.rb +44 -44
- data/lib/viiite/command/plot/to_gnuplot.rb +65 -0
- data/lib/viiite/command/{graph_style.rash → plot/to_gnuplot_graph.rash} +0 -0
- data/lib/viiite/command/{serie_style.rash → plot/to_gnuplot_serie.rash} +0 -0
- data/lib/viiite/command/plot/to_highcharts.rb +38 -0
- data/lib/viiite/command/plot/to_highcharts_graph.rb +29 -0
- data/lib/viiite/command/plot/to_text.rb +30 -0
- data/lib/viiite/command/report.rb +32 -10
- data/lib/viiite/command/run.rb +30 -7
- data/lib/viiite/errors.rb +5 -0
- data/lib/viiite/loader.rb +2 -2
- data/lib/viiite/tms.rb +21 -31
- data/lib/viiite/version.rb +5 -5
- data/spec/fixtures/bdb/Array/bench_sort.rb +7 -0
- data/spec/fixtures/{bench_iteration.rb → bdb/bench_iteration.rb} +2 -4
- data/spec/fixtures/command/bench_iteration.rb +3 -0
- data/spec/fixtures/saved/Array/bench_sort.rash +12 -0
- data/spec/fixtures/saved/bench_iteration.rash +18 -0
- data/spec/integration/plot/plot_1.cmd +1 -0
- data/spec/integration/plot/plot_1.stdout +64 -0
- data/spec/integration/plot/plot_2.cmd +1 -0
- data/spec/integration/plot/plot_2.stdout +37 -0
- data/spec/integration/plot/plot_3.cmd +1 -0
- data/spec/integration/plot/plot_3.stdout +64 -0
- data/spec/integration/plot/plot_4.cmd +1 -0
- data/spec/integration/plot/plot_4.stdout +1 -0
- data/spec/integration/report/viiite_report_1.cmd +1 -1
- data/spec/integration/report/viiite_report_1.stdout +7 -7
- data/spec/integration/report/viiite_report_2.cmd +1 -1
- data/spec/integration/report/viiite_report_2.stdout +22 -10
- data/spec/integration/report/viiite_report_3.cmd +1 -1
- data/spec/integration/report/viiite_report_3.stdout +46 -18
- data/spec/integration/report/viiite_report_4.cmd +1 -1
- data/spec/integration/report/viiite_report_4.stdout +34 -22
- data/spec/integration/report/viiite_report_5.cmd +1 -0
- data/spec/integration/report/viiite_report_5.stdout +7 -0
- data/spec/integration/report/viiite_report_6.cmd +1 -0
- data/spec/integration/report/viiite_report_6.stdout +7 -0
- data/spec/integration/report/viiite_report_7.cmd +1 -0
- data/spec/integration/report/viiite_report_7.stdout +7 -0
- data/spec/integration/report/viiite_report_8.cmd +1 -0
- data/spec/integration/report/viiite_report_8.stdout +16 -0
- data/spec/integration/report/viiite_report_9.cmd +1 -0
- data/spec/integration/report/viiite_report_9.stdout +88 -0
- data/spec/integration/test_command.rb +19 -23
- data/spec/integration/viiite/viiite_help.stdout +6 -0
- data/spec/spec_helper.rb +11 -17
- data/spec/unit/bdb/cached/test_dataset.rb +68 -0
- data/spec/unit/bdb/immediate/test_benchmark.rb +31 -0
- data/spec/unit/bdb/immediate/test_dataset.rb +31 -0
- data/spec/unit/bdb/immediate/test_enumerable.rb +20 -0
- data/spec/unit/bdb/immediate/test_pattern.rb +25 -0
- data/spec/unit/bdb/test_new.rb +44 -0
- data/spec/unit/bdb/utils/test_bench_file.rb +24 -0
- data/spec/unit/bdb/utils/test_replace_extension.rb +21 -0
- data/spec/unit/benchmark/bench_add.rb +3 -0
- data/spec/unit/benchmark/test_new.rb +28 -0
- data/spec/unit/command/commons/existing.rash +1 -0
- data/spec/unit/command/commons/test_single_source.rb +64 -0
- data/spec/unit/{formatter/plot → command/plot/gnuplot_utils}/test_to_data.rb +4 -4
- data/spec/unit/{formatter/plot → command/plot/gnuplot_utils}/test_to_dataset.rb +5 -5
- data/spec/unit/{formatter/plot → command/plot/gnuplot_utils}/test_to_plot.rb +4 -4
- data/spec/unit/command/test_run.rb +25 -12
- data/spec/unit/{test_runner.rb → test_benchmark.rb} +30 -11
- data/spec/unit/test_viiite.rb +17 -4
- data/spec/unit/tms/test_attributes.rb +11 -0
- data/spec/unit/tms/test_coerce.rb +11 -23
- data/spec/unit/tms/test_conversions.rb +23 -0
- data/spec/unit/tms/test_operations.rb +22 -0
- data/tasks/clean.rake +1 -1
- data/tasks/debug_mail.rake +13 -13
- data/tasks/gem.rake +13 -13
- data/tasks/integration_test.rake +3 -3
- data/tasks/spec_test.rake +9 -9
- data/tasks/unit_test.rake +9 -10
- data/tasks/yard.rake +13 -13
- data/viiite.gemspec +26 -29
- data/viiite.noespec +4 -7
- metadata +335 -235
- data/examples/bench_sort.eps +0 -816
- data/examples/bench_sort.rash +0 -100
- data/examples/raw.rash +0 -6
- data/lib/viiite/formatter.rb +0 -5
- data/lib/viiite/formatter/plot.rb +0 -38
- data/lib/viiite/runner.rb +0 -59
- data/lib/viiite/viiite_file.rb +0 -20
- data/spec/integration/raw_data.rash +0 -6
- data/spec/unit/tms/test_divide.rb +0 -26
- data/spec/unit/tms/test_minus.rb +0 -26
- data/spec/unit/tms/test_plus.rb +0 -34
- data/spec/unit/tms/test_times.rb +0 -26
- data/spec/unit/tms/test_to_a.rb +0 -11
- data/spec/unit/tms/test_to_ruby_literal.rb +0 -11
- data/spec/unit/tms/test_to_s.rb +0 -11
data/tasks/clean.rake
CHANGED
data/tasks/debug_mail.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installs a rake task for debuging the announcement mail.
|
2
2
|
#
|
3
3
|
# This file installs the 'rake debug_mail' that flushes an announcement mail
|
4
|
-
# for your library on the standard output. It is automatically generated
|
5
|
-
# by Noe from your .noespec file, and should therefore be configured there,
|
4
|
+
# for your library on the standard output. It is automatically generated
|
5
|
+
# by Noe from your .noespec file, and should therefore be configured there,
|
6
6
|
# under the variables/rake_tasks/debug_mail entry, as illustrated below:
|
7
7
|
#
|
8
8
|
# variables:
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# nb_changelog_sections: 1
|
13
13
|
# ...
|
14
14
|
#
|
15
|
-
# If you have specific needs requiring manual intervention on this file,
|
15
|
+
# If you have specific needs requiring manual intervention on this file,
|
16
16
|
# don't forget to set safe-override to false in your noe specification:
|
17
|
-
#
|
17
|
+
#
|
18
18
|
# template-info:
|
19
19
|
# manifest:
|
20
20
|
# tasks/debug_mail.rake:
|
@@ -22,8 +22,8 @@
|
|
22
22
|
#
|
23
23
|
# The mail template used can be found in debug_mail.txt. That file may be
|
24
24
|
# changed to tune the mail you want to send. If you do so, don't forget to
|
25
|
-
# add a manifest entry in your .noespec file to avoid overriding you
|
26
|
-
# changes. The mail template uses wlang, with parentheses for block
|
25
|
+
# add a manifest entry in your .noespec file to avoid overriding you
|
26
|
+
# changes. The mail template uses wlang, with parentheses for block
|
27
27
|
# delimiters.
|
28
28
|
#
|
29
29
|
# template-info:
|
@@ -34,20 +34,20 @@
|
|
34
34
|
begin
|
35
35
|
require 'wlang'
|
36
36
|
require 'yaml'
|
37
|
-
|
37
|
+
|
38
38
|
desc "Debug the release announcement mail"
|
39
|
-
task :debug_mail do
|
39
|
+
task :debug_mail do
|
40
40
|
# Check that a .noespec file exists
|
41
41
|
noespec_file = File.expand_path('../../viiite.noespec', __FILE__)
|
42
42
|
unless File.exists?(noespec_file)
|
43
43
|
raise "Unable to find .noespec project file, sorry."
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# Load it as well as variables and options
|
47
47
|
noespec = YAML::load(File.read(noespec_file))
|
48
48
|
vars = noespec['variables'] || {}
|
49
49
|
|
50
|
-
# Changes are taken from CHANGELOG
|
50
|
+
# Changes are taken from CHANGELOG
|
51
51
|
logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
|
52
52
|
unless logs.size == 1
|
53
53
|
abort "Unable to find a changelog file"
|
@@ -63,15 +63,15 @@ begin
|
|
63
63
|
changes << line
|
64
64
|
}
|
65
65
|
vars['changes'] = changes.join
|
66
|
-
|
66
|
+
|
67
67
|
# WLang template
|
68
68
|
template = File.expand_path('../debug_mail.txt', __FILE__)
|
69
|
-
|
69
|
+
|
70
70
|
# Let's go!
|
71
71
|
$stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
|
72
72
|
end
|
73
73
|
|
74
|
-
rescue LoadError
|
74
|
+
rescue LoadError
|
75
75
|
task :debug_mail do
|
76
76
|
abort "wlang is not available. Try 'gem install wlang'"
|
77
77
|
end
|
data/tasks/gem.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installs rake tasks for gemming and packaging
|
2
2
|
#
|
3
|
-
# This file installs the 'rake package', 'rake gem' tasks and associates
|
4
|
-
# (clobber_package, repackage, ...). It is automatically generated by Noe
|
5
|
-
# from your .noespec file, and should therefore be configured there, under
|
3
|
+
# This file installs the 'rake package', 'rake gem' tasks and associates
|
4
|
+
# (clobber_package, repackage, ...). It is automatically generated by Noe
|
5
|
+
# from your .noespec file, and should therefore be configured there, under
|
6
6
|
# the variables/rake_tasks/gem entry, as illustrated below:
|
7
7
|
#
|
8
8
|
# variables:
|
@@ -15,9 +15,9 @@
|
|
15
15
|
# need_zip: false
|
16
16
|
# ...
|
17
17
|
#
|
18
|
-
# If you have specific needs requiring manual intervention on this file,
|
18
|
+
# If you have specific needs requiring manual intervention on this file,
|
19
19
|
# don't forget to set safe-override to false in your noe specification:
|
20
|
-
#
|
20
|
+
#
|
21
21
|
# template-info:
|
22
22
|
# manifest:
|
23
23
|
# tasks/gem.rake:
|
@@ -32,28 +32,28 @@ begin
|
|
32
32
|
|
33
33
|
# Version of the package
|
34
34
|
t.version = $gemspec.version
|
35
|
-
|
35
|
+
|
36
36
|
# Directory used to store the package files
|
37
37
|
t.package_dir = "pkg"
|
38
|
-
|
38
|
+
|
39
39
|
# True if a gzipped tar file (tgz) should be produced
|
40
40
|
t.need_tar = false
|
41
|
-
|
41
|
+
|
42
42
|
# True if a gzipped tar file (tar.gz) should be produced
|
43
43
|
t.need_tar_gz = false
|
44
|
-
|
44
|
+
|
45
45
|
# True if a bzip2'd tar file (tar.bz2) should be produced
|
46
46
|
t.need_tar_bz2 = false
|
47
|
-
|
47
|
+
|
48
48
|
# True if a zip file should be produced (default is false)
|
49
49
|
t.need_zip = false
|
50
|
-
|
50
|
+
|
51
51
|
# List of files to be included in the package.
|
52
52
|
t.package_files = $gemspec.files
|
53
|
-
|
53
|
+
|
54
54
|
# Tar command for gzipped or bzip2ed archives.
|
55
55
|
t.tar_command = "tar"
|
56
|
-
|
56
|
+
|
57
57
|
# Zip command for zipped archives.
|
58
58
|
t.zip_command = "zip"
|
59
59
|
|
data/tasks/integration_test.rake
CHANGED
@@ -6,14 +6,14 @@ begin
|
|
6
6
|
t.pattern = "spec/integration/**/test_*.rb"
|
7
7
|
|
8
8
|
# By default, if there is a Gemfile, the generated command will include
|
9
|
-
# 'bundle exec'. Set this to true to ignore the presence of a Gemfile,
|
9
|
+
# 'bundle exec'. Set this to true to ignore the presence of a Gemfile,
|
10
10
|
# and not add 'bundle exec' to the command.
|
11
11
|
t.skip_bundler = false
|
12
12
|
|
13
13
|
# Name of Gemfile to use
|
14
14
|
t.gemfile = "Gemfile"
|
15
15
|
|
16
|
-
# Whether or not to fail Rake when an error occurs (typically when
|
16
|
+
# Whether or not to fail Rake when an error occurs (typically when
|
17
17
|
# examples fail).
|
18
18
|
t.fail_on_error = true
|
19
19
|
|
@@ -33,7 +33,7 @@ begin
|
|
33
33
|
# Command line options to pass to rcov. See 'rcov --help' about this
|
34
34
|
t.rcov_opts = []
|
35
35
|
|
36
|
-
# Command line options to pass to ruby. See 'ruby --help' about this
|
36
|
+
# Command line options to pass to ruby. See 'ruby --help' about this
|
37
37
|
t.ruby_opts = []
|
38
38
|
|
39
39
|
# Path to rspec
|
data/tasks/spec_test.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installs a rake task for for running examples written using rspec.
|
2
2
|
#
|
3
3
|
# This file installs the 'rake spec_test' (aliased as 'rake spec') as well as
|
4
|
-
# extends 'rake test' to run spec tests, if any. It is automatically generated
|
5
|
-
# by Noe from your .noespec file, and should therefore be configured there,
|
4
|
+
# extends 'rake test' to run spec tests, if any. It is automatically generated
|
5
|
+
# by Noe from your .noespec file, and should therefore be configured there,
|
6
6
|
# under the variables/rake_tasks/spec_test entry, as illustrated below:
|
7
7
|
#
|
8
8
|
# variables:
|
@@ -13,16 +13,16 @@
|
|
13
13
|
# rspec_opts: [--color, --backtrace]
|
14
14
|
# ...
|
15
15
|
#
|
16
|
-
# If you have specific needs requiring manual intervention on this file,
|
16
|
+
# If you have specific needs requiring manual intervention on this file,
|
17
17
|
# don't forget to set safe-override to false in your noe specification:
|
18
|
-
#
|
18
|
+
#
|
19
19
|
# template-info:
|
20
20
|
# manifest:
|
21
21
|
# tasks/spec_test.rake:
|
22
22
|
# safe-override: false
|
23
23
|
#
|
24
|
-
# This file has been written to conform to RSpec v2.4.0. More information about
|
25
|
-
# rspec and options of the rake task defined below can be found on
|
24
|
+
# This file has been written to conform to RSpec v2.4.0. More information about
|
25
|
+
# rspec and options of the rake task defined below can be found on
|
26
26
|
# http://relishapp.com/rspec
|
27
27
|
#
|
28
28
|
begin
|
@@ -33,14 +33,14 @@ begin
|
|
33
33
|
t.pattern = "spec/unit/**/test_*.rb"
|
34
34
|
|
35
35
|
# By default, if there is a Gemfile, the generated command will include
|
36
|
-
# 'bundle exec'. Set this to true to ignore the presence of a Gemfile,
|
36
|
+
# 'bundle exec'. Set this to true to ignore the presence of a Gemfile,
|
37
37
|
# and not add 'bundle exec' to the command.
|
38
38
|
t.skip_bundler = false
|
39
39
|
|
40
40
|
# Name of Gemfile to use
|
41
41
|
t.gemfile = "Gemfile"
|
42
42
|
|
43
|
-
# Whether or not to fail Rake when an error occurs (typically when
|
43
|
+
# Whether or not to fail Rake when an error occurs (typically when
|
44
44
|
# examples fail).
|
45
45
|
t.fail_on_error = true
|
46
46
|
|
@@ -60,7 +60,7 @@ begin
|
|
60
60
|
# Command line options to pass to rcov. See 'rcov --help' about this
|
61
61
|
t.rcov_opts = []
|
62
62
|
|
63
|
-
# Command line options to pass to ruby. See 'ruby --help' about this
|
63
|
+
# Command line options to pass to ruby. See 'ruby --help' about this
|
64
64
|
t.ruby_opts = []
|
65
65
|
|
66
66
|
# Path to rspec
|
data/tasks/unit_test.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Installs a rake task for for running unit tests.
|
2
2
|
#
|
3
|
-
# This file installs the 'rake unit_test' and extends 'rake test' to run unit
|
4
|
-
# tests, if any. It is automatically generated by Noe from your .noespec file,
|
5
|
-
# and should therefore be configured there, under the variables/rake_tasks/unit_test
|
3
|
+
# This file installs the 'rake unit_test' and extends 'rake test' to run unit
|
4
|
+
# tests, if any. It is automatically generated by Noe from your .noespec file,
|
5
|
+
# and should therefore be configured there, under the variables/rake_tasks/unit_test
|
6
6
|
# entry, as illustrated below:
|
7
7
|
#
|
8
8
|
# variables:
|
@@ -13,15 +13,15 @@
|
|
13
13
|
# warning: false
|
14
14
|
# ...
|
15
15
|
#
|
16
|
-
# If you have specific needs requiring manual intervention on this file,
|
16
|
+
# If you have specific needs requiring manual intervention on this file,
|
17
17
|
# don't forget to set safe-override to false in your noe specification:
|
18
|
-
#
|
18
|
+
#
|
19
19
|
# template-info:
|
20
20
|
# manifest:
|
21
21
|
# tasks/unit_test.rake:
|
22
22
|
# safe-override: false
|
23
23
|
#
|
24
|
-
# More info about the TestTask and its options can be found on
|
24
|
+
# More info about the TestTask and its options can be found on
|
25
25
|
# http://rake.rubyforge.org/classes/Rake/TestTask.html
|
26
26
|
#
|
27
27
|
begin
|
@@ -36,7 +36,7 @@ begin
|
|
36
36
|
# True if verbose test output desired. (default is false)
|
37
37
|
t.verbose = false
|
38
38
|
|
39
|
-
# Test options passed to the test suite. An explicit TESTOPTS=opts
|
39
|
+
# Test options passed to the test suite. An explicit TESTOPTS=opts
|
40
40
|
# on the command line will override this. (default is NONE)
|
41
41
|
t.options = nil
|
42
42
|
|
@@ -52,10 +52,10 @@ begin
|
|
52
52
|
# * :rake -- Rake provided test loading script (default).
|
53
53
|
# * :testrb -- Ruby provided test loading script.
|
54
54
|
# * :direct -- Load tests using command line loader.
|
55
|
-
#
|
55
|
+
#
|
56
56
|
t.loader = :rake
|
57
57
|
|
58
|
-
# Array of commandline options to pass to ruby when running test
|
58
|
+
# Array of commandline options to pass to ruby when running test
|
59
59
|
# loader.
|
60
60
|
t.ruby_opts = []
|
61
61
|
|
@@ -74,4 +74,3 @@ ensure
|
|
74
74
|
desc "Run all tests"
|
75
75
|
task :test => [:unit_test]
|
76
76
|
end
|
77
|
-
|
data/tasks/yard.rake
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Installs a rake task to generate API documentation using yard.
|
2
2
|
#
|
3
|
-
# This file installs the 'rake yard' task. It is automatically generated by Noe from
|
4
|
-
# your .noespec file, and should therefore be configured there, under the
|
3
|
+
# This file installs the 'rake yard' task. It is automatically generated by Noe from
|
4
|
+
# your .noespec file, and should therefore be configured there, under the
|
5
5
|
# variables/rake_tasks/yard entry, as illustrated below:
|
6
6
|
#
|
7
7
|
# variables:
|
@@ -11,15 +11,15 @@
|
|
11
11
|
# options: []
|
12
12
|
# ...
|
13
13
|
#
|
14
|
-
# If you have specific needs requiring manual intervention on this file,
|
14
|
+
# If you have specific needs requiring manual intervention on this file,
|
15
15
|
# don't forget to set safe-override to false in your noe specification:
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# template-info:
|
18
18
|
# manifest:
|
19
19
|
# tasks/yard.rake:
|
20
20
|
# safe-override: false
|
21
21
|
#
|
22
|
-
# This file has been written to conform to yard v0.6.4. More information about
|
22
|
+
# This file has been written to conform to yard v0.6.4. More information about
|
23
23
|
# yard and the rake task installed below can be found on http://yardoc.org/
|
24
24
|
#
|
25
25
|
begin
|
@@ -28,20 +28,20 @@ begin
|
|
28
28
|
YARD::Rake::YardocTask.new(:yard) do |t|
|
29
29
|
# Array of options passed to yardoc commandline. See 'yardoc --help' about this
|
30
30
|
t.options = ["--output-dir", "doc/api", "-", "README.md", "CHANGELOG.md", "LICENCE.md"]
|
31
|
-
|
32
|
-
# Array of ruby source files (and any extra documentation files
|
31
|
+
|
32
|
+
# Array of ruby source files (and any extra documentation files
|
33
33
|
# separated by '-')
|
34
34
|
t.files = ["lib/**/*.rb"]
|
35
|
-
|
35
|
+
|
36
36
|
# A proc to call before running the task
|
37
37
|
# t.before = proc{ }
|
38
|
-
|
38
|
+
|
39
39
|
# A proc to call after running the task
|
40
40
|
# r.after = proc{ }
|
41
|
-
|
42
|
-
# An optional lambda to run against all objects being generated.
|
43
|
-
# Any object that the lambda returns false for will be excluded
|
44
|
-
# from documentation.
|
41
|
+
|
42
|
+
# An optional lambda to run against all objects being generated.
|
43
|
+
# Any object that the lambda returns false for will be excluded
|
44
|
+
# from documentation.
|
45
45
|
# t.verifier = lambda{|obj| true}
|
46
46
|
end
|
47
47
|
rescue LoadError
|
data/viiite.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# We require your library, mainly to have access to the VERSION number.
|
1
|
+
# We require your library, mainly to have access to the VERSION number.
|
2
2
|
# Feel free to set $version manually.
|
3
3
|
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
4
4
|
require "viiite/version"
|
@@ -9,15 +9,15 @@ $version = Viiite::Version.to_s
|
|
9
9
|
# should be correctly packaged given what you have described in the .noespec file.
|
10
10
|
#
|
11
11
|
Gem::Specification.new do |s|
|
12
|
-
|
12
|
+
|
13
13
|
################################################################### ABOUT YOUR GEM
|
14
|
-
|
15
|
-
# Gem name (required)
|
14
|
+
|
15
|
+
# Gem name (required)
|
16
16
|
s.name = "viiite"
|
17
|
-
|
17
|
+
|
18
18
|
# Gem version (required)
|
19
19
|
s.version = $version
|
20
|
-
|
20
|
+
|
21
21
|
# A short summary of this gem
|
22
22
|
#
|
23
23
|
# This is displayed in `gem list -d`.
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
# The description should be more detailed than the summary. For example,
|
29
29
|
# you might wish to copy the entire README into the description.
|
30
30
|
s.description = "Viiite brings tools to benchmark and analyze the complexity of your algorithms. \nIt has been designed as an alternative to Benchmark that let your benchmarks \nevolve smoothly from simple measures to more complex infrastructures."
|
31
|
-
|
31
|
+
|
32
32
|
# The URL of this gem home page (optional)
|
33
33
|
s.homepage = "http://blambeau.github.com/viiite"
|
34
34
|
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
# you know what you do!
|
39
39
|
#
|
40
40
|
# s.date = Time.now.strftime('%Y-%m-%d')
|
41
|
-
|
41
|
+
|
42
42
|
# The license(s) for the library. Each license must be a short name, no
|
43
43
|
# more than 64 characters.
|
44
44
|
#
|
@@ -49,35 +49,35 @@ Gem::Specification.new do |s|
|
|
49
49
|
# s.rubyforge_project = nil
|
50
50
|
|
51
51
|
################################################################### ABOUT THE AUTHORS
|
52
|
-
|
52
|
+
|
53
53
|
# The list of author names who wrote this gem.
|
54
54
|
#
|
55
55
|
# If you are providing multiple authors and multiple emails they should be
|
56
56
|
# in the same order.
|
57
|
-
#
|
57
|
+
#
|
58
58
|
s.authors = ["Bernard Lambeau"]
|
59
|
-
|
59
|
+
|
60
60
|
# Contact emails for this gem
|
61
61
|
#
|
62
62
|
# If you are providing multiple authors and multiple emails they should be
|
63
63
|
# in the same order.
|
64
64
|
#
|
65
|
-
# NOTE: Somewhat strangly this attribute is always singular!
|
65
|
+
# NOTE: Somewhat strangly this attribute is always singular!
|
66
66
|
# Don't replace by s.emails = ...
|
67
67
|
s.email = ["blambeau@gmail.com"]
|
68
68
|
|
69
69
|
################################################################### PATHS, FILES, BINARIES
|
70
|
-
|
71
|
-
# Paths in the gem to add to $LOAD_PATH when this gem is
|
70
|
+
|
71
|
+
# Paths in the gem to add to $LOAD_PATH when this gem is
|
72
72
|
# activated (required).
|
73
73
|
#
|
74
74
|
# The default 'lib' is typically sufficient.
|
75
75
|
s.require_paths = ["lib"]
|
76
|
-
|
76
|
+
|
77
77
|
# Files included in this gem.
|
78
78
|
#
|
79
79
|
# By default, we take all files included in the Manifest.txt file on root
|
80
|
-
# of the project. Entries of the manifest are interpreted as Dir[...]
|
80
|
+
# of the project. Entries of the manifest are interpreted as Dir[...]
|
81
81
|
# patterns so that lazy people may use wilcards like lib/**/*
|
82
82
|
#
|
83
83
|
here = File.expand_path(File.dirname(__FILE__))
|
@@ -107,7 +107,7 @@ Gem::Specification.new do |s|
|
|
107
107
|
# <= Less than or equal to
|
108
108
|
# ~> Approximately greater than
|
109
109
|
#
|
110
|
-
# Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
|
110
|
+
# Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
|
111
111
|
# for setting your gem version.
|
112
112
|
#
|
113
113
|
# For your requirements to other gems, remember that
|
@@ -119,19 +119,16 @@ Gem::Specification.new do |s|
|
|
119
119
|
|
120
120
|
#
|
121
121
|
# One call to add_dependency('gem_name', 'gem version requirement') for each
|
122
|
-
# runtime dependency. These gems will be installed with your gem.
|
122
|
+
# runtime dependency. These gems will be installed with your gem.
|
123
123
|
# One call to add_development_dependency('gem_name', 'gem version requirement')
|
124
124
|
# for each development dependency. These gems are required for developers
|
125
125
|
#
|
126
126
|
s.add_development_dependency("rake", "~> 0.9.2")
|
127
127
|
s.add_development_dependency("rspec", "~> 2.6.0")
|
128
|
-
s.add_development_dependency("yard", "~> 0.7.2")
|
129
|
-
s.add_development_dependency("bluecloth", "~> 2.1.0")
|
130
|
-
s.add_development_dependency("jekyll", "~> 0.11.0")
|
131
128
|
s.add_development_dependency("wlang", "~> 0.10.2")
|
132
|
-
s.add_dependency("alf", "~> 0.10.
|
133
|
-
s.add_dependency("quickl", "~> 0.4.0")
|
129
|
+
s.add_dependency("alf", "~> 0.10.1")
|
134
130
|
s.add_dependency("gnuplot", "~> 2.3.6")
|
131
|
+
s.add_dependency("json", ">= 0")
|
135
132
|
|
136
133
|
# The version of ruby required by this gem
|
137
134
|
#
|
@@ -147,18 +144,18 @@ Gem::Specification.new do |s|
|
|
147
144
|
#
|
148
145
|
# s.platform = nil
|
149
146
|
|
150
|
-
# Extensions to build when installing the gem.
|
147
|
+
# Extensions to build when installing the gem.
|
151
148
|
#
|
152
|
-
# Valid types of extensions are extconf.rb files, configure scripts
|
149
|
+
# Valid types of extensions are extconf.rb files, configure scripts
|
153
150
|
# and rakefiles or mkrf_conf files.
|
154
151
|
#
|
155
152
|
s.extensions = []
|
156
|
-
|
157
|
-
# External (to RubyGems) requirements that must be met for this gem to work.
|
153
|
+
|
154
|
+
# External (to RubyGems) requirements that must be met for this gem to work.
|
158
155
|
# It’s simply information for the user.
|
159
156
|
#
|
160
157
|
s.requirements = nil
|
161
|
-
|
158
|
+
|
162
159
|
# A message that gets displayed after the gem is installed
|
163
160
|
#
|
164
161
|
# Uncomment and set this if you want to say something to the user
|
@@ -176,7 +173,7 @@ Gem::Specification.new do |s|
|
|
176
173
|
# details.
|
177
174
|
#
|
178
175
|
# s.cert_chain = []
|
179
|
-
|
176
|
+
|
180
177
|
################################################################### RDOC
|
181
178
|
|
182
179
|
# An ARGV style array of options to RDoc
|