warbler 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (543) hide show
  1. checksums.yaml +4 -4
  2. data/lib/warbler/version.rb +1 -1
  3. data/warbler.gemspec +1 -1
  4. metadata +21 -1098
  5. data/integration/Rakefile +0 -10
  6. data/integration/pom.xml +0 -168
  7. data/integration/rails4_test/pom.xml +0 -47
  8. data/integration/rails4_test/src/main/ruby/Gemfile +0 -44
  9. data/integration/rails4_test/src/main/ruby/README.rdoc +0 -28
  10. data/integration/rails4_test/src/main/ruby/Rakefile +0 -6
  11. data/integration/rails4_test/src/main/ruby/app/assets/javascripts/application.js +0 -16
  12. data/integration/rails4_test/src/main/ruby/app/assets/javascripts/posts.js.coffee +0 -3
  13. data/integration/rails4_test/src/main/ruby/app/assets/stylesheets/application.css +0 -13
  14. data/integration/rails4_test/src/main/ruby/app/assets/stylesheets/posts.css.scss +0 -3
  15. data/integration/rails4_test/src/main/ruby/app/assets/stylesheets/scaffolds.css.scss +0 -69
  16. data/integration/rails4_test/src/main/ruby/app/controllers/application_controller.rb +0 -5
  17. data/integration/rails4_test/src/main/ruby/app/controllers/concerns/.keep +0 -0
  18. data/integration/rails4_test/src/main/ruby/app/controllers/posts_controller.rb +0 -74
  19. data/integration/rails4_test/src/main/ruby/app/helpers/application_helper.rb +0 -2
  20. data/integration/rails4_test/src/main/ruby/app/helpers/posts_helper.rb +0 -2
  21. data/integration/rails4_test/src/main/ruby/app/mailers/.keep +0 -0
  22. data/integration/rails4_test/src/main/ruby/app/models/.keep +0 -0
  23. data/integration/rails4_test/src/main/ruby/app/models/concerns/.keep +0 -0
  24. data/integration/rails4_test/src/main/ruby/app/models/post.rb +0 -2
  25. data/integration/rails4_test/src/main/ruby/app/views/layouts/application.html.erb +0 -14
  26. data/integration/rails4_test/src/main/ruby/app/views/posts/_form.html.erb +0 -29
  27. data/integration/rails4_test/src/main/ruby/app/views/posts/edit.html.erb +0 -6
  28. data/integration/rails4_test/src/main/ruby/app/views/posts/index.html.erb +0 -31
  29. data/integration/rails4_test/src/main/ruby/app/views/posts/index.json.jbuilder +0 -4
  30. data/integration/rails4_test/src/main/ruby/app/views/posts/new.html.erb +0 -5
  31. data/integration/rails4_test/src/main/ruby/app/views/posts/show.html.erb +0 -19
  32. data/integration/rails4_test/src/main/ruby/app/views/posts/show.json.jbuilder +0 -1
  33. data/integration/rails4_test/src/main/ruby/config.ru +0 -4
  34. data/integration/rails4_test/src/main/ruby/config/application.rb +0 -23
  35. data/integration/rails4_test/src/main/ruby/config/boot.rb +0 -4
  36. data/integration/rails4_test/src/main/ruby/config/database.yml +0 -20
  37. data/integration/rails4_test/src/main/ruby/config/environment.rb +0 -5
  38. data/integration/rails4_test/src/main/ruby/config/environments/development.rb +0 -29
  39. data/integration/rails4_test/src/main/ruby/config/environments/production.rb +0 -80
  40. data/integration/rails4_test/src/main/ruby/config/environments/test.rb +0 -36
  41. data/integration/rails4_test/src/main/ruby/config/initializers/backtrace_silencers.rb +0 -7
  42. data/integration/rails4_test/src/main/ruby/config/initializers/filter_parameter_logging.rb +0 -4
  43. data/integration/rails4_test/src/main/ruby/config/initializers/inflections.rb +0 -16
  44. data/integration/rails4_test/src/main/ruby/config/initializers/mime_types.rb +0 -5
  45. data/integration/rails4_test/src/main/ruby/config/initializers/secret_token.rb +0 -12
  46. data/integration/rails4_test/src/main/ruby/config/initializers/session_store.rb +0 -3
  47. data/integration/rails4_test/src/main/ruby/config/initializers/wrap_parameters.rb +0 -14
  48. data/integration/rails4_test/src/main/ruby/config/locales/en.yml +0 -23
  49. data/integration/rails4_test/src/main/ruby/config/routes.rb +0 -51
  50. data/integration/rails4_test/src/main/ruby/config/warble.rb +0 -4
  51. data/integration/rails4_test/src/main/ruby/db/development.sqlite3 +0 -0
  52. data/integration/rails4_test/src/main/ruby/db/migrate/20130502003552_create_posts.rb +0 -11
  53. data/integration/rails4_test/src/main/ruby/db/production.sqlite3 +0 -0
  54. data/integration/rails4_test/src/main/ruby/db/schema.rb +0 -24
  55. data/integration/rails4_test/src/main/ruby/db/seeds.rb +0 -7
  56. data/integration/rails4_test/src/main/ruby/lib/assets/.keep +0 -0
  57. data/integration/rails4_test/src/main/ruby/lib/tasks/.keep +0 -0
  58. data/integration/rails4_test/src/main/ruby/public/404.html +0 -58
  59. data/integration/rails4_test/src/main/ruby/public/422.html +0 -58
  60. data/integration/rails4_test/src/main/ruby/public/500.html +0 -57
  61. data/integration/rails4_test/src/main/ruby/public/favicon.ico +0 -0
  62. data/integration/rails4_test/src/main/ruby/public/robots.txt +0 -5
  63. data/integration/rails4_test/src/main/ruby/test/controllers/.keep +0 -0
  64. data/integration/rails4_test/src/main/ruby/test/controllers/posts_controller_test.rb +0 -49
  65. data/integration/rails4_test/src/main/ruby/test/fixtures/.keep +0 -0
  66. data/integration/rails4_test/src/main/ruby/test/fixtures/posts.yml +0 -11
  67. data/integration/rails4_test/src/main/ruby/test/helpers/.keep +0 -0
  68. data/integration/rails4_test/src/main/ruby/test/helpers/posts_helper_test.rb +0 -4
  69. data/integration/rails4_test/src/main/ruby/test/integration/.keep +0 -0
  70. data/integration/rails4_test/src/main/ruby/test/mailers/.keep +0 -0
  71. data/integration/rails4_test/src/main/ruby/test/models/.keep +0 -0
  72. data/integration/rails4_test/src/main/ruby/test/models/post_test.rb +0 -7
  73. data/integration/rails4_test/src/main/ruby/test/test_helper.rb +0 -15
  74. data/integration/rails4_test/src/main/ruby/vendor/assets/javascripts/.keep +0 -0
  75. data/integration/rails4_test/src/main/ruby/vendor/assets/stylesheets/.keep +0 -0
  76. data/integration/rails4_test/src/test/java/org/jruby/warbler/Rails4AppTestIT.java +0 -37
  77. data/integration/runnable_test/pom.xml +0 -92
  78. data/integration/runnable_test/src/main/ruby/Rakefile +0 -4
  79. data/integration/runnable_test/src/main/ruby/config.ru +0 -1
  80. data/integration/runnable_test/src/main/ruby/config/warble.rb +0 -9
  81. data/integration/runnable_test/src/test/java/org/jruby/warbler/RunnableWarTestIT.java +0 -22
  82. data/integration/simple_rack_test/pom.xml +0 -43
  83. data/integration/simple_rack_test/src/main/ruby/bin/install-gems.rb +0 -10
  84. data/integration/simple_rack_test/src/main/ruby/config.ru +0 -1
  85. data/integration/simple_rack_test/src/main/ruby/config/warble.rb +0 -5
  86. data/integration/simple_rack_test/src/test/java/org/jruby/warbler/AppTestIT.java +0 -36
  87. data/spec/drb_default_id_conv.rb +0 -61
  88. data/spec/drb_helper.rb +0 -58
  89. data/spec/m2_home/conf/settings.xml +0 -25
  90. data/spec/rails4_stub/Gemfile +0 -6
  91. data/spec/rails4_stub/Gemfile.lock +0 -112
  92. data/spec/sample_bundler/.bundle/config +0 -4
  93. data/spec/sample_bundler/Gemfile +0 -3
  94. data/spec/sample_bundler/Gemfile.lock +0 -13
  95. data/spec/sample_bundler/config.ru +0 -0
  96. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/bin/rake +0 -23
  97. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/cache/rake-10.4.2.gem +0 -0
  98. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/cache/rake-10.5.0.gem +0 -0
  99. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/.autotest +0 -7
  100. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/.gemtest +0 -0
  101. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/.rubocop.yml +0 -27
  102. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/.togglerc +0 -7
  103. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/CONTRIBUTING.rdoc +0 -34
  104. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/History.rdoc +0 -651
  105. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/MIT-LICENSE +0 -21
  106. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/Manifest.txt +0 -166
  107. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/README.rdoc +0 -140
  108. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/Rakefile +0 -81
  109. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/bin/rake +0 -33
  110. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake.rb +0 -79
  111. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/alt_system.rb +0 -110
  112. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/application.rb +0 -790
  113. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/backtrace.rb +0 -23
  114. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/clean.rb +0 -76
  115. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/cloneable.rb +0 -16
  116. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/.document +0 -1
  117. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/compositepublisher.rb +0 -21
  118. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/ftptools.rb +0 -137
  119. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/publisher.rb +0 -81
  120. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/rubyforgepublisher.rb +0 -18
  121. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/sshpublisher.rb +0 -61
  122. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/contrib/sys.rb +0 -4
  123. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/cpu_counter.rb +0 -125
  124. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/default_loader.rb +0 -14
  125. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/dsl_definition.rb +0 -201
  126. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/early_time.rb +0 -21
  127. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ext/core.rb +0 -25
  128. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ext/module.rb +0 -2
  129. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ext/pathname.rb +0 -25
  130. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ext/string.rb +0 -173
  131. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ext/time.rb +0 -16
  132. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/file_creation_task.rb +0 -24
  133. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/file_list.rb +0 -428
  134. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/file_task.rb +0 -46
  135. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/file_utils.rb +0 -128
  136. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/file_utils_ext.rb +0 -144
  137. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/gempackagetask.rb +0 -4
  138. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/invocation_chain.rb +0 -56
  139. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/invocation_exception_mixin.rb +0 -16
  140. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/late_time.rb +0 -17
  141. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/linked_list.rb +0 -103
  142. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/loaders/makefile.rb +0 -40
  143. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/multi_task.rb +0 -13
  144. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/name_space.rb +0 -38
  145. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/packagetask.rb +0 -199
  146. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/pathmap.rb +0 -3
  147. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/phony.rb +0 -15
  148. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/private_reader.rb +0 -20
  149. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/promise.rb +0 -99
  150. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/pseudo_status.rb +0 -29
  151. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/rake_module.rb +0 -38
  152. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/rake_test_loader.rb +0 -22
  153. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/rdoctask.rb +0 -4
  154. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/ruby182_test_unit_fix.rb +0 -29
  155. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/rule_recursion_overflow_error.rb +0 -20
  156. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/runtest.rb +0 -27
  157. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/scope.rb +0 -42
  158. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/task.rb +0 -383
  159. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/task_argument_error.rb +0 -7
  160. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/task_arguments.rb +0 -98
  161. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/task_manager.rb +0 -310
  162. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/tasklib.rb +0 -24
  163. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/testtask.rb +0 -212
  164. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/thread_history_display.rb +0 -48
  165. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/thread_pool.rb +0 -164
  166. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/trace_output.rb +0 -22
  167. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/version.rb +0 -7
  168. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/lib/rake/win32.rb +0 -56
  169. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/rakelib/publish.rake +0 -20
  170. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/rakelib/test_times.rake +0 -25
  171. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/file_creation.rb +0 -34
  172. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/helper.rb +0 -130
  173. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/support/rakefile_definitions.rb +0 -478
  174. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/support/ruby_runner.rb +0 -34
  175. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_private_reader.rb +0 -42
  176. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake.rb +0 -40
  177. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_application.rb +0 -643
  178. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_application_options.rb +0 -466
  179. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_backtrace.rb +0 -119
  180. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_clean.rb +0 -61
  181. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_cpu_counter.rb +0 -68
  182. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_definitions.rb +0 -84
  183. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_directory_task.rb +0 -76
  184. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_dsl.rb +0 -40
  185. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_early_time.rb +0 -31
  186. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_extension.rb +0 -59
  187. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_file_creation_task.rb +0 -56
  188. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_file_list.rb +0 -655
  189. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_file_list_path_map.rb +0 -8
  190. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_file_task.rb +0 -197
  191. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_file_utils.rb +0 -309
  192. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_ftp_file.rb +0 -74
  193. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_functional.rb +0 -482
  194. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_invocation_chain.rb +0 -64
  195. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_late_time.rb +0 -18
  196. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_linked_list.rb +0 -84
  197. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_makefile_loader.rb +0 -46
  198. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_multi_task.rb +0 -64
  199. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_name_space.rb +0 -57
  200. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_package_task.rb +0 -79
  201. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_path_map.rb +0 -168
  202. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_path_map_explode.rb +0 -34
  203. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_path_map_partial.rb +0 -18
  204. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_pathname_extensions.rb +0 -15
  205. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_pseudo_status.rb +0 -21
  206. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_rake_test_loader.rb +0 -20
  207. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_reduce_compat.rb +0 -26
  208. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_require.rb +0 -40
  209. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_rules.rb +0 -388
  210. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_scope.rb +0 -44
  211. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task.rb +0 -393
  212. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_argument_parsing.rb +0 -119
  213. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_arguments.rb +0 -127
  214. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_lib.rb +0 -9
  215. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_manager.rb +0 -178
  216. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_manager_argument_resolution.rb +0 -19
  217. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_task_with_arguments.rb +0 -172
  218. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_test_task.rb +0 -146
  219. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_thread_pool.rb +0 -145
  220. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_top_level_functions.rb +0 -71
  221. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_rake_win32.rb +0 -72
  222. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_thread_history_display.rb +0 -101
  223. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.4.2/test/test_trace_output.rb +0 -52
  224. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.autotest +0 -7
  225. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.rubocop.yml +0 -27
  226. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/.togglerc +0 -7
  227. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +0 -38
  228. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/History.rdoc +0 -659
  229. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/MIT-LICENSE +0 -21
  230. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Manifest.txt +0 -166
  231. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/README.rdoc +0 -139
  232. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/Rakefile +0 -81
  233. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/bin/rake +0 -33
  234. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake.rb +0 -79
  235. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/alt_system.rb +0 -110
  236. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/application.rb +0 -790
  237. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/backtrace.rb +0 -23
  238. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/clean.rb +0 -76
  239. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cloneable.rb +0 -16
  240. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/.document +0 -1
  241. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +0 -21
  242. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +0 -137
  243. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +0 -81
  244. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +0 -18
  245. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +0 -61
  246. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +0 -4
  247. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +0 -125
  248. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/default_loader.rb +0 -14
  249. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +0 -201
  250. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/early_time.rb +0 -21
  251. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/core.rb +0 -25
  252. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/module.rb +0 -2
  253. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +0 -25
  254. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/string.rb +0 -175
  255. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ext/time.rb +0 -18
  256. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +0 -24
  257. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_list.rb +0 -428
  258. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_task.rb +0 -46
  259. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils.rb +0 -128
  260. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +0 -144
  261. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +0 -4
  262. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +0 -56
  263. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +0 -16
  264. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/late_time.rb +0 -17
  265. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/linked_list.rb +0 -103
  266. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +0 -53
  267. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/multi_task.rb +0 -13
  268. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/name_space.rb +0 -38
  269. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/packagetask.rb +0 -199
  270. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pathmap.rb +0 -3
  271. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/phony.rb +0 -15
  272. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/private_reader.rb +0 -20
  273. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/promise.rb +0 -99
  274. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +0 -29
  275. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_module.rb +0 -38
  276. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +0 -22
  277. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +0 -4
  278. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +0 -29
  279. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +0 -20
  280. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/runtest.rb +0 -27
  281. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/scope.rb +0 -42
  282. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task.rb +0 -383
  283. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +0 -7
  284. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +0 -98
  285. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/task_manager.rb +0 -307
  286. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/tasklib.rb +0 -24
  287. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/testtask.rb +0 -213
  288. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +0 -48
  289. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +0 -164
  290. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/trace_output.rb +0 -22
  291. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/version.rb +0 -7
  292. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/lib/rake/win32.rb +0 -56
  293. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/publish.rake +0 -20
  294. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/rakelib/test_times.rake +0 -25
  295. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/file_creation.rb +0 -34
  296. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/helper.rb +0 -129
  297. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +0 -478
  298. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/support/ruby_runner.rb +0 -34
  299. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_private_reader.rb +0 -42
  300. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake.rb +0 -40
  301. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application.rb +0 -643
  302. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_application_options.rb +0 -468
  303. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +0 -119
  304. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_clean.rb +0 -61
  305. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +0 -68
  306. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_definitions.rb +0 -84
  307. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +0 -76
  308. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_dsl.rb +0 -40
  309. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_early_time.rb +0 -31
  310. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_extension.rb +0 -59
  311. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +0 -56
  312. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_list.rb +0 -670
  313. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +0 -8
  314. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_task.rb +0 -197
  315. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +0 -314
  316. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +0 -74
  317. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_functional.rb +0 -482
  318. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +0 -64
  319. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_late_time.rb +0 -18
  320. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +0 -84
  321. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +0 -46
  322. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +0 -64
  323. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_name_space.rb +0 -57
  324. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_package_task.rb +0 -79
  325. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map.rb +0 -168
  326. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +0 -34
  327. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +0 -18
  328. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +0 -15
  329. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +0 -21
  330. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +0 -20
  331. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +0 -26
  332. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_require.rb +0 -40
  333. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_rules.rb +0 -388
  334. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_scope.rb +0 -44
  335. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task.rb +0 -393
  336. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +0 -119
  337. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +0 -127
  338. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +0 -9
  339. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +0 -178
  340. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +0 -19
  341. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +0 -172
  342. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_test_task.rb +0 -146
  343. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +0 -145
  344. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +0 -71
  345. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_rake_win32.rb +0 -72
  346. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_thread_history_display.rb +0 -101
  347. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/gems/rake-10.5.0/test/test_trace_output.rb +0 -52
  348. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/specifications/rake-10.4.2.gemspec +0 -43
  349. data/spec/sample_bundler/vendor/bundle/jruby/2.2.0/specifications/rake-10.5.0.gemspec +0 -43
  350. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/bin/rake +0 -22
  351. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/cache/rake-10.5.0.gem +0 -0
  352. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.autotest +0 -7
  353. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.rubocop.yml +0 -27
  354. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/.togglerc +0 -7
  355. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +0 -38
  356. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/History.rdoc +0 -659
  357. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/MIT-LICENSE +0 -21
  358. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Manifest.txt +0 -166
  359. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/README.rdoc +0 -139
  360. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/Rakefile +0 -81
  361. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/bin/rake +0 -33
  362. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake.rb +0 -79
  363. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/alt_system.rb +0 -110
  364. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb +0 -790
  365. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/backtrace.rb +0 -23
  366. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/clean.rb +0 -76
  367. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cloneable.rb +0 -16
  368. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/.document +0 -1
  369. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +0 -21
  370. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +0 -137
  371. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +0 -81
  372. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +0 -18
  373. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +0 -61
  374. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +0 -4
  375. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +0 -125
  376. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/default_loader.rb +0 -14
  377. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +0 -201
  378. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/early_time.rb +0 -21
  379. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/core.rb +0 -25
  380. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/module.rb +0 -2
  381. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +0 -25
  382. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/string.rb +0 -175
  383. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/time.rb +0 -18
  384. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +0 -24
  385. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_list.rb +0 -428
  386. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_task.rb +0 -46
  387. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils.rb +0 -128
  388. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +0 -144
  389. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +0 -4
  390. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +0 -56
  391. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +0 -16
  392. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/late_time.rb +0 -17
  393. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/linked_list.rb +0 -103
  394. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +0 -53
  395. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/multi_task.rb +0 -13
  396. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/name_space.rb +0 -38
  397. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/packagetask.rb +0 -199
  398. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pathmap.rb +0 -3
  399. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/phony.rb +0 -15
  400. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/private_reader.rb +0 -20
  401. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/promise.rb +0 -99
  402. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +0 -29
  403. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb +0 -38
  404. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +0 -22
  405. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +0 -4
  406. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +0 -29
  407. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +0 -20
  408. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/runtest.rb +0 -27
  409. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/scope.rb +0 -42
  410. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb +0 -383
  411. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +0 -7
  412. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +0 -98
  413. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/task_manager.rb +0 -307
  414. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/tasklib.rb +0 -24
  415. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/testtask.rb +0 -213
  416. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +0 -48
  417. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +0 -164
  418. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/trace_output.rb +0 -22
  419. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/version.rb +0 -7
  420. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/lib/rake/win32.rb +0 -56
  421. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/publish.rake +0 -20
  422. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/rakelib/test_times.rake +0 -25
  423. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/file_creation.rb +0 -34
  424. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/helper.rb +0 -129
  425. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +0 -478
  426. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/support/ruby_runner.rb +0 -34
  427. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_private_reader.rb +0 -42
  428. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake.rb +0 -40
  429. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application.rb +0 -643
  430. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_application_options.rb +0 -468
  431. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +0 -119
  432. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_clean.rb +0 -61
  433. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +0 -68
  434. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_definitions.rb +0 -84
  435. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +0 -76
  436. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_dsl.rb +0 -40
  437. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb +0 -31
  438. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_extension.rb +0 -59
  439. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +0 -56
  440. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list.rb +0 -670
  441. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +0 -8
  442. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_task.rb +0 -197
  443. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +0 -314
  444. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +0 -74
  445. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_functional.rb +0 -482
  446. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +0 -64
  447. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_late_time.rb +0 -18
  448. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +0 -84
  449. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +0 -46
  450. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +0 -64
  451. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_name_space.rb +0 -57
  452. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_package_task.rb +0 -79
  453. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map.rb +0 -168
  454. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +0 -34
  455. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +0 -18
  456. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +0 -15
  457. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +0 -21
  458. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +0 -20
  459. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +0 -26
  460. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_require.rb +0 -40
  461. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_rules.rb +0 -388
  462. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_scope.rb +0 -44
  463. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task.rb +0 -393
  464. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +0 -119
  465. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +0 -127
  466. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +0 -9
  467. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +0 -178
  468. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +0 -19
  469. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +0 -172
  470. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_test_task.rb +0 -146
  471. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +0 -145
  472. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +0 -71
  473. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_rake_win32.rb +0 -72
  474. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_thread_history_display.rb +0 -101
  475. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/gems/rake-10.5.0/test/test_trace_output.rb +0 -52
  476. data/spec/sample_bundler/vendor/bundle/jruby/2.3.0/specifications/rake-10.5.0.gemspec +0 -43
  477. data/spec/sample_jar/History.txt +0 -6
  478. data/spec/sample_jar/README.txt +0 -30
  479. data/spec/sample_jar/Rakefile +0 -23
  480. data/spec/sample_jar/bin/another_jar +0 -5
  481. data/spec/sample_jar/bin/sample_jar +0 -5
  482. data/spec/sample_jar/lib/sample_jar.rb +0 -6
  483. data/spec/sample_jar/sample_jar.gemspec +0 -31
  484. data/spec/sample_jar/sbin/sample_jar +0 -5
  485. data/spec/sample_jar/test/test_sample_jar.rb +0 -8
  486. data/spec/sample_jbundler/.jbundler/classpath.rb +0 -5
  487. data/spec/sample_jbundler/Gemfile +0 -3
  488. data/spec/sample_jbundler/Jarfile +0 -1
  489. data/spec/sample_jbundler/Jarfile.lock +0 -2
  490. data/spec/sample_jbundler/config.ru +0 -0
  491. data/spec/sample_jbundler/local_repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar +0 -0
  492. data/spec/sample_jbundler/local_repository/org/slf4j/slf4j-simple/1.7.5/slf4j-simple-1.7.5.jar +0 -0
  493. data/spec/sample_jbundler/vendor/bundle/gems/.keep +0 -0
  494. data/spec/sample_jbundler/vendor/bundle/jruby/1.8/gems +0 -1
  495. data/spec/sample_jbundler/vendor/bundle/jruby/1.8/specifications +0 -1
  496. data/spec/sample_jbundler/vendor/bundle/jruby/1.9/gems +0 -1
  497. data/spec/sample_jbundler/vendor/bundle/jruby/1.9/specifications +0 -1
  498. data/spec/sample_jbundler/vendor/bundle/ruby/1.8/gems +0 -1
  499. data/spec/sample_jbundler/vendor/bundle/ruby/1.8/specifications +0 -1
  500. data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/gems +0 -1
  501. data/spec/sample_jbundler/vendor/bundle/ruby/1.9.1/specifications +0 -1
  502. data/spec/sample_jbundler/vendor/bundle/specifications/.keep +0 -0
  503. data/spec/sample_rack_war/config.ru +0 -3
  504. data/spec/sample_rack_war/lib/app.rb +0 -6
  505. data/spec/sample_war/.jbundler/classpath.rb +0 -1
  506. data/spec/sample_war/Jarfile.lock +0 -2
  507. data/spec/sample_war/README +0 -256
  508. data/spec/sample_war/Rakefile +0 -15
  509. data/spec/sample_war/Special-Jarfile +0 -1
  510. data/spec/sample_war/Special-Jarfile.lock +0 -2
  511. data/spec/sample_war/app/controllers/application.rb +0 -15
  512. data/spec/sample_war/app/helpers/application_helper.rb +0 -3
  513. data/spec/sample_war/config/boot.rb +0 -109
  514. data/spec/sample_war/config/database.yml +0 -19
  515. data/spec/sample_war/config/environment.rb +0 -67
  516. data/spec/sample_war/config/environments/development.rb +0 -17
  517. data/spec/sample_war/config/environments/production.rb +0 -25
  518. data/spec/sample_war/config/environments/test.rb +0 -22
  519. data/spec/sample_war/config/initializers/inflections.rb +0 -10
  520. data/spec/sample_war/config/initializers/mime_types.rb +0 -5
  521. data/spec/sample_war/config/initializers/new_rails_defaults.rb +0 -15
  522. data/spec/sample_war/config/routes.rb +0 -41
  523. data/spec/sample_war/gems/.keep +0 -1
  524. data/spec/sample_war/lib/ruby_one_nine.rb +0 -8
  525. data/spec/sample_war/lib/tasks/utils.rake +0 -0
  526. data/spec/sample_war/public/404.html +0 -30
  527. data/spec/sample_war/public/422.html +0 -30
  528. data/spec/sample_war/public/500.html +0 -30
  529. data/spec/sample_war/public/favicon.ico +0 -0
  530. data/spec/sample_war/public/index.html +0 -274
  531. data/spec/sample_war/public/robots.txt +0 -5
  532. data/spec/sample_war/some.jar +0 -0
  533. data/spec/spec_helper.rb +0 -226
  534. data/spec/warbler/application_spec.rb +0 -94
  535. data/spec/warbler/bundler_spec.rb +0 -253
  536. data/spec/warbler/config_spec.rb +0 -160
  537. data/spec/warbler/gems_spec.rb +0 -40
  538. data/spec/warbler/jar_spec.rb +0 -1031
  539. data/spec/warbler/jbundler_spec.rb +0 -83
  540. data/spec/warbler/task_spec.rb +0 -228
  541. data/spec/warbler/traits_spec.rb +0 -21
  542. data/spec/warbler/war_spec.rb +0 -14
  543. data/spec/warbler/web_server_spec.rb +0 -41
@@ -1,40 +0,0 @@
1
- #--
2
- # Copyright (c) 2010-2012 Engine Yard, Inc.
3
- # Copyright (c) 2007-2009 Sun Microsystems, Inc.
4
- # This source code is available under the MIT license.
5
- # See the file LICENSE.txt for details.
6
- #++
7
-
8
- require File.expand_path('../../spec_helper', __FILE__)
9
-
10
- describe Warbler::Gems do
11
- it "should accept a hash for initialization" do
12
- gems = Warbler::Gems.new({"actionpack" => "1.2.3"})
13
- gems.should have_key("actionpack")
14
- gems["actionpack"].should == "1.2.3"
15
- end
16
-
17
- it "should accept an array for initialization" do
18
- gems = Warbler::Gems.new ["activerecord"]
19
- gems.should have_key("activerecord")
20
- end
21
-
22
- it "should allow gems with a version" do
23
- gems = Warbler::Gems.new
24
- gems["actionpack"] = "> 1.2.3"
25
- gems["actionpack"].should == "> 1.2.3"
26
- end
27
-
28
- it "should allow gems without an explicit version" do
29
- gems = Warbler::Gems.new
30
- gems << "actionpack"
31
- gems.should have_key("actionpack")
32
- end
33
-
34
- it "should allow to add gems" do
35
- gems = Warbler::Gems.new
36
- gems << "rails"
37
- gems += ["activerecord-jdbcmysql-adapter", "jdbc-mysql", "jruby-openssl"]
38
- ["rails", "activerecord-jdbcmysql-adapter", "jdbc-mysql", "jruby-openssl"].each {|g| gems.should have_key(g)}
39
- end
40
- end
@@ -1,1031 +0,0 @@
1
- #--
2
- # Copyright (c) 2010-2012 Engine Yard, Inc.
3
- # Copyright (c) 2007-2009 Sun Microsystems, Inc.
4
- # This source code is available under the MIT license.
5
- # See the file LICENSE.txt for details.
6
- #++
7
-
8
- require File.expand_path('../../spec_helper', __FILE__)
9
-
10
- describe Warbler::Jar do
11
- use_fresh_rake_application
12
- use_fresh_environment
13
-
14
- def file_list(regex)
15
- jar.files.keys.select {|f| f =~ regex }
16
- end
17
-
18
- def use_config(&block)
19
- @extra_config = block
20
- end
21
-
22
- def apply_extra_config(config)
23
- @extra_config.call(config) if @extra_config
24
- end
25
-
26
- let(:config) { Warbler::Config.new {|c| apply_extra_config(c) } }
27
- let(:jar) { Warbler::Jar.new }
28
-
29
- before do
30
- # We repeatedly load the same gemspec, but we modify it between
31
- # loads. RubyGems treats the filename as the cache key, not taking
32
- # into account the modification time or contents.
33
- Gem::Specification.reset
34
- end
35
-
36
- context "in a jar project" do
37
- run_in_directory "spec/sample_jar"
38
- cleanup_temp_files include: '*.java'
39
-
40
- it "detects a Jar trait" do
41
- config.traits.should include(Warbler::Traits::Jar)
42
- end
43
-
44
- it "collects java libraries" do
45
- jar.apply(config)
46
- file_list(%r{^META-INF/lib/jruby-.*\.jar$}).should_not be_empty
47
- end
48
-
49
- it "adds a JarMain class" do
50
- jar.apply(config)
51
- file_list(%r{^JarMain\.class$}).should_not be_empty
52
- end
53
-
54
- it "adds an init.rb" do
55
- jar.apply(config)
56
- file_list(%r{^META-INF/init.rb$}).should_not be_empty
57
- end
58
-
59
- it "requires 'rubygems' in init.rb" do
60
- jar.add_init_file(config)
61
- contents = jar.contents('META-INF/init.rb')
62
- contents.should =~ /require 'rubygems'/
63
- end
64
-
65
- it "does not override ENV['GEM_HOME'] by default" do
66
- jar.add_init_file(config)
67
- contents = jar.contents('META-INF/init.rb')
68
- contents.should include("ENV['GEM_HOME'] =")
69
- end
70
-
71
- it "overrides ENV['GEM_HOME'] when override_gem_home is set" do
72
- config.override_gem_home = false
73
- jar.add_init_file(config)
74
- contents = jar.contents('META-INF/init.rb')
75
- contents.should include("ENV['GEM_HOME'] ||=")
76
- end
77
-
78
- it "adds a main.rb" do
79
- jar.apply(config)
80
- file_list(%r{^META-INF/main.rb$}).should_not be_empty
81
- end
82
-
83
- it "adds script_files" do
84
- config.script_files << __FILE__
85
- jar.apply(config)
86
- file_list(%r{^META-INF/#{File.basename(__FILE__)}$}).should_not be_empty
87
- end
88
-
89
- it "accepts a custom manifest file" do
90
- touch 'manifest'
91
- use_config do |config|
92
- config.manifest_file = 'manifest'
93
- end
94
- jar.apply(config)
95
- jar.files['META-INF/MANIFEST.MF'].should == "manifest"
96
- end
97
-
98
- it "accepts a MANIFEST.MF file if it exists in the project root" do
99
- touch 'MANIFEST.MF'
100
- jar.apply(config)
101
- jar.files['META-INF/MANIFEST.MF'].should == "MANIFEST.MF"
102
- end
103
-
104
- it "does not add a manifest if one already exists" do
105
- jar.files['META-INF/MANIFEST.MF'] = 'manifest'
106
- jar.add_manifest(config)
107
- jar.files['META-INF/MANIFEST.MF'].should == "manifest"
108
- end
109
-
110
- it "creates a jar" do
111
- begin
112
- touch "foo.txt"
113
- mkdir 'bar'
114
- touch "bar/bar.txt"
115
-
116
- use_config do |config|
117
- config.jar_name = 'sample'
118
- end
119
-
120
- jar.files["foo.txt".freeze] = "foo.txt"
121
- jar.files["bar".freeze] = "bar" # @see #76 on MRI
122
- jar.files["bar/bar.txt"] = "bar/bar.txt".freeze
123
-
124
- silence { jar.create(config) }
125
- File.exist?("sample.jar").should == true
126
- ensure
127
- rm_f ['foo.txt', 'bar/bar.txt', 'sample.jar']
128
- rmdir 'bar'
129
- end
130
- end
131
-
132
- context "with a .gemspec" do
133
- it "detects a Gemspec trait" do
134
- config.traits.should include(Warbler::Traits::Gemspec)
135
- end
136
-
137
- it "detects gem dependencies" do
138
- jar.apply(config)
139
- file_list(%r{^gems/rubyzip.*/lib/(zip/)?zip.rb}).should_not be_empty
140
- file_list(%r{^specifications/rubyzip.*\.gemspec}).should_not be_empty
141
- end
142
-
143
- it "sets load paths in init.rb" do
144
- jar.add_init_file(config)
145
- contents = jar.contents('META-INF/init.rb')
146
- contents.should =~ /LOAD_PATH\.unshift.*sample_jar\/lib/
147
- end
148
-
149
- it "loads the default executable in main.rb" do
150
- jar.apply(config)
151
- contents = jar.contents('META-INF/main.rb')
152
- contents.should == "load 'sample_jar/sbin/sample_jar'"
153
- end
154
-
155
- it "includes compiled .rb and .class files" do
156
- config.compiled_ruby_files = %w(lib/sample_jar.rb)
157
- jar.compile(config)
158
- jar.apply(config)
159
- file_list(%r{^sample_jar/lib/sample_jar\.class$}).should_not be_empty
160
- jar.contents('sample_jar/lib/sample_jar.rb').should =~ /load __FILE__\.sub/
161
- end
162
-
163
- it "includes only specified dirs" do
164
- config.dirs = %w(bin)
165
- jar.compile(config)
166
- jar.apply(config)
167
- file_list(%r{^sample_jar/lib$}).should be_empty
168
- file_list(%r{^sample_jar/bin$}).should_not be_empty
169
- end
170
-
171
- it "excludes .rb and .class files from compile" do
172
- config.compiled_ruby_files = %w(lib/sample_jar.rb)
173
- config.excludes += FileList["lib/sample_jar.*"]
174
- jar.compile(config)
175
- jar.apply(config)
176
- file_list(%r{^sample_jar/lib/sample_jar\.class$}).should be_empty
177
- jar.contents('sample_jar/lib/sample_jar.rb').should_not =~ /load __FILE__\.sub/
178
- end
179
-
180
- it "compiles included gems when compile_gems is true" do
181
- config.compile_gems = true
182
- config.compiled_ruby_files = %w(lib/sample_jar.rb)
183
- jar.compile(config)
184
- jar.apply(config)
185
- file_list(%r{sample_jar.*\.rb$}).size.should == 2
186
- file_list(%r{gems.*\.class$}).size.should >= 80 # depending on RubyZip version
187
- end
188
-
189
- it "does not compile included gems by default" do
190
- config.compiled_ruby_files = %w(lib/sample_jar.rb)
191
- jar.compile(config)
192
- jar.apply(config)
193
- file_list(%r{sample_jar.*\.rb$}).size.should == 2
194
- file_list(%r{gems.*\.class$}).size.should == 0
195
- end
196
-
197
- it "compiles with jrubyc options when specified" do
198
- config.jrubyc_options = [ '--java' ]
199
- config.compiled_ruby_files = %w(lib/sample_jar.rb)
200
- jar.compile(config)
201
- jar.apply(config)
202
- expect( FileList['*'] ).to include 'SampleJar.java'
203
- end
204
-
205
- end
206
-
207
- context "with a gemspec without a default executable" do
208
- before :each do
209
- Dir['*.gemspec'].each do |f|
210
- cp f, "#{f}.tmp"
211
- lines = IO.readlines(f)
212
- File.open(f, 'w') do |io|
213
- lines.each do |line|
214
- next if line =~ /executable/
215
- io << line
216
- end
217
- end
218
- end
219
- end
220
-
221
- after :each do
222
- Dir['*.gemspec.tmp'].each {|f| mv f, "#{f.sub /\.tmp$/, ''}"}
223
- end
224
-
225
- it "loads the first bin/executable in main.rb" do
226
- silence { jar.apply(config) }
227
- contents = jar.contents('META-INF/main.rb')
228
- contents.should =~ /load.*sample_jar\/bin\/another_jar/
229
- end
230
-
231
- it "loads the specified bin/executable in main.rb" do
232
- use_config do |config|
233
- config.executable = 'bin/sample_jar'
234
- end
235
- silence { jar.apply(config) }
236
- contents = jar.contents('META-INF/main.rb')
237
- contents.should =~ /load.*sample_jar\/bin\/sample_jar/
238
- end
239
- end
240
-
241
- context "without a .gemspec" do
242
- before :each do
243
- Dir['*.gemspec'].each {|f| mv f, "#{f}.tmp"}
244
- end
245
-
246
- after :each do
247
- Dir['*.gemspec.tmp'].each {|f| mv f, "#{f.sub /\.tmp$/, ''}"}
248
- end
249
-
250
- it "detects a NoGemspec trait" do
251
- config.traits.should include(Warbler::Traits::NoGemspec)
252
- end
253
-
254
- it "collects gem files from configuration" do
255
- use_config do |config|
256
- config.gems << "rake"
257
- end
258
- jar.apply(config)
259
- file_list(%r{^gems/rake.*/lib/rake.rb}).should_not be_empty
260
- file_list(%r{^specifications/rake.*\.gemspec}).should_not be_empty
261
- end
262
-
263
- it "collects all project files in the directory" do
264
- touch "extra.foobar"
265
- jar.apply(config)
266
- file_list(%r{^sample_jar/bin$}).should_not be_empty
267
- file_list(%r{^sample_jar/test$}).should_not be_empty
268
- file_list(%r{^sample_jar/lib/sample_jar.rb$}).should_not be_empty
269
- file_list(%r{^sample_jar/extra\.foobar$}).should_not be_empty
270
- end
271
-
272
- it "sets load paths in init.rb" do
273
- jar.add_init_file(config)
274
- contents = jar.contents('META-INF/init.rb')
275
- contents.should =~ /LOAD_PATH\.unshift.*sample_jar\/lib/
276
- end
277
-
278
- it "loads the first bin/executable in main.rb" do
279
- jar.apply(config)
280
- contents = jar.contents('META-INF/main.rb')
281
- contents.should =~ /load.*sample_jar\/bin\/sample_jar/
282
- end
283
-
284
- it "loads the specified bin/executable in main.rb" do
285
- use_config do |config|
286
- config.executable = 'bin/sample_jar_extra'
287
- end
288
- jar.apply(config)
289
- contents = jar.contents('META-INF/main.rb')
290
- contents.should =~ /load.*sample_jar\/bin\/sample_jar_extra/
291
- end
292
-
293
- it "loads the bin/executable from other gem in main.rb" do
294
- use_config do |config|
295
- config.gems = [ "rake" ]
296
- config.executable = ['rake', 'bin/rake']
297
- end
298
- jar.apply(config)
299
- contents = jar.contents('META-INF/main.rb')
300
- contents.should =~ /load.*gems\/rake.*\/bin\/rake/
301
- end
302
-
303
- it "does not set parameters in main.rb" do
304
- jar.apply(config)
305
- contents = jar.contents('META-INF/main.rb')
306
- contents.should_not =~ /ARGV.*/m
307
- end
308
-
309
- it "does set parameters in main.rb" do
310
- use_config do |config|
311
- config.executable_params = 'do_something'
312
- end
313
- jar.apply(config)
314
- contents = jar.contents('META-INF/main.rb')
315
- contents.should =~ /ARGV\.unshift.*do_something/m
316
- end
317
-
318
- end
319
- end
320
-
321
- context "in a war project" do
322
- run_in_directory "spec/sample_war"
323
- cleanup_temp_files
324
-
325
- before(:each) do
326
- mkdir_p "log"
327
- touch "log/test.log"
328
- end
329
-
330
- it "detects a War trait" do
331
- config.traits.should include(Warbler::Traits::War)
332
- end
333
-
334
- it "collects files in public" do
335
- jar.apply(config)
336
- file_list(%r{^index\.html}).should_not be_empty
337
- end
338
-
339
- it "collects gem files" do
340
- use_config do |config|
341
- config.gems << 'rake'
342
- end
343
- jar.apply(config)
344
- file_list(%r{WEB-INF/gems/gems/rake.*/lib/rake.rb}).should_not be_empty
345
- file_list(%r{WEB-INF/gems/specifications/rake.*\.gemspec}).should_not be_empty
346
- end
347
-
348
- it "collects gem files with dependencies" do
349
- use_config do |config|
350
- config.gems << 'virtus'
351
- config.gem_dependencies = true
352
- end
353
- jar.apply(config)
354
- file_list(%r{WEB-INF/gems/gems/axiom-types.*/lib}).should_not be_empty
355
- file_list(%r{WEB-INF/gems/specifications/axiom-types.*\.gemspec}).should_not be_empty
356
- file_list(%r{WEB-INF/gems/gems/equalizer.*/lib/equalizer/version.rb$}).should_not be_empty
357
- # NOTE: rdoc is tricky as its dependency json is a default gem
358
- #use_config do |config|
359
- # config.gems << "rdoc"
360
- # config.gem_dependencies = true
361
- #end
362
- #jar.apply(config)
363
- #file_list(%r{WEB-INF/gems/gems/json.*/lib/json.rb}).should_not be_empty
364
- #file_list(%r{WEB-INF/gems/specifications/json.*\.gemspec}).should_not be_empty
365
- end
366
-
367
- it "collects gem files without dependencies" do
368
- use_config do |config|
369
- config.gems << 'virtus'
370
- config.gem_dependencies = false
371
- end
372
- jar.apply(config)
373
- file_list(%r{WEB-INF/gems/gems/axiom-types.*/lib}).should be_empty
374
- file_list(%r{WEB-INF/gems/specifications/axiom-types.*\.gemspec}).should be_empty
375
- file_list(%r{WEB-INF/gems/gems/equalizer.*/lib/equalizer/version.rb$}).should be_empty
376
- #use_config do |config|
377
- # config.gems << "rdoc"
378
- # config.gem_dependencies = false
379
- #end
380
- #jar.apply(config)
381
- #file_list(%r{WEB-INF/gems/gems/json.*/lib/json.rb}).should be_empty
382
- #file_list(%r{WEB-INF/gems/specifications/json.*\.gemspec}).should be_empty
383
- end
384
-
385
- it "adds ENV['GEM_HOME'] to init.rb" do
386
- jar.add_init_file(config)
387
- contents = jar.contents('META-INF/init.rb')
388
- contents.should include("ENV['GEM_HOME'] =")
389
- contents.should =~ /WEB-INF\/gems/
390
- end
391
-
392
- it "overrides ENV['GEM_HOME'] when override_gem_home is set" do
393
- config.override_gem_home = true
394
- jar.add_init_file(config)
395
- contents = jar.contents('META-INF/init.rb')
396
- contents.should include("ENV['GEM_HOME'] =")
397
- end
398
-
399
- it "does not include log files by default" do
400
- jar.apply(config)
401
- file_list(%r{WEB-INF/log}).should_not be_empty
402
- file_list(%r{WEB-INF/log/.*\.log}).should be_empty
403
- end
404
-
405
- def expand_webxml
406
- jar.apply(config)
407
- jar.files.should include("WEB-INF/web.xml")
408
- require 'rexml/document'
409
- REXML::Document.new(jar.files["WEB-INF/web.xml"]).root.elements
410
- end
411
-
412
- it "creates a web.xml file" do
413
- use_config do |config|
414
- config.webxml.booter = :rack
415
- config.webxml.jruby.max.runtimes = 5
416
- end
417
- elements = expand_webxml
418
- elements.to_a(
419
- "context-param/param-name[text()='jruby.max.runtimes']"
420
- ).should_not be_empty
421
- elements.to_a(
422
- "context-param/param-name[text()='jruby.max.runtimes']/../param-value"
423
- ).first.text.should == "5"
424
-
425
- filters = elements.to_a("filter/filter-class")
426
- expect( filters.size ).to eql 1
427
- expect( filters.first.text ).to eql 'org.jruby.rack.RackFilter'
428
- filters = elements.to_a("filter/filter-name")
429
- expect( filters.size ).to eql 1
430
- expect( filters.first.text ).to eql 'RackFilter'
431
- filters = elements.to_a("filter/async-supported")
432
- expect( filters.size ).to eql 1
433
- expect( filters.first.text ).to eql 'false'
434
- filters = elements.to_a("filter-mapping/filter-name")
435
- expect( filters.size ).to eql 1
436
- expect( filters.first.text ).to eql 'RackFilter'
437
- filters = elements.to_a("filter-mapping/url-pattern")
438
- expect( filters.size ).to eql 1
439
- expect( filters.first.text ).to eql '/*'
440
-
441
- listeners = elements.to_a("listener/listener-class")
442
- expect( listeners.size ).to eql 1
443
- expect( listeners.first.text ).to eql 'org.jruby.rack.RackServletContextListener'
444
- end
445
-
446
- it "includes custom context parameters in web.xml" do
447
- use_config do |config|
448
- config.webxml.some.custom.config = "myconfig"
449
- end
450
- elements = expand_webxml
451
- elements.to_a(
452
- "context-param/param-name[text()='some.custom.config']"
453
- ).should_not be_empty
454
- elements.to_a(
455
- "context-param/param-name[text()='some.custom.config']/../param-value"
456
- ).first.text.should == "myconfig"
457
- end
458
-
459
- it "allows one jndi resource to be included" do
460
- use_config do |config|
461
- config.webxml.jndi = 'jndi/rails'
462
- end
463
- elements = expand_webxml
464
- elements.to_a(
465
- "resource-ref/res-ref-name[text()='jndi/rails']"
466
- ).should_not be_empty
467
- end
468
-
469
- it "allows multiple jndi resources to be included" do
470
- use_config do |config|
471
- config.webxml.jndi = ['jndi/rails1', 'jndi/rails2']
472
- end
473
- elements = expand_webxml
474
- elements.to_a(
475
- "resource-ref/res-ref-name[text()='jndi/rails1']"
476
- ).should_not be_empty
477
- elements.to_a(
478
- "resource-ref/res-ref-name[text()='jndi/rails2']"
479
- ).should_not be_empty
480
- end
481
-
482
- it "does not include any ignored context parameters" do
483
- use_config do |config|
484
- config.webxml.foo = "bar"
485
- config.webxml.ignored << "foo"
486
- end
487
- elements = expand_webxml
488
- elements.to_a(
489
- "context-param/param-name[text()='foo']"
490
- ).should be_empty
491
- elements.to_a(
492
- "context-param/param-name[text()='ignored']"
493
- ).should be_empty
494
- elements.to_a(
495
- "context-param/param-name[text()='jndi']"
496
- ).should be_empty
497
- end
498
-
499
- it "uses a config/web.xml if it exists" do
500
- mkdir_p "config"
501
- touch "config/web.xml"
502
- jar.apply(config)
503
- jar.files["WEB-INF/web.xml"].should == "config/web.xml"
504
- end
505
-
506
- it "uses a config/web.xml.erb if it exists" do
507
- mkdir_p "config"
508
- File.open("config/web.xml.erb", "w") {|f| f << "Hi <%= webxml.public.root %>" }
509
- jar.apply(config)
510
- jar.files["WEB-INF/web.xml"].should_not be nil
511
- jar.files["WEB-INF/web.xml"].read.should == "Hi /"
512
- end
513
-
514
- it "collects java libraries" do
515
- jar.apply(config)
516
- file_list(%r{WEB-INF/lib/jruby-.*\.jar$}).should_not be_empty
517
- end
518
-
519
- it "collects application files" do
520
- jar.apply(config)
521
- file_list(%r{WEB-INF/app$}).should_not be_empty
522
- file_list(%r{WEB-INF/config$}).should_not be_empty
523
- file_list(%r{WEB-INF/lib$}).should_not be_empty
524
- end
525
-
526
- it "accepts an autodeploy directory where the war should be created" do
527
- require 'tmpdir'
528
- use_config do |config|
529
- config.jar_name = 'warbler'
530
- config.autodeploy_dir = Dir::tmpdir
531
- end
532
- touch "file.txt"
533
- jar.files["file.txt"] = "file.txt"
534
- silence { jar.create(config) }
535
- File.exist?(File.join("#{Dir::tmpdir}","warbler.war")).should == true
536
- end
537
-
538
- it "allows the jar extension to be customized" do
539
- use_config do |config|
540
- config.jar_name = 'warbler'
541
- config.jar_extension = 'foobar'
542
- end
543
- touch "file.txt"
544
- jar.files["file.txt"] = "file.txt"
545
- silence { jar.create(config) }
546
- File.exist?("warbler.foobar").should == true
547
- end
548
-
549
- it "can exclude files from the .war" do
550
- use_config do |config|
551
- config.excludes += FileList['lib/tasks/utils.rake']
552
- end
553
- jar.apply(config)
554
- file_list(%r{lib/tasks/utils.rake}).should be_empty
555
- end
556
-
557
- it "can exclude public files from the .war" do
558
- use_config do |config|
559
- config.excludes += FileList['public/robots.txt']
560
- end
561
- jar.apply(config)
562
- file_list(%r{robots.txt}).should be_empty
563
- end
564
-
565
- it "reads configuration from #{Warbler::Config::FILE}" do
566
- mkdir_p "config"
567
- File.open(Warbler::Config::FILE, "w") do |dest|
568
- contents =
569
- File.open("#{Warbler::WARBLER_HOME}/warble.rb") do |src|
570
- src.read
571
- end
572
- dest << contents.sub(/# config\.jar_name/, 'config.jar_name'
573
- ).sub(/# config.gems << "tzinfo"/, 'config.gems = []')
574
- end
575
- t = Warbler::Task.new "warble"
576
- t.config.jar_name.should == "mywar"
577
- end
578
-
579
- it "fails if a gem is requested that is not installed" do
580
- use_config do |config|
581
- config.gems = ["nonexistent-gem"]
582
- end
583
- lambda {
584
- Warbler::Task.new "warble", config
585
- jar.apply(config)
586
- }.should raise_error
587
- end
588
-
589
- it "allows specification of dependency by Gem::Dependency" do
590
- spec = double "gem spec"
591
- spec.stub(:name).and_return "hpricot"
592
- spec.stub(:full_name).and_return "hpricot-0.6.157"
593
- spec.stub(:full_gem_path).and_return "hpricot-0.6.157"
594
- spec.stub(:loaded_from).and_return "hpricot.gemspec"
595
- spec.stub(:files).and_return ["Rakefile"]
596
- spec.stub(:dependencies).and_return []
597
- dep = Gem::Dependency.new("hpricot", "> 0.6")
598
- dep.should_receive(:to_spec).and_return spec
599
- use_config do |config|
600
- config.gems = [dep]
601
- end
602
- silence { jar.apply(config) }
603
- end
604
-
605
- it "copies loose java classes to WEB-INF/classes" do
606
- use_config do |config|
607
- config.java_classes = FileList["Rakefile"]
608
- end
609
- jar.apply(config)
610
- file_list(%r{WEB-INF/classes/Rakefile$}).should_not be_empty
611
- end
612
-
613
- it "does not try to autodetect frameworks when Warbler.framework_detection is false" do
614
- begin
615
- Warbler.framework_detection = false
616
- task :environment
617
- config.webxml.booter.should_not == :rails
618
- t = Rake::Task['environment']
619
- class << t; public :instance_variable_get; end
620
- t.instance_variable_get("@already_invoked").should == false
621
- ensure
622
- Warbler.framework_detection = true
623
- end
624
- end
625
-
626
- context "with embedded jar files" do
627
- before :each do
628
- touch FileList["app/sample.jar", "lib/existing.jar"]
629
- end
630
- after :each do
631
- rm_f FileList["app/sample.jar", "lib/existing.jar"]
632
- end
633
-
634
- context "with move_jars_to_webinf_lib set to true" do
635
- before :each do
636
- use_config do |config|
637
- config.move_jars_to_webinf_lib = true
638
- end
639
- end
640
-
641
- it "moves jar files to WEB-INF/lib" do
642
- jar.apply(config)
643
- file_list(%r{WEB-INF/lib/app-sample.jar}).should_not be_empty
644
- file_list(%r{WEB-INF/app/sample.jar}).should_not be_empty
645
- end
646
-
647
- it "leaves jar files alone that are already in WEB-INF/lib" do
648
- jar.apply(config)
649
- file_list(%r{WEB-INF/lib/lib-existing.jar}).should be_empty
650
- file_list(%r{WEB-INF/lib/existing.jar}).should_not be_empty
651
- end
652
- end
653
-
654
- context "with move_jars_to_webinf_lib not set" do
655
- it "moves jar files to WEB-INF/lib" do
656
- jar.apply(config)
657
- file_list(%r{WEB-INF/lib/app-sample.jar}).should be_empty
658
- file_list(%r{WEB-INF/app/sample.jar}).should_not be_empty
659
- end
660
- end
661
-
662
- context "with move_jars_to_webinf_lib set to regexp" do
663
- before :each do
664
- use_config do |config|
665
- config.move_jars_to_webinf_lib = /sample/
666
- end
667
- end
668
-
669
- before :each do
670
- touch FileList["app/another.jar", "app/sample2.jar"]
671
- end
672
- after :each do
673
- rm_f FileList["app/another.jar", "app/sample2.jar"]
674
- end
675
-
676
- it "moves jar files that match to WEB-INF/lib" do
677
- jar.apply(config)
678
- file_list(%r{WEB-INF/lib/app-sample.jar}).should_not be_empty
679
- file_list(%r{WEB-INF/lib/app-sample2.jar}).should_not be_empty
680
- file_list(%r{WEB-INF/lib/.*?another.jar}).should be_empty
681
- end
682
-
683
- it "removes default jars not matched by filter from WEB-INF/lib" do
684
- jar.apply(config)
685
- file_list(%r{WEB-INF/lib/jruby-rack.*\.jar}).should be_empty
686
- file_list(%r{WEB-INF/lib/jruby-core.*\.jar}).should be_empty
687
- end
688
-
689
- end
690
-
691
- end
692
-
693
- context "with the executable feature" do
694
- use_test_webserver
695
-
696
- it "adds WarMain (and JarMain) class" do
697
- use_config do |config|
698
- config.webserver = "test"
699
- config.features << "executable"
700
- end
701
- jar.apply(config)
702
- file_list(%r{^WarMain\.class$}).should_not be_empty
703
- file_list(%r{^JarMain\.class$}).should_not be_empty
704
- end
705
- end
706
-
707
- context "with the runnable feature" do
708
-
709
- it "adds WarMain (and JarMain) class" do
710
- use_config do |config|
711
- config.features << "runnable"
712
- end
713
- jar.apply(config)
714
- file_list(%r{^WarMain\.class$}).should_not be_empty
715
- file_list(%r{^JarMain\.class$}).should_not be_empty
716
- end
717
-
718
- end
719
-
720
- context "in a Rails application" do
721
- before :each do
722
- @rails = nil
723
- task :environment do
724
- @rails = mock_rails_module
725
- end
726
- end
727
-
728
- def mock_rails_module
729
- rails = Module.new
730
- Object.const_set("Rails", rails)
731
- version = Module.new
732
- rails.const_set("VERSION", version)
733
- version.const_set("STRING", "2.1.0")
734
- rails
735
- end
736
-
737
- it "detects a Rails trait" do
738
- config.traits.should include(Warbler::Traits::Rails)
739
- end
740
-
741
- it "auto-detects a Rails application" do
742
- config.webxml.booter.should == :rails
743
- config.gems["rails"].should == "2.1.0"
744
- end
745
-
746
- it "adds the rails.rb to the script files" do
747
- config.script_files.first.should =~ %r{lib/warbler/scripts/rails.rb$}
748
- end
749
-
750
- it "provides Rails gems by default, unless vendor/rails is present" do
751
- config.gems.should have_key("rails")
752
-
753
- mkdir_p "vendor/rails"
754
- config = Warbler::Config.new
755
- config.gems.should be_empty
756
-
757
- rm_rf "vendor/rails"
758
- @rails.stub(:vendor_rails?).and_return true
759
- config = Warbler::Config.new
760
- config.gems.should be_empty
761
- end
762
-
763
- it "automatically adds Rails.configuration.gems to the list of gems" do
764
- task :environment do
765
- config = double "config"
766
- @rails.stub(:configuration).and_return(config)
767
- gem = double "gem"
768
- gem.stub(:name).and_return "hpricot"
769
- gem.stub(:requirement).and_return Gem::Requirement.new("=0.6")
770
- config.stub(:gems).and_return [gem]
771
- end
772
-
773
- config.webxml.booter.should == :rails
774
- config.gems.keys.should include(Gem::Dependency.new("hpricot", Gem::Requirement.new("=0.6")))
775
- end
776
-
777
- shared_examples_for "threaded environment" do
778
- it "sets the jruby min and max runtimes to 1" do
779
- ENV["RAILS_ENV"] = nil
780
- config.webxml.booter.should == :rails
781
- config.webxml.jruby.min.runtimes.should == 1
782
- config.webxml.jruby.max.runtimes.should == 1
783
- end
784
-
785
- it "doesn't override already configured runtime numbers" do
786
- use_config do |config|
787
- config.webxml.jruby.min.runtimes = 2
788
- config.webxml.jruby.max.runtimes = 2
789
- end
790
- config.webxml.jruby.min.runtimes.should == 2
791
- config.webxml.jruby.max.runtimes.should == 2
792
- end
793
- end
794
-
795
- context "with asset_pipeline" do
796
- let (:manifest_file) { "public/assets/manifest.yml" }
797
-
798
- before do
799
- mkdir File.dirname(manifest_file)
800
- File.open(manifest_file, "w")
801
- end
802
-
803
- after do
804
- rm_rf File.dirname(manifest_file)
805
- end
806
-
807
- it "automatically adds asset pipeline manifest file to the included files" do
808
- config.includes.should include("public/assets/manifest.yml")
809
- end
810
- end
811
-
812
- context "with threadsafe! enabled in production.rb" do
813
- before :each do
814
- cp "config/environments/production.rb", "config/environments/production.rb.orig"
815
- File.open("config/environments/production.rb", "a") { |f| f.puts "", "config.threadsafe!" }
816
- end
817
-
818
- after :each do
819
- mv "config/environments/production.rb.orig", "config/environments/production.rb"
820
- end
821
-
822
- it_should_behave_like "threaded environment"
823
- end
824
-
825
- context "with threadsafe! enabled in environment.rb" do
826
- before :each do
827
- cp "config/environment.rb", "config/environment.rb.orig"
828
- File.open("config/environment.rb", "a") { |f| f.puts "", "config.threadsafe!" }
829
- end
830
-
831
- after :each do
832
- mv "config/environment.rb.orig", "config/environment.rb"
833
- end
834
-
835
- it_should_behave_like "threaded environment"
836
- end
837
-
838
- context "with rails version 4" do
839
-
840
- let (:manifest_file) { "public/assets/.sprockets-manifest-1234.json" }
841
-
842
- shared_examples_for "asset pipeline" do
843
- it "automatically adds asset pipeline manifest file to the included files" do
844
- config.includes.should include(manifest_file)
845
- end
846
- end
847
-
848
- before do
849
- mkdir File.dirname(manifest_file)
850
- File.open(manifest_file, "w")
851
- end
852
-
853
- after do
854
- rm_rf File.dirname(manifest_file)
855
- end
856
-
857
- context "when rails version is found in Gemfile.lock" do
858
- before :each do
859
- ENV['BUNDLE_GEMFILE'] = File.expand_path('../rails4_stub/Gemfile', File.dirname(__FILE__))
860
- end
861
-
862
- it_should_behave_like "threaded environment"
863
- it_should_behave_like "asset pipeline"
864
- end
865
-
866
- context "when rails version is not found in Gemfile.lock" do
867
- before :each do
868
- File.open("Gemfile", 'w') { |f| f.puts "gem 'rails-name'\n\n" }
869
- File.open("Gemfile.lock", 'w') do |f|
870
- f.puts " rails-name (4.0.0)"
871
- f.puts " apry-rails (4.2.0)"
872
- f.puts ""
873
- end
874
- end
875
-
876
- after :each do
877
- rm "Gemfile"
878
- rm "Gemfile.lock"
879
- end
880
-
881
- it "doesn't set runtime numbers to 1" do
882
- config.webxml.jruby.min.runtimes.should_not == 1
883
- config.webxml.jruby.max.runtimes.should_not == 1
884
- end
885
-
886
- it_should_behave_like "asset pipeline"
887
- end
888
- end
889
-
890
-
891
- it "adds RAILS_ENV to init.rb" do
892
- ENV["RAILS_ENV"] = nil
893
- use_config do |config|
894
- config.webxml.booter = :rails
895
- end
896
- jar.add_init_file(config)
897
- contents = jar.contents('META-INF/init.rb')
898
- contents.should =~ /ENV\['RAILS_ENV'\]/
899
- contents.should =~ /'production'/
900
- end
901
- end
902
-
903
- context "in a Rack application" do
904
- before :each do
905
- mkdir 'tmp' unless File.directory?('tmp')
906
- Dir.chdir('tmp')
907
- rackup = "run Proc.new {|env| [200, {}, ['Hello World']]}"
908
- File.open("config.ru", "w") {|f| f << rackup }
909
- end
910
-
911
- after :each do
912
- Dir.chdir('..')
913
- rm_rf 'tmp'
914
- end
915
-
916
- it "detects a Rack trait" do
917
- config.traits.should include(Warbler::Traits::Rack)
918
- end
919
-
920
- it "auto-detects a Rack application with a config.ru file" do
921
- jar.apply(config)
922
- jar.files['WEB-INF/config.ru'].should == 'config.ru'
923
- end
924
-
925
- it "adds RACK_ENV to init.rb" do
926
- ENV["RACK_ENV"] = nil
927
- jar.add_init_file(config)
928
- contents = jar.contents('META-INF/init.rb')
929
- contents.should =~ /ENV\['RACK_ENV'\]/
930
- contents.should =~ /'production'/
931
- end
932
- end
933
-
934
- it "skips directories that don't exist in config.dirs and print a warning" do
935
- use_config do |config|
936
- config.dirs = %w(lib notexist)
937
- end
938
- silence { jar.apply(config) }
939
- file_list(%r{WEB-INF/lib}).should_not be_empty
940
- file_list(%r{WEB-INF/notexist}).should be_empty
941
- end
942
-
943
- it "excludes Warbler's old tmp/war directory by default" do
944
- mkdir_p "tmp/war"
945
- touch "tmp/war/index.html"
946
- use_config do |config|
947
- config.dirs += ["tmp"]
948
- end
949
- jar.apply(config)
950
- file_list(%r{WEB-INF/tmp/war}).should be_empty
951
- file_list(%r{WEB-INF/tmp/war/index\.html}).should be_empty
952
- end
953
-
954
- it "writes gems to location specified by gem_path" do
955
- use_config do |config|
956
- config.gem_path = "/WEB-INF/jewels"
957
- config.gems << 'rake'
958
- end
959
- elements = expand_webxml
960
- file_list(%r{WEB-INF/jewels}).should_not be_empty
961
- elements.to_a(
962
- "context-param/param-name[text()='gem.path']"
963
- ).should_not be_empty
964
- elements.to_a(
965
- "context-param/param-name[text()='gem.path']/../param-value"
966
- ).first.text.should == "/WEB-INF/jewels"
967
- end
968
-
969
- it "allows adding additional WEB-INF files via config.webinf_files" do
970
- File.open("myserver-web.xml", "w") do |f|
971
- f << "<web-app></web-app>"
972
- end
973
- use_config do |config|
974
- config.webinf_files = FileList['myserver-web.xml']
975
- end
976
- jar.apply(config)
977
- file_list(%r{WEB-INF/myserver-web.xml}).should_not be_empty
978
- end
979
-
980
- it "allows expanding of additional WEB-INF files via config.webinf_files" do
981
- ENV["RAILS_ENV"] = nil
982
- File.open("myserver-web.xml.erb", "w") do |f|
983
- f << "<web-app><%= webxml.rails.env %></web-app>"
984
- end
985
- use_config do |config|
986
- config.webinf_files = FileList['myserver-web.xml.erb']
987
- end
988
- jar.apply(config)
989
- file_list(%r{WEB-INF/myserver-web.xml}).should_not be_empty
990
- jar.contents('WEB-INF/myserver-web.xml').should =~ /web-app.*production/
991
- end
992
-
993
- it "excludes test files in gems according to config.gem_excludes" do
994
- use_config do |config|
995
- config.gem_excludes += [/^(test|spec)\//]
996
- end
997
- jar.apply(config)
998
- file_list(%r{WEB-INF/gems/gems/rake([^/]+)/test/test_rake.rb}).should be_empty
999
- end
1000
-
1001
- it "creates a META-INF/init.rb file with startup config" do
1002
- jar.apply(config)
1003
- file_list(%r{META-INF/init.rb}).should_not be_empty
1004
- end
1005
-
1006
- it "allows adjusting the init file location in the war" do
1007
- use_config do |config|
1008
- config.init_filename = 'WEB-INF/init.rb'
1009
- end
1010
- jar.add_init_file(config)
1011
- file_list(%r{WEB-INF/init.rb}).should_not be_empty
1012
- end
1013
-
1014
- it "allows adding custom files' contents to init.rb" do
1015
- use_config do |config|
1016
- config.init_contents << "Rakefile"
1017
- end
1018
- jar.add_init_file(config)
1019
- contents = jar.contents('META-INF/init.rb')
1020
- contents.should =~ /require 'rake'/
1021
- end
1022
-
1023
- it "does not have escaped HTML in WARBLER_CONFIG" do
1024
- use_config do |config|
1025
- config.webxml.dummy = '<dummy/>'
1026
- end
1027
- jar.apply(config)
1028
- jar.contents('META-INF/init.rb').should =~ /<dummy\/>/
1029
- end
1030
- end
1031
- end