warbler 1.3.2 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.travis.yml +7 -0
- data/Gemfile +2 -3
- data/Gemfile.lock +35 -0
- data/History.txt +21 -1
- data/LICENSE.txt +1 -1
- data/{README.txt → README.rdoc} +27 -13
- data/Rakefile +31 -38
- data/lib/warbler/application.rb +1 -1
- data/lib/warbler/config.rb +1 -1
- data/lib/warbler/gems.rb +1 -1
- data/lib/warbler/jar.rb +4 -11
- data/lib/warbler/pathmap_helper.rb +20 -0
- data/lib/warbler/rake_helper.rb +1 -1
- data/lib/warbler/task.rb +1 -1
- data/lib/warbler/templates/bundler.erb +0 -1
- data/lib/warbler/templates/jar.erb +3 -0
- data/lib/warbler/templates/war.erb +5 -0
- data/lib/warbler/traits/bundler.rb +46 -17
- data/lib/warbler/traits/gemspec.rb +5 -4
- data/lib/warbler/traits/jar.rb +1 -1
- data/lib/warbler/traits/merb.rb +1 -1
- data/lib/warbler/traits/nogemspec.rb +3 -2
- data/lib/warbler/traits/rack.rb +1 -1
- data/lib/warbler/traits/rails.rb +3 -2
- data/lib/warbler/traits/war.rb +31 -6
- data/lib/warbler/traits.rb +1 -1
- data/lib/warbler/version.rb +2 -2
- data/lib/warbler/war.rb +1 -1
- data/lib/warbler.rb +2 -1
- data/lib/warbler_jar.jar +0 -0
- data/spec/drb_helper.rb +12 -2
- data/spec/sample_bundler/.bundle/config +5 -0
- data/spec/sample_bundler/Gemfile +3 -0
- data/spec/sample_bundler/vendor/bundle/jruby/1.8/bin/rake +19 -0
- data/spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/bin/rake +31 -0
- data/spec/sample_bundler/vendor/bundle/ruby/1.8/bin/rake +19 -0
- data/spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/bin/rake +31 -0
- data/spec/sample_bundler/vendor/bundle/ruby/1.9.1/bin/rake +19 -0
- data/spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/bin/rake +31 -0
- data/spec/sample_jar/Rakefile +23 -0
- data/spec/sample_jar/bin/sample_jar +5 -0
- data/spec/sample_jar/sample_jar.gemspec +8 -18
- data/spec/sample_war/README +256 -0
- data/spec/sample_war/Rakefile +11 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +27 -10
- data/spec/warbler/application_spec.rb +4 -5
- data/spec/warbler/bundler_spec.rb +29 -7
- data/spec/warbler/config_spec.rb +1 -1
- data/spec/warbler/gems_spec.rb +1 -1
- data/spec/warbler/jar_spec.rb +29 -6
- data/spec/warbler/task_spec.rb +16 -7
- data/spec/warbler/traits_spec.rb +1 -1
- data/spec/warbler/war_spec.rb +1 -1
- data/warble.rb +2 -0
- data/warbler.gemspec +31 -0
- metadata +85 -39
- data/Manifest.txt +0 -93
- data/spec/sample_jar/Manifest.txt +0 -8
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--diff unified
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-
|
2
|
+
# Copyright (c) 2010-2012 Engine Yard, Inc.
|
3
3
|
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
|
4
4
|
# This source code is available under the MIT license.
|
5
5
|
# See the file LICENSE.txt for details.
|
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
require 'rubygems'
|
9
9
|
require 'spec'
|
10
|
+
require 'childprocess'
|
10
11
|
|
11
12
|
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
|
12
13
|
require 'warbler'
|
@@ -33,6 +34,9 @@ def capture(&block)
|
|
33
34
|
io.string
|
34
35
|
end
|
35
36
|
|
37
|
+
require 'rbconfig'
|
38
|
+
RUBY_EXE = File.join Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']
|
39
|
+
|
36
40
|
module Spec::Example::ExampleGroupMethods
|
37
41
|
def run_in_directory(dir)
|
38
42
|
before :each do
|
@@ -84,19 +88,32 @@ module Spec::Example::ExampleGroupMethods
|
|
84
88
|
let(:drbclient) do
|
85
89
|
drb
|
86
90
|
DRbObject.new(nil, 'druby://127.0.0.1:7890').tap {|drbclient|
|
87
|
-
|
91
|
+
ready = nil
|
92
|
+
e = nil
|
93
|
+
100.times { ((ready = drbclient.ready?) && break) rescue e = $!; sleep 0.5 }
|
94
|
+
raise e unless ready
|
88
95
|
}
|
89
96
|
end
|
90
97
|
|
91
|
-
let(:
|
92
|
-
Thread.new do
|
93
|
-
ruby "-I#{Warbler::WARBLER_HOME}/lib", File.join(@orig_dir, 'spec/drb_helper.rb')
|
94
|
-
end
|
95
|
-
end
|
98
|
+
let(:drb_helper_args) { ["-I#{Warbler::WARBLER_HOME}/lib", File.join(@orig_dir, 'spec/drb_helper.rb')] }
|
96
99
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
+
if defined?(JRUBY_VERSION)
|
101
|
+
let(:drb) do
|
102
|
+
Thread.new do
|
103
|
+
ruby *drb_helper_args
|
104
|
+
end
|
105
|
+
end
|
106
|
+
after :each do
|
107
|
+
drbclient.stop
|
108
|
+
drb.join
|
109
|
+
end
|
110
|
+
else
|
111
|
+
let(:drb) do
|
112
|
+
ChildProcess.build(FileUtils::RUBY, *drb_helper_args).tap {|d| d.start }
|
113
|
+
end
|
114
|
+
after :each do
|
115
|
+
drb.stop
|
116
|
+
end
|
100
117
|
end
|
101
118
|
end
|
102
119
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-
|
2
|
+
# Copyright (c) 2010-2012 Engine Yard, Inc.
|
3
3
|
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
|
4
4
|
# This source code is available under the MIT license.
|
5
5
|
# See the file LICENSE.txt for details.
|
@@ -76,19 +76,18 @@ describe Warbler::Application do
|
|
76
76
|
|
77
77
|
it "should define a pluginize task for adding the tasks to a Rails application" do
|
78
78
|
ARGV.unshift "pluginize"
|
79
|
-
Warbler::Application.new.run
|
79
|
+
silence { Warbler::Application.new.run }
|
80
80
|
File.exist?("vendor/plugins/warbler/tasks/warbler.rake").should be_true
|
81
81
|
end
|
82
82
|
|
83
83
|
it "should provide a means to load the project Rakefile" do
|
84
|
-
Warbler::Application.new.load_project_rakefile
|
84
|
+
silence { Warbler::Application.new.load_project_rakefile }
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
88
|
describe Warbler::Application do
|
89
89
|
it "should report Warbler version with --version" do
|
90
|
-
|
91
|
-
output = `#{ruby} -rubygems -Ilib -S bin/warble --version`.chomp
|
90
|
+
output = `#{RUBY_EXE} -Ilib -S bin/warble --version`
|
92
91
|
output.should =~ /warbler/i
|
93
92
|
output.should =~ /#{Warbler::VERSION}/
|
94
93
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-
|
2
|
+
# Copyright (c) 2010-2012 Engine Yard, Inc.
|
3
3
|
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
|
4
4
|
# This source code is available under the MIT license.
|
5
5
|
# See the file LICENSE.txt for details.
|
@@ -62,18 +62,24 @@ describe Warbler::Jar, "with Bundler" do
|
|
62
62
|
|
63
63
|
it "works with :git entries in Gemfiles" do
|
64
64
|
File.open("Gemfile", "w") {|f| f << "gem 'warbler', :git => '#{Warbler::WARBLER_HOME}'\n"}
|
65
|
-
|
65
|
+
`#{RUBY_EXE} -S bundle install --local`
|
66
66
|
jar.apply(config)
|
67
67
|
file_list(%r{WEB-INF/gems/bundler/gems/warbler[^/]*/lib/warbler/version\.rb}).should_not be_empty
|
68
68
|
file_list(%r{WEB-INF/gems/bundler/gems/warbler[^/]*/warbler.gemspec}).should_not be_empty
|
69
69
|
end
|
70
70
|
|
71
|
+
it "bundles only the gemspec for :git entries that are excluded" do
|
72
|
+
File.open("Gemfile", "w") {|f| f << "gem 'rake'\ngroup :test do\ngem 'warbler', :git => '#{Warbler::WARBLER_HOME}'\nend\n"}
|
73
|
+
`#{RUBY_EXE} -S bundle install --local`
|
74
|
+
jar.apply(config)
|
75
|
+
file_list(%r{WEB-INF/gems/bundler/gems/warbler[^/]*/lib/warbler/version\.rb}).should be_empty
|
76
|
+
file_list(%r{WEB-INF/gems/bundler/gems/warbler[^/]*/warbler.gemspec}).should_not be_empty
|
77
|
+
end
|
78
|
+
|
71
79
|
it "does not work with :path entries in Gemfiles" do
|
72
80
|
File.open("Gemfile", "w") {|f| f << "gem 'warbler', :path => '#{Warbler::WARBLER_HOME}'\n"}
|
73
|
-
|
74
|
-
|
75
|
-
jar.apply(config)
|
76
|
-
end
|
81
|
+
`#{RUBY_EXE} -S bundle install --local`
|
82
|
+
silence { jar.apply(config) }
|
77
83
|
file_list(%r{warbler}).should be_empty
|
78
84
|
end
|
79
85
|
|
@@ -93,6 +99,12 @@ describe Warbler::Jar, "with Bundler" do
|
|
93
99
|
contents.should =~ /'development:test'/
|
94
100
|
end
|
95
101
|
|
102
|
+
it "adds BUNDLE_GEMFILE to init.rb" do
|
103
|
+
jar.add_init_file(config)
|
104
|
+
contents = jar.contents('META-INF/init.rb')
|
105
|
+
contents.should =~ Regexp.new(Regexp.quote("ENV['BUNDLE_GEMFILE'] = $servlet_context.getRealPath('/WEB-INF/Gemfile')"))
|
106
|
+
end
|
107
|
+
|
96
108
|
it "uses ENV['BUNDLE_GEMFILE'] if set" do
|
97
109
|
mv "Gemfile", "Special-Gemfile"
|
98
110
|
ENV['BUNDLE_GEMFILE'] = "Special-Gemfile"
|
@@ -106,10 +118,20 @@ describe Warbler::Jar, "with Bundler" do
|
|
106
118
|
|
107
119
|
it "works with :git entries in Gemfiles" do
|
108
120
|
File.open("Gemfile", "w") {|f| f << "gem 'warbler', :git => '#{Warbler::WARBLER_HOME}'\n"}
|
109
|
-
|
121
|
+
`#{RUBY_EXE} -S bundle install --local`
|
110
122
|
jar.apply(config)
|
111
123
|
file_list(%r{^bundler/gems/warbler[^/]*/lib/warbler/version\.rb}).should_not be_empty
|
112
124
|
file_list(%r{^bundler/gems/warbler[^/]*/warbler.gemspec}).should_not be_empty
|
125
|
+
jar.add_init_file(config)
|
126
|
+
contents = jar.contents('META-INF/init.rb')
|
127
|
+
contents.should =~ /ENV\['BUNDLE_GEMFILE'\] = File.expand_path(.*, __FILE__)/
|
128
|
+
end
|
129
|
+
|
130
|
+
it "adds BUNDLE_GEMFILE to init.rb" do
|
131
|
+
File.open("Gemfile", "w") {|f| f << "source :rubygems" }
|
132
|
+
jar.add_init_file(config)
|
133
|
+
contents = jar.contents('META-INF/init.rb')
|
134
|
+
contents.should =~ /ENV\['BUNDLE_GEMFILE'\] = File.expand_path(.*, __FILE__)/
|
113
135
|
end
|
114
136
|
end
|
115
137
|
|
data/spec/warbler/config_spec.rb
CHANGED
data/spec/warbler/gems_spec.rb
CHANGED
data/spec/warbler/jar_spec.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-
|
2
|
+
# Copyright (c) 2010-2012 Engine Yard, Inc.
|
3
3
|
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
|
4
4
|
# This source code is available under the MIT license.
|
5
5
|
# See the file LICENSE.txt for details.
|
@@ -400,12 +400,10 @@ describe Warbler::Jar do
|
|
400
400
|
spec.stub!(:loaded_from).and_return "hpricot.gemspec"
|
401
401
|
spec.stub!(:files).and_return ["Rakefile"]
|
402
402
|
spec.stub!(:dependencies).and_return []
|
403
|
-
Gem.
|
404
|
-
|
405
|
-
[spec]
|
406
|
-
end
|
403
|
+
dep = Gem::Dependency.new("hpricot", "> 0.6")
|
404
|
+
dep.should_receive(:to_spec).and_return spec
|
407
405
|
use_config do |config|
|
408
|
-
config.gems = [
|
406
|
+
config.gems = [dep]
|
409
407
|
end
|
410
408
|
silence { jar.apply(config) }
|
411
409
|
end
|
@@ -431,6 +429,27 @@ describe Warbler::Jar do
|
|
431
429
|
end
|
432
430
|
end
|
433
431
|
|
432
|
+
context "with embedded jar files" do
|
433
|
+
before :each do
|
434
|
+
touch FileList["app/sample.jar", "lib/existing.jar"]
|
435
|
+
end
|
436
|
+
after :each do
|
437
|
+
rm_f FileList["app/sample.jar", "lib/existing.jar"]
|
438
|
+
end
|
439
|
+
|
440
|
+
it "moves jar files to WEB-INF/lib" do
|
441
|
+
jar.apply(config)
|
442
|
+
file_list(%r{WEB-INF/lib/app-sample.jar}).should_not be_empty
|
443
|
+
file_list(%r{WEB-INF/app/sample.jar}).should_not be_empty
|
444
|
+
end
|
445
|
+
|
446
|
+
it "leaves jar files alone that are already in WEB-INF/lib" do
|
447
|
+
jar.apply(config)
|
448
|
+
file_list(%r{WEB-INF/lib/lib-existing.jar}).should be_empty
|
449
|
+
file_list(%r{WEB-INF/lib/existing.jar}).should_not be_empty
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
434
453
|
context "with the executable feature" do
|
435
454
|
it "adds a WarMain class" do
|
436
455
|
use_config do |config|
|
@@ -505,6 +524,7 @@ describe Warbler::Jar do
|
|
505
524
|
end
|
506
525
|
|
507
526
|
it "sets the jruby min and max runtimes to 1" do
|
527
|
+
ENV["RAILS_ENV"] = nil
|
508
528
|
config.webxml.booter.should == :rails
|
509
529
|
config.webxml.jruby.min.runtimes.should == 1
|
510
530
|
config.webxml.jruby.max.runtimes.should == 1
|
@@ -521,6 +541,7 @@ describe Warbler::Jar do
|
|
521
541
|
end
|
522
542
|
|
523
543
|
it "adds RAILS_ENV to init.rb" do
|
544
|
+
ENV["RAILS_ENV"] = nil
|
524
545
|
use_config do |config|
|
525
546
|
config.webxml.booter = :rails
|
526
547
|
end
|
@@ -612,6 +633,7 @@ describe Warbler::Jar do
|
|
612
633
|
end
|
613
634
|
|
614
635
|
it "adds RACK_ENV to init.rb" do
|
636
|
+
ENV["RACK_ENV"] = nil
|
615
637
|
jar.add_init_file(config)
|
616
638
|
contents = jar.contents('META-INF/init.rb')
|
617
639
|
contents.should =~ /ENV\['RACK_ENV'\]/
|
@@ -666,6 +688,7 @@ describe Warbler::Jar do
|
|
666
688
|
end
|
667
689
|
|
668
690
|
it "allows expanding of additional WEB-INF files via config.webinf_files" do
|
691
|
+
ENV["RAILS_ENV"] = nil
|
669
692
|
File.open("myserver-web.xml.erb", "w") do |f|
|
670
693
|
f << "<web-app><%= webxml.rails.env %></web-app>"
|
671
694
|
end
|
data/spec/warbler/task_spec.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-
|
2
|
+
# Copyright (c) 2010-2012 Engine Yard, Inc.
|
3
3
|
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
|
4
4
|
# This source code is available under the MIT license.
|
5
5
|
# See the file LICENSE.txt for details.
|
@@ -142,12 +142,21 @@ describe Warbler::Task do
|
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
145
|
+
context "with a Bundler Gemfile" do
|
146
|
+
run_out_of_process_with_drb
|
147
|
+
|
148
|
+
after do
|
149
|
+
drbclient.run_task "warble:clean"
|
150
|
+
end
|
151
|
+
|
152
|
+
it "includes gems from the Gemfile" do
|
153
|
+
File.open("Gemfile", "w") {|f| f << "gem 'rspec'"}
|
154
|
+
drbclient.run_task "warble"
|
155
|
+
config = drbclient.config
|
156
|
+
Zip::ZipFile.open("#{config.jar_name}.war") do |zf|
|
157
|
+
rspec_version = config.gems.keys.detect {|k| k.name == 'rspec'}.version
|
158
|
+
zf.find_entry("WEB-INF/gems/specifications/rspec-#{rspec_version}.gemspec").should_not be_nil
|
159
|
+
end
|
151
160
|
end
|
152
161
|
end
|
153
162
|
end
|
data/spec/warbler/traits_spec.rb
CHANGED
data/spec/warbler/war_spec.rb
CHANGED
data/warble.rb
CHANGED
@@ -134,6 +134,8 @@ Warbler::Config.new do |config|
|
|
134
134
|
# Control the pool of Rails runtimes. Leaving unspecified means
|
135
135
|
# the pool will grow as needed to service requests. It is recommended
|
136
136
|
# that you fix these values when running a production server!
|
137
|
+
# If you're using threadsafe! mode, you probably don't want to set these values,
|
138
|
+
# since 1 runtime(default for threadsafe mode) will be enough.
|
137
139
|
# config.webxml.jruby.min.runtimes = 2
|
138
140
|
# config.webxml.jruby.max.runtimes = 4
|
139
141
|
|
data/warbler.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require 'warbler/version'
|
4
|
+
version = Warbler::VERSION
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "warbler"
|
7
|
+
s.version = version
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.homepage = "http://caldersphere.rubyforge.org/warbler"
|
10
|
+
s.authors = ["Nick Sieger"]
|
11
|
+
s.email = "nick@nicksieger.com"
|
12
|
+
s.summary = "Warbler chirpily constructs .war files of your Rails applications."
|
13
|
+
s.description = %q{Warbler is a gem to make a Java jar or war file out of any Ruby,
|
14
|
+
Rails, Merb, or Rack application. Warbler provides a minimal,
|
15
|
+
flexible, Ruby-like way to bundle up all of your application files for
|
16
|
+
deployment to a Java environment.}
|
17
|
+
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
|
24
|
+
s.rdoc_options = ["--main", "README.rdoc", "-H", "-f", "darkfish"]
|
25
|
+
s.rubyforge_project = "caldersphere"
|
26
|
+
|
27
|
+
s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
|
28
|
+
s.add_runtime_dependency(%q<jruby-jars>, [">= 1.4.0"])
|
29
|
+
s.add_runtime_dependency(%q<jruby-rack>, [">= 1.0.0"])
|
30
|
+
s.add_runtime_dependency(%q<rubyzip>, [">= 0.9.4"])
|
31
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Sieger
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
14
|
-
default_executable:
|
13
|
+
date: 2012-03-10 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rake
|
@@ -57,28 +56,6 @@ dependencies:
|
|
57
56
|
requirement: *id004
|
58
57
|
prerelease: false
|
59
58
|
type: :runtime
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: rubyforge
|
62
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 2.0.4
|
68
|
-
requirement: *id005
|
69
|
-
prerelease: false
|
70
|
-
type: :development
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: hoe
|
73
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - ~>
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: "2.12"
|
79
|
-
requirement: *id006
|
80
|
-
prerelease: false
|
81
|
-
type: :development
|
82
59
|
description: |-
|
83
60
|
Warbler is a gem to make a Java jar or war file out of any Ruby,
|
84
61
|
Rails, Merb, or Rack application. Warbler provides a minimal,
|
@@ -89,17 +66,16 @@ executables:
|
|
89
66
|
- warble
|
90
67
|
extensions: []
|
91
68
|
|
92
|
-
extra_rdoc_files:
|
93
|
-
|
94
|
-
- LICENSE.txt
|
95
|
-
- Manifest.txt
|
96
|
-
- README.txt
|
69
|
+
extra_rdoc_files: []
|
70
|
+
|
97
71
|
files:
|
72
|
+
- .gitignore
|
73
|
+
- .travis.yml
|
98
74
|
- Gemfile
|
75
|
+
- Gemfile.lock
|
99
76
|
- History.txt
|
100
77
|
- LICENSE.txt
|
101
|
-
-
|
102
|
-
- README.txt
|
78
|
+
- README.rdoc
|
103
79
|
- Rakefile
|
104
80
|
- bin/warble
|
105
81
|
- ext/JarMain.java
|
@@ -111,6 +87,7 @@ files:
|
|
111
87
|
- lib/warbler/config.rb
|
112
88
|
- lib/warbler/gems.rb
|
113
89
|
- lib/warbler/jar.rb
|
90
|
+
- lib/warbler/pathmap_helper.rb
|
114
91
|
- lib/warbler/rake_helper.rb
|
115
92
|
- lib/warbler/task.rb
|
116
93
|
- lib/warbler/templates/bundler.erb
|
@@ -132,23 +109,34 @@ files:
|
|
132
109
|
- lib/warbler/war.rb
|
133
110
|
- lib/warbler_jar.jar
|
134
111
|
- spec/drb_helper.rb
|
112
|
+
- spec/sample_bundler/.bundle/config
|
113
|
+
- spec/sample_bundler/Gemfile
|
135
114
|
- spec/sample_bundler/Gemfile.lock
|
136
115
|
- spec/sample_bundler/config.ru
|
116
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/bin/rake
|
137
117
|
- spec/sample_bundler/vendor/bundle/jruby/1.8/cache/rake-0.8.7.gem
|
118
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/bin/rake
|
138
119
|
- spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
139
120
|
- spec/sample_bundler/vendor/bundle/jruby/1.8/specifications/rake-0.8.7.gemspec
|
121
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/bin/rake
|
140
122
|
- spec/sample_bundler/vendor/bundle/ruby/1.8/cache/rake-0.8.7.gem
|
123
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/bin/rake
|
141
124
|
- spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
142
125
|
- spec/sample_bundler/vendor/bundle/ruby/1.8/specifications/rake-0.8.7.gemspec
|
126
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/bin/rake
|
143
127
|
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/cache/rake-0.8.7.gem
|
128
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/bin/rake
|
144
129
|
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb
|
145
130
|
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/specifications/rake-0.8.7.gemspec
|
146
131
|
- spec/sample_jar/History.txt
|
147
|
-
- spec/sample_jar/Manifest.txt
|
148
132
|
- spec/sample_jar/README.txt
|
133
|
+
- spec/sample_jar/Rakefile
|
134
|
+
- spec/sample_jar/bin/sample_jar
|
149
135
|
- spec/sample_jar/lib/sample_jar.rb
|
150
136
|
- spec/sample_jar/sample_jar.gemspec
|
151
137
|
- spec/sample_jar/test/test_sample_jar.rb
|
138
|
+
- spec/sample_war/README
|
139
|
+
- spec/sample_war/Rakefile
|
152
140
|
- spec/sample_war/app/controllers/application.rb
|
153
141
|
- spec/sample_war/app/helpers/application_helper.rb
|
154
142
|
- spec/sample_war/config/boot.rb
|
@@ -168,6 +156,7 @@ files:
|
|
168
156
|
- spec/sample_war/public/favicon.ico
|
169
157
|
- spec/sample_war/public/index.html
|
170
158
|
- spec/sample_war/public/robots.txt
|
159
|
+
- spec/spec.opts
|
171
160
|
- spec/spec_helper.rb
|
172
161
|
- spec/warbler/application_spec.rb
|
173
162
|
- spec/warbler/bundler_spec.rb
|
@@ -178,16 +167,16 @@ files:
|
|
178
167
|
- spec/warbler/traits_spec.rb
|
179
168
|
- spec/warbler/war_spec.rb
|
180
169
|
- warble.rb
|
170
|
+
- warbler.gemspec
|
181
171
|
- web.xml.erb
|
182
|
-
has_rdoc: true
|
183
172
|
homepage: http://caldersphere.rubyforge.org/warbler
|
184
173
|
licenses: []
|
185
174
|
|
186
175
|
post_install_message:
|
187
176
|
rdoc_options:
|
188
177
|
- --main
|
189
|
-
- README.
|
190
|
-
- -
|
178
|
+
- README.rdoc
|
179
|
+
- -H
|
191
180
|
- -f
|
192
181
|
- darkfish
|
193
182
|
require_paths:
|
@@ -210,9 +199,66 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
199
|
requirements: []
|
211
200
|
|
212
201
|
rubyforge_project: caldersphere
|
213
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.8.15
|
214
203
|
signing_key:
|
215
204
|
specification_version: 3
|
216
205
|
summary: Warbler chirpily constructs .war files of your Rails applications.
|
217
|
-
test_files:
|
218
|
-
|
206
|
+
test_files:
|
207
|
+
- spec/drb_helper.rb
|
208
|
+
- spec/sample_bundler/.bundle/config
|
209
|
+
- spec/sample_bundler/Gemfile
|
210
|
+
- spec/sample_bundler/Gemfile.lock
|
211
|
+
- spec/sample_bundler/config.ru
|
212
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/bin/rake
|
213
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/cache/rake-0.8.7.gem
|
214
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/bin/rake
|
215
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
216
|
+
- spec/sample_bundler/vendor/bundle/jruby/1.8/specifications/rake-0.8.7.gemspec
|
217
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/bin/rake
|
218
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/cache/rake-0.8.7.gem
|
219
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/bin/rake
|
220
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
221
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.8/specifications/rake-0.8.7.gemspec
|
222
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/bin/rake
|
223
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/cache/rake-0.8.7.gem
|
224
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/bin/rake
|
225
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb
|
226
|
+
- spec/sample_bundler/vendor/bundle/ruby/1.9.1/specifications/rake-0.8.7.gemspec
|
227
|
+
- spec/sample_jar/History.txt
|
228
|
+
- spec/sample_jar/README.txt
|
229
|
+
- spec/sample_jar/Rakefile
|
230
|
+
- spec/sample_jar/bin/sample_jar
|
231
|
+
- spec/sample_jar/lib/sample_jar.rb
|
232
|
+
- spec/sample_jar/sample_jar.gemspec
|
233
|
+
- spec/sample_jar/test/test_sample_jar.rb
|
234
|
+
- spec/sample_war/README
|
235
|
+
- spec/sample_war/Rakefile
|
236
|
+
- spec/sample_war/app/controllers/application.rb
|
237
|
+
- spec/sample_war/app/helpers/application_helper.rb
|
238
|
+
- spec/sample_war/config/boot.rb
|
239
|
+
- spec/sample_war/config/database.yml
|
240
|
+
- spec/sample_war/config/environment.rb
|
241
|
+
- spec/sample_war/config/environments/development.rb
|
242
|
+
- spec/sample_war/config/environments/production.rb
|
243
|
+
- spec/sample_war/config/environments/test.rb
|
244
|
+
- spec/sample_war/config/initializers/inflections.rb
|
245
|
+
- spec/sample_war/config/initializers/mime_types.rb
|
246
|
+
- spec/sample_war/config/initializers/new_rails_defaults.rb
|
247
|
+
- spec/sample_war/config/routes.rb
|
248
|
+
- spec/sample_war/lib/tasks/utils.rake
|
249
|
+
- spec/sample_war/public/404.html
|
250
|
+
- spec/sample_war/public/422.html
|
251
|
+
- spec/sample_war/public/500.html
|
252
|
+
- spec/sample_war/public/favicon.ico
|
253
|
+
- spec/sample_war/public/index.html
|
254
|
+
- spec/sample_war/public/robots.txt
|
255
|
+
- spec/spec.opts
|
256
|
+
- spec/spec_helper.rb
|
257
|
+
- spec/warbler/application_spec.rb
|
258
|
+
- spec/warbler/bundler_spec.rb
|
259
|
+
- spec/warbler/config_spec.rb
|
260
|
+
- spec/warbler/gems_spec.rb
|
261
|
+
- spec/warbler/jar_spec.rb
|
262
|
+
- spec/warbler/task_spec.rb
|
263
|
+
- spec/warbler/traits_spec.rb
|
264
|
+
- spec/warbler/war_spec.rb
|
data/Manifest.txt
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
Gemfile
|
2
|
-
History.txt
|
3
|
-
LICENSE.txt
|
4
|
-
Manifest.txt
|
5
|
-
README.txt
|
6
|
-
Rakefile
|
7
|
-
bin/warble
|
8
|
-
ext/JarMain.java
|
9
|
-
ext/WarMain.java
|
10
|
-
ext/WarblerJar.java
|
11
|
-
ext/WarblerJarService.java
|
12
|
-
lib/warbler
|
13
|
-
lib/warbler.rb
|
14
|
-
lib/warbler/application.rb
|
15
|
-
lib/warbler/config.rb
|
16
|
-
lib/warbler/gems.rb
|
17
|
-
lib/warbler/jar.rb
|
18
|
-
lib/warbler/rake_helper.rb
|
19
|
-
lib/warbler/task.rb
|
20
|
-
lib/warbler/templates
|
21
|
-
lib/warbler/templates/bundler.erb
|
22
|
-
lib/warbler/templates/config.erb
|
23
|
-
lib/warbler/templates/jar.erb
|
24
|
-
lib/warbler/templates/rack.erb
|
25
|
-
lib/warbler/templates/rails.erb
|
26
|
-
lib/warbler/templates/war.erb
|
27
|
-
lib/warbler/traits
|
28
|
-
lib/warbler/traits.rb
|
29
|
-
lib/warbler/traits/bundler.rb
|
30
|
-
lib/warbler/traits/gemspec.rb
|
31
|
-
lib/warbler/traits/jar.rb
|
32
|
-
lib/warbler/traits/merb.rb
|
33
|
-
lib/warbler/traits/nogemspec.rb
|
34
|
-
lib/warbler/traits/rack.rb
|
35
|
-
lib/warbler/traits/rails.rb
|
36
|
-
lib/warbler/traits/war.rb
|
37
|
-
lib/warbler/version.rb
|
38
|
-
lib/warbler/war.rb
|
39
|
-
lib/warbler_jar.jar
|
40
|
-
spec/drb_helper.rb
|
41
|
-
spec/sample_bundler/Gemfile.lock
|
42
|
-
spec/sample_bundler/config.ru
|
43
|
-
spec/sample_bundler/vendor/bundle/jruby/1.8
|
44
|
-
spec/sample_bundler/vendor/bundle/jruby/1.8/cache/rake-0.8.7.gem
|
45
|
-
spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7
|
46
|
-
spec/sample_bundler/vendor/bundle/jruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
47
|
-
spec/sample_bundler/vendor/bundle/jruby/1.8/specifications/rake-0.8.7.gemspec
|
48
|
-
spec/sample_bundler/vendor/bundle/ruby/1.8
|
49
|
-
spec/sample_bundler/vendor/bundle/ruby/1.8/cache/rake-0.8.7.gem
|
50
|
-
spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7
|
51
|
-
spec/sample_bundler/vendor/bundle/ruby/1.8/gems/rake-0.8.7/lib/rake.rb
|
52
|
-
spec/sample_bundler/vendor/bundle/ruby/1.8/specifications/rake-0.8.7.gemspec
|
53
|
-
spec/sample_bundler/vendor/bundle/ruby/1.9.1
|
54
|
-
spec/sample_bundler/vendor/bundle/ruby/1.9.1/cache/rake-0.8.7.gem
|
55
|
-
spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7
|
56
|
-
spec/sample_bundler/vendor/bundle/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb
|
57
|
-
spec/sample_bundler/vendor/bundle/ruby/1.9.1/specifications/rake-0.8.7.gemspec
|
58
|
-
spec/sample_jar/History.txt
|
59
|
-
spec/sample_jar/Manifest.txt
|
60
|
-
spec/sample_jar/README.txt
|
61
|
-
spec/sample_jar/lib/sample_jar.rb
|
62
|
-
spec/sample_jar/sample_jar.gemspec
|
63
|
-
spec/sample_jar/test/test_sample_jar.rb
|
64
|
-
spec/sample_war/app/controllers/application.rb
|
65
|
-
spec/sample_war/app/helpers/application_helper.rb
|
66
|
-
spec/sample_war/config/boot.rb
|
67
|
-
spec/sample_war/config/database.yml
|
68
|
-
spec/sample_war/config/environment.rb
|
69
|
-
spec/sample_war/config/environments/development.rb
|
70
|
-
spec/sample_war/config/environments/production.rb
|
71
|
-
spec/sample_war/config/environments/test.rb
|
72
|
-
spec/sample_war/config/initializers/inflections.rb
|
73
|
-
spec/sample_war/config/initializers/mime_types.rb
|
74
|
-
spec/sample_war/config/initializers/new_rails_defaults.rb
|
75
|
-
spec/sample_war/config/routes.rb
|
76
|
-
spec/sample_war/lib/tasks/utils.rake
|
77
|
-
spec/sample_war/public/404.html
|
78
|
-
spec/sample_war/public/422.html
|
79
|
-
spec/sample_war/public/500.html
|
80
|
-
spec/sample_war/public/favicon.ico
|
81
|
-
spec/sample_war/public/index.html
|
82
|
-
spec/sample_war/public/robots.txt
|
83
|
-
spec/spec_helper.rb
|
84
|
-
spec/warbler/application_spec.rb
|
85
|
-
spec/warbler/bundler_spec.rb
|
86
|
-
spec/warbler/config_spec.rb
|
87
|
-
spec/warbler/gems_spec.rb
|
88
|
-
spec/warbler/jar_spec.rb
|
89
|
-
spec/warbler/task_spec.rb
|
90
|
-
spec/warbler/traits_spec.rb
|
91
|
-
spec/warbler/war_spec.rb
|
92
|
-
warble.rb
|
93
|
-
web.xml.erb
|