bio-gem 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bio-gem}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
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-08-05}
12
+ s.date = %q{2011-08-16}
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.}
@@ -17,9 +17,10 @@ class Jeweler
17
17
  end
18
18
  end
19
19
 
20
- alias original_project_name project_name
20
+ alias original_project_name project_name
21
21
  def project_name
22
- "bio-#{original_project_name}"
22
+ prj_name = original_project_name=~/^bio-/ ? original_project_name : "bio-#{original_project_name}"
23
+ prj_name
23
24
  end
24
25
 
25
26
  def lib_dir
@@ -97,6 +98,7 @@ class Jeweler
97
98
  #the options are defined in mod/jeweler/options.rb
98
99
  def create_files
99
100
  if options[:biogem_meta]
101
+
100
102
  unless File.exists?(target_dir) || File.directory?(target_dir)
101
103
  FileUtils.mkdir target_dir
102
104
  else
@@ -111,7 +113,7 @@ class Jeweler
111
113
  output_template_in_target '.document'
112
114
  else
113
115
  original_create_files
114
-
116
+
115
117
  if options[:biogem_test_data]
116
118
  mkdir_in_target("test") unless File.exists? "#{target_dir}/test"
117
119
  mkdir_in_target test_data_dir
@@ -123,7 +125,7 @@ class Jeweler
123
125
  # TODO: set the file as executable
124
126
  File.chmod 0655, File.join(target_dir, bin_dir, bin_name)
125
127
  end
126
-
128
+
127
129
  # Fill lib/bio-plugin.rb with some default comments
128
130
  output_template_in_target_generic 'lib', File.join(lib_dir, lib_filename)
129
131
  end #not_bio_gem_meta
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bio-gem
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raoul J.P. Bonnal
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-05 00:00:00 +02:00
13
+ date: 2011-08-16 00:00:00 +02:00
14
14
  default_executable: biogem
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- hash: -1492955173838724395
108
+ hash: -264589067735588333
109
109
  segments:
110
110
  - 0
111
111
  version: "0"