do_jdbc 0.10.0-java → 0.10.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,71 @@
1
+ ## 0.10.1 (unreleased, in git)
2
+
3
+ * Switch to Jeweler for Gem building tasks (this change may be temporary).
4
+ * Switch to the newly added rake-compiler `JavaExtensionTask` for compiling
5
+ JRuby extensions, instead of our (broken) home-grown solution.
6
+
7
+ ### Changes (in detail)
8
+
9
+ * Use recursive RubyType#getRubyType for inference (Alex Coles) (commit 046c703)
10
+ * Revert "Added support for subclasses of supported types" (Alex Coles) (commit 8e64ca1)
11
+ * fixed situation where types for reader are a subclass of one the allowed types. added spec. (mkristian) (commit 67e3ef9)
12
+ * Added support for subclasses of supported types (Piotr Gega (pietia)) (commit 59923d1)
13
+ * Removed unnecessary wildcard boundation (Piotr Gega (pietia)) (commit 880c823)
14
+ * Closed resources that were not being closed when exceptional situations occures (Piotr Gega (pietia)) (commit da06fe8)
15
+ * Added helper method for closing both RS and ST object in one method (Piotr Gega (pietia)) (commit b43708f)
16
+ * StringUtil prevented from instantiating (Piotr Gega (pietia)) (commit 016ed27)
17
+ * Changed StringBuffer to StringBuilder where synchronization is not needed (Piotr Gega (pietia)) (commit 78cbc98)
18
+ * Closed not closed PS object (Closing moved to Reader) (Piotr Gega (pietia)) (commit 604218e)
19
+ * Updated Maven's configuration files (Piotr Gega (pietia)) (commit 137efd5)
20
+ * Added maven-pmd-plugin to pom.xml (Piotr Gega (pietia)) (commit bdd96e4)
21
+ * Revert "Always downcase field names" (Alex Coles) (commit 94c5936)
22
+ * return false on close if the Reader is already closed (mkristian) (commit ded1f9a)
23
+ * Remove merge conflict artefacts (Alex Coles) (commit 4e6efca)
24
+ * more optimisations: * setting array/list size where possible * avoiding object creation * precompute TRUE,FALSE,NIL and reuse them * switched one more ivar to java instance variable * replace getter/setter with direct field invocation * removed some precondition check and merge two methods (mkristian) (commit 0336dc3)
25
+ * Fix broken logic for type inference in Command (Alex Coles) (commit 8617aae)
26
+ * Refactoring to use Java fields not ivars (Alex Coles) (commit cfe59f4)
27
+ * Removed deprecated code (i.e. java.sql.Date#getHours()) (Piotr Gęga (pietia)) (commit ee4f9e0)
28
+ * Removed ability to instantiate DataObjects (Piotr Gęga (pietia)) (commit 8b91539)
29
+ * extracted JDBC URI generation as driver getJdbcUri method which is overridden for Oracle driver (Raimonds Simanovskis) (commit 3f32c3b)
30
+ * Add comment - RS.close() not needed (Piotr Gęga (pietia)) (commit 56d9a75)
31
+ * Code cleanups (Unused imports,unused ++, Forgot @param) (Piotr Gęga (pietia)) (commit 8861643)
32
+ * Close UnmarshalStream object (Piotr Gega (pietia)) (commit 90a59c2)
33
+ * Javadoc starter step (Piotr Gega (pietia)) (commit 1204f7d)
34
+ * Removed Javadoc @params for non-existent methods' parameters (Piotr Gega (pietia)) (commit 7b4560f)
35
+ * Fix Typo(Unneeded invocation on object that may be a null) (Piotr Gega (pietia)) (commit 9f45f88)
36
+ * Extlib Removal: Object to DO#full_const_get (Alex Coles) (commit 8cc2da4)
37
+ * Fix missed usage of ivar in Transaction (Alex Coles) (commit 847263f)
38
+ * Always downcase field names (Alex Coles) (commit 060e778)
39
+ * Fix for JRuby 1.4RCx: ivars/Java objects (Alex Coles) (commit 34a091e)
40
+ * Fix unquoted path in Rake compile task (Alex Coles) (commit 176926b)
41
+ * Remove unwanted cast (Alex Coles) (commit 3fa36c0)
42
+ * Teach To The Test: JRuby/MRI Fixnums (Alex Coles) (commit 677211f)
43
+ * Fix for large Bignum args (Alex Coles) (commit 37c95cd)
44
+ * Handle user/password defaults (Alex Coles) (commit ea9109d)
45
+ * Fix path handling when connecting with a URI (Peter Brant) (commit 2d7b1ae)
46
+
47
+ ## 0.10.0 2009-09-15
48
+
49
+ First release of DataObjects' comprehensive support for JRuby that should be
50
+ suitable for widespread testing.
51
+
52
+ Please also read the accompanying release notes for individual drivers.
53
+
54
+ ### Changes
55
+
56
+ * Since the test gem was released, substantial work has been done to
57
+ . Parti to Raimonds Simanovskis
58
+ (rsim) and Kristian Meier (mkristian) for substantial patches.
59
+
60
+ ### Known Issues
61
+
62
+ * Error
63
+ * URI parsing
64
+ * Reports
65
+ * Connection via JNDI is not yet fully implemented.
66
+ * Problem with PATH syntax compiling on Windows with JRuby.
67
+ http://sources.redhat.com/ml/kawa/2000/msg00311.html
68
+
69
+ ## 0.9.12 2009-05-17
70
+
71
+ * Initial testing version released
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2009 Alex Coles, Ikonoklastik Productions
1
+ Copyright (c) 2008 - 2010 Alex Coles, Ikonoklastik Productions
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.markdown CHANGED
@@ -1,26 +1,50 @@
1
- do_jdbc 'Doppio'
2
- ================
1
+ # do_jdbc 'Doppio'
3
2
 
4
- *Native JDBC Support for DataObjects*
3
+ * <http://dataobjects.info>
4
+
5
+ ## Description
6
+
7
+ Native JDBC Support for DataObjects.
8
+
9
+ ## Features/Problems
5
10
 
6
11
  do_jdbc is a gem wrapper for the common library that uses JDBC to support DO
7
12
  drivers running on the JRuby implementation.
8
13
 
9
- Testing and Installation
10
- ------------------------
14
+ ## Synopsis
15
+
16
+ This is a support library and should not be used directly.
17
+
18
+ ## Requirements
19
+
20
+ * JRuby 1.3.1 + (1.4+ recommended)
21
+ * `data_objects` gem
22
+
23
+ ## Install
24
+
25
+ To install the gem:
26
+
27
+ jruby -S gem install do_jdbc
28
+
29
+ Normally, you would not install do_jdbc directly. Instead it should be installed
30
+ when installing DO drivers on JRuby, thanks to RubyGems dependency resolution.
11
31
 
12
- Please see <http://datamapper.org/doku.php?id=jruby:contribute> for the current
13
- details on building do_jdbc from source and running specs against JDBC variant
14
- drivers.
32
+ To compile and install from source:
15
33
 
16
- Licensing and Copyright
17
- -----------------------
34
+ * Install the Java Development Kit (provided if you are on a recent version of
35
+ Mac OS X) from <http://java.sun.com>
36
+ * Install a recent version of JRuby. Ensure `jruby` is in your `PATH` and/or
37
+ you have configured the `JRUBY_HOME` environment variable to point to your
38
+ JRuby installation.
39
+ * Install `data_objects` with `jruby -S rake install`.
40
+ * Install this driver with `jruby -S rake install`.
18
41
 
19
- This code is licensed under the under an **MIT License**. Please see
20
- MIT-LICENSE.
42
+ ## Developers
21
43
 
22
- Copyright (c) 2008-2009 Alexander Coles, Ikonoklastik Productions
44
+ See the DataObjects wiki for more comprehensive information:
45
+ <http://wiki.github.com/datamapper/do/jruby>.
23
46
 
47
+ ## License
24
48
 
25
- * Contact the developer directly:
26
- - <alex@alexcolesportfolio.com> | myabc on #datamapper, #merb IRC
49
+ This code is licensed under an **MIT (X11) License**. Please see the
50
+ accompanying `LICENSE` file.
data/Rakefile CHANGED
@@ -1,19 +1,54 @@
1
+ require 'pathname'
1
2
  require 'rubygems'
2
3
  require 'rake'
3
4
  require 'rake/clean'
4
5
 
5
- require 'pathname'
6
- require 'lib/do_jdbc/version'
6
+ ROOT = Pathname(__FILE__).dirname.expand_path
7
7
 
8
- ROOT = Pathname(__FILE__).dirname.expand_path
9
- JRUBY = RUBY_PLATFORM =~ /java/
10
- WINDOWS = Gem.win_platform?
11
- SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
8
+ require ROOT + 'lib/do_jdbc/version'
12
9
 
13
- Dir['tasks/*.rake'].sort.each { |f| import f }
10
+ JRUBY = RUBY_PLATFORM =~ /java/
11
+ IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ironruby'
12
+ WINDOWS = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
13
+ SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
14
14
 
15
15
  CLEAN.include(%w[ {tmp,pkg}/ **/*.{o,so,bundle,jar,log,a,gem,dSYM,obj,pdb,exp,DS_Store,rbc,db} ext-java/target ])
16
16
 
17
17
  task :default do
18
18
  # do nothing
19
19
  end
20
+
21
+ begin
22
+ gem 'jeweler', '~> 1.4'
23
+ require 'jeweler'
24
+
25
+ Jeweler::Tasks.new do |gem|
26
+ gem.name = 'do_jdbc'
27
+ gem.version = DataObjects::Jdbc::VERSION
28
+ gem.summary = 'DataObjects JDBC support library'
29
+ gem.description = 'Provides JDBC support for usage in DO drivers for JRuby'
30
+ gem.platform = 'java'
31
+ gem.files = FileList['lib/**/*.rb', 'tasks/**/*.rake', 'LICENSE',
32
+ 'Rakefile', '*.{markdown,rdoc,txt,yml}',
33
+ 'lib/*.jar']
34
+ gem.extra_rdoc_files = FileList['README*', 'ChangeLog*', 'LICENSE']
35
+
36
+ gem.add_dependency 'data_objects', DataObjects::Jdbc::VERSION
37
+
38
+ gem.add_development_dependency 'rake-compiler', '~>0.7'
39
+
40
+ gem.has_rdoc = false
41
+ gem.rubyforge_project = 'dorb'
42
+ gem.authors = [ 'Alex Coles' ]
43
+ gem.email = 'alex@alexcolesportfolio.com'
44
+ end
45
+
46
+ Rake::Task['build'].clear_actions if Rake::Task.task_defined?('build')
47
+ task :build => [ :java, :gem ]
48
+
49
+ Jeweler::GemcutterTasks.new
50
+
51
+ FileList['tasks/**/*.rake'].each { |task| import task }
52
+ rescue LoadError
53
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
54
+ end
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Jdbc
3
- VERSION = "0.10.0"
3
+ VERSION = '0.10.1'.freeze
4
4
  end
5
5
  end
Binary file
@@ -0,0 +1,26 @@
1
+ begin
2
+ gem 'rake-compiler', '~>0.7'
3
+ require 'rake/javaextensiontask'
4
+
5
+ # Hack to avoid "allocator undefined for Proc" issue when unpacking Gems:
6
+ # gemspec provided by Jeweler uses Rake::FileList for files, test_files and
7
+ # extra_rdoc_files, and procs cannot be marshalled.
8
+ def gemspec
9
+ @clean_gemspec ||= eval("#{Rake.application.jeweler.gemspec.to_ruby}") # $SAFE = 3\n
10
+ end
11
+
12
+ Rake::JavaExtensionTask.new('do_jdbc_internal', gemspec) do |ext|
13
+ ext.ext_dir = 'src/main/java'
14
+ end
15
+
16
+ # do_jdbc is only available for JRuby: the normal behaviour of rake-compiler
17
+ # is to only chain 'compile:PLATFORM' tasks to 'compile' where PLATFORM is the
18
+ # platform of the current interpreter (i.e. 'compile:java' to 'compile' only
19
+ # if running on JRuby). However, we always want to compile for Java, even if
20
+ # running from MRI.
21
+ task 'compile:do_jdbc_internal' => ['compile:do_jdbc_internal:java']
22
+ task 'compile' => ['compile:java']
23
+
24
+ rescue LoadError
25
+ warn "To compile, install rake-compiler (gem install rake-compiler)"
26
+ end
data/tasks/release.rake CHANGED
@@ -1,75 +1,14 @@
1
- begin
2
- gem 'rubyforge', '~> 1.0.1'
3
- require 'rubyforge'
4
- rescue Exception
5
- nil
1
+ desc 'Builds all gems (native, binaries for JRuby and Windows)'
2
+ task :build_all do
3
+ `rake clean`
4
+ `rake java gem`
6
5
  end
7
6
 
8
- if defined?(RubyForge) then
9
- if defined?(GEM_SPEC) then
10
- desc 'Package and upload to RubyForge'
11
- task :release do |t|
12
- ver = ENV['VERSION'] or fail "Must supply VERSION (rake release VERSION=x.y.z)."
13
-
14
- # compare versions to avoid mistakes
15
- unless ver == GEM_SPEC.version.to_s then
16
- fail "Version mismatch (supplied and specification versions differ)."
17
- end
18
-
19
- # no rubyforge project? no release for you!
20
- if GEM_SPEC.rubyforge_project == 'TODO' or GEM_SPEC.rubyforge_project.nil? then
21
- fail "Must define rubyforge_project in your gem specification."
22
- end
23
-
24
- # instantiate a RubyForge object
25
- rf = RubyForge.new
26
-
27
- # read project info and overview
28
- notes = begin
29
- r = File.read("README.markdown")
30
- r.split(/^(.*\n\-+)/)[1..4].join.strip
31
- rescue
32
- warn "Missing README.markdown"
33
- ''
34
- end
35
-
36
- # read changes
37
- changes = begin
38
- h = File.read("HISTORY.markdown")
39
- h.split(/^(##+ .*)/)[1..2].join.strip
40
- rescue
41
- warn "Missing HISTORY.markdown"
42
- ''
43
- end
44
-
45
- # build the configuration for the release
46
- config = Hash.new
47
- config["release_notes"] = notes
48
- config["release_changes"] = changes
49
- config["preformatted"] = true
50
-
51
- # prepare configuration
52
- rf.configure config
53
-
54
- files = FileList["pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version}*.*"].to_a
55
- fail "No files found for the release." if files.empty?
56
-
57
- puts "Logging in RubyForge..."
58
- rf.login
59
-
60
- puts "Files to upload:"
61
- files.each do |f|
62
- puts " * #{f}"
63
- end
64
-
65
- puts "Releasing #{GEM_SPEC.name} version #{GEM_SPEC.version}..."
66
- rf.add_release GEM_SPEC.rubyforge_project, GEM_SPEC.name, GEM_SPEC.version, *files
67
- puts "Done."
68
- end
69
- #Rake::Task['release'].prerequisites.unshift('clean')
70
- else
71
- warn "no GEM_SPEC is found or defined. 'release' task cannot work without it."
7
+ desc 'Release all gems (native, binaries for JRuby and Windows)'
8
+ task :release_all => :build_all do
9
+ Dir["pkg/do_jdbc-#{DataObjects::Jdbc::VERSION}*.gem"].each do |gem_path|
10
+ command = "gem push #{gem_path}"
11
+ puts "Executing #{command.inspect}:"
12
+ sh command
72
13
  end
73
- else
74
- warn "rubyforge gem is required to generate releases, please install it (gem install rubyforge)."
75
14
  end
metadata CHANGED
@@ -1,105 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
- extensions: []
3
-
4
- homepage: http://github.com/datamapper/do
5
- executables: []
6
-
7
- version: !ruby/object:Gem::Version
8
- version: 0.10.0
9
- post_install_message:
10
- date: 2009-09-16 00:00:00 Z
11
- files:
12
- - lib/do_jdbc.rb
13
- - lib/do_jdbc/version.rb
14
- - tasks/gem.rake
15
- - tasks/install.rake
16
- - tasks/native.rake
17
- - tasks/release.rake
18
- - tasks/spec.rake
19
- - MIT-LICENSE
20
- - Rakefile
21
- - HISTORY.markdown
22
- - README.markdown
23
- - Manifest.txt
24
- rubygems_version: 1.3.4
25
- rdoc_options: []
26
-
27
- signing_key:
28
- cert_chain: []
29
-
30
2
  name: do_jdbc
31
- has_rdoc: false
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.1
32
5
  platform: java
33
- summary: DataObjects JDBC support library
34
- default_executable:
6
+ authors:
7
+ - Alex Coles
8
+ autorequire:
35
9
  bindir: bin
36
- licenses: []
37
-
38
- required_rubygems_version: !ruby/object:Gem::Requirement
39
- version:
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- required_ruby_version: !ruby/object:Gem::Requirement
45
- version:
46
- requirements:
47
- - - '>='
48
- - !ruby/object:Gem::Version
49
- version: "0"
50
- require_paths:
51
- - lib
52
- specification_version: 3
53
- test_files: []
10
+ cert_chain: []
54
11
 
12
+ date: 2010-01-09 00:00:00 +01:00
13
+ default_executable:
55
14
  dependencies:
56
15
  - !ruby/object:Gem::Dependency
57
- type: :runtime
58
- name: addressable
59
- version_requirement:
60
- version_requirements: !ruby/object:Gem::Requirement
61
- version:
62
- requirements:
63
- - - ~>
64
- - !ruby/object:Gem::Version
65
- version: "2.0"
66
- - !ruby/object:Gem::Dependency
67
- type: :runtime
68
- name: extlib
69
- version_requirement:
70
- version_requirements: !ruby/object:Gem::Requirement
71
- version:
72
- requirements:
73
- - - ~>
74
- - !ruby/object:Gem::Version
75
- version: 0.9.12
76
- - !ruby/object:Gem::Dependency
77
- type: :runtime
78
16
  name: data_objects
17
+ type: :runtime
79
18
  version_requirement:
80
19
  version_requirements: !ruby/object:Gem::Requirement
81
- version:
82
20
  requirements:
83
21
  - - "="
84
22
  - !ruby/object:Gem::Version
85
- version: 0.10.0
23
+ version: 0.10.1
24
+ version:
86
25
  - !ruby/object:Gem::Dependency
26
+ name: rake-compiler
87
27
  type: :development
88
- name: rspec
89
28
  version_requirement:
90
29
  version_requirements: !ruby/object:Gem::Requirement
91
- version:
92
30
  requirements:
93
31
  - - ~>
94
32
  - !ruby/object:Gem::Version
95
- version: 1.2.0
33
+ version: "0.7"
34
+ version:
96
35
  description: Provides JDBC support for usage in DO drivers for JRuby
97
36
  email: alex@alexcolesportfolio.com
98
- authors:
99
- - Alex Coles
100
- extra_rdoc_files: []
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - README.markdown
43
+ - ChangeLog.markdown
44
+ - LICENSE
45
+ files:
46
+ - lib/do_jdbc/version.rb
47
+ - lib/do_jdbc.rb
48
+ - tasks/compile.rake
49
+ - tasks/release.rake
50
+ - LICENSE
51
+ - Rakefile
52
+ - ChangeLog.markdown
53
+ - README.markdown
54
+ - lib/do_jdbc_internal.jar
55
+ has_rdoc: false
56
+ homepage:
57
+ licenses: []
101
58
 
59
+ post_install_message:
60
+ rdoc_options:
61
+ - --charset=UTF-8
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ version:
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: "0"
75
+ version:
102
76
  requirements: []
103
77
 
104
78
  rubyforge_project: dorb
105
- autorequire:
79
+ rubygems_version: 1.3.5
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: DataObjects JDBC support library
83
+ test_files: []
84
+
data/HISTORY.markdown DELETED
@@ -1,6 +0,0 @@
1
- ## 0.10.0 2009-10-15
2
-
3
- * First release that provides comprehensive support for JDBC.
4
-
5
- ## 0.9.12 2009-05-17
6
- * Initial testing version released
data/Manifest.txt DELETED
@@ -1,26 +0,0 @@
1
- MIT-LICENSE
2
- HISTORY.markdown
3
- INSTALL
4
- MIT-LICENSE
5
- Manifest.txt
6
- README.markdown
7
- README.markdown
8
- Rakefile
9
- build.xml
10
- lib/do_jdbc.rb
11
- lib/do_jdbc/date_formatter.rb
12
- lib/do_jdbc/datetime_formatter.rb
13
- lib/do_jdbc/time_formatter.rb
14
- lib/do_jdbc/version.rb
15
- lib/do_jdbc_internal.jar
16
- src/java/AbstractDataObjectsExtService.java
17
- src/java/data_objects/Command.java
18
- src/java/data_objects/Connection.java
19
- src/java/data_objects/DataObjects.java
20
- src/java/data_objects/DataObjectsUtils.java
21
- src/java/data_objects/Reader.java
22
- src/java/data_objects/Result.java
23
- src/java/data_objects/RubyType.java
24
- src/java/data_objects/Transaction.java
25
- src/java/data_objects/drivers/AbstractDriverDefinition.java
26
- src/java/data_objects/drivers/DriverDefinition.java
data/tasks/gem.rake DELETED
@@ -1,8 +0,0 @@
1
- require 'rubygems/package_task'
2
-
3
- GEM_SPEC = eval(File.read('do_jdbc.gemspec'))
4
-
5
- gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg|
6
- pkg.need_tar = false
7
- pkg.need_zip = false
8
- end
data/tasks/install.rake DELETED
@@ -1,15 +0,0 @@
1
- def sudo_gem(cmd)
2
- sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
3
- end
4
-
5
- # Installation
6
-
7
- desc "Install #{GEM_SPEC.name} #{GEM_SPEC.version}"
8
- task :install => [ :package ] do
9
- sudo_gem "install pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version} --no-update-sources"
10
- end
11
-
12
- desc "Uninstall #{GEM_SPEC.name} #{GEM_SPEC.version}"
13
- task :uninstall => [ :clean ] do
14
- sudo_gem "uninstall #{GEM_SPEC.name} -v#{GEM_SPEC.version} -I -x"
15
- end
data/tasks/native.rake DELETED
@@ -1,4 +0,0 @@
1
- if (tasks_dir = ROOT.parent + 'tasks').directory?
2
- require tasks_dir + 'ext_helper_java'
3
- setup_java_extension("#{GEM_SPEC.name}_internal", GEM_SPEC, :source_dir => 'src/main/java', :add_buildr_task => false)
4
- end
data/tasks/spec.rake DELETED
@@ -1,19 +0,0 @@
1
- # Specs
2
- require 'spec/rake/spectask'
3
-
4
- desc 'Run specifications'
5
- Spec::Rake::SpecTask.new(:spec => [ :clean, :compile ]) do |t|
6
- t.spec_opts << '--options' << ROOT + 'spec/spec.opts'
7
- t.spec_files = Pathname.glob(ENV['FILES'] || 'spec/**/*_spec.rb').map { |f| f.to_s }
8
- t.libs << 'lib'
9
-
10
- begin
11
- # RCov is run by default, except on the JRuby platform
12
- t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
13
- t.rcov_opts << '--exclude' << 'spec'
14
- t.rcov_opts << '--text-summary'
15
- t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
16
- rescue Exception
17
- # rcov not installed
18
- end
19
- end