aslakhellesoy-warbler 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/generators/warble/templates/warble.rb +4 -0
- data/lib/warbler/config.rb +21 -5
- data/lib/warbler/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -9,6 +9,10 @@ Warbler::Config.new do |config|
|
|
9
9
|
# Application directories to be included in the webapp.
|
10
10
|
config.dirs = %w(app config lib log vendor tmp)
|
11
11
|
|
12
|
+
# Sets the jruby_complete.jar to package with the war. Defaults
|
13
|
+
# to jruby_complete.jar inside your JRuby installation.
|
14
|
+
# config.jruby_complete_jar = path/to/jruby_complete.jar
|
15
|
+
|
12
16
|
# Additional files/directories to include, above those in config.dirs
|
13
17
|
# config.includes = FileList["db"]
|
14
18
|
|
data/lib/warbler/config.rb
CHANGED
@@ -17,6 +17,10 @@ module Warbler
|
|
17
17
|
# Directory where files will be staged, defaults to tmp/war
|
18
18
|
attr_accessor :staging_dir
|
19
19
|
|
20
|
+
# The jruby-complete.jar to package with the war. Defaults to
|
21
|
+
# jruby-complete.jar inside current JRuby if it exists.
|
22
|
+
attr_accessor :jruby_complete_jar
|
23
|
+
|
20
24
|
# Directory where the war file will be written. Can be used to direct
|
21
25
|
# Warbler to place your war file directly in your application server's
|
22
26
|
# autodeploy directory. Defaults to the root of the Rails directory.
|
@@ -96,7 +100,8 @@ module Warbler
|
|
96
100
|
@dirs = TOP_DIRS.select {|d| File.directory?(d)}
|
97
101
|
@includes = FileList[]
|
98
102
|
@excludes = FileList[]
|
99
|
-
@java_libs = FileList[
|
103
|
+
@java_libs = FileList[]
|
104
|
+
@jruby_complete_jar = default_jruby_complete_jar
|
100
105
|
@java_classes = FileList[]
|
101
106
|
@gems = Warbler::Gems.new
|
102
107
|
@gem_dependencies = true
|
@@ -108,6 +113,19 @@ module Warbler
|
|
108
113
|
@war_name = File.basename(@rails_root)
|
109
114
|
auto_detect_frameworks
|
110
115
|
yield self if block_given?
|
116
|
+
|
117
|
+
unless File.file?(@jruby_complete_jar)
|
118
|
+
|
119
|
+
raise %{
|
120
|
+
Couldn't find #{@jruby_complete_jar}
|
121
|
+
Please do one of the following:
|
122
|
+
|
123
|
+
* Set config.jruby_complete_jar in your config/warble.rb
|
124
|
+
* Download a jruby-complete.jar and put it in your JRuby's lib dir (without version number)
|
125
|
+
* If you are running warble with a non-JRuby interpreter - set JRUBY_HOME
|
126
|
+
}
|
127
|
+
end
|
128
|
+
@java_libs += FileList[@jruby_complete_jar,"#{warbler_home}/lib/*.jar"]
|
111
129
|
@excludes += warbler_vendor_excludes(warbler_home)
|
112
130
|
@excludes += FileList["**/*.log"] if @exclude_logs
|
113
131
|
@excludes << @staging_dir
|
@@ -119,12 +137,10 @@ module Warbler
|
|
119
137
|
|
120
138
|
private
|
121
139
|
|
122
|
-
def
|
140
|
+
def default_jruby_complete_jar
|
123
141
|
jruby_home = ENV["JRUBY_HOME"]
|
124
142
|
libdir = jruby_home ? File.join(jruby_home, 'lib') : ::Config::CONFIG['libdir']
|
125
|
-
jruby_jar = File.join(libdir,
|
126
|
-
raise "#{jruby_jar} does not exist. Define JRUBY_HOME or run with JRuby." unless File.file?(jruby_jar)
|
127
|
-
jruby_jar
|
143
|
+
jruby_jar = File.join(libdir, "jruby-complete.jar")
|
128
144
|
end
|
129
145
|
|
130
146
|
def warbler_vendor_excludes(warbler_home)
|
data/lib/warbler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aslakhellesoy-warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sieger
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-23 00:00:00 -08:00
|
13
13
|
default_executable: warble
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|