bpm 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/.gitignore +4 -0
  2. data/.gitmodules +0 -0
  3. data/Gemfile +16 -0
  4. data/README.md +55 -0
  5. data/TODO.md +3 -0
  6. data/bin/bpm +8 -0
  7. data/bpm.gemspec +41 -0
  8. data/lib/bpm.rb +18 -0
  9. data/lib/bpm/cli.rb +6 -0
  10. data/lib/bpm/cli/base.rb +358 -0
  11. data/lib/bpm/cli/owner.rb +46 -0
  12. data/lib/bpm/credentials.rb +36 -0
  13. data/lib/bpm/default.json +9 -0
  14. data/lib/bpm/generator.rb +69 -0
  15. data/lib/bpm/init_generator.rb +43 -0
  16. data/lib/bpm/libgems_ext.rb +11 -0
  17. data/lib/bpm/libgems_ext/config_file.rb +33 -0
  18. data/lib/bpm/libgems_ext/dependency_installer.rb +150 -0
  19. data/lib/bpm/libgems_ext/installer.rb +39 -0
  20. data/lib/bpm/libgems_ext/libgems.rb +39 -0
  21. data/lib/bpm/libgems_ext/spec_fetcher.rb +11 -0
  22. data/lib/bpm/local.rb +76 -0
  23. data/lib/bpm/package.rb +277 -0
  24. data/lib/bpm/pipeline.rb +100 -0
  25. data/lib/bpm/pipeline/directive_processor.rb +47 -0
  26. data/lib/bpm/pipeline/generated_asset.rb +68 -0
  27. data/lib/bpm/pipeline/transport_processor.rb +32 -0
  28. data/lib/bpm/project.rb +427 -0
  29. data/lib/bpm/project_generator.rb +34 -0
  30. data/lib/bpm/remote.rb +104 -0
  31. data/lib/bpm/repository.rb +18 -0
  32. data/lib/bpm/server.rb +44 -0
  33. data/lib/bpm/version.rb +3 -0
  34. data/spec/cli/add_spec.rb +159 -0
  35. data/spec/cli/build_spec.rb +87 -0
  36. data/spec/cli/fetch_spec.rb +135 -0
  37. data/spec/cli/fetched_spec.rb +52 -0
  38. data/spec/cli/init_spec.rb +50 -0
  39. data/spec/cli/list_spec.rb +74 -0
  40. data/spec/cli/login_spec.rb +110 -0
  41. data/spec/cli/new_spec.rb +92 -0
  42. data/spec/cli/owner_spec.rb +114 -0
  43. data/spec/cli/push_spec.rb +73 -0
  44. data/spec/cli/remove_spec.rb +84 -0
  45. data/spec/cli/unpack_spec.rb +72 -0
  46. data/spec/cli/unyank_spec.rb +73 -0
  47. data/spec/cli/yank_spec.rb +73 -0
  48. data/spec/credentials_spec.rb +23 -0
  49. data/spec/fixtures/badrake-0.8.7.spd +0 -0
  50. data/spec/fixtures/builder-3.0.0.spd +0 -0
  51. data/spec/fixtures/bundler-1.1.pre.spd +0 -0
  52. data/spec/fixtures/coffee-1.0.1.pre.spd +0 -0
  53. data/spec/fixtures/core-test-0.4.9.spd +0 -0
  54. data/spec/fixtures/core-test/bin/cot +3 -0
  55. data/spec/fixtures/core-test/lib/main.js +1 -0
  56. data/spec/fixtures/core-test/package.json +46 -0
  57. data/spec/fixtures/core-test/resources/runner.css +1 -0
  58. data/spec/fixtures/core-test/tests/test.js +1 -0
  59. data/spec/fixtures/custom_generator-1.0.spd +0 -0
  60. data/spec/fixtures/custom_generator/lib/main.js +1 -0
  61. data/spec/fixtures/custom_generator/package.json +12 -0
  62. data/spec/fixtures/custom_generator/templates/init/project.json +19 -0
  63. data/spec/fixtures/custom_generator/templates/project/app.js +1 -0
  64. data/spec/fixtures/custom_generator/templates/project/lib/main.js +0 -0
  65. data/spec/fixtures/custom_generator/templates/project_generator.rb +20 -0
  66. data/spec/fixtures/hello_world/LICENSE +19 -0
  67. data/spec/fixtures/hello_world/README.md +21 -0
  68. data/spec/fixtures/hello_world/assets/bpm_packages.js +13 -0
  69. data/spec/fixtures/hello_world/assets/bpm_styles.css +14 -0
  70. data/spec/fixtures/hello_world/assets/papa-smurf.jpg +0 -0
  71. data/spec/fixtures/hello_world/hello_world.json +20 -0
  72. data/spec/fixtures/hello_world/lib/main.js +9 -0
  73. data/spec/fixtures/hello_world/packages/custom_package/assets/dummy.txt +1 -0
  74. data/spec/fixtures/hello_world/packages/custom_package/css/sample_styles.css +3 -0
  75. data/spec/fixtures/hello_world/packages/custom_package/custom_dir/basic-module.js +1 -0
  76. data/spec/fixtures/hello_world/packages/custom_package/lib/main.js +1 -0
  77. data/spec/fixtures/hello_world/packages/custom_package/package.json +22 -0
  78. data/spec/fixtures/hello_world/tests/main-test.js +8 -0
  79. data/spec/fixtures/highline-1.6.1.spd +0 -0
  80. data/spec/fixtures/ivory-0.0.1.spd +0 -0
  81. data/spec/fixtures/jquery-1.4.3.spd +0 -0
  82. data/spec/fixtures/optparse-1.0.1.spd +0 -0
  83. data/spec/fixtures/rake-0.8.6.spd +0 -0
  84. data/spec/fixtures/rake-0.8.7.spd +0 -0
  85. data/spec/fixtures/simple_hello/assets/bpm_packages.js +1 -0
  86. data/spec/fixtures/simple_hello/lib/main.js +1 -0
  87. data/spec/fixtures/spade-0.5.0.spd +0 -0
  88. data/spec/fixtures/src/README.txt +1 -0
  89. data/spec/fixtures/src/bundler-1.1.pre/.gitignore +22 -0
  90. data/spec/fixtures/src/bundler-1.1.pre/CHANGELOG.md +646 -0
  91. data/spec/fixtures/src/bundler-1.1.pre/ISSUES.md +47 -0
  92. data/spec/fixtures/src/bundler-1.1.pre/LICENSE +21 -0
  93. data/spec/fixtures/src/bundler-1.1.pre/README.md +29 -0
  94. data/spec/fixtures/src/bundler-1.1.pre/UPGRADING.md +103 -0
  95. data/spec/fixtures/src/bundler-1.1.pre/bin/bundle +20 -0
  96. data/spec/fixtures/src/bundler-1.1.pre/lib/bundler.js +23 -0
  97. data/spec/fixtures/src/bundler-1.1.pre/lib/bundler/definition.js +14 -0
  98. data/spec/fixtures/src/bundler-1.1.pre/lib/bundler/dependency.js +15 -0
  99. data/spec/fixtures/src/bundler-1.1.pre/lib/bundler/dsl.js +9 -0
  100. data/spec/fixtures/src/bundler-1.1.pre/lib/bundler/ui.js +6 -0
  101. data/spec/fixtures/src/bundler-1.1.pre/man/bundle-config.ronn +90 -0
  102. data/spec/fixtures/src/bundler-1.1.pre/man/bundle-exec.ronn +111 -0
  103. data/spec/fixtures/src/bundler-1.1.pre/man/bundle-install.ronn +314 -0
  104. data/spec/fixtures/src/bundler-1.1.pre/man/bundle-package.ronn +59 -0
  105. data/spec/fixtures/src/bundler-1.1.pre/man/bundle-update.ronn +176 -0
  106. data/spec/fixtures/src/bundler-1.1.pre/man/bundle.ronn +80 -0
  107. data/spec/fixtures/src/bundler-1.1.pre/man/gemfile.5.ronn +279 -0
  108. data/spec/fixtures/src/bundler-1.1.pre/man/index.txt +6 -0
  109. data/spec/fixtures/src/bundler-1.1.pre/package.json +19 -0
  110. data/spec/fixtures/src/coffee-1.0.1.pre/bin/cake +0 -0
  111. data/spec/fixtures/src/coffee-1.0.1.pre/bin/coffee +0 -0
  112. data/spec/fixtures/src/coffee-1.0.1.pre/lib/coffee.js +0 -0
  113. data/spec/fixtures/src/coffee-1.0.1.pre/lib/coffee/base.js +0 -0
  114. data/spec/fixtures/src/coffee-1.0.1.pre/lib/coffee/mocha/chai.js +0 -0
  115. data/spec/fixtures/src/coffee-1.0.1.pre/package.json +19 -0
  116. data/spec/fixtures/src/coffee-1.0.1.pre/qunit/coffee/test.js +0 -0
  117. data/spec/fixtures/src/coffee-1.0.1.pre/qunit/test.js +0 -0
  118. data/spec/fixtures/src/jquery/lib/main.js +7179 -0
  119. data/spec/fixtures/src/jquery/package.json +15 -0
  120. data/spec/fixtures/src/rake-0.8.6/CHANGES +436 -0
  121. data/spec/fixtures/src/rake-0.8.6/MIT-LICENSE +21 -0
  122. data/spec/fixtures/src/rake-0.8.6/README +196 -0
  123. data/spec/fixtures/src/rake-0.8.6/Rakefile +430 -0
  124. data/spec/fixtures/src/rake-0.8.6/TODO +20 -0
  125. data/spec/fixtures/src/rake-0.8.6/bin/rake +31 -0
  126. data/spec/fixtures/src/rake-0.8.6/doc/command_line_usage.rdoc +102 -0
  127. data/spec/fixtures/src/rake-0.8.6/doc/example/Rakefile1 +38 -0
  128. data/spec/fixtures/src/rake-0.8.6/doc/example/Rakefile2 +35 -0
  129. data/spec/fixtures/src/rake-0.8.6/doc/example/a.c +6 -0
  130. data/spec/fixtures/src/rake-0.8.6/doc/example/b.c +6 -0
  131. data/spec/fixtures/src/rake-0.8.6/doc/example/main.c +11 -0
  132. data/spec/fixtures/src/rake-0.8.6/doc/glossary.rdoc +51 -0
  133. data/spec/fixtures/src/rake-0.8.6/doc/jamis.rb +591 -0
  134. data/spec/fixtures/src/rake-0.8.6/doc/proto_rake.rdoc +127 -0
  135. data/spec/fixtures/src/rake-0.8.6/doc/rake.1.gz +0 -0
  136. data/spec/fixtures/src/rake-0.8.6/doc/rakefile.rdoc +534 -0
  137. data/spec/fixtures/src/rake-0.8.6/doc/rational.rdoc +151 -0
  138. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.4.14.rdoc +23 -0
  139. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.4.15.rdoc +35 -0
  140. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.5.0.rdoc +53 -0
  141. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.5.3.rdoc +78 -0
  142. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.5.4.rdoc +46 -0
  143. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.6.0.rdoc +141 -0
  144. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.7.0.rdoc +119 -0
  145. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.7.1.rdoc +59 -0
  146. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.7.2.rdoc +121 -0
  147. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.7.3.rdoc +47 -0
  148. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.0.rdoc +114 -0
  149. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.2.rdoc +165 -0
  150. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.3.rdoc +112 -0
  151. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.4.rdoc +147 -0
  152. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.5.rdoc +53 -0
  153. data/spec/fixtures/src/rake-0.8.6/doc/release_notes/rake-0.8.6.rdoc +55 -0
  154. data/spec/fixtures/src/rake-0.8.6/install.rb +88 -0
  155. data/spec/fixtures/src/rake-0.8.6/lib/rake.rb +2502 -0
  156. data/spec/fixtures/src/rake-0.8.6/lib/rake/alt_system.rb +108 -0
  157. data/spec/fixtures/src/rake-0.8.6/lib/rake/classic_namespace.rb +8 -0
  158. data/spec/fixtures/src/rake-0.8.6/lib/rake/clean.rb +33 -0
  159. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/compositepublisher.rb +24 -0
  160. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/ftptools.rb +153 -0
  161. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/publisher.rb +75 -0
  162. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  163. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/sshpublisher.rb +47 -0
  164. data/spec/fixtures/src/rake-0.8.6/lib/rake/contrib/sys.rb +209 -0
  165. data/spec/fixtures/src/rake-0.8.6/lib/rake/gempackagetask.rb +97 -0
  166. data/spec/fixtures/src/rake-0.8.6/lib/rake/loaders/makefile.rb +42 -0
  167. data/spec/fixtures/src/rake-0.8.6/lib/rake/packagetask.rb +184 -0
  168. data/spec/fixtures/src/rake-0.8.6/lib/rake/rake_test_loader.rb +5 -0
  169. data/spec/fixtures/src/rake-0.8.6/lib/rake/rdoctask.rb +209 -0
  170. data/spec/fixtures/src/rake-0.8.6/lib/rake/ruby182_test_unit_fix.rb +23 -0
  171. data/spec/fixtures/src/rake-0.8.6/lib/rake/runtest.rb +23 -0
  172. data/spec/fixtures/src/rake-0.8.6/lib/rake/tasklib.rb +23 -0
  173. data/spec/fixtures/src/rake-0.8.6/lib/rake/testtask.rb +161 -0
  174. data/spec/fixtures/src/rake-0.8.6/lib/rake/win32.rb +55 -0
  175. data/spec/fixtures/src/rake-0.8.6/package.json +18 -0
  176. data/spec/fixtures/src/rake-0.8.6/test/capture_stdout.rb +26 -0
  177. data/spec/fixtures/src/rake-0.8.7/CHANGES +440 -0
  178. data/spec/fixtures/src/rake-0.8.7/MIT-LICENSE +21 -0
  179. data/spec/fixtures/src/rake-0.8.7/README +196 -0
  180. data/spec/fixtures/src/rake-0.8.7/Rakefile +430 -0
  181. data/spec/fixtures/src/rake-0.8.7/TODO +20 -0
  182. data/spec/fixtures/src/rake-0.8.7/bin/rake +31 -0
  183. data/spec/fixtures/src/rake-0.8.7/doc/command_line_usage.rdoc +102 -0
  184. data/spec/fixtures/src/rake-0.8.7/doc/example/Rakefile1 +38 -0
  185. data/spec/fixtures/src/rake-0.8.7/doc/example/Rakefile2 +35 -0
  186. data/spec/fixtures/src/rake-0.8.7/doc/example/a.c +6 -0
  187. data/spec/fixtures/src/rake-0.8.7/doc/example/b.c +6 -0
  188. data/spec/fixtures/src/rake-0.8.7/doc/example/main.c +11 -0
  189. data/spec/fixtures/src/rake-0.8.7/doc/glossary.rdoc +51 -0
  190. data/spec/fixtures/src/rake-0.8.7/doc/jamis.rb +591 -0
  191. data/spec/fixtures/src/rake-0.8.7/doc/proto_rake.rdoc +127 -0
  192. data/spec/fixtures/src/rake-0.8.7/doc/rake.1.gz +0 -0
  193. data/spec/fixtures/src/rake-0.8.7/doc/rakefile.rdoc +534 -0
  194. data/spec/fixtures/src/rake-0.8.7/doc/rational.rdoc +151 -0
  195. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc +23 -0
  196. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc +35 -0
  197. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc +53 -0
  198. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc +78 -0
  199. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc +46 -0
  200. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc +141 -0
  201. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc +119 -0
  202. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc +59 -0
  203. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc +121 -0
  204. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc +47 -0
  205. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc +114 -0
  206. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc +165 -0
  207. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc +112 -0
  208. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc +147 -0
  209. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc +53 -0
  210. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc +55 -0
  211. data/spec/fixtures/src/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc +55 -0
  212. data/spec/fixtures/src/rake-0.8.7/install.rb +88 -0
  213. data/spec/fixtures/src/rake-0.8.7/lib/rake.rb +2506 -0
  214. data/spec/fixtures/src/rake-0.8.7/lib/rake/alt_system.rb +108 -0
  215. data/spec/fixtures/src/rake-0.8.7/lib/rake/classic_namespace.rb +8 -0
  216. data/spec/fixtures/src/rake-0.8.7/lib/rake/clean.rb +33 -0
  217. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/compositepublisher.rb +24 -0
  218. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/ftptools.rb +153 -0
  219. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/publisher.rb +75 -0
  220. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  221. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/sshpublisher.rb +47 -0
  222. data/spec/fixtures/src/rake-0.8.7/lib/rake/contrib/sys.rb +209 -0
  223. data/spec/fixtures/src/rake-0.8.7/lib/rake/gempackagetask.rb +97 -0
  224. data/spec/fixtures/src/rake-0.8.7/lib/rake/loaders/makefile.rb +42 -0
  225. data/spec/fixtures/src/rake-0.8.7/lib/rake/packagetask.rb +184 -0
  226. data/spec/fixtures/src/rake-0.8.7/lib/rake/rake_test_loader.rb +5 -0
  227. data/spec/fixtures/src/rake-0.8.7/lib/rake/rdoctask.rb +209 -0
  228. data/spec/fixtures/src/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb +23 -0
  229. data/spec/fixtures/src/rake-0.8.7/lib/rake/runtest.rb +23 -0
  230. data/spec/fixtures/src/rake-0.8.7/lib/rake/tasklib.rb +23 -0
  231. data/spec/fixtures/src/rake-0.8.7/lib/rake/testtask.rb +161 -0
  232. data/spec/fixtures/src/rake-0.8.7/lib/rake/win32.rb +55 -0
  233. data/spec/fixtures/src/rake-0.8.7/package.json +18 -0
  234. data/spec/fixtures/src/rake-0.8.7/test/capture_stdout.rb +26 -0
  235. data/spec/fixtures/src/spade/lib/main.js +1 -0
  236. data/spec/fixtures/src/spade/package.json +15 -0
  237. data/spec/fixtures/transporter/lib/main.js +3 -0
  238. data/spec/fixtures/transporter/packages/transport/lib/wrapper.js +5 -0
  239. data/spec/fixtures/transporter/packages/transport/package.json +21 -0
  240. data/spec/fixtures/transporter/transporter.json +18 -0
  241. data/spec/gauntlet_spec.rb +33 -0
  242. data/spec/package_spec.rb +319 -0
  243. data/spec/pipeline_spec.rb +213 -0
  244. data/spec/project_spec.rb +130 -0
  245. data/spec/spec_helper.rb +42 -0
  246. data/spec/support/cli.rb +93 -0
  247. data/spec/support/env.rb +18 -0
  248. data/spec/support/fake.rb +53 -0
  249. data/spec/support/fake_gem_server.rb +72 -0
  250. data/spec/support/fake_gemcutter.rb +50 -0
  251. data/spec/support/matchers.rb +32 -0
  252. data/spec/support/path.rb +63 -0
  253. data/spec/support/project.rb +43 -0
  254. data/templates/init/assets/bpm_packages.js +7 -0
  255. data/templates/init/assets/bpm_styles.css +7 -0
  256. data/templates/init/project.json +16 -0
  257. data/templates/project/LICENSE +19 -0
  258. data/templates/project/README.md +21 -0
  259. data/templates/project/app.js +1 -0
  260. data/templates/project/index.html +13 -0
  261. metadata +627 -0
@@ -0,0 +1,55 @@
1
+
2
+ module Rake
3
+ require 'rake/alt_system'
4
+
5
+ # Win 32 interface methods for Rake. Windows specific functionality
6
+ # will be placed here to collect that knowledge in one spot.
7
+ module Win32
8
+
9
+ # Error indicating a problem in locating the home directory on a
10
+ # Win32 system.
11
+ class Win32HomeError < RuntimeError
12
+ end
13
+
14
+ class << self
15
+ # True if running on a windows system.
16
+ def windows?
17
+ AltSystem::WINDOWS
18
+ end
19
+
20
+ # Run a command line on windows.
21
+ def rake_system(*cmd)
22
+ AltSystem.system(*cmd)
23
+ end
24
+
25
+ # The standard directory containing system wide rake files on
26
+ # Win 32 systems. Try the following environment variables (in
27
+ # order):
28
+ #
29
+ # * HOME
30
+ # * HOMEDRIVE + HOMEPATH
31
+ # * APPDATA
32
+ # * USERPROFILE
33
+ #
34
+ # If the above are not defined, the return nil.
35
+ def win32_system_dir #:nodoc:
36
+ win32_shared_path = ENV['HOME']
37
+ if win32_shared_path.nil? && ENV['HOMEDRIVE'] && ENV['HOMEPATH']
38
+ win32_shared_path = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
39
+ end
40
+
41
+ win32_shared_path ||= ENV['APPDATA']
42
+ win32_shared_path ||= ENV['USERPROFILE']
43
+ raise Win32HomeError, "Unable to determine home path environment variable." if
44
+ win32_shared_path.nil? or win32_shared_path.empty?
45
+ normalize(File.join(win32_shared_path, 'Rake'))
46
+ end
47
+
48
+ # Normalize a win32 path so that the slashes are all forward slashes.
49
+ def normalize(path)
50
+ path.gsub(/\\/, '/')
51
+ end
52
+
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "rake",
3
+ "version": "0.8.6",
4
+ "description": "rake desc",
5
+ "summary": "rake summary",
6
+ "homepage": "http://rake.com",
7
+ "author": "Joe",
8
+ "keywords": ["rake"],
9
+
10
+ "dependencies": {},
11
+
12
+ "directories": {
13
+ "lib": "lib",
14
+ "test": "test",
15
+ "bin": "bin",
16
+ "doc": "doc"
17
+ }
18
+ }
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'stringio'
4
+
5
+ # Mix-in for capturing standard output.
6
+ module CaptureStdout
7
+ def capture_stdout
8
+ s = StringIO.new
9
+ oldstdout = $stdout
10
+ $stdout = s
11
+ yield
12
+ s.string
13
+ ensure
14
+ $stdout = oldstdout
15
+ end
16
+
17
+ def capture_stderr
18
+ s = StringIO.new
19
+ oldstderr = $stderr
20
+ $stderr = s
21
+ yield
22
+ s.string
23
+ ensure
24
+ $stderr = oldstderr
25
+ end
26
+ end
@@ -0,0 +1,440 @@
1
+
2
+ = Rake Changelog
3
+
4
+ == Version 0.8.7
5
+
6
+ * Fixed EXEEXT for JRuby on windows.
7
+
8
+ == Version 0.8.6
9
+
10
+ * Minor fixes to the RDoc generation (removed dependency on darkfish
11
+ and removed inline source option).
12
+
13
+ == Version 0.8.5
14
+
15
+ * Better support for the system command on Windows.
16
+
17
+ == Version 0.8.4
18
+
19
+ * Preserve case when locating rakefiles (patch from James
20
+ M. Lawrence/quix)
21
+
22
+ * Better support for windows paths in the test task (patch from Simon
23
+ Chiang/bahuvrihi)
24
+
25
+ * Windows system dir search order is now: HOME, HOMEDRIVE + HOMEPATH,
26
+ APPDATA, USERPROFILE (patch from Luis Lavena)
27
+
28
+ * MingGW is now recognized as a windows platform. (patch from Luis
29
+ Lavena)
30
+
31
+ * Numerous fixes to the windows test suite (patch from Luis Lavena).
32
+
33
+ * Improved Rakefile case insensitivity testing (patch from Luis
34
+ Lavena).
35
+
36
+ * Fixed stray ARGV option problem that was interfering with
37
+ Test::Unit::Runner.
38
+
39
+ * Fixed default verbose mode (was accidently changed to false).
40
+
41
+ * Removed reference to manage_gem to fix the warning produced by the
42
+ gem package task.
43
+
44
+ == Version 0.8.3
45
+
46
+ * Enhanced the system directory detection in windows. We now check
47
+ HOMEDRIVE/HOMEPATH and USERPROFILE if APPDATA isn't found. (Patch
48
+ supplied by James Tucker). Rake no long aborts if it can't find the
49
+ directory.
50
+
51
+ * Added fix to handle ruby installations in directories with spaces in
52
+ their name.
53
+
54
+ == Version 0.8.2
55
+
56
+ * Fixed bug in package task so that it will include the subdir
57
+ directory in the package for testing. (Bug found by Adam Majer)
58
+
59
+ * Added ENV var to rakefile to prevent OS X from including extended
60
+ attribute junk in a tar file. (Bug found by Adam Majer)
61
+
62
+ * Fixed filename dependency order bug in test_inspect_pending and
63
+ test_to_s_pending. (Bug found by Adam Majer)
64
+
65
+ * Fixed check for file utils options to make them immune to the
66
+ symbol/string differences. (Patch supplied by Edwin Pratomo)
67
+
68
+ * Fixed bug with rules involving multiple source (Patch supplied by
69
+ Emanuel Inderm�hle)
70
+
71
+ * Switched from getoptlong to optparse (patches supplied by Edwin
72
+ Pratomo)
73
+
74
+ * The -T option will now attempt to dynamically sense the size of the
75
+ terminal. RAKE_COLUMNS will override any dynamic sensing.
76
+
77
+ * FileList#clone and FileList#dup have better sematics w.r.t. taint
78
+ and freeze.
79
+
80
+ * Added ability clear prerequisites, and/or actions from an existing
81
+ task.
82
+
83
+ * Added the ability to reenable a task to be invoked a second time.
84
+
85
+ * Changed RDoc test task to have no default template. This makes it
86
+ easier for the tempate to pick up the template from the environment.
87
+
88
+ * Changed from using Mutex to Monitor. Evidently Mutex causes thread
89
+ join errors when Ruby is compiled with -disable-pthreads. (Patch
90
+ supplied by Ittay Dror)
91
+
92
+ * Fixed bug in makefile parser that had problems with extra spaces in
93
+ file task names. (Patch supplied by Ittay Dror)
94
+
95
+ * Added a performance patch for reading large makefile dependency
96
+ files. (Patch supplied by Ittay Dror)
97
+
98
+ * Default values for task arguments can easily be specified with the
99
+ :with_defaults method. (Idea for default argument merging supplied
100
+ by (Adam Q. Salter)
101
+
102
+ * The -T output will only self-truncate if the output is a tty.
103
+ However, if RAKE_COLUMNS is explicitly set, it will be honored in
104
+ any case. (Patch provided by Gavin Stark).
105
+
106
+ * Numerous fixes for running under windows. A big thanks to Bheeshmar
107
+ Redheendran for spending a good part of the afternoon at the
108
+ Lonestar Ruby Conference to help me work out these issues.
109
+
110
+ == Version 0.8.1
111
+
112
+ * Removed requires on parsedate.rb (in Ftptools)
113
+ * Removed ftools from rake.rb. Made it options in sys.rb
114
+
115
+ == Version 0.8.0
116
+
117
+ * Added task parameters (e.g. "rake build[version7]")
118
+ * Made task parameters passable to prerequisites.
119
+ * Comments are limited to 80 columns or so (suggested by Jamis Buck).
120
+ * Added -D to display full comments (suggested by Jamis Buck).
121
+ * The rake program will set the status value used in any explicit
122
+ exit(n) calls. (patch provided by Stephen Touset)
123
+ * Fixed error in functional tests that were not including session (and
124
+ silently skipping the functionl tests.
125
+ * Removed --usage and make -h the same as -H.
126
+ * Make a prettier inspect for tasks.
127
+
128
+ == Version 0.7.3
129
+
130
+ * Added existing and existing! methods to FileList
131
+ * FileLists now claim to be Arrays (via is_a?) to get better support
132
+ from the FileUtil module.
133
+ * Added init and top_level for custom rake applications.
134
+
135
+ == Version 0.7.2
136
+
137
+ * Error messages are now send to stderr rather than stdout (from
138
+ Payton Quackenbush).
139
+ * Better error handling on invalid command line arguments (from Payton
140
+ Quackenbush).
141
+ * Added rcov task and updated unit testing for better code coverage.
142
+ * Fixed some bugs where the application object was going to the global
143
+ appliation instead of using its own data.
144
+ * Added square and curly bracket patterns to FileList#include (Tilman
145
+ Sauerbeck).
146
+ * Added plain filename support to rule dependents (suggested by Nobu
147
+ Nakada).
148
+ * Added pathmap support to rule dependents.
149
+ * Added a 'tasks' method to a namespace to get a list of tasks
150
+ associated with the namespace.
151
+ * Fixed the method name leak from FileUtils (bug found by Glenn
152
+ Vanderburg).
153
+ * Added rake_extension to handle detection of extension collisions.
154
+ * Added test for noop, bad_option and verbose flags to sh command.
155
+ * Removed dependency on internal fu_xxx functions from FileUtils.
156
+ * Added a 'shame' task to the Rakefile.
157
+ * Added tar_command and zip_command options to the Package task.
158
+ * Added a description to the gem task in GemPackageTask.
159
+ * Fixed a bug when rules have multiple prerequisites (patch by Joel
160
+ VanderWerf)
161
+ * Added a protected 'require "rubygems"' to test/test_application to
162
+ unbreak cruisecontrol.rb.
163
+ * Added the handful of RakeFileUtils to the private method as well.
164
+ * Added block based exclusion.
165
+ * The clean task will no longer delete 'core' if it is a directory.
166
+ * Removed rake_dup. Now we just simply rescue a bad dup.
167
+ * Refactored the FileList reject logic to remove duplication.
168
+ * Removed if __FILE__ at the end of the rake.rb file.
169
+
170
+ == Version 0.7.1
171
+
172
+ * Added optional filter parameter to the --tasks command line option.
173
+ * Added flatten to allow rule transform procs to return lists of
174
+ prereqs (Joel VanderWerf provided patch).
175
+ * Added pathmap to String and FileList.
176
+ * The -r option will now load .rake files (but a straight require
177
+ doesn't yet). NOTE: This is experimental ... it may be
178
+ discontinued.
179
+ * The -f option without a value will disable the search for a
180
+ Rakefile. The assumption is that the -r files are adequate.
181
+ * Fixed the safe_ln function to fall back to cp in more error
182
+ scenarios.
183
+
184
+ == Version 0.7.0
185
+
186
+ * Added Rake.original_dir to return the original starting directory of
187
+ the rake application.
188
+ * Added safe_ln support for openAFS (from Ludvig Omholt).
189
+ * Added --trace reminder on short exception messages (David Heinemeier
190
+ Hansson suggestion).
191
+ * Added multitask declaration that executes prerequisites in
192
+ parallel. (Doug Young providied an initial implementation).
193
+ * Fixed missing_const hack to be compatible with Rails. (Jamis Buck
194
+ supplied test case).
195
+ * Made the RDoc task default to internal (in-process) RDoc formatting.
196
+ The old behavior is still available by setting the +external+ flag
197
+ to true.
198
+ * Rakefiles are now loaded with the expanded path to prevent
199
+ accidental polution from the Ruby load path.
200
+ * The +namespace+ command now returns a NameSpace object that can be
201
+ used to lookup tasks defined in that namespace. This allows for
202
+ better anonymous namespace behavior.
203
+ * Task objects my now be used in prerequisite lists directly.
204
+
205
+ == Version 0.6.1
206
+
207
+ * Rebuilt 0.6.0 gem without signing.
208
+
209
+ == Version 0.6.0
210
+
211
+ * Fixed file creation bug in the unit tests (caused infinite loop on
212
+ windows).
213
+ * Fixed bug where session based functional tests were run under
214
+ windows.
215
+ * Fixed bug in directory tasks so that updating a directory will not
216
+ retrigger file tasks depending on the directory (see
217
+ FileCreationTask and EarlyTime).
218
+ * Added egrep to FileList
219
+ * ruby command now runs same ruby version as rake.
220
+ * Added investigation to task object. (suggested by Martin Fowler)
221
+ * Added ruby_opts to the test task to allow arbitrary ruby options to
222
+ be passed to the test script. (Greg Fast)
223
+ * Fixed the test loader to ignore options. (Greg Fast)
224
+ * Moved Task, FileTask, FileCreationTask and RakeApp into the Rake
225
+ module namespace. Old style namespace behavior can be invoked via
226
+ the --classic-namespace option. (requested by Kelly Felkins).
227
+ * GemTask is now sensitive to the gem platform (Masao Mutoh).
228
+ * A non-existing file prerequisite will no longer cause an exception
229
+ (Philipp Neubeck).
230
+ * Multiple prerequisites on Rake rules now allowed (initial patch
231
+ supplied by Stuart Jansen).
232
+
233
+ == Version 0.5.4
234
+
235
+ * Added double quotes to the test runner.
236
+ * Added .svn to default ignore list.
237
+ * Updated FileList#include to support nested arrays and filelists.
238
+
239
+ == Version 0.5.3
240
+
241
+ * Added support for importing Rakefile and other dependencies.
242
+ * Fixed bug so that now rules can chain off of existing tasks as well
243
+ as existing files.
244
+ * Fixed verbose flag bug in the testing task. Shortened some failure
245
+ messages.
246
+ * Make FileUtils methods private at the top level module to avoid
247
+ accidental method leaking into other objects.
248
+ * Added test loader option to test task. "testrb" is no longer the
249
+ default test loader. It is now eating syntax errors that should
250
+ halt the unit tests.
251
+ * Revamped FileList so that it works more like and array (addressed
252
+ flatten bug). Added many tests around file list.
253
+ * Added +ext+ method to both String and FileList.
254
+
255
+ == Version 0.5.0
256
+
257
+ * Fixed documentation that was lacking the Rake module name (Tilman
258
+ Sauerbeck).
259
+ * Added tar.gz and tar.bz2 support to package task (Tilman Sauerbeck).
260
+ * Recursive rules are now supported (Tilman Sauerbeck).
261
+ * Added warning option for the Test Task (requested by Eric Hodel).
262
+ * The jamis rdoc template is only used if it exists.
263
+ * Added fix for Ruby 1.8.2 test/unit and rails problem.
264
+ * Added contributed rake man file (Jani Monoses).
265
+ * Added Brian Candler's fix for problems in --trace and --dry-run
266
+ mode.
267
+
268
+ == Version 0.4.15
269
+
270
+ * Fixed a bug that prevented the TESTOPTS flag from working with the
271
+ revised for 1.8.2 test task.
272
+ * Updated the docs on --trace to indicate that it also enables a full
273
+ backtrace on errors.
274
+
275
+ == Version 0.4.14
276
+
277
+ * Modified the TestTask to workaround the Ruby 1.8.2 change in
278
+ autoexecuting unit tests.
279
+
280
+ == Version 0.4.13
281
+
282
+ * Fixed the dry-run flag so it is operating again.
283
+ * Multiple arguments to sh and ruby commands will not be interpreted
284
+ by the shell (patch provided by Jonathan Paisley).
285
+
286
+ == Version 0.4.12
287
+
288
+ * Added --silent (-s) to suppress the (in directory) rake message.
289
+
290
+ == Version 0.4.11
291
+
292
+ * Changed the "don't know how to rake" message (finally)
293
+ * Changes references to a literal "Rakefile" to reference the global
294
+ variable $rakefile (which contains the actual name of the rakefile).
295
+
296
+ == Version 0.4.10
297
+
298
+ * Added block support to the "sh" command, allowing users to take
299
+ special actions on the result of the system call. E.g.
300
+
301
+ sh "shell_command" do |ok, res|
302
+ puts "Program returned #{res.exitstatus}" if ! ok
303
+ end
304
+
305
+ == Version 0.4.9
306
+
307
+ * Switched to Jamis Buck's RDoc template.
308
+ * Removed autorequire from Rake's gem spec. This prevents the Rake
309
+ libraries from loading while using rails.
310
+
311
+ == Version 0.4.8
312
+
313
+ * Added support for .rb versions of Rakefile.
314
+ * Removed \\\n's from test task.
315
+ * Fixed Ruby 1.9 compatibility issue with FileList.
316
+
317
+ == Version 0.4.7
318
+
319
+ * Fixed problem in FileList that caused Ruby 1.9 to go into infinite
320
+ recursion. Since to_a was removed from Object, it does not need to
321
+ added back into the list of methods to rewrite in FileList. (Thanks
322
+ to Kent Sibilev for pointing this out).
323
+
324
+ == Version 0.4.6
325
+ * Removed test version of ln in FileUtils that prevented safe_ln from
326
+ using ln.
327
+
328
+ == Version 0.4.5
329
+ * Upgraded comments in TestTask.
330
+ * FileList to_s and inspect now automatically resolve pending changes.
331
+ * FileList#exclude properly returns the FileList.
332
+
333
+ == Version 0.4.4
334
+ * Fixed initialization problem with @comment.
335
+ * Now using multi -r technique in TestTask. Switch Rakefile back to
336
+ using the built-in test task macros because the rake runtime is no
337
+ longer needed.
338
+ * Added 'TEST=filename' and 'TESTOPTS=options' to the Test Task
339
+ macros.
340
+ * Allow a +test_files+ attribute in test tasks. This allows more
341
+ flexibility in specifying test files.
342
+
343
+ == Version 0.4.3
344
+ * Fixed Comment leakage.
345
+
346
+ == Version 0.4.2
347
+ * Added safe_ln that falls back to a copy if a file link is not supported.
348
+ * Package builder now uses safe_ln.
349
+
350
+ == Version 0.4.1
351
+ * Task comments are now additive, combined with "/".
352
+ * Works with (soon to be released) rubygems 0.6.2 (or 0.7.0)
353
+
354
+ == Version 0.4.0
355
+ * FileList now uses deferred loading. The file system is not searched
356
+ until the first call that needs the file names.
357
+ * VAR=VALUE options are now accepted on the command line and are
358
+ treated like environment variables. The values may be tested in a
359
+ Rakefile by referencing ENV['VAR'].
360
+ * File.mtime is now used (instead of File.new().mtime).
361
+
362
+ == Version 0.3.2.x
363
+
364
+ * Removed some hidden dependencies on rubygems. Tests now will test
365
+ gems only if they are installed.
366
+ * Removed Sys from some example files. I believe that is that last
367
+ reference to Sys outside of the contrib area.
368
+ * Updated all copyright notices to include 2004.
369
+
370
+ == Version 0.3.2
371
+
372
+ * GEM Installation now works with the application stub.
373
+
374
+ == Version 0.3.1
375
+
376
+ * FileLists now automatically ignore CVS, .bak, !
377
+ * GEM Installation now works.
378
+
379
+ == Version 0.3.0
380
+
381
+ Promoted 0.2.10.
382
+
383
+ == Version 0.2.10
384
+ General
385
+
386
+ * Added title to Rake's rdocs
387
+ * Contrib packages are no longer included in the documentation.
388
+
389
+ RDoc Issues
390
+
391
+ * Removed default for the '--main' option
392
+ * Fixed rendering of the rdoc options
393
+ * Fixed clean/clobber confusion with rerdoc
394
+ * 'title' attribute added
395
+
396
+ Package Task Library Issues
397
+
398
+ * Version (or explicit :noversion) is required.
399
+ * +package_file+ attribute is now writable
400
+
401
+ FileList Issues
402
+
403
+ * Dropped bang version of exclude. Now using ant-like include/exclude semantics.
404
+ * Enabled the "yield self" idiom in FileList#initialize.
405
+
406
+ == Version 0.2.9
407
+
408
+ This version contains numerous changes as the RubyConf.new(2003)
409
+ presentation was being prepared. The changes include:
410
+
411
+ * The monolithic rubyapp task library is in the process of being
412
+ dropped in favor of lighter weight task libraries.
413
+
414
+ == Version 0.2.7
415
+
416
+ * Added "desc" for task descriptions.
417
+ * -T will now display tasks with descriptions.
418
+ * -P will display tasks and prerequisites.
419
+ * Dropped the Sys module in favor of the 1.8.x FileUtils module. Sys
420
+ is still supported in the contrib area.
421
+
422
+ == Version 0.2.6
423
+
424
+ * Moved to RubyForge
425
+
426
+ == Version 0.2.5
427
+
428
+ * Switched to standard ruby app builder.
429
+ * Added no_match option to file matcher.
430
+
431
+ == Version 0.2.4
432
+
433
+ * Fixed indir, which neglected to actually change directories.
434
+
435
+ == Version 0.2.3
436
+
437
+ * Added rake module for a help target
438
+ * Added 'for_files' to Sys
439
+ * Added a $rakefile constant
440
+ * Added test for selecting proper rule with multiple targets.