bio-gem 1.3.2 → 1.3.3

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.
@@ -188,7 +188,7 @@ e.g. biogem the-perfect-gem
188
188
  --github-token [GITHUB_TOKEN] GitHub token to use for interacting with the GitHub API
189
189
  --git-remote [GIT_REMOTE] URI to set the git origin remote to
190
190
  --homepage [HOMEPAGE] the homepage for your project (defaults to the GitHub repo)
191
- --no-create-repo create the repository on GitHub
191
+ --no-create-repo dont't create the repository on GitHub
192
192
  --yard use yard for documentation
193
193
  --rdoc use rdoc for documentation
194
194
  -h, --help display this help and exit
@@ -390,7 +390,7 @@ These options are for Jeweler
390
390
  GitHub token to use for interacting with the GitHub API
391
391
  --git-remote [GIT_REMOTE] URI to set the git origin remote to
392
392
  --homepage [HOMEPAGE] the homepage for your project (defaults to the GitHub repo)
393
- --no-create-repo create the repository on GitHub (repo is created by default)
393
+ --no-create-repo don't create the repository on GitHub (repo is created by default)
394
394
 
395
395
  --yard use yard for documentation
396
396
  --rdoc use rdoc for documentation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/bin/biogem CHANGED
@@ -11,6 +11,7 @@ require 'rake'
11
11
  orig_argv = ARGV.clone
12
12
  # application_exit[:exit] exists, application_exit[:options] it depends.
13
13
  application_exit = Bio::Gem::Generator::Application.run!(*ARGV)
14
+ options = application_exit[:options]
14
15
 
15
16
  if (application_exit[:exit]==0)
16
17
  pwd = FileUtils.pwd
@@ -19,7 +20,17 @@ if (application_exit[:exit]==0)
19
20
 
20
21
  Bundler::CLI.start
21
22
  #TODO: call rake directly not from shell
22
- # print "Note: if rake gives an error try running biogem from an installed gem instead\n"
23
+
24
+ if options[:testing_framework] == :rspec
25
+ # Don't remove the following warning, as it may be encountered by anyone running
26
+ # biogem from source (especially with the --with-rspec switch)!
27
+ print "
28
+ WARNING: if rake gives an (rspec) error try running biogem from a directly
29
+ installed gem instead:
30
+ bundle exec rake install
31
+ biogem [options]
32
+ "
33
+ end
23
34
  print "\trake version:write\n"
24
35
  sh "rake version:write"
25
36
  print "\trake gemspec\n"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bio-gem"
8
- s.version = "1.3.2"
8
+ s.version = "1.3.3"
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", "Pjotr Prins"]
12
- s.date = "2012-03-20"
12
+ s.date = "2012-04-07"
13
13
  s.description = "Biogem is a software 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 .\n The basic idea is to simplify and promote a modular approach to bioinformatics software development"
14
14
  s.email = "ilpuccio.febo@gmail.com"
15
15
  s.executables = ["biogem"]
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
40
40
  "lib/bio-gem/mod/jeweler.rb",
41
41
  "lib/bio-gem/mod/jeweler/github_mixin.rb",
42
42
  "lib/bio-gem/mod/jeweler/options.rb",
43
+ "lib/bio-gem/templates/README.md",
43
44
  "lib/bio-gem/templates/README.rdoc",
44
45
  "lib/bio-gem/templates/bin/bio-plugin",
45
46
  "lib/bio-gem/templates/database",
@@ -38,14 +38,29 @@ sure to remove the bioruby-foo directory first
38
38
  rm -rf bioruby-foo
39
39
  ```
40
40
 
41
- Recommended biogem switches are --with-bin and --rspec
41
+ Recommended biogem switches are --with-bin and --rspec, e.g.
42
42
 
43
43
  ```sh
44
- bundle exec ./bin/biogem --with-bin --rspec foo
44
+ bundle exec ./bin/biogem --with-bin --rspec --cucumber foo
45
+ ```
46
+
47
+ For a foreign function interface use
48
+
49
+ ```sh
50
+ bundle exec ./bin/biogem --with-bin --rspec --cucumber --with-ffi foo
51
+ ```
52
+
53
+ There are options for ActiveRecord, Ruby on Rails etc. Naturally, you can see
54
+ all available options with
55
+
56
+ ```sh
57
+ bundle exec ./bin/biogem --help
45
58
  ```
46
59
 
47
60
  Note that we are running biogem here within bundler. This may cause a rakefile
48
- error after generating the plugin (nesting bundler is not a good idea). This can simply be fixed by running the rake by hand in the plugin directory after generation
61
+ error after generating the plugin (nesting bundler is not a good idea). This
62
+ can simply be fixed by running the rake by hand in the plugin directory after
63
+ generation
49
64
 
50
65
  ```sh
51
66
  cd bioruby-foo
@@ -54,8 +69,8 @@ error after generating the plugin (nesting bundler is not a good idea). This can
54
69
  bundle exec rake gemspec
55
70
  ```
56
71
 
57
- Alternatively, install an updated version of biogem, and run biogem without
58
- bundler with
72
+ Alternatively, install an updated version of biogem on your machine as a gem,
73
+ and run biogem without bundler with
59
74
 
60
75
  ```sh
61
76
  bundle exec rake install
@@ -62,6 +62,7 @@ module Biogem
62
62
  end
63
63
  # Always do these
64
64
  output_template_in_target_generic 'README.rdoc'
65
+ output_template_in_target_generic 'README.md'
65
66
  output_template_in_target_generic_append 'gitignore', '.gitignore'
66
67
  output_template_in_target_generic_append 'travis.yml', '.travis.yml'
67
68
  end
@@ -160,7 +160,7 @@ class Jeweler
160
160
  self[:homepage] = homepage
161
161
  end
162
162
 
163
- o.on('--no-create-repo', 'create the repository on GitHub') do
163
+ o.on('--no-create-repo', 'don\'t create the repository on GitHub') do
164
164
  self[:create_repo] = false
165
165
  end
166
166
 
@@ -0,0 +1,48 @@
1
+ # <%= project_name %>
2
+
3
+ [![Build Status](https://secure.travis-ci.org/<%= github_username %>/<%= github_repo_name %>.png)](http://travis-ci.org/<%= github_username %>/<%= github_repo_name %>)
4
+
5
+ Full description goes here
6
+
7
+ Note: this software is under active development!
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ gem install <%= project_name %>
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```ruby
18
+ require '<%= project_name %>'
19
+ ```
20
+
21
+ The API doc is online. For more code examples see the test files in
22
+ the source tree.
23
+
24
+ ## Project home page
25
+
26
+ Information on the source tree, documentation, examples, issues and
27
+ how to contribute, see
28
+
29
+ <%= homepage %>
30
+
31
+ The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.
32
+
33
+ ## Cite
34
+
35
+ If you use this software, please cite one of
36
+
37
+ * [BioRuby: bioinformatics software for the Ruby programming language](http://dx.doi.org/10.1093/bioinformatics/btq475)
38
+ * [Biogem: an effective tool-based approach for scaling up open source software development in bioinformatics](http://dx.doi.org/10.1093/bioinformatics/bts080)
39
+
40
+ ## Biogems.info
41
+
42
+ This Biogem is published at [#<%= project_name %>](http://biogems.info/index.html)
43
+
44
+ ## Copyright
45
+
46
+ Copyright (c) <%= Time.now.year %> <%= user_name %>. See LICENSE.txt for further details.
47
+
48
+
@@ -1,5 +1,9 @@
1
1
  = <%= project_name %>
2
2
 
3
+ {<img
4
+ src="https://secure.travis-ci.org/<%= github_username %>/<%= github_repo_name %>.png"
5
+ />}[http://travis-ci.org/#!/<%= github_username %>/<%= github_repo_name %>]
6
+
3
7
  Full description goes here
4
8
 
5
9
  Note: this software is under active development!
@@ -14,7 +18,7 @@ Note: this software is under active development!
14
18
 
15
19
  To use the library
16
20
 
17
- require '<%= project_name %>
21
+ require '<%= project_name %>'
18
22
 
19
23
  The API doc is online. For more code examples see also the test files in
20
24
  the source tree.
@@ -25,9 +29,15 @@ Information on the source tree, documentation, issues and how to contribute, see
25
29
 
26
30
  <%= homepage %>
27
31
 
32
+ The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.
33
+
28
34
  == Cite
29
35
 
30
- If you use this software, please cite http://dx.doi.org/10.1093/bioinformatics/btq475
36
+ If you use this software, please cite one of
37
+
38
+ * [BioRuby: bioinformatics software for the Ruby programming language](http://dx.doi.org/10.1093/bioinformatics/btq475)
39
+ * [Biogem: an effective tool-based approach for scaling up open source software development in bioinformatics](http://dx.doi.org/10.1093/bioinformatics/bts080)
40
+
31
41
 
32
42
  == Biogems.info
33
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-20 00:00:00.000000000 Z
13
+ date: 2012-04-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
- requirement: &2153251320 !ruby/object:Gem::Requirement
17
+ requirement: &2152113920 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.0.21
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153251320
25
+ version_requirements: *2152113920
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jeweler
28
- requirement: &2153250800 !ruby/object:Gem::Requirement
28
+ requirement: &2152130740 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153250800
36
+ version_requirements: *2152130740
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rdoc
39
- requirement: &2153250260 !ruby/object:Gem::Requirement
39
+ requirement: &2152146720 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2153250260
47
+ version_requirements: *2152146720
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: shoulda
50
- requirement: &2153249360 !ruby/object:Gem::Requirement
50
+ requirement: &2152142220 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2153249360
58
+ version_requirements: *2152142220
59
59
  description: ! "Biogem is a software generator for those bioinformaticans who want
60
60
  to start coding an application or a library for using/extending BioRuby core library
61
61
  and sharing it through rubygems.org .\n The basic idea is to simplify and promote
@@ -90,6 +90,7 @@ files:
90
90
  - lib/bio-gem/mod/jeweler.rb
91
91
  - lib/bio-gem/mod/jeweler/github_mixin.rb
92
92
  - lib/bio-gem/mod/jeweler/options.rb
93
+ - lib/bio-gem/templates/README.md
93
94
  - lib/bio-gem/templates/README.rdoc
94
95
  - lib/bio-gem/templates/bin/bio-plugin
95
96
  - lib/bio-gem/templates/database