lederhosen 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lederhosen.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lederhosen"
8
- s.version = "0.2.11"
8
+ s.version = "0.2.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Austin G. Davis-Richardson"]
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
41
41
  "lib/lederhosen/tasks/uc_filter.rb",
42
42
  "lib/lederhosen/tasks/uc_stats.rb",
43
43
  "lib/lederhosen/tasks/uniquify.rb",
44
+ "lib/lederhosen/tasks/version.rb",
44
45
  "lib/lederhosen/version.rb",
45
46
  "readme.md",
46
47
  "spec/cli_spec.rb",
@@ -0,0 +1,14 @@
1
+ ##
2
+ # Print version string and exit
3
+ #
4
+
5
+ module Lederhosen
6
+ class CLI
7
+
8
+ desc 'version', 'print version string and exit'
9
+
10
+ def version
11
+ puts "lederhosen-#{Lederhosen::Version::STRING}"
12
+ end
13
+ end
14
+ end
@@ -2,7 +2,7 @@ module Lederhosen
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 11
5
+ PATCH = 12
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].join('.')
8
8
  end
data/spec/cli_spec.rb CHANGED
@@ -7,6 +7,10 @@ describe Lederhosen::CLI do
7
7
  $?.success?.should be_true
8
8
  end
9
9
 
10
+ it 'should have a version command' do
11
+ `./bin/lederhosen version`.strip.should == "lederhosen-#{Lederhosen::Version::STRING}"
12
+ end
13
+
10
14
  it 'should trim reads' do
11
15
  `./bin/lederhosen trim --reads-dir=spec/data/IL*.txt.gz --out-dir=#{$test_dir}/trimmed`
12
16
  $?.success?.should be_true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lederhosen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 11
10
- version: 0.2.11
9
+ - 12
10
+ version: 0.2.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson
@@ -152,6 +152,7 @@ files:
152
152
  - lib/lederhosen/tasks/uc_filter.rb
153
153
  - lib/lederhosen/tasks/uc_stats.rb
154
154
  - lib/lederhosen/tasks/uniquify.rb
155
+ - lib/lederhosen/tasks/version.rb
155
156
  - lib/lederhosen/version.rb
156
157
  - readme.md
157
158
  - spec/cli_spec.rb