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 ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in engtagger.gemspec
4
+ gemspec
@@ -1,19 +1,19 @@
1
- = RubyPLB
1
+ # RubyPLB
2
2
 
3
3
  RubyPLB generates pattern lattice graphics from lists of patterns.
4
4
 
5
- == Features
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
- == Installation
10
+ ## Installation
11
11
 
12
12
  Install the gem:
13
13
 
14
14
  $sudo gem install rubyplb --source http://gemcutter.org
15
15
 
16
- == How to Use
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
- == ToDo
34
+ ## ToDo
35
35
 
36
36
  * Multiple input formats
37
37
  * Database connection capability
38
38
 
39
- == Links
39
+ ## Links
40
40
 
41
41
  under construction
42
42
 
43
- == Copyright
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
- require 'rubygems'
2
- require 'rake'
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.7
1
+ 0.2.8
@@ -0,0 +1,3 @@
1
+ module Rubyplb
2
+ VERSION = "0.2.9"
3
+ end
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("combination")
13
- require 'ary_with_combination'
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 |s|
7
- s.name = %q{rubyplb}
8
- s.version = "0.2.7"
9
- s.required_ruby_version = ">=1.8.6"
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Kow Kuroda", "Yoichiro Hasebe"]
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
- if s.respond_to? :specification_version then
48
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
- s.specification_version = 3
50
-
51
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
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.7
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
- date: 2009-09-05 00:00:00 +09:00
14
- default_executable: rubyplb
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: thoughtbot-shoulda
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
- extra_rdoc_files:
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.rdoc
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
- - --charset=UTF-8
57
- require_paths:
42
+ rdoc_options: []
43
+ require_paths:
58
44
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 1.8.6
64
- version:
65
- required_rubygems_version: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- version:
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.3.5
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