mach5-tools 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +72 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +21 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/bin/mach5 +27 -0
- data/lib/mach5-tools/commit.rb +15 -0
- data/lib/mach5-tools/project.rb +47 -0
- data/lib/mach5-tools.rb +4 -0
- data/lib/mach5.html +69 -0
- data/spec/commit_spec.rb +22 -0
- data/spec/mach5.yml +19 -0
- data/spec/project_spec.rb +55 -0
- data/spec/spec_helper.rb +12 -0
- metadata +133 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6da84d16960c61cb322066d7861616874379b6dc
|
4
|
+
data.tar.gz: 0bf98201368612c4a2f9a0eefae10482fcd3af7f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d442b2a8339142ac185bca667b4465c3be93af2a3c1f2c68b3c574a1547468589a3bd4a3a554f6af6fdf98dda131e217ddd2f746e78d19b79c9bccc47334efb7
|
7
|
+
data.tar.gz: d061badc012cec6d4453ca6e1eb5456a28a9c5c169e72e8ef2dcd8c29d495df8fe6f726822b3f5cee51e3b2b423fcd26926f720123c487ce94b8508add985e1a
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 2.0.0"
|
13
|
+
gem "simplecov", "~> 0.8.2"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
descendants_tracker (0.0.3)
|
7
|
+
diff-lcs (1.1.3)
|
8
|
+
docile (1.1.2)
|
9
|
+
faraday (0.9.0)
|
10
|
+
multipart-post (>= 1.2, < 3)
|
11
|
+
git (1.2.6)
|
12
|
+
github_api (0.11.1)
|
13
|
+
addressable (~> 2.3)
|
14
|
+
descendants_tracker (~> 0.0.1)
|
15
|
+
faraday (~> 0.8, < 0.10)
|
16
|
+
hashie (>= 1.2)
|
17
|
+
multi_json (>= 1.7.5, < 2.0)
|
18
|
+
nokogiri (~> 1.6.0)
|
19
|
+
oauth2
|
20
|
+
hashie (2.0.5)
|
21
|
+
highline (1.6.20)
|
22
|
+
jeweler (2.0.0)
|
23
|
+
builder
|
24
|
+
bundler (>= 1.0)
|
25
|
+
git (>= 1.2.5)
|
26
|
+
github_api
|
27
|
+
highline (>= 1.6.15)
|
28
|
+
nokogiri (>= 1.5.10)
|
29
|
+
rake
|
30
|
+
rdoc
|
31
|
+
json (1.8.1)
|
32
|
+
jwt (0.1.11)
|
33
|
+
multi_json (>= 1.5)
|
34
|
+
mini_portile (0.5.2)
|
35
|
+
multi_json (1.8.4)
|
36
|
+
multi_xml (0.5.5)
|
37
|
+
multipart-post (2.0.0)
|
38
|
+
nokogiri (1.6.1)
|
39
|
+
mini_portile (~> 0.5.0)
|
40
|
+
oauth2 (0.9.3)
|
41
|
+
faraday (>= 0.8, < 0.10)
|
42
|
+
jwt (~> 0.1.8)
|
43
|
+
multi_json (~> 1.3)
|
44
|
+
multi_xml (~> 0.5)
|
45
|
+
rack (~> 1.2)
|
46
|
+
rack (1.5.2)
|
47
|
+
rake (10.1.1)
|
48
|
+
rdoc (3.12.2)
|
49
|
+
json (~> 1.4)
|
50
|
+
rspec (2.8.0)
|
51
|
+
rspec-core (~> 2.8.0)
|
52
|
+
rspec-expectations (~> 2.8.0)
|
53
|
+
rspec-mocks (~> 2.8.0)
|
54
|
+
rspec-core (2.8.0)
|
55
|
+
rspec-expectations (2.8.0)
|
56
|
+
diff-lcs (~> 1.1.2)
|
57
|
+
rspec-mocks (2.8.0)
|
58
|
+
simplecov (0.8.2)
|
59
|
+
docile (~> 1.1.0)
|
60
|
+
multi_json
|
61
|
+
simplecov-html (~> 0.8.0)
|
62
|
+
simplecov-html (0.8.0)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
bundler (~> 1.0)
|
69
|
+
jeweler (~> 2.0.0)
|
70
|
+
rdoc (~> 3.12)
|
71
|
+
rspec (~> 2.8.0)
|
72
|
+
simplecov (~> 0.8.2)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 Igor Bonadio
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
= Mach 5 Tools
|
2
|
+
|
3
|
+
It is a beta software!
|
4
|
+
|
5
|
+
Mach 5 Tools is part of Mach 5 project: https://github.com/igorbonadio/mach5
|
6
|
+
|
7
|
+
== Contributing to Mach 5 Tools
|
8
|
+
|
9
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
10
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
11
|
+
* Fork the project.
|
12
|
+
* Start a feature/bugfix branch.
|
13
|
+
* Commit and push until you are happy with your contribution.
|
14
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
15
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
16
|
+
|
17
|
+
== Copyright
|
18
|
+
|
19
|
+
Copyright (c) 2014 Igor Bonadio. See LICENSE.txt for
|
20
|
+
further details.
|
21
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "mach5-tools"
|
18
|
+
gem.homepage = "http://github.com/igorbonadio/mach5-tools"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Minimalist C++11 benchmarking framework.}
|
21
|
+
gem.description = %Q{Mach 5 is a minimalist C++11 benchmarking framework.}
|
22
|
+
gem.email = "igorbonadio@gmail.com"
|
23
|
+
gem.authors = ["Igor Bonadio"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "mach5-tools #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/mach5
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
4
|
+
|
5
|
+
require 'mach5-tools'
|
6
|
+
|
7
|
+
def db(json)
|
8
|
+
output = {}
|
9
|
+
json.each do |commit, benchmarks|
|
10
|
+
benchmarks.each do |benchmark, results|
|
11
|
+
output[benchmark] ||= {}
|
12
|
+
output[benchmark][commit] = results
|
13
|
+
end
|
14
|
+
end
|
15
|
+
return output.to_json
|
16
|
+
end
|
17
|
+
|
18
|
+
project = Mach5Tools::Project.new(File.join(Dir.pwd, 'mach5.yml'))
|
19
|
+
mach5_data = db(project.run_all)
|
20
|
+
|
21
|
+
File.open("mach5.js", 'w') do |file|
|
22
|
+
file.write("var mach5 = {};\nmach5[\"data\"] = #{mach5_data.to_s}")
|
23
|
+
end
|
24
|
+
|
25
|
+
File.open("mach5.html", 'w') do |file|
|
26
|
+
file.write(File.open(File.join(File.dirname(__FILE__), '..', 'lib', 'mach5.html')).readlines.join)
|
27
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module Mach5Tools
|
5
|
+
class Project
|
6
|
+
def initialize(filename)
|
7
|
+
@yaml = YAML.load_file(filename)
|
8
|
+
end
|
9
|
+
|
10
|
+
def commits
|
11
|
+
_commits = []
|
12
|
+
@yaml["benchmarks"].each do |commit, benchmarks|
|
13
|
+
_commits << Commit.new(commit, benchmarks)
|
14
|
+
end
|
15
|
+
return _commits
|
16
|
+
end
|
17
|
+
|
18
|
+
%w{before after}.each do |method|
|
19
|
+
define_method(method) do
|
20
|
+
@yaml[method].each do |cmd|
|
21
|
+
Kernel.system cmd
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def run(benchmarks)
|
27
|
+
results = ""
|
28
|
+
@yaml["run"].each do |cmd|
|
29
|
+
output = IO.popen "#{cmd} run #{benchmarks.join(" ")}"
|
30
|
+
results = output.readlines.join
|
31
|
+
end
|
32
|
+
JSON.parse(results)
|
33
|
+
end
|
34
|
+
|
35
|
+
def run_all
|
36
|
+
results = {}
|
37
|
+
commits.each do |commit|
|
38
|
+
commit.checkout
|
39
|
+
before
|
40
|
+
results[commit.id] = run(commit.benchmarks)
|
41
|
+
after
|
42
|
+
end
|
43
|
+
results
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
data/lib/mach5-tools.rb
ADDED
data/lib/mach5.html
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Mach5</title>
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
7
|
+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
8
|
+
<!--[if lt IE 9]>
|
9
|
+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
10
|
+
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
11
|
+
<![endif]-->
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="container" style="width:100%; height:100%;"></div>
|
15
|
+
|
16
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
17
|
+
<script src="http://code.highcharts.com/highcharts.js"></script>
|
18
|
+
<script src="mach5.js"></script>
|
19
|
+
<script>
|
20
|
+
$(function () {
|
21
|
+
var index_size = 0;
|
22
|
+
var data = []
|
23
|
+
for (var algorithm in mach5['data']) {
|
24
|
+
for (var benchmark in mach5['data'][algorithm]) {
|
25
|
+
index_size = mach5['data'][algorithm][benchmark].length;
|
26
|
+
var data_data = []
|
27
|
+
for (var i = 0; i < index_size; i++) {
|
28
|
+
data_data.push(mach5['data'][algorithm][benchmark][i]['duration']);
|
29
|
+
}
|
30
|
+
data.push({
|
31
|
+
name: algorithm + "#" + benchmark,
|
32
|
+
data: data_data
|
33
|
+
});
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
$('#container').height($(document).height());
|
38
|
+
|
39
|
+
var index = Array.apply(null, Array(index_size)).map(function (_, i) {return i;});
|
40
|
+
|
41
|
+
$('#container').highcharts({
|
42
|
+
chart: {
|
43
|
+
type: 'line'
|
44
|
+
},
|
45
|
+
title: {
|
46
|
+
text: 'Benchmark'
|
47
|
+
},
|
48
|
+
xAxis: {
|
49
|
+
categories: index,
|
50
|
+
title: {
|
51
|
+
text: 'Index'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
yAxis: {
|
55
|
+
title: {
|
56
|
+
text: 'Time (s)'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
series: data
|
60
|
+
});
|
61
|
+
|
62
|
+
$(window).resize(function() {
|
63
|
+
console.log($(window).height());
|
64
|
+
$('#container').height($(window).height());
|
65
|
+
});
|
66
|
+
});
|
67
|
+
</script>
|
68
|
+
</body>
|
69
|
+
</html>
|
data/spec/commit_spec.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
module Mach5Tools
|
4
|
+
describe Commit do
|
5
|
+
before(:each) do
|
6
|
+
@commit = Commit.new("ab7c4351a13b29ea4c21e3662f9f567ff19a854d", YAML.load_file(File.expand_path(File.dirname(__FILE__) + '/mach5.yml'))["benchmarks"]["ab7c4351a13b29ea4c21e3662f9f567ff19a854d"])
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should have a identifier" do
|
10
|
+
@commit.id.should be == "ab7c4351a13b29ea4c21e3662f9f567ff19a854d"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should have a list of benchmarks" do
|
14
|
+
@commit.benchmarks.size.should be == 5
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should checkout a specific commit" do
|
18
|
+
Kernel.should_receive(:system).with("git checkout ab7c4351a13b29ea4c21e3662f9f567ff19a854d")
|
19
|
+
@commit.checkout
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/mach5.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
benchmarks:
|
2
|
+
ab7c4351a13b29ea4c21e3662f9f567ff19a854d:
|
3
|
+
- AHiddenMarkovModelEvaluatesSequences
|
4
|
+
- AHiddenMarkovModelFindsTheBestPath
|
5
|
+
- AHiddenMarkovModelCalculatesProbabilityOfObservationsUsingForward
|
6
|
+
- AHiddenMarkovModelCalculatesProbabilityOfObservationsUsingBackward
|
7
|
+
- AHiddenMarkovModelDecodesASequenceOfObservationsUsingThePosteriorProbability
|
8
|
+
c031c8e9afe1493a81274adbdb61b81bc30ef522:
|
9
|
+
- ALinearChainCRFFindsTheBestPath
|
10
|
+
- ALinearChainCRFCalculatesProbabilityOfObservationsUsingForward
|
11
|
+
- ALinearChainCRFCalculatesProbabilityOfObservationsUsingBackward
|
12
|
+
- ALinearChainCRFDecodesASequenceOfObservationsUsingThePosteriorProbability
|
13
|
+
before:
|
14
|
+
- cd build && cmake ..
|
15
|
+
- cd build && make
|
16
|
+
run:
|
17
|
+
- ./build/benchmark/benchmark
|
18
|
+
after:
|
19
|
+
- cd build && make clean
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
module Mach5Tools
|
4
|
+
describe Project do
|
5
|
+
before(:each) do
|
6
|
+
@project = Project.new(File.expand_path(File.dirname(__FILE__) + '/mach5.yml'))
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should be created by a YAML file" do
|
10
|
+
@project.should_not be_nil
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should have a list of commands to execute before benchmarks" do
|
14
|
+
Kernel.should_receive(:system).with("cd build && cmake ..")
|
15
|
+
Kernel.should_receive(:system).with("cd build && make")
|
16
|
+
@project.before
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should have a list of commands to execute benchmarks" do
|
20
|
+
output = double("Output")
|
21
|
+
output.stub(:readlines).and_return(["{\"output\": 1}"])
|
22
|
+
IO.should_receive(:popen).with("./build/benchmark/benchmark run test1 test2").and_return(output)
|
23
|
+
@project.run(["test1", "test2"])
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should have a list of commands to execute after benchmarks" do
|
27
|
+
Kernel.should_receive(:system).with("cd build && make clean")
|
28
|
+
@project.after
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should have a list of commits" do
|
32
|
+
@project.commits.size.should be == 2
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should run all benchmarks" do
|
36
|
+
Kernel.should_receive(:system).with("git checkout ab7c4351a13b29ea4c21e3662f9f567ff19a854d")
|
37
|
+
Kernel.should_receive(:system).with("cd build && cmake ..")
|
38
|
+
Kernel.should_receive(:system).with("cd build && make")
|
39
|
+
output = double("Output")
|
40
|
+
output.stub(:readlines).and_return(["{\"output\": 1}"])
|
41
|
+
IO.should_receive(:popen).with("./build/benchmark/benchmark run AHiddenMarkovModelEvaluatesSequences AHiddenMarkovModelFindsTheBestPath AHiddenMarkovModelCalculatesProbabilityOfObservationsUsingForward AHiddenMarkovModelCalculatesProbabilityOfObservationsUsingBackward AHiddenMarkovModelDecodesASequenceOfObservationsUsingThePosteriorProbability").and_return(output)
|
42
|
+
Kernel.should_receive(:system).with("cd build && make clean")
|
43
|
+
|
44
|
+
Kernel.should_receive(:system).with("git checkout c031c8e9afe1493a81274adbdb61b81bc30ef522")
|
45
|
+
Kernel.should_receive(:system).with("cd build && cmake ..")
|
46
|
+
Kernel.should_receive(:system).with("cd build && make")
|
47
|
+
output = double("Output")
|
48
|
+
output.stub(:readlines).and_return(["{\"output\": 1}"])
|
49
|
+
IO.should_receive(:popen).with("./build/benchmark/benchmark run ALinearChainCRFFindsTheBestPath ALinearChainCRFCalculatesProbabilityOfObservationsUsingForward ALinearChainCRFCalculatesProbabilityOfObservationsUsingBackward ALinearChainCRFDecodesASequenceOfObservationsUsingThePosteriorProbability").and_return(output)
|
50
|
+
Kernel.should_receive(:system).with("cd build && make clean")
|
51
|
+
|
52
|
+
@project.run_all
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'mach5-tools'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mach5-tools
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Bonadio
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.8.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.8.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jeweler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.8.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.8.2
|
83
|
+
description: Mach 5 is a minimalist C++11 benchmarking framework.
|
84
|
+
email: igorbonadio@gmail.com
|
85
|
+
executables:
|
86
|
+
- mach5
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files:
|
89
|
+
- LICENSE.txt
|
90
|
+
- README.rdoc
|
91
|
+
files:
|
92
|
+
- .document
|
93
|
+
- .rspec
|
94
|
+
- Gemfile
|
95
|
+
- Gemfile.lock
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.rdoc
|
98
|
+
- Rakefile
|
99
|
+
- VERSION
|
100
|
+
- bin/mach5
|
101
|
+
- lib/mach5-tools.rb
|
102
|
+
- lib/mach5-tools/commit.rb
|
103
|
+
- lib/mach5-tools/project.rb
|
104
|
+
- lib/mach5.html
|
105
|
+
- spec/commit_spec.rb
|
106
|
+
- spec/mach5.yml
|
107
|
+
- spec/project_spec.rb
|
108
|
+
- spec/spec_helper.rb
|
109
|
+
homepage: http://github.com/igorbonadio/mach5-tools
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata: {}
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
requirements: []
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 2.1.11
|
130
|
+
signing_key:
|
131
|
+
specification_version: 4
|
132
|
+
summary: Minimalist C++11 benchmarking framework.
|
133
|
+
test_files: []
|