warbler 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -1
  3. data/Gemfile +6 -1
  4. data/bin/warble +1 -1
  5. data/lib/warbler/application.rb +16 -7
  6. data/lib/warbler/gems.rb +1 -0
  7. data/lib/warbler/jar.rb +2 -2
  8. data/lib/warbler/templates/bundler.erb +3 -1
  9. data/lib/warbler/templates/jar.erb +10 -8
  10. data/lib/warbler/templates/rails.erb +1 -1
  11. data/lib/warbler/templates/war.erb +12 -7
  12. data/lib/warbler/traits/bundler.rb +16 -12
  13. data/lib/warbler/traits/gemspec.rb +4 -4
  14. data/lib/warbler/traits/nogemspec.rb +2 -4
  15. data/lib/warbler/traits/rails.rb +5 -5
  16. data/lib/warbler/traits/war.rb +28 -9
  17. data/lib/warbler/version.rb +1 -1
  18. data/spec/sample_bundler/Gemfile +1 -1
  19. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/cache/rake-10.5.0.gem +0 -0
  20. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.autotest +7 -0
  21. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.rubocop.yml +27 -0
  22. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.togglerc +7 -0
  23. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
  24. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/History.rdoc +659 -0
  25. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
  26. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Manifest.txt +166 -0
  27. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/README.rdoc +139 -0
  28. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Rakefile +81 -0
  29. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/bin/rake +33 -0
  30. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake.rb +79 -0
  31. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
  32. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
  33. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
  34. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
  35. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
  36. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
  37. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
  38. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
  39. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
  40. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  41. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
  42. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
  43. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
  44. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
  45. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
  46. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
  47. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
  48. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
  49. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
  50. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
  51. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
  52. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
  53. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
  54. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
  55. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
  56. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
  57. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
  58. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
  59. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
  60. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
  61. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
  62. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
  63. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
  64. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
  65. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
  66. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
  67. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
  68. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
  69. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
  70. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
  71. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
  72. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
  73. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
  74. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
  75. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
  76. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
  77. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
  78. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
  79. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
  80. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
  81. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
  82. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
  83. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
  84. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
  85. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
  86. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
  87. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
  88. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
  89. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
  90. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
  91. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
  92. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/helper.rb +129 -0
  93. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
  94. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
  95. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
  96. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
  97. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
  98. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
  99. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
  100. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
  101. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
  102. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
  103. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
  104. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
  105. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
  106. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
  107. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
  108. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
  109. 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
  110. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
  111. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
  112. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
  113. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
  114. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
  115. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
  116. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
  117. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
  118. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
  119. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
  120. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
  121. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
  122. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
  123. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
  124. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
  125. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
  126. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
  127. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
  128. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
  129. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
  130. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
  131. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
  132. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
  133. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
  134. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
  135. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
  136. 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
  137. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
  138. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
  139. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
  140. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
  141. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
  142. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
  143. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
  144. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/specifications/rake-10.5.0.gemspec +43 -0
  145. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/bin/rake +22 -0
  146. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/cache/rake-10.5.0.gem +0 -0
  147. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.autotest +7 -0
  148. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.rubocop.yml +27 -0
  149. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.togglerc +7 -0
  150. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
  151. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/History.rdoc +659 -0
  152. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
  153. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Manifest.txt +166 -0
  154. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/README.rdoc +139 -0
  155. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Rakefile +81 -0
  156. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/bin/rake +33 -0
  157. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake.rb +79 -0
  158. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
  159. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
  160. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
  161. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
  162. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
  163. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
  164. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
  165. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
  166. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
  167. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  168. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
  169. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
  170. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
  171. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
  172. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
  173. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
  174. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
  175. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
  176. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
  177. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
  178. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
  179. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
  180. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
  181. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
  182. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
  183. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
  184. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
  185. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
  186. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
  187. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
  188. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
  189. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
  190. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
  191. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
  192. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
  193. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
  194. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
  195. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
  196. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
  197. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
  198. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
  199. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
  200. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
  201. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
  202. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
  203. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
  204. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
  205. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
  206. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
  207. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
  208. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
  209. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
  210. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
  211. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
  212. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
  213. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
  214. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
  215. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
  216. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
  217. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
  218. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
  219. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/helper.rb +129 -0
  220. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
  221. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
  222. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
  223. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
  224. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
  225. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
  226. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
  227. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
  228. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
  229. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
  230. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
  231. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
  232. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
  233. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
  234. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
  235. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
  236. 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
  237. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
  238. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
  239. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
  240. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
  241. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
  242. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
  243. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
  244. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
  245. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
  246. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
  247. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
  248. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
  249. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
  250. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
  251. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
  252. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
  253. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
  254. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
  255. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
  256. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
  257. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
  258. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
  259. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
  260. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
  261. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
  262. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
  263. 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
  264. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
  265. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
  266. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
  267. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
  268. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
  269. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
  270. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
  271. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/specifications/rake-10.5.0.gemspec +43 -0
  272. data/spec/sample_jbundler/vendor/bundle/jruby/1.8/gems +1 -0
  273. data/spec/sample_jbundler/vendor/bundle/jruby/1.8/specifications +1 -0
  274. data/spec/sample_jbundler/vendor/bundle/jruby/1.9/gems +1 -0
  275. data/spec/sample_jbundler/vendor/bundle/jruby/1.9/specifications +1 -0
  276. data/spec/sample_jbundler/vendor/bundle/ruby/1.8/gems +1 -0
  277. data/spec/sample_jbundler/vendor/bundle/ruby/1.8/specifications +1 -0
  278. data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/gems +1 -0
  279. data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/specifications +1 -0
  280. data/spec/sample_war/gems/.keep +1 -0
  281. data/spec/spec_helper.rb +48 -36
  282. data/spec/warbler/bundler_spec.rb +26 -2
  283. data/spec/warbler/config_spec.rb +28 -1
  284. data/spec/warbler/jar_spec.rb +45 -7
  285. data/warble.rb +12 -8
  286. data/warbler.gemspec +6 -7
  287. data/web.xml.erb +27 -6
  288. metadata +527 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 768a159b70a6e4427ada860ba1d8d8089035da25
4
- data.tar.gz: 5a932aae7c9bc530be00044dccdb6d5179526abc
3
+ metadata.gz: a948686e291d17e74ba5a81f20ac44295eeaf5dc
4
+ data.tar.gz: 00179dc599932291918a6e740a9b242cd55aa1d1
5
5
  SHA512:
6
- metadata.gz: f54bd8cf2c7fb1c8f44e897d02869393afa771d138a943b59ed4a986d0b5776aaf15e2062e0f6435b7ff5210f7eec24cdac628c7bfb9a3b64e9aec39de37de8f
7
- data.tar.gz: 78483dd60bd77d29936f9298c2eb9b43fc7f2806324f905b33e1a2f9072b2c34aa403b8dc2a6e6a37c51c5d25b6cca53e8f6cfca9a869900e7da908c0eb6feaa
6
+ metadata.gz: 0b04a6a3f642fdeaf383e9cfa7d9bf1fcf2c5a2e620a586fc04a07db3fa98399e922071301ed0df5155de2fb36ab41698af1cb7e91ea7ebaca2f76926f789b05
7
+ data.tar.gz: a79aaf60d19436a6f71767de58ea6c19b932ea9807a85048b15685335538b420871f42da44ca22cbda2b160816c0c0801bf8be46858d10934fee6218d3bd91a1
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  rvm:
2
2
  - jruby-9.0.5.0
3
+ - jruby-9.1.0.0
3
4
  branches:
4
5
  only:
5
6
  - master
6
- - 2.x-dev
7
+ - /-dev|-feature|-fix/
7
8
  env:
8
9
  - JRUBY_OPTS="--server -Xcompile.invokedynamic=false"
9
10
  matrix:
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
@@ -8,4 +8,4 @@
8
8
  #++
9
9
 
10
10
  require 'warbler'
11
- Warbler::Application.new.run
11
+ Warbler::Application.run
@@ -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
- app = Warbler.project_application = Rake::Application.new
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 => e
62
+ rescue LoadError
64
63
  load File.join(Dir.getwd, rf)
65
64
  end
66
65
  break
67
66
  end
68
67
  end
69
- Rake.application = self
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.new.run</tt>.
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
- Rake.application = self
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
@@ -11,6 +11,7 @@ module Warbler
11
11
  # It would be easier to just use a hash.
12
12
  class Gems < Hash
13
13
  ANY_VERSION = nil
14
+ private_constant :ANY_VERSION
14
15
 
15
16
  def initialize(gems = nil)
16
17
  if gems.is_a?(Hash)
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 and config.compile_gems
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.open(file) {|f| f.read })
275
+ erb = ERB.new(File.read(file), nil, '-')
276
276
  StringIO.new(erb.result(erb_binding(config)))
277
277
  end
278
278
 
@@ -1,2 +1,4 @@
1
1
  ENV['BUNDLE_WITHOUT'] = '<%= config.bundle_without.join(':') %>'
2
- <% if config.bundler[:frozen] %>ENV['BUNDLE_FROZEN'] = '1'<% end %>
2
+ <% if config.bundler[:frozen] -%>
3
+ ENV['BUNDLE_FROZEN'] = '1'
4
+ <% end -%>
@@ -1,9 +1,11 @@
1
- <% assignment_operator = config.override_gem_home ? "=" : "||=" %>
2
- <% if config.relative_gem_path.empty? %>
3
- ENV['GEM_HOME'] <%= assignment_operator %> File.expand_path('../..', __FILE__)
4
- <% else %>
5
- ENV['GEM_HOME'] <%= assignment_operator %> File.expand_path('../../<%= config.relative_gem_path %>', __FILE__)
6
- <% end %>
7
- <% if config.bundler && config.bundler[:gemfile_path] %>
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'] ||= '<%= config.webxml.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'] <%= assignment_operator %> File.expand_path(File.join('..', '..', '<%= config.gem_path %>'), __FILE__)
4
- <% if config.bundler && config.bundler[:gemfile_path] %>
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'] <%= assignment_operator %> $servlet_context.getRealPath('<%= config.gem_path %>')
9
- <% if config.bundler && config.bundler[:gemfile_path] %>
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'] || "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 = true
27
- config.bundle_without = ["development", "test", "assets"]
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
- require 'bundler'
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
- warn("Bundler `path' components are not currently supported.\n" +
68
- "The `#{spec.full_name}' component was not bundled.\n" +
69
- "Your application may fail to boot!")
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 !@spec.executables.empty?
57
+ if ! @spec.executables.empty?
58
58
  bundler_version =
59
59
  Gem.loaded_specs.include?("bundler") ?
60
60
  Gem.loaded_specs["bundler"].version :
61
- Gem::Version.create("0.0.0")
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(exe = exes.grep(/#{config.jar_name}/).first)
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
@@ -12,7 +12,7 @@ module Warbler
12
12
  include Trait
13
13
 
14
14
  def self.detect?
15
- File.exist?("config/environment.rb")
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("environment")
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 << "tmp" if File.directory?("tmp")
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?("vendor/rails")
35
- config.gems["rails"] = ::Rails::VERSION::STRING
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|
@@ -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 self.booter
226
+ case booter
214
227
  when :rack
215
- "org.jruby.rack.RackServletContextListener"
216
- else # :rails, default
217
- "org.jruby.rack.rails.RailsServletContextListener"
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 context_params(escape = true)
222
- require 'cgi'
223
- params = {}
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
- nested_params = v.context_params
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"
@@ -6,5 +6,5 @@
6
6
  #++
7
7
 
8
8
  module Warbler
9
- VERSION = "2.0.0"
9
+ VERSION = "2.0.1"
10
10
  end
@@ -1,3 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rake'
3
+ gem 'rake', '10.5.0'
@@ -0,0 +1,7 @@
1
+ require 'autotest/restart'
2
+
3
+ Autotest.add_hook :initialize do |at|
4
+ at.testlib = ''
5
+ at.add_exception '.git'
6
+ end
7
+
@@ -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
@@ -0,0 +1,7 @@
1
+ (add-to-list
2
+ 'toggle-mapping-styles
3
+ '(rake . (
4
+ ("test/test_rake_\\1.rb" . "lib/rake/\\1.rb")
5
+ ) ))
6
+
7
+ (buffer-toggle-style 'rake)