openskies 0.0.5.2 → 0.0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (491) hide show
  1. data/CHANGELOG.md +0 -87
  2. data/bin/openskies +31 -5
  3. metadata +4 -593
  4. data/guides/assets/images/belongs_to.png +0 -0
  5. data/guides/assets/images/book_icon.gif +0 -0
  6. data/guides/assets/images/bullet.gif +0 -0
  7. data/guides/assets/images/challenge.png +0 -0
  8. data/guides/assets/images/chapters_icon.gif +0 -0
  9. data/guides/assets/images/check_bullet.gif +0 -0
  10. data/guides/assets/images/credits_pic_blank.gif +0 -0
  11. data/guides/assets/images/csrf.png +0 -0
  12. data/guides/assets/images/customized_error_messages.png +0 -0
  13. data/guides/assets/images/edge_badge.png +0 -0
  14. data/guides/assets/images/error_messages.png +0 -0
  15. data/guides/assets/images/feature_tile.gif +0 -0
  16. data/guides/assets/images/footer_tile.gif +0 -0
  17. data/guides/assets/images/fxn.png +0 -0
  18. data/guides/assets/images/grey_bullet.gif +0 -0
  19. data/guides/assets/images/habtm.png +0 -0
  20. data/guides/assets/images/has_many.png +0 -0
  21. data/guides/assets/images/has_many_through.png +0 -0
  22. data/guides/assets/images/has_one.png +0 -0
  23. data/guides/assets/images/has_one_through.png +0 -0
  24. data/guides/assets/images/header_backdrop.png +0 -0
  25. data/guides/assets/images/header_tile.gif +0 -0
  26. data/guides/assets/images/i18n/demo_html_safe.png +0 -0
  27. data/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
  28. data/guides/assets/images/i18n/demo_translated_en.png +0 -0
  29. data/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
  30. data/guides/assets/images/i18n/demo_translation_missing.png +0 -0
  31. data/guides/assets/images/i18n/demo_untranslated.png +0 -0
  32. data/guides/assets/images/icons/README +0 -5
  33. data/guides/assets/images/icons/callouts/1.png +0 -0
  34. data/guides/assets/images/icons/callouts/10.png +0 -0
  35. data/guides/assets/images/icons/callouts/11.png +0 -0
  36. data/guides/assets/images/icons/callouts/12.png +0 -0
  37. data/guides/assets/images/icons/callouts/13.png +0 -0
  38. data/guides/assets/images/icons/callouts/14.png +0 -0
  39. data/guides/assets/images/icons/callouts/15.png +0 -0
  40. data/guides/assets/images/icons/callouts/2.png +0 -0
  41. data/guides/assets/images/icons/callouts/3.png +0 -0
  42. data/guides/assets/images/icons/callouts/4.png +0 -0
  43. data/guides/assets/images/icons/callouts/5.png +0 -0
  44. data/guides/assets/images/icons/callouts/6.png +0 -0
  45. data/guides/assets/images/icons/callouts/7.png +0 -0
  46. data/guides/assets/images/icons/callouts/8.png +0 -0
  47. data/guides/assets/images/icons/callouts/9.png +0 -0
  48. data/guides/assets/images/icons/caution.png +0 -0
  49. data/guides/assets/images/icons/example.png +0 -0
  50. data/guides/assets/images/icons/home.png +0 -0
  51. data/guides/assets/images/icons/important.png +0 -0
  52. data/guides/assets/images/icons/next.png +0 -0
  53. data/guides/assets/images/icons/note.png +0 -0
  54. data/guides/assets/images/icons/prev.png +0 -0
  55. data/guides/assets/images/icons/tip.png +0 -0
  56. data/guides/assets/images/icons/up.png +0 -0
  57. data/guides/assets/images/icons/warning.png +0 -0
  58. data/guides/assets/images/jaimeiniesta.jpg +0 -0
  59. data/guides/assets/images/nav_arrow.gif +0 -0
  60. data/guides/assets/images/polymorphic.png +0 -0
  61. data/guides/assets/images/posts_index.png +0 -0
  62. data/guides/assets/images/radar.png +0 -0
  63. data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  64. data/guides/assets/images/rails_guides_logo.gif +0 -0
  65. data/guides/assets/images/rails_logo_remix.gif +0 -0
  66. data/guides/assets/images/rails_welcome.png +0 -0
  67. data/guides/assets/images/session_fixation.png +0 -0
  68. data/guides/assets/images/tab_grey.gif +0 -0
  69. data/guides/assets/images/tab_info.gif +0 -0
  70. data/guides/assets/images/tab_note.gif +0 -0
  71. data/guides/assets/images/tab_red.gif +0 -0
  72. data/guides/assets/images/tab_yellow.gif +0 -0
  73. data/guides/assets/images/tab_yellow.png +0 -0
  74. data/guides/assets/images/validation_error_messages.png +0 -0
  75. data/guides/assets/images/vijaydev.jpg +0 -0
  76. data/guides/assets/javascripts/guides.js +0 -7
  77. data/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +0 -59
  78. data/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +0 -75
  79. data/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +0 -59
  80. data/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +0 -65
  81. data/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +0 -100
  82. data/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +0 -97
  83. data/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +0 -91
  84. data/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +0 -55
  85. data/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +0 -41
  86. data/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +0 -52
  87. data/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +0 -67
  88. data/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +0 -52
  89. data/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +0 -57
  90. data/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +0 -58
  91. data/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +0 -72
  92. data/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +0 -88
  93. data/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +0 -33
  94. data/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +0 -74
  95. data/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +0 -64
  96. data/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +0 -55
  97. data/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +0 -94
  98. data/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +0 -51
  99. data/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +0 -66
  100. data/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +0 -56
  101. data/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +0 -69
  102. data/guides/assets/javascripts/syntaxhighlighter/shCore.js +0 -17
  103. data/guides/assets/stylesheets/fixes.css +0 -16
  104. data/guides/assets/stylesheets/kindle.css +0 -11
  105. data/guides/assets/stylesheets/main.css +0 -453
  106. data/guides/assets/stylesheets/print.css +0 -52
  107. data/guides/assets/stylesheets/reset.css +0 -43
  108. data/guides/assets/stylesheets/style.css +0 -13
  109. data/guides/assets/stylesheets/syntaxhighlighter/shCore.css +0 -226
  110. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +0 -328
  111. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +0 -331
  112. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +0 -339
  113. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +0 -324
  114. data/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  115. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +0 -324
  116. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +0 -324
  117. data/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +0 -324
  118. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +0 -117
  119. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +0 -120
  120. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +0 -128
  121. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +0 -113
  122. data/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  123. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +0 -113
  124. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +0 -113
  125. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +0 -113
  126. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +0 -116
  127. data/guides/code/getting_started/Gemfile +0 -38
  128. data/guides/code/getting_started/README.rdoc +0 -261
  129. data/guides/code/getting_started/Rakefile +0 -7
  130. data/guides/code/getting_started/app/assets/images/rails.png +0 -0
  131. data/guides/code/getting_started/app/assets/javascripts/application.js +0 -15
  132. data/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +0 -3
  133. data/guides/code/getting_started/app/assets/javascripts/home.js.coffee +0 -3
  134. data/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +0 -3
  135. data/guides/code/getting_started/app/assets/stylesheets/application.css +0 -13
  136. data/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +0 -3
  137. data/guides/code/getting_started/app/assets/stylesheets/home.css.scss +0 -3
  138. data/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +0 -3
  139. data/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +0 -56
  140. data/guides/code/getting_started/app/controllers/application_controller.rb +0 -3
  141. data/guides/code/getting_started/app/controllers/comments_controller.rb +0 -16
  142. data/guides/code/getting_started/app/controllers/home_controller.rb +0 -5
  143. data/guides/code/getting_started/app/controllers/posts_controller.rb +0 -84
  144. data/guides/code/getting_started/app/helpers/application_helper.rb +0 -2
  145. data/guides/code/getting_started/app/helpers/comments_helper.rb +0 -2
  146. data/guides/code/getting_started/app/helpers/home_helper.rb +0 -2
  147. data/guides/code/getting_started/app/helpers/posts_helper.rb +0 -5
  148. data/guides/code/getting_started/app/models/comment.rb +0 -3
  149. data/guides/code/getting_started/app/models/post.rb +0 -11
  150. data/guides/code/getting_started/app/models/tag.rb +0 -3
  151. data/guides/code/getting_started/app/views/comments/_comment.html.erb +0 -15
  152. data/guides/code/getting_started/app/views/comments/_form.html.erb +0 -13
  153. data/guides/code/getting_started/app/views/home/index.html.erb +0 -2
  154. data/guides/code/getting_started/app/views/layouts/application.html.erb +0 -14
  155. data/guides/code/getting_started/app/views/posts/_form.html.erb +0 -32
  156. data/guides/code/getting_started/app/views/posts/edit.html.erb +0 -6
  157. data/guides/code/getting_started/app/views/posts/index.html.erb +0 -27
  158. data/guides/code/getting_started/app/views/posts/new.html.erb +0 -5
  159. data/guides/code/getting_started/app/views/posts/show.html.erb +0 -31
  160. data/guides/code/getting_started/app/views/tags/_form.html.erb +0 -12
  161. data/guides/code/getting_started/config/application.rb +0 -59
  162. data/guides/code/getting_started/config/boot.rb +0 -6
  163. data/guides/code/getting_started/config/database.yml +0 -25
  164. data/guides/code/getting_started/config/environment.rb +0 -5
  165. data/guides/code/getting_started/config/environments/development.rb +0 -37
  166. data/guides/code/getting_started/config/environments/production.rb +0 -67
  167. data/guides/code/getting_started/config/environments/test.rb +0 -37
  168. data/guides/code/getting_started/config/initializers/backtrace_silencers.rb +0 -7
  169. data/guides/code/getting_started/config/initializers/inflections.rb +0 -15
  170. data/guides/code/getting_started/config/initializers/mime_types.rb +0 -5
  171. data/guides/code/getting_started/config/initializers/secret_token.rb +0 -7
  172. data/guides/code/getting_started/config/initializers/session_store.rb +0 -8
  173. data/guides/code/getting_started/config/initializers/wrap_parameters.rb +0 -14
  174. data/guides/code/getting_started/config/locales/en.yml +0 -5
  175. data/guides/code/getting_started/config/routes.rb +0 -64
  176. data/guides/code/getting_started/config.ru +0 -4
  177. data/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +0 -11
  178. data/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +0 -12
  179. data/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +0 -11
  180. data/guides/code/getting_started/db/schema.rb +0 -43
  181. data/guides/code/getting_started/db/seeds.rb +0 -7
  182. data/guides/code/getting_started/doc/README_FOR_APP +0 -2
  183. data/guides/code/getting_started/public/404.html +0 -26
  184. data/guides/code/getting_started/public/422.html +0 -26
  185. data/guides/code/getting_started/public/500.html +0 -25
  186. data/guides/code/getting_started/public/favicon.ico +0 -0
  187. data/guides/code/getting_started/public/robots.txt +0 -5
  188. data/guides/code/getting_started/script/rails +0 -6
  189. data/guides/code/getting_started/test/fixtures/comments.yml +0 -11
  190. data/guides/code/getting_started/test/fixtures/posts.yml +0 -11
  191. data/guides/code/getting_started/test/fixtures/tags.yml +0 -9
  192. data/guides/code/getting_started/test/functional/comments_controller_test.rb +0 -7
  193. data/guides/code/getting_started/test/functional/home_controller_test.rb +0 -9
  194. data/guides/code/getting_started/test/functional/posts_controller_test.rb +0 -49
  195. data/guides/code/getting_started/test/performance/browsing_test.rb +0 -12
  196. data/guides/code/getting_started/test/test_helper.rb +0 -13
  197. data/guides/code/getting_started/test/unit/comment_test.rb +0 -7
  198. data/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +0 -4
  199. data/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +0 -4
  200. data/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +0 -4
  201. data/guides/code/getting_started/test/unit/post_test.rb +0 -7
  202. data/guides/code/getting_started/test/unit/tag_test.rb +0 -7
  203. data/guides/rails_guides/generator.rb +0 -310
  204. data/guides/rails_guides/helpers.rb +0 -45
  205. data/guides/rails_guides/indexer.rb +0 -69
  206. data/guides/rails_guides/levenshtein.rb +0 -31
  207. data/guides/rails_guides/textile_extensions.rb +0 -63
  208. data/guides/rails_guides.rb +0 -50
  209. data/guides/source/2_2_release_notes.textile +0 -422
  210. data/guides/source/2_3_release_notes.textile +0 -610
  211. data/guides/source/3_0_release_notes.textile +0 -595
  212. data/guides/source/3_1_release_notes.textile +0 -553
  213. data/guides/source/3_2_release_notes.textile +0 -540
  214. data/guides/source/_license.html.erb +0 -2
  215. data/guides/source/_welcome.html.erb +0 -19
  216. data/guides/source/action_controller_overview.textile +0 -820
  217. data/guides/source/action_mailer_basics.textile +0 -516
  218. data/guides/source/action_view_overview.textile +0 -1497
  219. data/guides/source/active_model_basics.textile +0 -205
  220. data/guides/source/active_record_basics.textile +0 -218
  221. data/guides/source/active_record_querying.textile +0 -1433
  222. data/guides/source/active_record_validations_callbacks.textile +0 -1283
  223. data/guides/source/active_resource_basics.textile +0 -120
  224. data/guides/source/active_support_core_extensions.textile +0 -3713
  225. data/guides/source/ajax_on_rails.textile +0 -267
  226. data/guides/source/api_documentation_guidelines.textile +0 -185
  227. data/guides/source/asset_pipeline.textile +0 -707
  228. data/guides/source/association_basics.textile +0 -1959
  229. data/guides/source/caching_with_rails.textile +0 -437
  230. data/guides/source/command_line.textile +0 -574
  231. data/guides/source/configuring.textile +0 -641
  232. data/guides/source/contributing_to_ruby_on_rails.textile +0 -448
  233. data/guides/source/credits.html.erb +0 -72
  234. data/guides/source/debugging_rails_applications.textile +0 -714
  235. data/guides/source/documents.yaml +0 -157
  236. data/guides/source/engines.textile +0 -618
  237. data/guides/source/form_helpers.textile +0 -798
  238. data/guides/source/generators.textile +0 -621
  239. data/guides/source/getting_started.textile +0 -1929
  240. data/guides/source/i18n.textile +0 -931
  241. data/guides/source/index.html.erb +0 -30
  242. data/guides/source/initialization.textile +0 -1116
  243. data/guides/source/kindle/KINDLE.md +0 -26
  244. data/guides/source/kindle/copyright.html.erb +0 -1
  245. data/guides/source/kindle/layout.html.erb +0 -27
  246. data/guides/source/kindle/rails_guides.opf.erb +0 -52
  247. data/guides/source/kindle/toc.html.erb +0 -24
  248. data/guides/source/kindle/toc.ncx.erb +0 -64
  249. data/guides/source/kindle/welcome.html.erb +0 -5
  250. data/guides/source/layout.html.erb +0 -124
  251. data/guides/source/layouts_and_rendering.textile +0 -1237
  252. data/guides/source/migrations.textile +0 -900
  253. data/guides/source/nested_model_forms.textile +0 -222
  254. data/guides/source/performance_testing.textile +0 -597
  255. data/guides/source/plugins.textile +0 -464
  256. data/guides/source/rails_application_templates.textile +0 -240
  257. data/guides/source/rails_on_rack.textile +0 -236
  258. data/guides/source/routing.textile +0 -885
  259. data/guides/source/ruby_on_rails_guides_guidelines.textile +0 -79
  260. data/guides/source/security.textile +0 -1004
  261. data/guides/source/testing.textile +0 -947
  262. data/guides/w3c_validator.rb +0 -91
  263. data/lib/rails/all.rb +0 -15
  264. data/lib/rails/application/bootstrap.rb +0 -73
  265. data/lib/rails/application/configuration.rb +0 -151
  266. data/lib/rails/application/finisher.rb +0 -98
  267. data/lib/rails/application/railties.rb +0 -13
  268. data/lib/rails/application/route_inspector.rb +0 -84
  269. data/lib/rails/application/routes_reloader.rb +0 -56
  270. data/lib/rails/application.rb +0 -320
  271. data/lib/rails/backtrace_cleaner.rb +0 -42
  272. data/lib/rails/cli.rb +0 -16
  273. data/lib/rails/code_statistics.rb +0 -118
  274. data/lib/rails/commands/application.rb +0 -36
  275. data/lib/rails/commands/benchmarker.rb +0 -34
  276. data/lib/rails/commands/console.rb +0 -55
  277. data/lib/rails/commands/dbconsole.rb +0 -123
  278. data/lib/rails/commands/destroy.rb +0 -10
  279. data/lib/rails/commands/generate.rb +0 -12
  280. data/lib/rails/commands/plugin.rb +0 -544
  281. data/lib/rails/commands/plugin_new.rb +0 -11
  282. data/lib/rails/commands/profiler.rb +0 -32
  283. data/lib/rails/commands/runner.rb +0 -54
  284. data/lib/rails/commands/server.rb +0 -100
  285. data/lib/rails/commands/update.rb +0 -9
  286. data/lib/rails/commands.rb +0 -104
  287. data/lib/rails/configuration.rb +0 -89
  288. data/lib/rails/console/app.rb +0 -36
  289. data/lib/rails/console/helpers.rb +0 -11
  290. data/lib/rails/engine/commands.rb +0 -43
  291. data/lib/rails/engine/configuration.rb +0 -84
  292. data/lib/rails/engine/railties.rb +0 -33
  293. data/lib/rails/engine.rb +0 -657
  294. data/lib/rails/generators/actions.rb +0 -325
  295. data/lib/rails/generators/active_model.rb +0 -78
  296. data/lib/rails/generators/app_base.rb +0 -266
  297. data/lib/rails/generators/base.rb +0 -390
  298. data/lib/rails/generators/css/assets/assets_generator.rb +0 -13
  299. data/lib/rails/generators/css/assets/templates/stylesheet.css +0 -4
  300. data/lib/rails/generators/css/scaffold/scaffold_generator.rb +0 -16
  301. data/lib/rails/generators/erb/controller/controller_generator.rb +0 -20
  302. data/lib/rails/generators/erb/controller/templates/view.html.erb +0 -2
  303. data/lib/rails/generators/erb/mailer/mailer_generator.rb +0 -13
  304. data/lib/rails/generators/erb/mailer/templates/view.text.erb +0 -3
  305. data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +0 -29
  306. data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +0 -23
  307. data/lib/rails/generators/erb/scaffold/templates/edit.html.erb +0 -6
  308. data/lib/rails/generators/erb/scaffold/templates/index.html.erb +0 -27
  309. data/lib/rails/generators/erb/scaffold/templates/new.html.erb +0 -5
  310. data/lib/rails/generators/erb/scaffold/templates/show.html.erb +0 -12
  311. data/lib/rails/generators/erb.rb +0 -21
  312. data/lib/rails/generators/generated_attribute.rb +0 -107
  313. data/lib/rails/generators/js/assets/assets_generator.rb +0 -13
  314. data/lib/rails/generators/js/assets/templates/javascript.js +0 -2
  315. data/lib/rails/generators/migration.rb +0 -68
  316. data/lib/rails/generators/named_base.rb +0 -202
  317. data/lib/rails/generators/rails/app/USAGE +0 -15
  318. data/lib/rails/generators/rails/app/app_generator.rb +0 -312
  319. data/lib/rails/generators/rails/app/templates/Gemfile +0 -21
  320. data/lib/rails/generators/rails/app/templates/README +0 -261
  321. data/lib/rails/generators/rails/app/templates/Rakefile +0 -7
  322. data/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
  323. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +0 -17
  324. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +0 -13
  325. data/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +0 -3
  326. data/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +0 -2
  327. data/lib/rails/generators/rails/app/templates/app/mailers/.empty_directory +0 -0
  328. data/lib/rails/generators/rails/app/templates/app/models/.empty_directory +0 -0
  329. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +0 -14
  330. data/lib/rails/generators/rails/app/templates/config/application.rb +0 -68
  331. data/lib/rails/generators/rails/app/templates/config/boot.rb +0 -6
  332. data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +0 -31
  333. data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +0 -86
  334. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +0 -62
  335. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +0 -33
  336. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +0 -43
  337. data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +0 -20
  338. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +0 -54
  339. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +0 -39
  340. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +0 -55
  341. data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +0 -25
  342. data/lib/rails/generators/rails/app/templates/config/environment.rb +0 -5
  343. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +0 -41
  344. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +0 -73
  345. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +0 -39
  346. data/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +0 -7
  347. data/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +0 -15
  348. data/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +0 -5
  349. data/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +0 -7
  350. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -8
  351. data/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +0 -16
  352. data/lib/rails/generators/rails/app/templates/config/locales/en.yml +0 -5
  353. data/lib/rails/generators/rails/app/templates/config/routes.rb +0 -58
  354. data/lib/rails/generators/rails/app/templates/config.ru +0 -4
  355. data/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +0 -7
  356. data/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +0 -2
  357. data/lib/rails/generators/rails/app/templates/gitignore +0 -15
  358. data/lib/rails/generators/rails/app/templates/public/404.html +0 -26
  359. data/lib/rails/generators/rails/app/templates/public/422.html +0 -26
  360. data/lib/rails/generators/rails/app/templates/public/500.html +0 -25
  361. data/lib/rails/generators/rails/app/templates/public/robots.txt +0 -5
  362. data/lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory +0 -0
  363. data/lib/rails/generators/rails/app/templates/script/openskies +0 -5
  364. data/lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory +0 -0
  365. data/lib/rails/generators/rails/app/templates/test/functional/.empty_directory +0 -0
  366. data/lib/rails/generators/rails/app/templates/test/integration/.empty_directory +0 -0
  367. data/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +0 -12
  368. data/lib/rails/generators/rails/app/templates/test/test_helper.rb +0 -15
  369. data/lib/rails/generators/rails/app/templates/test/unit/.empty_directory +0 -0
  370. data/lib/rails/generators/rails/assets/USAGE +0 -20
  371. data/lib/rails/generators/rails/assets/assets_generator.rb +0 -25
  372. data/lib/rails/generators/rails/assets/templates/javascript.js +0 -2
  373. data/lib/rails/generators/rails/assets/templates/stylesheet.css +0 -4
  374. data/lib/rails/generators/rails/controller/USAGE +0 -18
  375. data/lib/rails/generators/rails/controller/controller_generator.rb +0 -20
  376. data/lib/rails/generators/rails/controller/templates/controller.rb +0 -13
  377. data/lib/rails/generators/rails/generator/USAGE +0 -12
  378. data/lib/rails/generators/rails/generator/generator_generator.rb +0 -25
  379. data/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +0 -3
  380. data/lib/rails/generators/rails/generator/templates/USAGE.tt +0 -8
  381. data/lib/rails/generators/rails/generator/templates/templates/.empty_directory +0 -0
  382. data/lib/rails/generators/rails/helper/USAGE +0 -17
  383. data/lib/rails/generators/rails/helper/helper_generator.rb +0 -13
  384. data/lib/rails/generators/rails/helper/templates/helper.rb +0 -4
  385. data/lib/rails/generators/rails/integration_test/USAGE +0 -10
  386. data/lib/rails/generators/rails/integration_test/integration_test_generator.rb +0 -7
  387. data/lib/rails/generators/rails/migration/USAGE +0 -29
  388. data/lib/rails/generators/rails/migration/migration_generator.rb +0 -8
  389. data/lib/rails/generators/rails/model/USAGE +0 -45
  390. data/lib/rails/generators/rails/model/model_generator.rb +0 -8
  391. data/lib/rails/generators/rails/observer/USAGE +0 -12
  392. data/lib/rails/generators/rails/observer/observer_generator.rb +0 -7
  393. data/lib/rails/generators/rails/performance_test/USAGE +0 -10
  394. data/lib/rails/generators/rails/performance_test/performance_test_generator.rb +0 -7
  395. data/lib/rails/generators/rails/plugin_new/USAGE +0 -10
  396. data/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +0 -318
  397. data/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +0 -29
  398. data/lib/rails/generators/rails/plugin_new/templates/Gemfile +0 -23
  399. data/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +0 -20
  400. data/lib/rails/generators/rails/plugin_new/templates/README.rdoc +0 -3
  401. data/lib/rails/generators/rails/plugin_new/templates/Rakefile +0 -31
  402. data/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +0 -4
  403. data/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +0 -4
  404. data/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory +0 -0
  405. data/lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory +0 -0
  406. data/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +0 -14
  407. data/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +0 -6
  408. data/lib/rails/generators/rails/plugin_new/templates/gitignore +0 -7
  409. data/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +0 -7
  410. data/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +0 -3
  411. data/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +0 -6
  412. data/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +0 -4
  413. data/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +0 -18
  414. data/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +0 -10
  415. data/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +0 -4
  416. data/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +0 -7
  417. data/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +0 -7
  418. data/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +0 -12
  419. data/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +0 -15
  420. data/lib/rails/generators/rails/resource/USAGE +0 -23
  421. data/lib/rails/generators/rails/resource/resource_generator.rb +0 -20
  422. data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +0 -50
  423. data/lib/rails/generators/rails/scaffold/USAGE +0 -35
  424. data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +0 -23
  425. data/lib/rails/generators/rails/scaffold/templates/scaffold.css +0 -56
  426. data/lib/rails/generators/rails/scaffold_controller/USAGE +0 -19
  427. data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +0 -25
  428. data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +0 -89
  429. data/lib/rails/generators/rails/session_migration/USAGE +0 -8
  430. data/lib/rails/generators/rails/session_migration/session_migration_generator.rb +0 -8
  431. data/lib/rails/generators/rails/task/USAGE +0 -9
  432. data/lib/rails/generators/rails/task/task_generator.rb +0 -12
  433. data/lib/rails/generators/rails/task/templates/task.rb +0 -8
  434. data/lib/rails/generators/resource_helpers.rb +0 -80
  435. data/lib/rails/generators/test_case.rb +0 -247
  436. data/lib/rails/generators/test_unit/controller/controller_generator.rb +0 -15
  437. data/lib/rails/generators/test_unit/controller/templates/functional_test.rb +0 -19
  438. data/lib/rails/generators/test_unit/helper/helper_generator.rb +0 -13
  439. data/lib/rails/generators/test_unit/helper/templates/helper_test.rb +0 -6
  440. data/lib/rails/generators/test_unit/integration/integration_generator.rb +0 -13
  441. data/lib/rails/generators/test_unit/integration/templates/integration_test.rb +0 -7
  442. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +0 -14
  443. data/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +0 -21
  444. data/lib/rails/generators/test_unit/model/model_generator.rb +0 -24
  445. data/lib/rails/generators/test_unit/model/templates/fixtures.yml +0 -23
  446. data/lib/rails/generators/test_unit/model/templates/unit_test.rb +0 -9
  447. data/lib/rails/generators/test_unit/observer/observer_generator.rb +0 -13
  448. data/lib/rails/generators/test_unit/observer/templates/unit_test.rb +0 -9
  449. data/lib/rails/generators/test_unit/performance/performance_generator.rb +0 -13
  450. data/lib/rails/generators/test_unit/performance/templates/performance_test.rb +0 -12
  451. data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +0 -13
  452. data/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +0 -7
  453. data/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +0 -3
  454. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +0 -38
  455. data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +0 -51
  456. data/lib/rails/generators/test_unit.rb +0 -8
  457. data/lib/rails/generators.rb +0 -339
  458. data/lib/rails/info.rb +0 -116
  459. data/lib/rails/info_controller.rb +0 -15
  460. data/lib/rails/initializable.rb +0 -89
  461. data/lib/rails/paths.rb +0 -211
  462. data/lib/rails/performance_test_help.rb +0 -3
  463. data/lib/rails/plugin.rb +0 -92
  464. data/lib/rails/rack/debugger.rb +0 -24
  465. data/lib/rails/rack/log_tailer.rb +0 -34
  466. data/lib/rails/rack/logger.rb +0 -60
  467. data/lib/rails/rack.rb +0 -7
  468. data/lib/rails/railtie/configurable.rb +0 -35
  469. data/lib/rails/railtie/configuration.rb +0 -90
  470. data/lib/rails/railtie.rb +0 -202
  471. data/lib/rails/ruby_version_check.rb +0 -23
  472. data/lib/rails/rubyprof_ext.rb +0 -35
  473. data/lib/rails/script_rails_loader.rb +0 -29
  474. data/lib/rails/source_annotation_extractor.rb +0 -104
  475. data/lib/rails/tasks/annotations.rake +0 -20
  476. data/lib/rails/tasks/documentation.rake +0 -155
  477. data/lib/rails/tasks/engine.rake +0 -72
  478. data/lib/rails/tasks/framework.rake +0 -76
  479. data/lib/rails/tasks/log.rake +0 -9
  480. data/lib/rails/tasks/middleware.rake +0 -7
  481. data/lib/rails/tasks/misc.rake +0 -67
  482. data/lib/rails/tasks/routes.rake +0 -9
  483. data/lib/rails/tasks/statistics.rake +0 -16
  484. data/lib/rails/tasks/tmp.rake +0 -37
  485. data/lib/rails/tasks.rb +0 -16
  486. data/lib/rails/test_help.rb +0 -56
  487. data/lib/rails/test_unit/railtie.rb +0 -15
  488. data/lib/rails/test_unit/sub_test_task.rb +0 -8
  489. data/lib/rails/test_unit/testing.rake +0 -146
  490. data/lib/rails.rb +0 -121
  491. data/lib/version.rb +0 -16
@@ -1,76 +0,0 @@
1
- namespace :rails do
2
- desc "Update configs and some other initially generated files (or use just update:configs, update:scripts, or update:application_controller)"
3
- task :update => [ "update:configs", "update:scripts", "update:application_controller" ]
4
-
5
- desc "Applies the template supplied by LOCATION=(/path/to/template) or URL"
6
- task :template do
7
- template = ENV["LOCATION"]
8
- raise "No LOCATION value given. Please set LOCATION either as path to a file or a URL" if template.blank?
9
- template = File.expand_path(template) if template !~ %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://}
10
- require 'rails/generators'
11
- require 'rails/generators/rails/app/app_generator'
12
- generator = Rails::Generators::AppGenerator.new [Rails.root], {}, :destination_root => Rails.root
13
- generator.apply template, :verbose => false
14
- end
15
-
16
- namespace :templates do
17
- # desc "Copy all the templates from rails to the application directory for customization. Already existing local copies will be overwritten"
18
- task :copy do
19
- generators_lib = File.expand_path("../../generators", __FILE__)
20
- project_templates = "#{Rails.root}/lib/templates"
21
-
22
- default_templates = { "erb" => %w{controller mailer scaffold},
23
- "rails" => %w{controller helper scaffold_controller assets} }
24
-
25
- default_templates.each do |type, names|
26
- local_template_type_dir = File.join(project_templates, type)
27
- FileUtils.mkdir_p local_template_type_dir
28
-
29
- names.each do |name|
30
- dst_name = File.join(local_template_type_dir, name)
31
- src_name = File.join(generators_lib, type, name, "templates")
32
- FileUtils.cp_r src_name, dst_name
33
- end
34
- end
35
- end
36
- end
37
-
38
- namespace :update do
39
- def invoke_from_app_generator(method)
40
- app_generator.send(method)
41
- end
42
-
43
- def app_generator
44
- @app_generator ||= begin
45
- require 'rails/generators'
46
- require 'rails/generators/rails/app/app_generator'
47
- gen = Rails::Generators::AppGenerator.new ["rails"], { :with_dispatchers => true },
48
- :destination_root => Rails.root
49
- File.exists?(Rails.root.join("config", "application.rb")) ?
50
- gen.send(:app_const) : gen.send(:valid_app_const?)
51
- gen
52
- end
53
- end
54
-
55
- # desc "Update config/boot.rb from your current rails install"
56
- task :configs do
57
- invoke_from_app_generator :create_boot_file
58
- invoke_from_app_generator :create_config_files
59
- end
60
-
61
- # desc "Adds new scripts to the application script/ directory"
62
- task :scripts do
63
- invoke_from_app_generator :create_script_files
64
- end
65
-
66
- # desc "Rename application.rb to application_controller.rb"
67
- task :application_controller do
68
- old_style = Rails.root + '/app/controllers/application.rb'
69
- new_style = Rails.root + '/app/controllers/application_controller.rb'
70
- if File.exists?(old_style) && !File.exists?(new_style)
71
- FileUtils.mv(old_style, new_style)
72
- puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary"
73
- end
74
- end
75
- end
76
- end
@@ -1,9 +0,0 @@
1
- namespace :log do
2
- desc "Truncates all *.log files in log/ to zero bytes"
3
- task :clear do
4
- FileList["log/*.log"].each do |log_file|
5
- f = File.open(log_file, "w")
6
- f.close
7
- end
8
- end
9
- end
@@ -1,7 +0,0 @@
1
- desc 'Prints out your Rack middleware stack'
2
- task :middleware => :environment do
3
- Rails.configuration.middleware.each do |middleware|
4
- puts "use #{middleware.inspect}"
5
- end
6
- puts "run #{Rails.application.class.name}.routes"
7
- end
@@ -1,67 +0,0 @@
1
- task :rails_env do
2
- # TODO Do we really need this?
3
- unless defined? RAILS_ENV
4
- RAILS_ENV = ENV['RAILS_ENV'] ||= 'development'
5
- end
6
- end
7
-
8
- desc 'Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions).'
9
- task :secret do
10
- require 'securerandom'
11
- puts SecureRandom.hex(64)
12
- end
13
-
14
- desc 'List versions of all Rails frameworks and the environment'
15
- task :about => :environment do
16
- puts Rails::Info
17
- end
18
-
19
- namespace :time do
20
- namespace :zones do
21
- desc 'Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g., OFFSET=-6'
22
- task :all do
23
- build_time_zone_list(:all)
24
- end
25
-
26
- # desc 'Displays names of US time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6'
27
- task :us do
28
- build_time_zone_list(:us_zones)
29
- end
30
-
31
- # desc 'Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time'
32
- task :local do
33
- require 'active_support'
34
- require 'active_support/time'
35
- jan_offset = Time.now.beginning_of_year.utc_offset
36
- jul_offset = Time.now.beginning_of_year.change(:month => 7).utc_offset
37
- offset = jan_offset < jul_offset ? jan_offset : jul_offset
38
- build_time_zone_list(:all, offset)
39
- end
40
-
41
- # to find UTC -06:00 zones, OFFSET can be set to either -6, -6:00 or 21600
42
- def build_time_zone_list(method, offset = ENV['OFFSET'])
43
- require 'active_support'
44
- require 'active_support/time'
45
- if offset
46
- offset = if offset.to_s.match(/(\+|-)?(\d+):(\d+)/)
47
- sign = $1 == '-' ? -1 : 1
48
- hours, minutes = $2.to_f, $3.to_f
49
- ((hours * 3600) + (minutes.to_f * 60)) * sign
50
- elsif offset.to_f.abs <= 13
51
- offset.to_f * 3600
52
- else
53
- offset.to_f
54
- end
55
- end
56
- previous_offset = nil
57
- ActiveSupport::TimeZone.__send__(method).each do |zone|
58
- if offset.nil? || offset == zone.utc_offset
59
- puts "\n* UTC #{zone.formatted_offset} *" unless zone.utc_offset == previous_offset
60
- puts zone.name
61
- previous_offset = zone.utc_offset
62
- end
63
- end
64
- puts "\n"
65
- end
66
- end
67
- end
@@ -1,9 +0,0 @@
1
- desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
2
- task :routes => :environment do
3
- Rails.application.reload_routes!
4
- all_routes = Rails.application.routes.routes
5
-
6
- require 'rails/application/route_inspector'
7
- inspector = Rails::Application::RouteInspector.new
8
- puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n"
9
- end
@@ -1,16 +0,0 @@
1
- STATS_DIRECTORIES = [
2
- %w(Controllers app/controllers),
3
- %w(Helpers app/helpers),
4
- %w(Models app/models),
5
- %w(Libraries lib/),
6
- %w(APIs app/apis),
7
- %w(Integration\ tests test/integration),
8
- %w(Functional\ tests test/functional),
9
- %w(Unit\ tests test/unit)
10
- ].collect { |name, dir| [ name, "#{Rails.root}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
11
-
12
- desc "Report code statistics (KLOCs, etc) from the application"
13
- task :stats do
14
- require 'rails/code_statistics'
15
- CodeStatistics.new(*STATS_DIRECTORIES).to_s
16
- end
@@ -1,37 +0,0 @@
1
- namespace :tmp do
2
- desc "Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)"
3
- task :clear => [ "tmp:sessions:clear", "tmp:cache:clear", "tmp:sockets:clear"]
4
-
5
- desc "Creates tmp directories for sessions, cache, sockets, and pids"
6
- task :create do
7
- FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids tmp/cache/assets ))
8
- end
9
-
10
- namespace :sessions do
11
- # desc "Clears all files in tmp/sessions"
12
- task :clear do
13
- FileUtils.rm(Dir['tmp/sessions/[^.]*'])
14
- end
15
- end
16
-
17
- namespace :cache do
18
- # desc "Clears all files and directories in tmp/cache"
19
- task :clear do
20
- FileUtils.rm_rf(Dir['tmp/cache/[^.]*'])
21
- end
22
- end
23
-
24
- namespace :sockets do
25
- # desc "Clears all files in tmp/sockets"
26
- task :clear do
27
- FileUtils.rm(Dir['tmp/sockets/[^.]*'])
28
- end
29
- end
30
-
31
- namespace :pids do
32
- # desc "Clears all files in tmp/pids"
33
- task :clear do
34
- FileUtils.rm(Dir['tmp/pids/[^.]*'])
35
- end
36
- end
37
- end
data/lib/rails/tasks.rb DELETED
@@ -1,16 +0,0 @@
1
- $VERBOSE = nil
2
-
3
- # Load Rails rakefile extensions
4
- %w(
5
- annotations
6
- documentation
7
- framework
8
- log
9
- middleware
10
- misc
11
- routes
12
- statistics
13
- tmp
14
- ).each do |task|
15
- load "rails/tasks/#{task}.rake"
16
- end
@@ -1,56 +0,0 @@
1
- # Make double-sure the RAILS_ENV is not set to production,
2
- # so fixtures aren't loaded into that environment
3
- abort("Abort testing: Your Rails environment is running in production mode!") if Rails.env.production?
4
-
5
- require 'test/unit'
6
- require 'active_support/test_case'
7
- require 'action_controller/test_case'
8
- require 'action_dispatch/testing/integration'
9
-
10
- if defined?(Test::Unit::Util::BacktraceFilter) && ENV['BACKTRACE'].nil?
11
- require 'rails/backtrace_cleaner'
12
- Test::Unit::Util::BacktraceFilter.module_eval { include Rails::BacktraceFilterForTestUnit }
13
- end
14
-
15
- if defined?(MiniTest)
16
- # Enable turn if it is available
17
- begin
18
- require 'turn'
19
-
20
- Turn.config do |c|
21
- c.natural = true
22
- end
23
- rescue LoadError
24
- end
25
- end
26
-
27
- if defined?(ActiveRecord::Base)
28
- require 'active_record/test_case'
29
-
30
- class ActiveSupport::TestCase
31
- include ActiveRecord::TestFixtures
32
- self.fixture_path = "#{Rails.root}/test/fixtures/"
33
-
34
- setup do
35
- ActiveRecord::IdentityMap.clear
36
- end
37
- end
38
-
39
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
40
-
41
- def create_fixtures(*table_names, &block)
42
- Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block)
43
- end
44
- end
45
-
46
- class ActionController::TestCase
47
- setup do
48
- @routes = Rails.application.routes
49
- end
50
- end
51
-
52
- class ActionDispatch::IntegrationTest
53
- setup do
54
- @routes = Rails.application.routes
55
- end
56
- end
@@ -1,15 +0,0 @@
1
- module Rails
2
- class TestUnitRailtie < Rails::Railtie
3
- config.app_generators do |c|
4
- c.test_framework :test_unit, :fixture => true,
5
- :fixture_replacement => nil
6
-
7
- c.integration_tool :test_unit
8
- c.performance_tool :test_unit
9
- end
10
-
11
- rake_tasks do
12
- load "rails/test_unit/testing.rake"
13
- end
14
- end
15
- end
@@ -1,8 +0,0 @@
1
- module Rails
2
- # Silence the default description to cut down on `rake -T` noise.
3
- class SubTestTask < Rake::TestTask
4
- def desc(string)
5
- # Ignore the description.
6
- end
7
- end
8
- end
@@ -1,146 +0,0 @@
1
- require 'rbconfig'
2
- require 'rake/testtask'
3
- require 'rails/test_unit/sub_test_task'
4
-
5
- TEST_CHANGES_SINCE = Time.now - 600
6
-
7
- # Look up tests for recently modified sources.
8
- def recent_tests(source_pattern, test_path, touched_since = 10.minutes.ago)
9
- FileList[source_pattern].map do |path|
10
- if File.mtime(path) > touched_since
11
- tests = []
12
- source_dir = File.dirname(path).split("/")
13
- source_file = File.basename(path, '.rb')
14
-
15
- # Support subdirs in app/models and app/controllers
16
- modified_test_path = source_dir.length > 2 ? "#{test_path}/" << source_dir[1..source_dir.length].join('/') : test_path
17
-
18
- # For modified files in app/ run the tests for it. ex. /test/functional/account_controller.rb
19
- test = "#{modified_test_path}/#{source_file}_test.rb"
20
- tests.push test if File.exist?(test)
21
-
22
- # For modified files in app, run tests in subdirs too. ex. /test/functional/account/*_test.rb
23
- test = "#{modified_test_path}/#{File.basename(path, '.rb').sub("_controller","")}"
24
- FileList["#{test}/*_test.rb"].each { |f| tests.push f } if File.exist?(test)
25
-
26
- return tests
27
-
28
- end
29
- end.flatten.compact
30
- end
31
-
32
-
33
- # Recreated here from Active Support because :uncommitted needs it before Rails is available
34
- module Kernel
35
- remove_method :silence_stderr # Removing old method to prevent method redefined warning
36
- def silence_stderr
37
- old_stderr = STDERR.dup
38
- STDERR.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
39
- STDERR.sync = true
40
- yield
41
- ensure
42
- STDERR.reopen(old_stderr)
43
- end
44
- end
45
-
46
- task :default => :test
47
-
48
- desc 'Runs test:units, test:functionals, test:integration together (also available: test:benchmark, test:profile, test:plugins)'
49
- task :test do
50
- Rake::Task[ENV['TEST'] ? 'test:single' : 'test:run'].invoke
51
- end
52
-
53
- namespace :test do
54
- task :prepare do
55
- # Placeholder task for other Railtie and plugins to enhance. See Active Record for an example.
56
- end
57
-
58
- task :run do
59
- errors = %w(test:units test:functionals test:integration).collect do |task|
60
- begin
61
- Rake::Task[task].invoke
62
- nil
63
- rescue => e
64
- { :task => task, :exception => e }
65
- end
66
- end.compact
67
-
68
- if errors.any?
69
- puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n")
70
- abort
71
- end
72
- end
73
-
74
- Rake::TestTask.new(:recent => "test:prepare") do |t|
75
- since = TEST_CHANGES_SINCE
76
- touched = FileList['test/**/*_test.rb'].select { |path| File.mtime(path) > since } +
77
- recent_tests('app/models/**/*.rb', 'test/unit', since) +
78
- recent_tests('app/controllers/**/*.rb', 'test/functional', since)
79
-
80
- t.libs << 'test'
81
- t.test_files = touched.uniq
82
- end
83
- Rake::Task['test:recent'].comment = "Test recent changes"
84
-
85
- Rake::TestTask.new(:uncommitted => "test:prepare") do |t|
86
- def t.file_list
87
- if File.directory?(".svn")
88
- changed_since_checkin = silence_stderr { `svn status` }.split.map { |path| path.chomp[7 .. -1] }
89
- elsif File.directory?(".git")
90
- changed_since_checkin = silence_stderr { `git ls-files --modified --others` }.split.map { |path| path.chomp }
91
- else
92
- abort "Not a Subversion or Git checkout."
93
- end
94
-
95
- models = changed_since_checkin.select { |path| path =~ /app[\\\/]models[\\\/].*\.rb$/ }
96
- controllers = changed_since_checkin.select { |path| path =~ /app[\\\/]controllers[\\\/].*\.rb$/ }
97
-
98
- unit_tests = models.map { |model| "test/unit/#{File.basename(model, '.rb')}_test.rb" }
99
- functional_tests = controllers.map { |controller| "test/functional/#{File.basename(controller, '.rb')}_test.rb" }
100
- (unit_tests + functional_tests).uniq.select { |file| File.exist?(file) }
101
- end
102
-
103
- t.libs << 'test'
104
- end
105
- Rake::Task['test:uncommitted'].comment = "Test changes since last checkin (only Subversion and Git)"
106
-
107
- Rake::TestTask.new(:single => "test:prepare") do |t|
108
- t.libs << "test"
109
- end
110
-
111
- Rails::SubTestTask.new(:units => "test:prepare") do |t|
112
- t.libs << "test"
113
- t.pattern = 'test/unit/**/*_test.rb'
114
- end
115
-
116
- Rails::SubTestTask.new(:functionals => "test:prepare") do |t|
117
- t.libs << "test"
118
- t.pattern = 'test/functional/**/*_test.rb'
119
- end
120
-
121
- Rails::SubTestTask.new(:integration => "test:prepare") do |t|
122
- t.libs << "test"
123
- t.pattern = 'test/integration/**/*_test.rb'
124
- end
125
-
126
- Rails::SubTestTask.new(:benchmark => 'test:prepare') do |t|
127
- t.libs << 'test'
128
- t.pattern = 'test/performance/**/*_test.rb'
129
- t.options = '-- --benchmark'
130
- end
131
-
132
- Rails::SubTestTask.new(:profile => 'test:prepare') do |t|
133
- t.libs << 'test'
134
- t.pattern = 'test/performance/**/*_test.rb'
135
- end
136
-
137
- Rails::SubTestTask.new(:plugins => :environment) do |t|
138
- t.libs << "test"
139
-
140
- if ENV['PLUGIN']
141
- t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb"
142
- else
143
- t.pattern = 'vendor/plugins/*/**/test/**/*_test.rb'
144
- end
145
- end
146
- end
data/lib/rails.rb DELETED
@@ -1,121 +0,0 @@
1
- require 'rails/ruby_version_check'
2
-
3
- require 'pathname'
4
-
5
- require 'active_support'
6
- require 'active_support/core_ext/kernel/reporting'
7
- require 'active_support/core_ext/array/extract_options'
8
- require 'active_support/core_ext/logger'
9
-
10
- require 'rails/application'
11
-
12
- require 'active_support/railtie'
13
- require 'action_dispatch/railtie'
14
-
15
- # For Ruby 1.8, this initialization sets $KCODE to 'u' to enable the
16
- # multibyte safe operations. Plugin authors supporting other encodings
17
- # should override this behavior and set the relevant +default_charset+
18
- # on ActionController::Base.
19
- #
20
- # For Ruby 1.9, UTF-8 is the default internal and external encoding.
21
- if RUBY_VERSION < '1.9'
22
- $KCODE='u'
23
- else
24
- silence_warnings do
25
- Encoding.default_external = Encoding::UTF_8
26
- Encoding.default_internal = Encoding::UTF_8
27
- end
28
- end
29
-
30
- module Rails
31
- autoload :Info, 'rails/info'
32
- autoload :InfoController, 'rails/info_controller'
33
-
34
- class << self
35
- def application
36
- @@application ||= nil
37
- end
38
-
39
- def application=(application)
40
- @@application = application
41
- end
42
-
43
- # The Configuration instance used to configure the Rails environment
44
- def configuration
45
- application.config
46
- end
47
-
48
- def initialize!
49
- application.initialize!
50
- end
51
-
52
- def initialized?
53
- @@initialized || false
54
- end
55
-
56
- def initialized=(initialized)
57
- @@initialized ||= initialized
58
- end
59
-
60
- def logger
61
- @@logger ||= nil
62
- end
63
-
64
- def logger=(logger)
65
- @@logger = logger
66
- end
67
-
68
- def backtrace_cleaner
69
- @@backtrace_cleaner ||= begin
70
- # Relies on Active Support, so we have to lazy load to postpone definition until AS has been loaded
71
- require 'rails/backtrace_cleaner'
72
- Rails::BacktraceCleaner.new
73
- end
74
- end
75
-
76
- def root
77
- application && application.config.root
78
- end
79
-
80
- def env
81
- @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development")
82
- end
83
-
84
- def env=(environment)
85
- @_env = ActiveSupport::StringInquirer.new(environment)
86
- end
87
-
88
- def cache
89
- RAILS_CACHE
90
- end
91
-
92
- # Returns all rails groups for loading based on:
93
- #
94
- # * The Rails environment;
95
- # * The environment variable RAILS_GROUPS;
96
- # * The optional envs given as argument and the hash with group dependencies;
97
- #
98
- # == Examples
99
- #
100
- # groups :assets => [:development, :test]
101
- #
102
- # # Returns
103
- # # => [:default, :development, :assets] for Rails.env == "development"
104
- # # => [:default, :production] for Rails.env == "production"
105
- #
106
- def groups(*groups)
107
- hash = groups.extract_options!
108
- env = Rails.env
109
- groups.unshift(:default, env)
110
- groups.concat ENV["RAILS_GROUPS"].to_s.split(",")
111
- groups.concat hash.map { |k,v| k if v.map(&:to_s).include?(env) }
112
- groups.compact!
113
- groups.uniq!
114
- groups
115
- end
116
-
117
- def public_path
118
- application && application.paths["public"].first
119
- end
120
- end
121
- end
data/lib/version.rb DELETED
@@ -1,16 +0,0 @@
1
- # ember-rails requires a RAILS::VERSION::MAJOR constant
2
- module Rails
3
-
4
- def self.version
5
- VERSION::STRING
6
- end
7
-
8
- module VERSION #:nodoc:
9
- MAJOR = 3
10
- MINOR = 2
11
- TINY = 0
12
- PRE = nil
13
-
14
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
15
- end
16
- end