sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
Updating jdbc_drivers/mysql for hoe
Bernerd Schaefer (author)
Mon Jul 14 14:06:39 -0700 2008
commit  9632859b2632d499b6b24a680e2e5ba4379dceac
tree    dfa8792e97d698728b3ce94436c7f9b5ca9301cb
parent  5ed953ad559273104ccf2d939685356154c900e3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
26
27
 
28
29
30
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
33
 
34
35
 
36
...
1
2
 
 
3
4
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
8
 
9
10
 
 
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
31
32
 
33
34
0
@@ -1,36 +1,34 @@
0
 require 'rubygems'
0
 require 'rake'
0
-require 'rake/clean'
0
-require 'rake/gempackagetask'
0
 require 'pathname'
0
 require Pathname('lib/do_jdbc/mysql_version')
0
 
0
-CLEAN.include '{pkg}/'
0
-
0
-spec = Gem::Specification.new do |s|
0
- s.name = 'do_jdbc-mysql'
0
- s.version = DataObjects::Jdbc::MySQL::VERSION
0
- s.platform = 'java'
0
- s.has_rdoc = false
0
- s.extra_rdoc_files = %w[ README GPL-LICENSE ]
0
- s.summary = 'JDBC Driver for MySQL, packaged as a Gem'
0
- s.description = s.summary
0
- s.author = ''
0
- s.email = ''
0
- s.homepage = ''
0
- s.require_path = 'lib'
0
- s.files = FileList[ '{lib}/**/*.{rb,jar}', 'Rakefile', *s.extra_rdoc_files ]
0
-end
0
 
0
-warn "#{spec.name} is only for use with JRuby" unless RUBY_PLATFORM =~ /java/
0
+ROOT = Pathname(__FILE__).dirname.expand_path
0
 
0
-task :default => [ :install ]
0
+JRUBY = (RUBY_PLATFORM =~ /java/) rescue nil
0
 
0
-Rake::GemPackageTask.new(spec) do |pkg|
0
- pkg.gem_spec = spec
0
-end
0
+AUTHOR = ""
0
+EMAIL = ""
0
+GEM_NAME = "do_jdbc-mysql"
0
+GEM_VERSION = DataObjects::Jdbc::MySQL::VERSION
0
+GEM_DEPENDENCIES = [["data_objects", GEM_VERSION]]
0
+GEM_CLEAN = ['pkg']
0
+GEM_EXTRAS = { :platform => 'java', :has_rdoc => false }
0
+
0
+PROJECT_NAME = "dorb"
0
+PROJECT_URL = "http://rubyforge.org/projects/dorb"
0
+PROJECT_DESCRIPTION = PROJECT_SUMMARY = "JDBC Driver for MySQL, packaged as a Gem"
0
+
0
+DRIVER = true
0
+
0
+require ROOT.parent.parent + 'tasks/hoe'
0
+
0
+warn "#{GEM_NAME} is only for use with JRuby" unless RUBY_PLATFORM =~ /java/
0
+
0
+task :default => [ :install ]
0
 
0
-desc "Install #{spec.name} #{spec.version}"
0
+desc "Install #{GEM_NAME} #{GEM_VERSION}"
0
 task :install => [ :package ] do
0
- sh %{jruby -S gem install --local pkg/#{spec.name}-#{spec.version} --no-update-sources}, :verbose => false
0
+ sh %{jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false
0
 end

Comments

    No one has commented yet.