bio-gem 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bio-gem}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Raoul J.P. Bonnal"]
12
- s.date = %q{2011-01-20}
12
+ s.date = %q{2011-02-09}
13
13
  s.default_executable = %q{biogem}
14
14
  s.description = %q{BioGem is a scaffold generator for those Bioinformaticans who want to start coding an application or a library for using/extending BioRuby core library and sharing it through rubygems.org .
15
15
  The basic idea is to simplify and promote a modular approach to the BioRuby package.}
@@ -40,7 +40,7 @@ class Jeweler
40
40
  def bin_dir
41
41
  'bin'
42
42
  end
43
-
43
+
44
44
  def bin_name
45
45
  "bio#{original_project_name}"
46
46
  end
@@ -72,8 +72,12 @@ class Jeweler
72
72
  #the options are defined in mod/jeweler/options.rb
73
73
  def create_files
74
74
  original_create_files
75
- mkdir_in_target test_data_dir if options[:biogem_test_data]
76
- mkdir_in_target db_dir if options[:biogem_db]
75
+
76
+ if options[:biogem_test_data]
77
+ mkdir_in_target("test") unless File.exists? "#{target_dir}/test"
78
+ mkdir_in_target test_data_dir
79
+ end
80
+ mkdir_in_target(db_dir) if options[:biogem_db]
77
81
  if options[:biogem_bin]
78
82
  mkdir_in_target bin_dir
79
83
  output_template_in_target_generic 'bin', File.join(bin_dir, bin_name)
@@ -1,24 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # <%= bin_name %>
4
- #
3
+ # BioRuby <%= project_name %> Plugin
4
+ # Version 0.0.0
5
5
  # Author:: <%= user_name %>
6
6
  # Copyright:: <%= Time.now.year %>
7
7
  # License:: The Ruby License
8
- #
9
-
10
- USAGE = <<EOM
11
-
12
- Describe <%= bin_name %>
13
-
14
- EOM
15
-
16
- rootpath = File.dirname(File.dirname(__FILE__))
17
- $: << File.join(rootpath,'lib')
18
-
19
- PROJECT_VERSION = File.new(File.join(rootpath,'VERSION')).read.chomp
20
8
 
21
- print "<%= bin_name %>(BioRuby <%= project_name %> Plugin) version "+PROJECT_VERSION+" Copyright (C) <%= Time.now.year %> <%= user_name %>\n\n"
9
+ USAGE = "Describe <%= bin_name %>"
22
10
 
23
11
  if ARGV.size == 0
24
12
  print USAGE
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raoul J.P. Bonnal
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-20 00:00:00 +01:00
17
+ date: 2011-02-09 00:00:00 +01:00
18
18
  default_executable: biogem
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- hash: 4099930860953493832
119
+ hash: 3133852585344624584
120
120
  segments:
121
121
  - 0
122
122
  version: "0"