warbler 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +6 -1
- data/bin/warble +1 -1
- data/lib/warbler/application.rb +16 -7
- data/lib/warbler/gems.rb +1 -0
- data/lib/warbler/jar.rb +2 -2
- data/lib/warbler/templates/bundler.erb +3 -1
- data/lib/warbler/templates/jar.erb +10 -8
- data/lib/warbler/templates/rails.erb +1 -1
- data/lib/warbler/templates/war.erb +12 -7
- data/lib/warbler/traits/bundler.rb +16 -12
- data/lib/warbler/traits/gemspec.rb +4 -4
- data/lib/warbler/traits/nogemspec.rb +2 -4
- data/lib/warbler/traits/rails.rb +5 -5
- data/lib/warbler/traits/war.rb +28 -9
- data/lib/warbler/version.rb +1 -1
- data/spec/sample_bundler/Gemfile +1 -1
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/cache/rake-10.5.0.gem +0 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.autotest +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.togglerc +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/History.rdoc +659 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Manifest.txt +166 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/README.rdoc +139 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Rakefile +81 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/bin/rake +33 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/helper.rb +129 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/specifications/rake-10.5.0.gemspec +43 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/bin/rake +22 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/cache/rake-10.5.0.gem +0 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.autotest +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.togglerc +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/History.rdoc +659 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Manifest.txt +166 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/README.rdoc +139 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Rakefile +81 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/bin/rake +33 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/helper.rb +129 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/specifications/rake-10.5.0.gemspec +43 -0
- data/spec/sample_jbundler/vendor/bundle/jruby/1.8/gems +1 -0
- data/spec/sample_jbundler/vendor/bundle/jruby/1.8/specifications +1 -0
- data/spec/sample_jbundler/vendor/bundle/jruby/1.9/gems +1 -0
- data/spec/sample_jbundler/vendor/bundle/jruby/1.9/specifications +1 -0
- data/spec/sample_jbundler/vendor/bundle/ruby/1.8/gems +1 -0
- data/spec/sample_jbundler/vendor/bundle/ruby/1.8/specifications +1 -0
- data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/gems +1 -0
- data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/specifications +1 -0
- data/spec/sample_war/gems/.keep +1 -0
- data/spec/spec_helper.rb +48 -36
- data/spec/warbler/bundler_spec.rb +26 -2
- data/spec/warbler/config_spec.rb +28 -1
- data/spec/warbler/jar_spec.rb +45 -7
- data/warble.rb +12 -8
- data/warbler.gemspec +6 -7
- data/web.xml.erb +27 -6
- metadata +527 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a948686e291d17e74ba5a81f20ac44295eeaf5dc
|
4
|
+
data.tar.gz: 00179dc599932291918a6e740a9b242cd55aa1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b04a6a3f642fdeaf383e9cfa7d9bf1fcf2c5a2e620a586fc04a07db3fa98399e922071301ed0df5155de2fb36ab41698af1cb7e91ea7ebaca2f76926f789b05
|
7
|
+
data.tar.gz: a79aaf60d19436a6f71767de58ea6c19b932ea9807a85048b15685335538b420871f42da44ca22cbda2b160816c0c0801bf8be46858d10934fee6218d3bd91a1
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -8,4 +8,9 @@ group :development do
|
|
8
8
|
gem "childprocess", :platform => :mri
|
9
9
|
end
|
10
10
|
|
11
|
-
gem 'rubyzip', ENV['RUBYZIP_VERSION'] if ENV['RUBYZIP_VERSION']
|
11
|
+
gem 'rubyzip', ENV['RUBYZIP_VERSION'] if ENV['RUBYZIP_VERSION']
|
12
|
+
gem 'rake', ENV['RAKE_VERSION'], :require => nil if ENV['RAKE_VERSION']
|
13
|
+
|
14
|
+
group :development, :test do
|
15
|
+
gem 'rdoc', ['>= 3.10', '< 4.3'], :require => nil
|
16
|
+
end
|
data/bin/warble
CHANGED
data/lib/warbler/application.rb
CHANGED
@@ -42,7 +42,7 @@ class Warbler::Application < Rake::Application
|
|
42
42
|
|
43
43
|
desc "Feature: make a runnable archive (e.g. java -jar rails.war -S rake db:migrate)"
|
44
44
|
task :runnable => "#{wt.name}:runnable"
|
45
|
-
|
45
|
+
|
46
46
|
desc "Feature: precompile all Ruby files"
|
47
47
|
task :compiled => "#{wt.name}:compiled"
|
48
48
|
|
@@ -54,26 +54,28 @@ class Warbler::Application < Rake::Application
|
|
54
54
|
def load_project_rakefile
|
55
55
|
return if @project_loaded
|
56
56
|
# Load any application rakefiles to aid in autodetecting applications
|
57
|
-
|
58
|
-
Rake.application = app
|
57
|
+
set_application Warbler.project_application = Rake::Application.new
|
59
58
|
Rake::Application::DEFAULT_RAKEFILES.each do |rf|
|
60
59
|
if File.exist?(rf)
|
61
60
|
begin
|
62
61
|
load rf
|
63
|
-
rescue LoadError
|
62
|
+
rescue LoadError
|
64
63
|
load File.join(Dir.getwd, rf)
|
65
64
|
end
|
66
65
|
break
|
67
66
|
end
|
68
67
|
end
|
69
|
-
|
68
|
+
set_application
|
70
69
|
@project_loaded = true
|
71
70
|
end
|
72
71
|
|
73
72
|
# Run the application: The equivalent code for the +warble+ command
|
74
|
-
# is simply <tt>Warbler::Application.
|
73
|
+
# is simply <tt>Warbler::Application.run</tt>.
|
74
|
+
def self.run; new.run end
|
75
|
+
|
76
|
+
# Run the application.
|
75
77
|
def run
|
76
|
-
|
78
|
+
set_application
|
77
79
|
super
|
78
80
|
end
|
79
81
|
|
@@ -92,4 +94,11 @@ class Warbler::Application < Rake::Application
|
|
92
94
|
end
|
93
95
|
end
|
94
96
|
end
|
97
|
+
|
98
|
+
private
|
99
|
+
|
100
|
+
def set_application(app = self)
|
101
|
+
Rake.application = app
|
102
|
+
end
|
103
|
+
|
95
104
|
end
|
data/lib/warbler/gems.rb
CHANGED
data/lib/warbler/jar.rb
CHANGED
@@ -208,7 +208,7 @@ module Warbler
|
|
208
208
|
|
209
209
|
# Add gems to WEB-INF/gems
|
210
210
|
def find_gems_files(config)
|
211
|
-
unless @compiled
|
211
|
+
unless @compiled && config.compile_gems
|
212
212
|
config.gems.specs(config.gem_dependencies).each {|spec| find_single_gem_files(config, spec) }
|
213
213
|
end
|
214
214
|
end
|
@@ -272,7 +272,7 @@ module Warbler
|
|
272
272
|
|
273
273
|
def expand_erb(file, config)
|
274
274
|
require 'erb'
|
275
|
-
erb = ERB.new(File.
|
275
|
+
erb = ERB.new(File.read(file), nil, '-')
|
276
276
|
StringIO.new(erb.result(erb_binding(config)))
|
277
277
|
end
|
278
278
|
|
@@ -1,9 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<%
|
7
|
-
|
1
|
+
<% if config.relative_gem_path.empty? -%>
|
2
|
+
ENV['GEM_HOME'] <%= config.override_gem_home ? '=' : '||=' %> File.expand_path('../..', __FILE__)
|
3
|
+
<% else -%>
|
4
|
+
ENV['GEM_HOME'] <%= config.override_gem_home ? '=' : '||=' %> File.expand_path('../../<%= config.relative_gem_path %>', __FILE__)
|
5
|
+
<% end -%>
|
6
|
+
<% if config.override_gem_home -%>
|
7
|
+
ENV['GEM_PATH'] = ENV['GEM_HOME']
|
8
|
+
<% end -%>
|
9
|
+
<% if config.bundler && config.bundler[:gemfile_path] -%>
|
8
10
|
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../<%= config.bundler[:gemfile_path] %>', __FILE__)
|
9
|
-
<% end
|
11
|
+
<% end -%>
|
@@ -1 +1 @@
|
|
1
|
-
ENV['RAILS_ENV'] ||= '<%=
|
1
|
+
ENV['RAILS_ENV'] ||= '<%= config.webxml.rails.env %>'
|
@@ -1,12 +1,17 @@
|
|
1
|
-
<% assignment_operator = config.override_gem_home ? "=" : "||=" %>
|
2
1
|
if $servlet_context.nil?
|
3
|
-
ENV['GEM_HOME'] <%=
|
4
|
-
<% if config.
|
2
|
+
ENV['GEM_HOME'] <%= config.override_gem_home ? '=' : '||=' %> File.expand_path(File.join('..', '..', '<%= config.gem_path %>'), __FILE__)
|
3
|
+
<% if config.override_gem_home -%>
|
4
|
+
ENV['GEM_PATH'] = ENV['GEM_HOME']
|
5
|
+
<% end -%>
|
6
|
+
<% if config.bundler && config.bundler[:gemfile_path] -%>
|
5
7
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path(File.join('..', '..', '<%= config.bundler[:gemfile_path] %>'), __FILE__)
|
6
|
-
<% end
|
8
|
+
<% end -%>
|
7
9
|
else
|
8
|
-
ENV['GEM_HOME'] <%=
|
9
|
-
<% if config.
|
10
|
+
ENV['GEM_HOME'] <%= config.override_gem_home ? '=' : '||=' %> $servlet_context.getRealPath('<%= config.gem_path %>')
|
11
|
+
<% if config.override_gem_home -%>
|
12
|
+
ENV['GEM_PATH'] = ENV['GEM_HOME']
|
13
|
+
<% end -%>
|
14
|
+
<% if config.bundler && config.bundler[:gemfile_path] -%>
|
10
15
|
ENV['BUNDLE_GEMFILE'] ||= $servlet_context.getRealPath('/<%= config.bundler[:gemfile_path] %>')
|
11
|
-
<% end
|
16
|
+
<% end -%>
|
12
17
|
end
|
@@ -15,7 +15,7 @@ module Warbler
|
|
15
15
|
include BundlerHelper
|
16
16
|
|
17
17
|
def self.detect?
|
18
|
-
File.exist?(ENV['BUNDLE_GEMFILE'] ||
|
18
|
+
File.exist?(ENV['BUNDLE_GEMFILE'] || 'Gemfile')
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.requirements
|
@@ -23,19 +23,18 @@ module Warbler
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def before_configure
|
26
|
-
config.bundler
|
27
|
-
config.bundle_without = [
|
26
|
+
config.bundler ||= true
|
27
|
+
config.bundle_without = ['development', 'test', 'assets']
|
28
28
|
end
|
29
29
|
|
30
30
|
def after_configure
|
31
31
|
add_bundler_gems if config.bundler
|
32
32
|
end
|
33
33
|
|
34
|
-
def add_bundler_gems
|
35
|
-
|
36
|
-
config.gems.clear
|
34
|
+
def add_bundler_gems; require 'bundler'
|
35
|
+
# config.gems.clear allow to add `config.gems` on top of those bundled
|
37
36
|
config.gem_dependencies = false # Bundler takes care of these
|
38
|
-
config.bundler = {}
|
37
|
+
config.bundler = {} if config.bundler == true
|
39
38
|
|
40
39
|
bundler_specs.each do |spec|
|
41
40
|
spec = to_spec(spec)
|
@@ -53,8 +52,6 @@ module Warbler
|
|
53
52
|
end
|
54
53
|
|
55
54
|
spec.loaded_from = full_gem_path.join('bundler.gemspec').to_s
|
56
|
-
# RubyGems 1.8.x: @full_gem_path is cached, so we have to set it
|
57
|
-
def spec.full_gem_path=(p); @full_gem_path = p; end
|
58
55
|
spec.full_gem_path = full_gem_path.to_s
|
59
56
|
end
|
60
57
|
|
@@ -64,9 +61,16 @@ module Warbler
|
|
64
61
|
config.bundler[:git_specs] << spec
|
65
62
|
when ::Bundler::Source::Path
|
66
63
|
unless bundler_source_is_warbled_gem_itself?(spec.source)
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
if spec.source.path && spec.source.path.relative?
|
65
|
+
# include (assuming) relative *[APP_ROOT]/gem/path*
|
66
|
+
# NOTE: might be tuned to only add gemspec.files ...
|
67
|
+
config.includes += FileList[File.join(spec.source.path, '**/*')]
|
68
|
+
config.gems << spec # probably not really needed
|
69
|
+
else
|
70
|
+
warn("Bundler `path' components are not fully supported.\n" +
|
71
|
+
"The `#{spec.full_name}' component was not bundled.\n" +
|
72
|
+
"Your application may fail to boot!")
|
73
|
+
end
|
70
74
|
end
|
71
75
|
else
|
72
76
|
config.gems << spec
|
@@ -21,8 +21,8 @@ module Warbler
|
|
21
21
|
def before_configure
|
22
22
|
@spec_file = Dir['*.gemspec'].first
|
23
23
|
require 'yaml'
|
24
|
-
@spec = File.open(@spec_file) {|f| Gem::Specification.from_yaml(f) } rescue Gem::Specification.load(@spec_file)
|
25
|
-
@spec.runtime_dependencies.each {|g| config.gems << g }
|
24
|
+
@spec = File.open(@spec_file) { |f| Gem::Specification.from_yaml(f) } rescue Gem::Specification.load(@spec_file)
|
25
|
+
@spec.runtime_dependencies.each { |g| config.gems << g }
|
26
26
|
config.dirs = []
|
27
27
|
config.compiled_ruby_files = @spec.files.select {|f| f =~ /\.rb$/}
|
28
28
|
end
|
@@ -54,11 +54,11 @@ module Warbler
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def default_executable
|
57
|
-
if
|
57
|
+
if ! @spec.executables.empty?
|
58
58
|
bundler_version =
|
59
59
|
Gem.loaded_specs.include?("bundler") ?
|
60
60
|
Gem.loaded_specs["bundler"].version :
|
61
|
-
|
61
|
+
Gem::Version.create("0.0.0")
|
62
62
|
if (bundler_version <=> Gem::Version.create("1.8.0")) < 0
|
63
63
|
"bin/#{@spec.executables.first}"
|
64
64
|
else
|
@@ -35,11 +35,9 @@ module Warbler
|
|
35
35
|
|
36
36
|
def default_executable
|
37
37
|
exes = Dir['bin/*'].sort
|
38
|
-
unless
|
38
|
+
unless exe = exes.grep(/#{config.jar_name}/).first
|
39
39
|
exe = exes.first
|
40
|
-
if exe
|
41
|
-
warn "No executable matching config.jar_name found, using #{exe}"
|
42
|
-
end
|
40
|
+
warn "No executable matching config.jar_name found, using #{exe}" if exe
|
43
41
|
end
|
44
42
|
raise "No executable script found" unless exe
|
45
43
|
exe
|
data/lib/warbler/traits/rails.rb
CHANGED
@@ -12,7 +12,7 @@ module Warbler
|
|
12
12
|
include Trait
|
13
13
|
|
14
14
|
def self.detect?
|
15
|
-
File.exist?(
|
15
|
+
File.exist?('config/environment.rb')
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.requirements
|
@@ -24,15 +24,15 @@ module Warbler
|
|
24
24
|
config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
|
25
25
|
|
26
26
|
return unless Warbler.framework_detection
|
27
|
-
return false unless task = Warbler.project_application.lookup(
|
27
|
+
return false unless task = Warbler.project_application.lookup('environment')
|
28
28
|
|
29
29
|
task.invoke rescue nil
|
30
30
|
return false unless defined?(::Rails)
|
31
31
|
|
32
|
-
config.dirs <<
|
32
|
+
config.dirs << 'tmp' if File.directory?('tmp')
|
33
33
|
config.webxml.booter = :rails
|
34
|
-
unless (defined?(::Rails.vendor_rails?) && ::Rails.vendor_rails?) || File.directory?(
|
35
|
-
config.gems[
|
34
|
+
unless (defined?(::Rails.vendor_rails?) && ::Rails.vendor_rails?) || File.directory?('vendor/rails')
|
35
|
+
config.gems['rails'] = ::Rails::VERSION::STRING unless Bundler.detect?
|
36
36
|
end
|
37
37
|
if defined?(::Rails.configuration.gems)
|
38
38
|
::Rails.configuration.gems.each do |g|
|
data/lib/warbler/traits/war.rb
CHANGED
@@ -177,6 +177,8 @@ module Warbler
|
|
177
177
|
def initialize(key = 'webxml')
|
178
178
|
@key = key
|
179
179
|
@table = Hash.new { |h, k| h[k] = WebxmlOpenStruct.new(k) }
|
180
|
+
|
181
|
+
@servlet_filter_async = nil # true/false
|
180
182
|
end
|
181
183
|
|
182
184
|
def [](key)
|
@@ -209,23 +211,38 @@ module Warbler
|
|
209
211
|
@table.key?(mid.to_s.chomp('=').to_sym) || super
|
210
212
|
end
|
211
213
|
|
214
|
+
def servlet_filter; @servlet_filter ||= 'org.jruby.rack.RackFilter' end
|
215
|
+
attr_writer :servlet_filter
|
216
|
+
|
217
|
+
def servlet_filter_name; @servlet_filter_name ||= 'RackFilter' end
|
218
|
+
attr_writer :servlet_filter_name
|
219
|
+
|
220
|
+
def servlet_filter_url_pattern; @servlet_filter_url_pattern ||= '/*' end
|
221
|
+
attr_writer :servlet_filter_url_pattern
|
222
|
+
|
223
|
+
attr_accessor :servlet_filter_async
|
224
|
+
|
212
225
|
def servlet_context_listener
|
213
|
-
case
|
226
|
+
case booter
|
214
227
|
when :rack
|
215
|
-
|
216
|
-
|
217
|
-
|
228
|
+
'org.jruby.rack.RackServletContextListener'
|
229
|
+
when :rails
|
230
|
+
'org.jruby.rack.rails.RailsServletContextListener'
|
231
|
+
else # default (due compatibility)
|
232
|
+
'org.jruby.rack.rails.RailsServletContextListener'
|
218
233
|
end
|
219
234
|
end
|
220
235
|
|
221
|
-
def
|
222
|
-
|
223
|
-
|
236
|
+
def servlet_context_listeners
|
237
|
+
@cservlet_ontext_listeners ||= [ servlet_context_listener ]
|
238
|
+
end
|
239
|
+
|
240
|
+
def servlet_context_params(escape = true)
|
241
|
+
require 'cgi'; params = {}
|
224
242
|
@table.each do |k,v|
|
225
243
|
case v
|
226
244
|
when WebxmlOpenStruct
|
227
|
-
|
228
|
-
nested_params.each do |nk,nv|
|
245
|
+
v.context_params.each do |nk,nv|
|
229
246
|
params["#{escape ? CGI::escapeHTML(k.to_s) : k.to_s}.#{nk}"] = nv
|
230
247
|
end
|
231
248
|
else
|
@@ -236,6 +253,8 @@ module Warbler
|
|
236
253
|
params.delete_if { |k,_| ['ignored', *extra_ignored].include?(k.to_s) }
|
237
254
|
params
|
238
255
|
end
|
256
|
+
# @deprecated
|
257
|
+
alias_method :context_params, :servlet_context_params
|
239
258
|
|
240
259
|
def to_s
|
241
260
|
"No value for '#@key' found"
|
data/lib/warbler/version.rb
CHANGED
data/spec/sample_bundler/Gemfile
CHANGED
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
StringLiterals:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
MultilineBlocks:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
SingleLineBlocks:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
NewLambdaLiteral:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
SpaceAroundEqualsInParameterDefault:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
HashSyntax:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
LineLength:
|
20
|
+
Enabled: true
|
21
|
+
Max: 90
|
22
|
+
|
23
|
+
WhileUntilModifier:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
IfUnlessModifier:
|
27
|
+
Enabled: false
|