genomer 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +2 -0
- data/bin/genomer +0 -1
- data/genomer-plugin-simple/man/genomer-simple-subcommand.ronn +4 -1
- data/genomer-plugin-simple/man/genomer-simple.ronn +4 -1
- data/genomer.gemspec +2 -2
- data/lib/genomer/plugin.rb +2 -4
- data/lib/genomer/runtime.rb +2 -3
- data/lib/genomer/version.rb +1 -1
- data/man/genomer-init.1.ronn +5 -2
- metadata +9 -8
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/bin/genomer
CHANGED
data/genomer.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_dependency "bundler", "~> 1.1.0"
|
20
20
|
s.add_dependency "configliere", "~> 0.4.8"
|
21
21
|
s.add_dependency "scaffolder", "~> 0.4.0"
|
22
|
-
s.add_dependency "scaffolder-annotation-locator", ">= 0.1.
|
22
|
+
s.add_dependency "scaffolder-annotation-locator", ">= 0.1.4"
|
23
23
|
s.add_dependency "unindent", "~> 1.0.0"
|
24
|
-
s.add_dependency "
|
24
|
+
s.add_dependency "md2man", "~> 1.2.0"
|
25
25
|
|
26
26
|
# Specs
|
27
27
|
s.add_development_dependency "rspec", "~> 2.7.0"
|
data/lib/genomer/plugin.rb
CHANGED
@@ -82,7 +82,7 @@ class Genomer::Plugin
|
|
82
82
|
#
|
83
83
|
# @return [Array] An array of Scaffolder::Region instances
|
84
84
|
def scaffold
|
85
|
-
YAML::ENGINE.yamler = 'syck'
|
85
|
+
YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)
|
86
86
|
Scaffolder.new(YAML.load(File.read(scaffold_file)),sequence_file)
|
87
87
|
end
|
88
88
|
|
@@ -90,9 +90,7 @@ class Genomer::Plugin
|
|
90
90
|
attns = Scaffolder::AnnotationLocator.new(
|
91
91
|
scaffold_file,sequence_file,annotation_file)
|
92
92
|
|
93
|
-
attns.sort_by
|
94
|
-
[attn.start,attn.end]
|
95
|
-
end
|
93
|
+
attns = attns.sort_by{|attn| [attn.start,attn.end] }
|
96
94
|
|
97
95
|
if value = options[:reset]
|
98
96
|
start = value.to_s =~ /^[-+]?[0-9]+$/ ? value.to_i : 1
|
data/lib/genomer/runtime.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'unindent'
|
2
2
|
require 'tempfile'
|
3
|
-
require '
|
4
|
-
require 'ronn/document'
|
3
|
+
require 'md2man'
|
5
4
|
|
6
5
|
class Genomer::Runtime
|
7
6
|
|
@@ -79,7 +78,7 @@ class Genomer::Runtime
|
|
79
78
|
def groffed_man_file(original_man_file)
|
80
79
|
converted_man = Tempfile.new("genome-manpage-")
|
81
80
|
File.open(converted_man.path,'w') do |out|
|
82
|
-
out.puts
|
81
|
+
out.puts Md2Man::ENGINE.render(File.read(original_man_file))
|
83
82
|
end
|
84
83
|
converted_man
|
85
84
|
end
|
data/lib/genomer/version.rb
CHANGED
data/man/genomer-init.1.ronn
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genomer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.1.
|
85
|
+
version: 0.1.4
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.1.
|
93
|
+
version: 0.1.4
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: unindent
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,13 +108,13 @@ dependencies:
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 1.0.0
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
111
|
+
name: md2man
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 1.2.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 1.2.0
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: rspec
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,6 +229,7 @@ extra_rdoc_files: []
|
|
229
229
|
files:
|
230
230
|
- .document
|
231
231
|
- .gitignore
|
232
|
+
- .travis.yml
|
232
233
|
- Gemfile
|
233
234
|
- LICENSE.txt
|
234
235
|
- README.rdoc
|
@@ -274,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
274
275
|
version: '0'
|
275
276
|
segments:
|
276
277
|
- 0
|
277
|
-
hash:
|
278
|
+
hash: -2849054132154778027
|
278
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
280
|
none: false
|
280
281
|
requirements:
|