Skip to content

Commit

Permalink
Merge pull request #114 from DatekWireless/master
Browse files Browse the repository at this point in the history
Prepare for release
  • Loading branch information
donv committed Sep 19, 2011
2 parents 8ef63ad + 566ae09 commit a1daeb8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions assets/Rakefile
Expand Up @@ -214,15 +214,24 @@ end
# Expand JARs
Dir.chdir "#{BUNDLE_PATH}/ruby/1.8/gems" do
Dir['*'].each do |gem_lib|
next if gem_lib =~ /jdbc-sqlite/
Dir.chdir "#{gem_lib}/lib" do
Dir['**/*.jar'].each do |jar|
puts "Expanding #{gem_lib} #{jar} into #{BUNDLE_JAR}"

`jar xf #{jar}`
unless gem_lib =~ /jdbc-sqlite/
puts "Expanding #{gem_lib} #{jar} into #{BUNDLE_JAR}"
`jar xf #{jar}`
if jar == 'arjdbc/jdbc/adapter_java.jar'
service_load_code =
"require 'jruby'
Java::arjdbc.jdbc.AdapterJavaService.new.basicLoad(JRuby.runtime)
"
File.open(jar + '.rb', 'w'){|f| f << service_load_code}
File.open(jar.chomp('.jar') + '.rb', 'w'){|f| f << service_load_code} if jar.end_with?('.jar')
else
FileUtils.touch(jar + '.rb')
FileUtils.touch(jar.chomp('.jar') + '.rb') if jar.end_with?('.jar')
end
end
FileUtils.rm_f(jar)
# FileUtils.touch(jar + '.rb')
# FileUtils.touch(jar.chomp('jar') + 'rb')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruboto/version.rb
@@ -1,3 +1,3 @@
module Ruboto
VERSION = '0.4.0.rc.4'
VERSION = '0.4.0'
end

0 comments on commit a1daeb8

Please sign in to comment.