jdbc-h2 1.3.154 → 1.3.170

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  = jdbc-h2
2
2
 
3
- * http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
3
+ * https://github.com/jruby/activerecord-jdbc-adapter/
4
4
 
5
5
  == DESCRIPTION:
6
6
 
data/Rakefile CHANGED
@@ -1,31 +1,19 @@
1
- MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"]
1
+ require 'bundler/gem_helper'
2
2
 
3
- file "Manifest.txt" => :manifest
4
- task :manifest do
5
- File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
3
+ name = Dir["*.gemspec"].first.sub('.gemspec', '')
4
+ gem_helper = Bundler::GemHelper.new(Dir.pwd, name)
5
+ def gem_helper.version_tag
6
+ "#{name}-#{version}" # override "v#{version}"
6
7
  end
7
- Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
8
8
 
9
- $LOAD_PATH << "lib"
10
- require "jdbc/h2"
11
- begin
12
- require 'hoe'
13
- Hoe.plugin :gemcutter
14
- Hoe.plugin :rubyforge
15
- Hoe.spec("jdbc-h2") do |p|
16
- version = Jdbc::H2::VERSION
17
- version += '.' + ENV['DRIVER_REV'] if ENV['DRIVER_REV']
18
- p.version = version
19
- p.rubyforge_name = "jruby-extras"
20
- p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
21
- p.author = "Nick Sieger, Ola Bini and JRuby contributors"
22
- p.email = "nick@nicksieger.com, ola.bini@gmail.com"
23
- p.summary = "H2 JDBC driver for Java and H2/ActiveRecord-JDBC."
24
- p.changes = "Updated to H2 version #{Jdbc::H2::VERSION}."
25
- p.description = "Install this gem and require 'h2' within JRuby to load the driver."
26
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
27
- rescue LoadError
28
- puts "You really need Hoe installed to be able to package this gem"
29
- rescue => e
30
- puts "ignoring error while loading hoe: #{e.to_s}"
31
- end
9
+ version = gem_helper.send(:version)
10
+ version_tag = gem_helper.version_tag
11
+ desc "Build #{name}-#{version}.gem into the pkg directory"
12
+ task('build') { gem_helper.build_gem }
13
+
14
+ desc "Build and install #{name}-#{version}.gem into system gems"
15
+ task('install') { gem_helper.install_gem }
16
+
17
+ desc "Create tag #{version_tag} build and push #{name}-#{version}.gem to Rubygems"
18
+ task('release') { gem_helper.release_gem }
19
+
Binary file
data/lib/jdbc/h2.rb CHANGED
@@ -1,11 +1,21 @@
1
1
  module Jdbc
2
2
  module H2
3
- VERSION = "1.3.153"
4
- VERSION = "1.3.154"
3
+ VERSION = "1.3.170"
4
+
5
+ def self.driver_jar
6
+ "h2-#{VERSION}.jar"
7
+ end
8
+
9
+ def self.load_driver(method = :load)
10
+ send method, driver_jar
11
+ end
12
+
13
+ def self.driver_name
14
+ 'org.h2.Driver'
15
+ end
5
16
  end
6
17
  end
7
- if RUBY_PLATFORM =~ /java/
8
- require "h2-#{Jdbc::H2::VERSION}.jar"
9
- else
10
- warn "jdbc-h2 is only for use with JRuby"
18
+
19
+ if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
20
+ warn "Jdbc-H2 is only for use with JRuby"
11
21
  end
metadata CHANGED
@@ -1,74 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jdbc-h2
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.3.154
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.3.170
6
6
  platform: ruby
7
- authors:
8
- - Nick Sieger, Ola Bini and JRuby contributors
9
- autorequire:
7
+ authors:
8
+ - Nick Sieger, Ola Bini and JRuby contributors
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-20 00:00:00 -05:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: rubyforge
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 2.0.4
25
- type: :development
26
- version_requirements: *id001
12
+ date: 2011-06-19 00:00:00.000000000 Z
13
+ dependencies: []
27
14
  description: Install this gem and require 'h2' within JRuby to load the driver.
28
15
  email: nick@nicksieger.com, ola.bini@gmail.com
29
16
  executables: []
30
-
31
17
  extensions: []
32
-
33
- extra_rdoc_files:
34
- - Manifest.txt
35
- - README.txt
36
- - LICENSE.txt
37
- files:
38
- - Manifest.txt
39
- - Rakefile
40
- - README.txt
41
- - LICENSE.txt
42
- - lib/h2-1.3.154.jar
43
- - lib/jdbc/h2.rb
44
- has_rdoc: true
45
- homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Rakefile
21
+ - README.txt
22
+ - LICENSE.txt
23
+ - lib/h2-1.3.170.jar
24
+ - lib/jdbc/h2.rb
25
+ homepage: https://github.com/jruby/activerecord-jdbc-adapter
46
26
  licenses: []
47
-
48
- post_install_message:
49
- rdoc_options:
50
- - --main
51
- - README.txt
52
- require_paths:
53
- - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
27
+ post_install_message:
28
+ rdoc_options:
29
+ - --main
30
+ - README.txt
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ segments:
38
+ - 0
39
+ hash: 2
40
+ version: !binary |-
41
+ MA==
55
42
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
60
- required_rubygems_version: !ruby/object:Gem::Requirement
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: !binary |-
48
+ MA==
61
49
  none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- version: "0"
66
50
  requirements: []
67
-
68
51
  rubyforge_project: jruby-extras
69
- rubygems_version: 1.5.1
70
- signing_key:
52
+ rubygems_version: 1.8.24
53
+ signing_key:
71
54
  specification_version: 3
72
55
  summary: H2 JDBC driver for Java and H2/ActiveRecord-JDBC.
73
56
  test_files: []
74
-
data/Manifest.txt DELETED
@@ -1,7 +0,0 @@
1
- Manifest.txt
2
- Rakefile
3
- README.txt
4
- LICENSE.txt
5
- lib/h2-1.3.154.jar
6
- lib/jdbc
7
- lib/jdbc/h2.rb
data/lib/h2-1.3.154.jar DELETED
Binary file