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 ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
1
  source :rubygems
2
2
  gemspec
3
+
4
+ gem "md2man", :git => "git://github.com/sunaku/md2man.git", :ref => "c87dab11"
data/bin/genomer CHANGED
@@ -4,7 +4,6 @@ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
4
  require 'rubygems'
5
5
  require 'configliere'
6
6
  require 'genomer'
7
- require 'ronn'
8
7
 
9
8
  Settings.use :commandline
10
9
  Settings.resolve!
@@ -1,5 +1,8 @@
1
+ # GENOMER-SIMPLE-SUBCOMMAND 1
2
+
3
+ ## NAME
4
+
1
5
  genomer-simple-subcommand(1) -- A test plugin subcommand
2
- ========================================================
3
6
 
4
7
  ## SYNOPSIS
5
8
 
@@ -1,5 +1,8 @@
1
+ # GENOMER-SIMPLE 1
2
+
3
+ ## NAME
4
+
1
5
  genomer-simple(1) -- A test plugin for genomer
2
- ==============================================
3
6
 
4
7
  ## SYNOPSIS
5
8
 
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.2"
22
+ s.add_dependency "scaffolder-annotation-locator", ">= 0.1.4"
23
23
  s.add_dependency "unindent", "~> 1.0.0"
24
- s.add_dependency "ronn", "~> 0.7.3"
24
+ s.add_dependency "md2man", "~> 1.2.0"
25
25
 
26
26
  # Specs
27
27
  s.add_development_dependency "rspec", "~> 2.7.0"
@@ -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! do |attn|
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
@@ -1,7 +1,6 @@
1
1
  require 'unindent'
2
2
  require 'tempfile'
3
- require 'ronn/index'
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 Ronn::Document.new(original_man_file).convert('roff')
81
+ out.puts Md2Man::ENGINE.render(File.read(original_man_file))
83
82
  end
84
83
  converted_man
85
84
  end
@@ -1,3 +1,3 @@
1
1
  module Genomer
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,9 +1,12 @@
1
+ # GENOMER-INIT 1
2
+
3
+ ## NAME
4
+
1
5
  genomer-init(1) -- create a new genomer project
2
- ===============================================
3
6
 
4
7
  ## SYNOPSIS
5
8
 
6
- `genomer init` <project-name>
9
+ `genomer init` *project-name*
7
10
 
8
11
  ## DESCRIPTION
9
12
 
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.5
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-28 00:00:00.000000000 Z
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.2
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.2
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: ronn
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: 0.7.3
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: 0.7.3
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: 4331820328226072819
278
+ hash: -2849054132154778027
278
279
  required_rubygems_version: !ruby/object:Gem::Requirement
279
280
  none: false
280
281
  requirements: