warbler 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +11 -0
- data/Manifest.txt +1 -2
- data/Rakefile +7 -9
- data/lib/jruby-rack-0.9.5.jar +0 -0
- data/lib/warbler/config.rb +8 -2
- data/lib/warbler/task.rb +3 -0
- data/lib/warbler/version.rb +2 -2
- data/spec/warbler/task_spec.rb +1 -1
- metadata +22 -10
- data/lib/jruby-complete-1.3.0RC1.jar +0 -0
- data/lib/jruby-rack-0.9.4.jar +0 -0
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
== 0.9.14
|
2
|
+
|
3
|
+
* So, jruby-rack is bundled for one more release. 1.0 will not contain
|
4
|
+
any jar files, I promise!
|
5
|
+
* Upgraded jruby-rack to 0.9.5.
|
6
|
+
* Unbundled jruby-complete jar in favor of new jruby-jars gem, which
|
7
|
+
can be upgraded separately.
|
8
|
+
* Skip gems which have no loaded_from attribute set
|
9
|
+
(this happened with the Authlogic gem on Edge Rails)
|
10
|
+
(thanks Laszlo Bacsi)
|
11
|
+
|
1
12
|
== 0.9.13
|
2
13
|
|
3
14
|
* RailsConf 2009 edition.
|
data/Manifest.txt
CHANGED
@@ -9,8 +9,7 @@ generators/warble
|
|
9
9
|
generators/warble/templates
|
10
10
|
generators/warble/templates/warble.rb
|
11
11
|
generators/warble/warble_generator.rb
|
12
|
-
lib/jruby-
|
13
|
-
lib/jruby-rack-0.9.4.jar
|
12
|
+
lib/jruby-rack-0.9.5.jar
|
14
13
|
lib/warbler
|
15
14
|
lib/warbler/config.rb
|
16
15
|
lib/warbler/gems.rb
|
data/Rakefile
CHANGED
@@ -8,7 +8,8 @@ begin
|
|
8
8
|
File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
|
9
9
|
require 'hoe'
|
10
10
|
require File.dirname(__FILE__) + '/lib/warbler/version'
|
11
|
-
hoe = Hoe.
|
11
|
+
hoe = Hoe.spec("warbler") do |p|
|
12
|
+
p.version = Warbler::VERSION
|
12
13
|
p.rubyforge_name = "caldersphere"
|
13
14
|
p.url = "http://caldersphere.rubyforge.org/warbler"
|
14
15
|
p.author = "Nick Sieger"
|
@@ -16,7 +17,7 @@ begin
|
|
16
17
|
p.summary = "Warbler chirpily constructs .war files of your Rails applications."
|
17
18
|
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
18
19
|
p.description = p.paragraphs_of('README.txt', 1...2).join("\n\n")
|
19
|
-
p.extra_deps
|
20
|
+
p.extra_deps += [['rake', '>= 0.7.3'], ['jruby-jars', '>= 1.3.1']]
|
20
21
|
p.test_globs = ["spec/**/*_spec.rb"]
|
21
22
|
end
|
22
23
|
hoe.spec.files = MANIFEST
|
@@ -33,11 +34,12 @@ end
|
|
33
34
|
# Hoe insists on setting task :default => :test
|
34
35
|
# !@#$ no easy way to empty the default list of prerequisites
|
35
36
|
Rake::Task['default'].send :instance_variable_set, "@prerequisites", FileList[]
|
37
|
+
Rake::Task['default'].send :instance_variable_set, "@actions", []
|
36
38
|
|
37
39
|
if defined?(JRUBY_VERSION)
|
38
40
|
task :default => :spec
|
39
41
|
else
|
40
|
-
task :default => :
|
42
|
+
task :default => :rcov_verify
|
41
43
|
end
|
42
44
|
|
43
45
|
Spec::Rake::SpecTask.new do |t|
|
@@ -47,15 +49,11 @@ end
|
|
47
49
|
|
48
50
|
Spec::Rake::SpecTask.new("spec:rcov") do |t|
|
49
51
|
t.rcov = true
|
50
|
-
t.rcov_opts << '--exclude gems/*'
|
51
52
|
end
|
52
53
|
|
53
54
|
# so we don't confuse autotest
|
54
|
-
RCov::VerifyTask.new(:
|
55
|
+
RCov::VerifyTask.new(:rcov_verify) do |t|
|
55
56
|
t.threshold = 100
|
56
57
|
end
|
57
58
|
|
58
|
-
task "spec:rcov"
|
59
|
-
rm_f "Manifest.txt"
|
60
|
-
end
|
61
|
-
task :rcov => "spec:rcov"
|
59
|
+
task :rcov_verify => "spec:rcov"
|
Binary file
|
data/lib/warbler/config.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# (c) Copyright 2007-
|
2
|
+
# (c) Copyright 2007-2009 Sun Microsystems, Inc.
|
3
3
|
# See the file LICENSES.txt included with the distribution for
|
4
4
|
# software license details.
|
5
5
|
#++
|
@@ -91,11 +91,12 @@ module Warbler
|
|
91
91
|
attr_accessor :webxml
|
92
92
|
|
93
93
|
def initialize(warbler_home = WARBLER_HOME)
|
94
|
+
@warbler_home = warbler_home
|
94
95
|
@staging_dir = File.join("tmp", "war")
|
95
96
|
@dirs = TOP_DIRS.select {|d| File.directory?(d)}
|
96
97
|
@includes = FileList[]
|
97
98
|
@excludes = FileList[]
|
98
|
-
@java_libs =
|
99
|
+
@java_libs = default_jar_files
|
99
100
|
@java_classes = FileList[]
|
100
101
|
@gems = Warbler::Gems.new
|
101
102
|
@gem_dependencies = true
|
@@ -146,6 +147,11 @@ module Warbler
|
|
146
147
|
c
|
147
148
|
end
|
148
149
|
|
150
|
+
def default_jar_files
|
151
|
+
require 'jruby-jars'
|
152
|
+
FileList["#{@warbler_home}/lib/*.jar", JRubyJars.core_jar_path, JRubyJars.stdlib_jar_path]
|
153
|
+
end
|
154
|
+
|
149
155
|
def auto_detect_frameworks
|
150
156
|
!Warbler.framework_detection || auto_detect_rails || auto_detect_merb || auto_detect_rackup
|
151
157
|
end
|
data/lib/warbler/task.rb
CHANGED
@@ -296,6 +296,9 @@ module Warbler
|
|
296
296
|
fail "gem '#{gem}' not installed" if matched.empty?
|
297
297
|
spec = matched.last
|
298
298
|
|
299
|
+
# skip gems with no load path
|
300
|
+
return if spec.loaded_from == ""
|
301
|
+
|
299
302
|
gem_name = "#{spec.name}-#{spec.version}"
|
300
303
|
unless spec.platform.nil? || spec.platform == Gem::Platform::RUBY
|
301
304
|
[spec.platform, spec.original_platform].each do |p|
|
data/lib/warbler/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#--
|
2
|
-
# (c) Copyright 2007-
|
2
|
+
# (c) Copyright 2007-2009 Sun Microsystems, Inc.
|
3
3
|
# See the file LICENSES.txt included with the distribution for
|
4
4
|
# software license details.
|
5
5
|
#++
|
6
6
|
|
7
7
|
module Warbler
|
8
|
-
VERSION = "0.9.
|
8
|
+
VERSION = "0.9.14"
|
9
9
|
end
|
data/spec/warbler/task_spec.rb
CHANGED
@@ -165,7 +165,7 @@ describe Warbler::Task do
|
|
165
165
|
it "should define a java_libs task for copying java libraries" do
|
166
166
|
define_tasks "java_libs"
|
167
167
|
Rake::Task["warble:java_libs"].invoke
|
168
|
-
file_list(%r{WEB-INF/lib/jruby
|
168
|
+
file_list(%r{WEB-INF/lib/jruby-.*\.jar$}).should_not be_empty
|
169
169
|
end
|
170
170
|
|
171
171
|
it "should define an app task for copying application files" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.14
|
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-
|
12
|
+
date: 2009-08-26 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,7 +22,21 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.7.3
|
24
24
|
version:
|
25
|
-
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jruby-jars
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.3.1
|
34
|
+
version:
|
35
|
+
description: |-
|
36
|
+
Warbler is a gem to make a .war file out of a Rails, Merb, or Rack-based
|
37
|
+
application. The intent is to provide a minimal, flexible, ruby-like way to
|
38
|
+
bundle up all of your application files for deployment to a Java application
|
39
|
+
server.
|
26
40
|
email: nick@nicksieger.com
|
27
41
|
executables:
|
28
42
|
- warble
|
@@ -41,13 +55,9 @@ files:
|
|
41
55
|
- Rakefile
|
42
56
|
- web.xml.erb
|
43
57
|
- bin/warble
|
44
|
-
- generators/warble
|
45
|
-
- generators/warble/templates
|
46
58
|
- generators/warble/templates/warble.rb
|
47
59
|
- generators/warble/warble_generator.rb
|
48
|
-
- lib/jruby-
|
49
|
-
- lib/jruby-rack-0.9.4.jar
|
50
|
-
- lib/warbler
|
60
|
+
- lib/jruby-rack-0.9.5.jar
|
51
61
|
- lib/warbler/config.rb
|
52
62
|
- lib/warbler/gems.rb
|
53
63
|
- lib/warbler/task.rb
|
@@ -71,6 +81,8 @@ files:
|
|
71
81
|
- tasks/warbler.rake
|
72
82
|
has_rdoc: true
|
73
83
|
homepage: http://caldersphere.rubyforge.org/warbler
|
84
|
+
licenses: []
|
85
|
+
|
74
86
|
post_install_message:
|
75
87
|
rdoc_options:
|
76
88
|
- --main
|
@@ -92,9 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
104
|
requirements: []
|
93
105
|
|
94
106
|
rubyforge_project: caldersphere
|
95
|
-
rubygems_version: 1.3.
|
107
|
+
rubygems_version: 1.3.5
|
96
108
|
signing_key:
|
97
|
-
specification_version:
|
109
|
+
specification_version: 3
|
98
110
|
summary: Warbler chirpily constructs .war files of your Rails applications.
|
99
111
|
test_files:
|
100
112
|
- spec/warbler/config_spec.rb
|
Binary file
|
data/lib/jruby-rack-0.9.4.jar
DELETED
Binary file
|