genomer 0.0.10 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjhmNDZkNzhiNzZhOGY2ZWY0MWNkNDc1OWU1NDUxOWIxMzZiMDI1Mw==
5
+ data.tar.gz: !binary |-
6
+ NTAwYzViODJjMGM1MWIyNjFkM2I1MTRlY2VmMjFiNGUxMmMxODlkZg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MzNhM2MwYWM4ZGMzOWYwYTRiZjA4OTFhYjRhYTQ5YTM1Mjg4YTM4NzI4NzMy
10
+ ZjM0YzdjM2U0NDIzNjg0Zjk0YjAzYWY1MGRjOGZmMGY3MTU2MThmN2RiZDQ2
11
+ NTMyNTJhNzJmYzI2YjVlMjFjZjM3MzhjMzk2N2VhNTllMGZiMGU=
12
+ data.tar.gz: !binary |-
13
+ MmRiMDM2MTYyMWFiMDk2ODliZGY4ZWE1MjhiOWNkOTc3NjU3Mzg5MDg1Mzky
14
+ Yzc3NDc5Njg5OTkzZGIyMjhlZGE0YjhhMDFmM2Y5ODNmNTFjZTFkMDIzM2Vi
15
+ ZmI0NzdkNGRkNjA5NWRlMzc5MWEzYzczZTNlYWFmYTlmNTg1NTQ=
data/.gitignore CHANGED
@@ -44,3 +44,5 @@ pkg
44
44
  #
45
45
  # For vim:
46
46
  #*.swp
47
+
48
+ Gemfile.lock
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
+ - 1.9.2
4
5
  - 1.9.3
6
+ - 2.0.0
@@ -1,4 +1,4 @@
1
- == 0.0.9 ==
1
+ ## 0.0.9
2
2
 
3
3
  * Genomer now has different behaviour dependent on whether inside or outside
4
4
  a genomer project directory. These differences are as follows:
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  gemspec
data/README.mkd CHANGED
@@ -54,6 +54,15 @@ be made there.
54
54
 
55
55
  [github]: https://github.com/michaelbarton/genomer
56
56
 
57
+ ## Troubleshooting
58
+
59
+ Genomer specifically requires the 1.2.x version of md2man. This is because
60
+ later versions are not compatible with ruby 1.8.7 and I aim to keep genomer
61
+ backwards compatible for as long as possible. If you find that there are errors
62
+ running or developing genomer related to md2man please remove all versions from
63
+ the systems and try reinstalling genomer. If you have further problems please
64
+ contact the genomer mailing list found at the http://next.gs site.
65
+
57
66
  ## Copyright
58
67
 
59
68
  Genomer copyright (c) 2010 by Michael Barton. Genomer is licensed under the MIT
@@ -6,6 +6,10 @@ Feature: Reporting genomer errors
6
6
  Scenario: Calling a non-specified genomer plugin
7
7
  Given I run the genomer command with the arguments "init project"
8
8
  And I cd to "project"
9
+ And I overwrite "Gemfile" with:
10
+ """
11
+ gem 'genomer', :path => '../../../'
12
+ """
9
13
  When I run the genomer command with the arguments "simple"
10
14
  Then the exit status should be 1
11
15
  And the output should contain:
@@ -26,6 +26,10 @@ Feature: Listing available commands
26
26
  Scenario: Running genomer with no commands inside a project
27
27
  Given I run the genomer command with the arguments "init project"
28
28
  And I cd to "project"
29
+ And I overwrite "Gemfile" with:
30
+ """
31
+ gem 'genomer', :path => '../../../'
32
+ """
29
33
  When I run the genomer command with no arguments
30
34
  Then the exit status should be 0
31
35
  And the output should contain:
@@ -39,6 +43,10 @@ Feature: Listing available commands
39
43
  Scenario: Running genomer with the --version flag inside a project
40
44
  Given I run the genomer command with the arguments "init project"
41
45
  And I cd to "project"
46
+ And I overwrite "Gemfile" with:
47
+ """
48
+ gem 'genomer', :path => '../../../'
49
+ """
42
50
  When I run the genomer command with the arguments "--version"
43
51
  Then the exit status should be 0
44
52
  And the output should match:
@@ -50,6 +58,10 @@ Feature: Listing available commands
50
58
  Scenario: Running the genomer help command inside a genomer project
51
59
  Given I run the genomer command with the arguments "init project"
52
60
  And I cd to "project"
61
+ And I overwrite "Gemfile" with:
62
+ """
63
+ gem 'genomer', :path => '../../../'
64
+ """
53
65
  When I run the genomer command with the arguments "help"
54
66
  Then the exit status should be 0
55
67
  And the output should contain:
@@ -73,6 +85,7 @@ Feature: Listing available commands
73
85
  And I cd to "project"
74
86
  And I overwrite "Gemfile" with:
75
87
  """
88
+ gem 'genomer', :path => '../../../'
76
89
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
77
90
  """
78
91
  When I run the genomer command with the arguments "help"
@@ -51,9 +51,9 @@ Feature: Creating a new genomer project
51
51
  And a file named "project/Gemfile" should exist
52
52
  And the file "project/Gemfile" should contain exactly:
53
53
  """
54
- source :rubygems
54
+ source "https://rubygems.org"
55
55
 
56
- gem 'genomer', '~> 0.0.0'
56
+ gem 'genomer', '~> 0.1.0'
57
57
 
58
58
  """
59
59
 
@@ -18,6 +18,7 @@ Feature: Showing man pages for available commands
18
18
  And I cd to "project"
19
19
  And I overwrite "Gemfile" with:
20
20
  """
21
+ gem 'genomer', :path => '../../../'
21
22
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
22
23
  """
23
24
  When I run the genomer command with the arguments "man simple"
@@ -30,6 +31,7 @@ Feature: Showing man pages for available commands
30
31
  And I cd to "project"
31
32
  And I overwrite "Gemfile" with:
32
33
  """
34
+ gem 'genomer', :path => '../../../'
33
35
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
34
36
  """
35
37
  When I run the genomer command with the arguments "man simple subcommand"
@@ -42,6 +44,7 @@ Feature: Showing man pages for available commands
42
44
  And I cd to "project"
43
45
  And I overwrite "Gemfile" with:
44
46
  """
47
+ gem 'genomer', :path => '../../../'
45
48
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
46
49
  """
47
50
  When I run the genomer command with the arguments "man unknown"
@@ -59,6 +62,7 @@ Feature: Showing man pages for available commands
59
62
  And I cd to "project"
60
63
  And I overwrite "Gemfile" with:
61
64
  """
65
+ gem 'genomer', :path => '../../../'
62
66
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
63
67
  """
64
68
  When I run the genomer command with the arguments "man simple unknown"
@@ -9,6 +9,7 @@ Feature: Calling genomer plugins in a genomer project
9
9
  And I cd to "project"
10
10
  And I overwrite "Gemfile" with:
11
11
  """
12
+ gem 'genomer', :path => '../../../'
12
13
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
13
14
  """
14
15
  When I run the genomer command with the arguments "simple"
@@ -24,6 +25,7 @@ Feature: Calling genomer plugins in a genomer project
24
25
  And I cd to "project"
25
26
  And I overwrite "Gemfile" with:
26
27
  """
28
+ gem 'genomer', :path => '../../../'
27
29
  gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
28
30
  """
29
31
  When I run the genomer command with the arguments "simple echo some words"
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Michael Barton"]
9
9
  s.email = ["mail@michaelbarton.me.uk"]
10
- s.homepage = "http://github.com/michaelbarton/genomer"
10
+ s.homepage = "http://next.gs"
11
11
  s.summary = %Q{Build genome output files}
12
12
  s.description = %Q{Turns scaffolded contigs and annotations into a genome.}
13
13
  s.license = "MIT"
@@ -15,18 +15,18 @@ Gem::Specification.new do |s|
15
15
  s.required_rubygems_version = ">= 1.8.0"
16
16
  s.rubyforge_project = "genomer"
17
17
 
18
- s.add_dependency "rake", "~> 0.9.0"
19
- s.add_dependency "bundler", "> 1.1.0"
20
- s.add_dependency "configliere", "~> 0.4.8"
21
- s.add_dependency "scaffolder", "~> 0.4.0"
22
- s.add_dependency "scaffolder-annotation-locator", ">= 0.1.4"
18
+ s.add_dependency "rake", "~> 10.1.0"
19
+ s.add_dependency "bundler", "~> 1.3.0"
20
+ s.add_dependency "configliere", "~> 0.4.0"
21
+ s.add_dependency "scaffolder", "~> 0.5.0"
22
+ s.add_dependency "scaffolder-annotation-locator", "~> 0.2.0"
23
23
  s.add_dependency "unindent", "~> 1.0.0"
24
24
  s.add_dependency "md2man", "~> 1.2.0"
25
25
 
26
26
  # Specs
27
- s.add_development_dependency "rspec", "~> 2.7.0"
27
+ s.add_development_dependency "rspec", "~> 2.14.0"
28
28
  s.add_development_dependency "fakefs", "~> 0.4.0"
29
- s.add_development_dependency "rr", "~> 1.0.4"
29
+ s.add_development_dependency "rr", "~> 1.1.0"
30
30
  s.add_development_dependency "scaffolder-test-helpers", "~> 0.4.0"
31
31
 
32
32
  # Features
@@ -1,4 +1,5 @@
1
1
  module Genomer
2
+ require 'yaml'
2
3
  require 'genomer/error'
3
4
 
4
5
  autoload :Runtime, 'genomer/runtime'
@@ -6,7 +6,7 @@ class Genomer::Files
6
6
  def gemfile
7
7
  version = Genomer::VERSION.split('.')[0..1].<<(0).join('.')
8
8
  <<-EOF.unindent
9
- source :rubygems
9
+ source "https://rubygems.org"
10
10
 
11
11
  gem 'genomer', '~> #{version}'
12
12
  EOF
@@ -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' if defined?(YAML::ENGINE)
85
+ YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE) and Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
86
86
  Scaffolder.new(YAML.load(File.read(scaffold_file)),sequence_file)
87
87
  end
88
88
 
@@ -1,6 +1,6 @@
1
1
  require 'unindent'
2
2
  require 'tempfile'
3
- require 'md2man'
3
+ require 'md2man/engine'
4
4
 
5
5
  require 'genomer/version'
6
6
 
@@ -103,10 +103,14 @@ class Genomer::Runtime
103
103
  File.join(Genomer::Plugin.fetch(plugin).full_gem_path, 'man', page)
104
104
  end
105
105
 
106
+ def render_man(input)
107
+ Md2Man::ENGINE.render input
108
+ end
109
+
106
110
  def groffed_man_file(original_man_file)
107
111
  converted_man = Tempfile.new("genome-manpage-")
108
112
  File.open(converted_man.path,'w') do |out|
109
- out.puts Md2Man::ENGINE.render(File.read(original_man_file))
113
+ out.puts render_man(File.read(original_man_file))
110
114
  end
111
115
  converted_man
112
116
  end
@@ -1,3 +1,3 @@
1
1
  module Genomer
2
- VERSION = "0.0.10"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -300,7 +300,7 @@ describe Genomer::Runtime do
300
300
 
301
301
  File.exists?(file).should be_true
302
302
  File.read(file).should == <<-EOF.unindent
303
- source :rubygems
303
+ source "https://rubygems.org"
304
304
 
305
305
  gem 'genomer', '~> #{version.join('.')}'
306
306
  EOF
@@ -340,6 +340,14 @@ describe Genomer::Runtime do
340
340
 
341
341
  end
342
342
 
343
+ describe "#render_man" do
344
+
345
+ it "should render markdown to man page" do
346
+ subject.render_man("##Title").should_not be_nil
347
+ end
348
+
349
+ end
350
+
343
351
  describe "#man_file" do
344
352
 
345
353
  before do
metadata CHANGED
@@ -1,100 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genomer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Barton
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-04 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 0.9.0
19
+ version: 10.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 0.9.0
26
+ version: 10.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>'
31
+ - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: 1.1.0
33
+ version: 1.3.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>'
38
+ - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: 1.1.0
40
+ version: 1.3.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: configliere
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 0.4.8
47
+ version: 0.4.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 0.4.8
54
+ version: 0.4.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: scaffolder
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: 0.4.0
61
+ version: 0.5.0
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
- version: 0.4.0
68
+ version: 0.5.0
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: scaffolder-annotation-locator
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ~>
84
74
  - !ruby/object:Gem::Version
85
- version: 0.1.4
75
+ version: 0.2.0
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ~>
92
81
  - !ruby/object:Gem::Version
93
- version: 0.1.4
82
+ version: 0.2.0
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: unindent
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: md2man
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
@@ -126,23 +111,20 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rspec
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
133
- version: 2.7.0
117
+ version: 2.14.0
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
141
- version: 2.7.0
124
+ version: 2.14.0
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: fakefs
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ~>
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ~>
156
137
  - !ruby/object:Gem::Version
@@ -158,23 +139,20 @@ dependencies:
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: rr
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
143
  - - ~>
164
144
  - !ruby/object:Gem::Version
165
- version: 1.0.4
145
+ version: 1.1.0
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
150
  - - ~>
172
151
  - !ruby/object:Gem::Version
173
- version: 1.0.4
152
+ version: 1.1.0
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: scaffolder-test-helpers
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
157
  - - ~>
180
158
  - !ruby/object:Gem::Version
@@ -182,7 +160,6 @@ dependencies:
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
164
  - - ~>
188
165
  - !ruby/object:Gem::Version
@@ -190,7 +167,6 @@ dependencies:
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: cucumber
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
171
  - - ~>
196
172
  - !ruby/object:Gem::Version
@@ -198,7 +174,6 @@ dependencies:
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
178
  - - ~>
204
179
  - !ruby/object:Gem::Version
@@ -206,7 +181,6 @@ dependencies:
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: aruba
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
185
  - - ~>
212
186
  - !ruby/object:Gem::Version
@@ -214,7 +188,6 @@ dependencies:
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
192
  - - ~>
220
193
  - !ruby/object:Gem::Version
@@ -260,32 +233,28 @@ files:
260
233
  - spec/genomer/plugin_spec.rb
261
234
  - spec/genomer/runtime_spec.rb
262
235
  - spec/spec_helper.rb
263
- homepage: http://github.com/michaelbarton/genomer
236
+ homepage: http://next.gs
264
237
  licenses:
265
238
  - MIT
239
+ metadata: {}
266
240
  post_install_message:
267
241
  rdoc_options: []
268
242
  require_paths:
269
243
  - lib
270
244
  required_ruby_version: !ruby/object:Gem::Requirement
271
- none: false
272
245
  requirements:
273
246
  - - ! '>='
274
247
  - !ruby/object:Gem::Version
275
248
  version: '0'
276
- segments:
277
- - 0
278
- hash: -2033630129832100244
279
249
  required_rubygems_version: !ruby/object:Gem::Requirement
280
- none: false
281
250
  requirements:
282
251
  - - ! '>='
283
252
  - !ruby/object:Gem::Version
284
253
  version: 1.8.0
285
254
  requirements: []
286
255
  rubyforge_project: genomer
287
- rubygems_version: 1.8.25
256
+ rubygems_version: 2.0.3
288
257
  signing_key:
289
- specification_version: 3
258
+ specification_version: 4
290
259
  summary: Build genome output files
291
260
  test_files: []