rubyplb 0.2.7 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/{README.rdoc → README.md} +8 -8
- data/Rakefile +2 -56
- data/VERSION +1 -1
- data/lib/rubyplb/version.rb +3 -0
- data/lib/rubyplb.rb +3 -3
- data/rubyplb.gemspec +13 -55
- metadata +33 -47
data/Gemfile
ADDED
data/{README.rdoc → README.md}
RENAMED
@@ -1,19 +1,19 @@
|
|
1
|
-
|
1
|
+
# RubyPLB
|
2
2
|
|
3
3
|
RubyPLB generates pattern lattice graphics from lists of patterns.
|
4
4
|
|
5
|
-
|
5
|
+
## Features
|
6
6
|
|
7
7
|
* Accept a text file with any number of patterns and generate a Graphviz DOT file, or a PNG/JPG/EPS image file.
|
8
8
|
* Calculate z-scores of pattern nodes and create lattice graphs with temperature colorng applied.
|
9
9
|
|
10
|
-
|
10
|
+
## Installation
|
11
11
|
|
12
12
|
Install the gem:
|
13
13
|
|
14
14
|
$sudo gem install rubyplb --source http://gemcutter.org
|
15
15
|
|
16
|
-
|
16
|
+
## How to Use
|
17
17
|
|
18
18
|
Usage:
|
19
19
|
rubyplb [options] <source file> <output file>
|
@@ -31,15 +31,15 @@ Install the gem:
|
|
31
31
|
--straight, -t: Straighten edges (available when output format is either png, jpg, or eps)
|
32
32
|
--help, -h: Show this message
|
33
33
|
|
34
|
-
|
34
|
+
## ToDo
|
35
35
|
|
36
36
|
* Multiple input formats
|
37
37
|
* Database connection capability
|
38
38
|
|
39
|
-
|
39
|
+
## Links
|
40
40
|
|
41
41
|
under construction
|
42
42
|
|
43
|
-
|
43
|
+
## Copyright
|
44
44
|
|
45
|
-
Copyright (c) 2009 Kow Kuroda and Yoichiro Hasebe. See LICENSE for details.
|
45
|
+
Copyright (c) 2009-2012 Kow Kuroda and Yoichiro Hasebe. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -1,56 +1,2 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "rubyplb"
|
8
|
-
gem.summary = %Q{TODO: one-line summary of your gem}
|
9
|
-
gem.description = %Q{TODO: longer description of your gem}
|
10
|
-
gem.email = "yohasebe@gmail.com"
|
11
|
-
gem.homepage = "http://github.com/yohasebe/rubyplb"
|
12
|
-
gem.authors = ["Yoichiro Hasebe"]
|
13
|
-
gem.add_development_dependency "thoughtbot-shoulda"
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
-
end
|
16
|
-
rescue LoadError
|
17
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
18
|
-
end
|
19
|
-
|
20
|
-
require 'rake/testtask'
|
21
|
-
Rake::TestTask.new(:test) do |test|
|
22
|
-
test.libs << 'lib' << 'test'
|
23
|
-
test.pattern = 'test/**/*_test.rb'
|
24
|
-
test.verbose = true
|
25
|
-
end
|
26
|
-
|
27
|
-
begin
|
28
|
-
require 'rcov/rcovtask'
|
29
|
-
Rcov::RcovTask.new do |test|
|
30
|
-
test.libs << 'test'
|
31
|
-
test.pattern = 'test/**/*_test.rb'
|
32
|
-
test.verbose = true
|
33
|
-
end
|
34
|
-
rescue LoadError
|
35
|
-
task :rcov do
|
36
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
task :test => :check_dependencies
|
41
|
-
|
42
|
-
task :default => :test
|
43
|
-
|
44
|
-
require 'rake/rdoctask'
|
45
|
-
Rake::RDocTask.new do |rdoc|
|
46
|
-
if File.exist?('VERSION')
|
47
|
-
version = File.read('VERSION')
|
48
|
-
else
|
49
|
-
version = ""
|
50
|
-
end
|
51
|
-
|
52
|
-
rdoc.rdoc_dir = 'rdoc'
|
53
|
-
rdoc.title = "rubyplb #{version}"
|
54
|
-
rdoc.rdoc_files.include('README*')
|
55
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
|
-
end
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.8
|
data/lib/rubyplb.rb
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
require 'ruby_graphviz'
|
10
10
|
|
11
11
|
## load ary_with_combination if not Ruby 1.9.x
|
12
|
-
unless Array.instance_methods.index(
|
13
|
-
|
14
|
-
end
|
12
|
+
# unless Array.instance_methods.index(:combination)
|
13
|
+
# require 'ary_with_combination'
|
14
|
+
# end
|
15
15
|
|
16
16
|
def showerror(sentence, severity)
|
17
17
|
if severity == 0
|
data/rubyplb.gemspec
CHANGED
@@ -1,59 +1,17 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/rubyplb/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
s.date = %q{2009-09-05}
|
13
|
-
s.default_executable = %q{rubyplb}
|
14
|
-
s.description = %q{Command line Pattern Lattice building tool written in Ruby}
|
15
|
-
s.email = %q{yohasebe@gmail.com}
|
16
|
-
s.executables = ["rubyplb"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE",
|
19
|
-
"README.rdoc"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".document",
|
23
|
-
".gitignore",
|
24
|
-
"LICENSE",
|
25
|
-
"README.rdoc",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"bin/rubyplb",
|
29
|
-
"lib/ruby_graphviz.rb",
|
30
|
-
"lib/rubyplb.rb",
|
31
|
-
"lib/trollop.rb",
|
32
|
-
"rubyplb.gemspec",
|
33
|
-
"test/rubyplb_test.rb",
|
34
|
-
"test/test_data.plb",
|
35
|
-
"test/test_helper.rb"
|
36
|
-
]
|
37
|
-
s.homepage = %q{http://github.com/yohasebe/rubyplb}
|
38
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
39
|
-
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.3.5}
|
41
|
-
s.summary = %q{Command line Pattern Lattice building tool written in Ruby}
|
42
|
-
s.test_files = [
|
43
|
-
"test/rubyplb_test.rb",
|
44
|
-
"test/test_helper.rb"
|
45
|
-
]
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Kow Kuroda", "Yoichiro Hasebe"]
|
6
|
+
gem.email = ["yohasebe@gmail.com"]
|
7
|
+
gem.summary = %q{Command line Pattern Lattice building tool written in Ruby}
|
8
|
+
gem.description = %q{Command line Pattern Lattice building tool written in Ruby.}
|
9
|
+
gem.homepage = "http://github.com/yohasebe/rubyplb"
|
46
10
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
else
|
54
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
55
|
-
end
|
56
|
-
else
|
57
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
58
|
-
end
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "rubyplb"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Rubyplb::VERSION
|
59
17
|
end
|
metadata
CHANGED
@@ -1,80 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyplb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.9
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Kow Kuroda
|
8
9
|
- Yoichiro Hasebe
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
type: :development
|
19
|
-
version_requirement:
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
-
requirements:
|
22
|
-
- - ">="
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: "0"
|
25
|
-
version:
|
26
|
-
description: Command line Pattern Lattice building tool written in Ruby
|
27
|
-
email: yohasebe@gmail.com
|
28
|
-
executables:
|
13
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
15
|
+
description: Command line Pattern Lattice building tool written in Ruby.
|
16
|
+
email:
|
17
|
+
- yohasebe@gmail.com
|
18
|
+
executables:
|
29
19
|
- rubyplb
|
30
20
|
extensions: []
|
31
|
-
|
32
|
-
|
33
|
-
- LICENSE
|
34
|
-
- README.rdoc
|
35
|
-
files:
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
36
23
|
- .document
|
37
24
|
- .gitignore
|
25
|
+
- Gemfile
|
38
26
|
- LICENSE
|
39
|
-
- README.
|
27
|
+
- README.md
|
40
28
|
- Rakefile
|
41
29
|
- VERSION
|
42
30
|
- bin/rubyplb
|
43
31
|
- lib/ruby_graphviz.rb
|
44
32
|
- lib/rubyplb.rb
|
33
|
+
- lib/rubyplb/version.rb
|
45
34
|
- lib/trollop.rb
|
46
35
|
- rubyplb.gemspec
|
47
36
|
- test/rubyplb_test.rb
|
48
37
|
- test/test_data.plb
|
49
38
|
- test/test_helper.rb
|
50
|
-
has_rdoc: true
|
51
39
|
homepage: http://github.com/yohasebe/rubyplb
|
52
40
|
licenses: []
|
53
|
-
|
54
41
|
post_install_message:
|
55
|
-
rdoc_options:
|
56
|
-
|
57
|
-
require_paths:
|
42
|
+
rdoc_options: []
|
43
|
+
require_paths:
|
58
44
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
47
|
+
requirements:
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
71
57
|
requirements: []
|
72
|
-
|
73
58
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.
|
59
|
+
rubygems_version: 1.8.24
|
75
60
|
signing_key:
|
76
61
|
specification_version: 3
|
77
62
|
summary: Command line Pattern Lattice building tool written in Ruby
|
78
|
-
test_files:
|
63
|
+
test_files:
|
79
64
|
- test/rubyplb_test.rb
|
65
|
+
- test/test_data.plb
|
80
66
|
- test/test_helper.rb
|