bio-logger 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. data/.travis.yml +12 -0
  2. data/Gemfile +4 -3
  3. data/Gemfile.lock +10 -7
  4. data/README.rdoc +18 -1
  5. data/Rakefile +8 -7
  6. data/VERSION +1 -1
  7. data/bio-logger.gemspec +21 -26
  8. metadata +29 -32
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby-19mode # JRuby in 1.9 mode
7
+ - rbx-19mode
8
+ # - jruby-18mode # JRuby in 1.8 mode
9
+ # - rbx-18mode
10
+
11
+ # uncomment this line if your project needs to run something other than `rake`:
12
+ # script: bundle exec rspec spec
data/Gemfile CHANGED
@@ -7,10 +7,11 @@ gem 'log4r', '>= 1.1.9'
7
7
  # Add dependencies to develop your gem here.
8
8
  # Include everything needed to run rake, tests, features, etc.
9
9
  group :development do
10
+ gem "jeweler"
10
11
  gem "shoulda", ">= 0"
11
- gem "bundler", "~> 1.0.0"
12
- gem "jeweler", "~> 1.5.2"
13
- gem "rcov", ">= 0"
12
+ gem "bundler"
13
+ # gem "rcov", ">= 0"
14
14
  # gem "bio", ">= 1.4.1"
15
15
  gem "rspec", ">= 2.3.0"
16
+ gem "rdoc", ">= 3.12"
16
17
  end
@@ -3,13 +3,16 @@ GEM
3
3
  specs:
4
4
  diff-lcs (1.1.2)
5
5
  git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
6
+ jeweler (1.8.3)
7
+ bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
+ rdoc
11
+ json (1.6.5)
10
12
  log4r (1.1.9)
11
- rake (0.9.2)
12
- rcov (0.9.9)
13
+ rake (0.9.2.2)
14
+ rdoc (3.12)
15
+ json (~> 1.4)
13
16
  rspec (2.6.0)
14
17
  rspec-core (~> 2.6.0)
15
18
  rspec-expectations (~> 2.6.0)
@@ -24,9 +27,9 @@ PLATFORMS
24
27
  ruby
25
28
 
26
29
  DEPENDENCIES
27
- bundler (~> 1.0.0)
28
- jeweler (~> 1.5.2)
30
+ bundler
31
+ jeweler
29
32
  log4r (>= 1.1.9)
30
- rcov
33
+ rdoc (>= 3.12)
31
34
  rspec (>= 2.3.0)
32
35
  shoulda
@@ -1,7 +1,9 @@
1
+ bio-logger is listed at http://biogems.info
2
+
1
3
  = bio-logger
2
4
 
3
5
  This is a plugin for nailing down problems with big data parsers,
4
- nowadays so common in bioinformatics, and sane handling of errors and
6
+ so common in bioinformatics, and sane handling of errors and
5
7
  exceptions in different situations (log-act).
6
8
 
7
9
  For example, using bio-logger, messages can be
@@ -164,6 +166,21 @@ For parsing command line options with the OptionParser:
164
166
  # Realize settings
165
167
  Bio::Log::CLI.configure('mylog')
166
168
 
169
+ == Biogems
170
+
171
+ The recommended way to use bio-logger from within a biogem is to setup a
172
+ logger in lib/bio-gemname.rb (where you replace gemname with the name of your
173
+ gem, of course) like so:
174
+
175
+ # bioruby-gemname/lib/bio-gemname.rb
176
+ require 'bio-logger'
177
+ Bio::Log::LoggerPlus.new('bio-gemname')
178
+
179
+ Then the log can be written to anywhere within the biogem's code e.g.
180
+
181
+ log = Bio::Log::LoggerPlus['bio-gemname']
182
+ log.debug "a debug message"
183
+
167
184
  == Documentation
168
185
 
169
186
  The log4r documentation and source code can be used, as this Logger
data/Rakefile CHANGED
@@ -29,17 +29,18 @@ Jeweler::RubygemsDotOrgTasks.new
29
29
  require 'rake/testtask'
30
30
  Rake::TestTask.new(:test) do |test|
31
31
  test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
32
+ # test.pattern = 'test/**/test_*.rb'
33
+ test.test_files = Dir.glob("test/**/test_*.rb")
33
34
  test.verbose = true
34
35
  Kernel.system('rspec spec/*.rb')
35
36
  end
36
37
 
37
- require 'rcov/rcovtask'
38
- Rcov::RcovTask.new do |test|
39
- test.libs << 'test'
40
- test.pattern = 'test/**/test_*.rb'
41
- test.verbose = true
42
- end
38
+ # require 'rcov/rcovtask'
39
+ # Rcov::RcovTask.new do |test|
40
+ # test.libs << 'test'
41
+ # test.pattern = 'test/**/test_*.rb'
42
+ # test.verbose = true
43
+ # end
43
44
 
44
45
  task :default => :test
45
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -4,20 +4,21 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{bio-logger}
8
- s.version = "1.0.0"
7
+ s.name = "bio-logger"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Pjotr Prins}]
12
- s.date = %q{2011-07-31}
13
- s.description = %q{Log4r wrapper for BioRuby}
14
- s.email = %q{pjotr.public01@thebird.nl}
11
+ s.authors = ["Pjotr Prins"]
12
+ s.date = "2012-04-02"
13
+ s.description = "Log4r wrapper for BioRuby"
14
+ s.email = "pjotr.public01@thebird.nl"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ ".travis.yml",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE.txt",
@@ -37,43 +38,37 @@ Gem::Specification.new do |s|
37
38
  "test/helper.rb",
38
39
  "test/test_bio-logger.rb"
39
40
  ]
40
- s.homepage = %q{https://github.com/pjotrp/bioruby-logger-plugin}
41
- s.licenses = [%q{MIT}]
42
- s.require_paths = [%q{lib}]
43
- s.rubygems_version = %q{1.8.6}
44
- s.summary = %q{Log4r wrapper with extra features for roles and sane error handling}
45
- s.test_files = [
46
- "spec/biologger_cli_spec.rb",
47
- "spec/biologger_spec.rb",
48
- "test/helper.rb",
49
- "test/test_bio-logger.rb"
50
- ]
41
+ s.homepage = "https://github.com/pjotrp/bioruby-logger-plugin"
42
+ s.licenses = ["MIT"]
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = "1.8.10"
45
+ s.summary = "Log4r wrapper with extra features for roles and sane error handling"
51
46
 
52
47
  if s.respond_to? :specification_version then
53
48
  s.specification_version = 3
54
49
 
55
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
51
  s.add_runtime_dependency(%q<log4r>, [">= 1.1.9"])
52
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
57
53
  s.add_development_dependency(%q<shoulda>, [">= 0"])
58
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
59
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
60
- s.add_development_dependency(%q<rcov>, [">= 0"])
54
+ s.add_development_dependency(%q<bundler>, [">= 0"])
61
55
  s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
56
+ s.add_development_dependency(%q<rdoc>, [">= 3.12"])
62
57
  else
63
58
  s.add_dependency(%q<log4r>, [">= 1.1.9"])
59
+ s.add_dependency(%q<jeweler>, [">= 0"])
64
60
  s.add_dependency(%q<shoulda>, [">= 0"])
65
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
67
- s.add_dependency(%q<rcov>, [">= 0"])
61
+ s.add_dependency(%q<bundler>, [">= 0"])
68
62
  s.add_dependency(%q<rspec>, [">= 2.3.0"])
63
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
69
64
  end
70
65
  else
71
66
  s.add_dependency(%q<log4r>, [">= 1.1.9"])
67
+ s.add_dependency(%q<jeweler>, [">= 0"])
72
68
  s.add_dependency(%q<shoulda>, [">= 0"])
73
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
74
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
75
- s.add_dependency(%q<rcov>, [">= 0"])
69
+ s.add_dependency(%q<bundler>, [">= 0"])
76
70
  s.add_dependency(%q<rspec>, [">= 2.3.0"])
71
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
77
72
  end
78
73
  end
79
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-31 00:00:00.000000000Z
12
+ date: 2012-04-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log4r
16
- requirement: &85295470 !ruby/object:Gem::Requirement
16
+ requirement: &20177980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.9
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *85295470
24
+ version_requirements: *20177980
25
25
  - !ruby/object:Gem::Dependency
26
- name: shoulda
27
- requirement: &85289990 !ruby/object:Gem::Requirement
26
+ name: jeweler
27
+ requirement: &20177260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,51 +32,51 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *85289990
35
+ version_requirements: *20177260
36
36
  - !ruby/object:Gem::Dependency
37
- name: bundler
38
- requirement: &85289160 !ruby/object:Gem::Requirement
37
+ name: shoulda
38
+ requirement: &20165560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.0.0
43
+ version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *85289160
46
+ version_requirements: *20165560
47
47
  - !ruby/object:Gem::Dependency
48
- name: jeweler
49
- requirement: &85288570 !ruby/object:Gem::Requirement
48
+ name: bundler
49
+ requirement: &20164820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.2
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *85288570
57
+ version_requirements: *20164820
58
58
  - !ruby/object:Gem::Dependency
59
- name: rcov
60
- requirement: &85287930 !ruby/object:Gem::Requirement
59
+ name: rspec
60
+ requirement: &20164160 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
- version: '0'
65
+ version: 2.3.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *85287930
68
+ version_requirements: *20164160
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: &85287260 !ruby/object:Gem::Requirement
70
+ name: rdoc
71
+ requirement: &20163380 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
- version: 2.3.0
76
+ version: '3.12'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *85287260
79
+ version_requirements: *20163380
80
80
  description: Log4r wrapper for BioRuby
81
81
  email: pjotr.public01@thebird.nl
82
82
  executables: []
@@ -86,6 +86,7 @@ extra_rdoc_files:
86
86
  - README.rdoc
87
87
  files:
88
88
  - .document
89
+ - .travis.yml
89
90
  - Gemfile
90
91
  - Gemfile.lock
91
92
  - LICENSE.txt
@@ -119,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  segments:
121
122
  - 0
122
- hash: 915401137
123
+ hash: 1201955996654007073
123
124
  required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  none: false
125
126
  requirements:
@@ -128,12 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  requirements: []
130
131
  rubyforge_project:
131
- rubygems_version: 1.8.6
132
+ rubygems_version: 1.8.10
132
133
  signing_key:
133
134
  specification_version: 3
134
135
  summary: Log4r wrapper with extra features for roles and sane error handling
135
- test_files:
136
- - spec/biologger_cli_spec.rb
137
- - spec/biologger_spec.rb
138
- - test/helper.rb
139
- - test/test_bio-logger.rb
136
+ test_files: []