| Summary: | %w{} array syntax rendred incorrectly | ||
|---|---|---|---|
| Product: | [Technology] DLTK | Reporter: | Michael Klishin <michael.s.klishin> |
| Component: | Ruby | Assignee: | Mikhail Kalugin <mikhail.kalugin> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | ||
| Version: | 0.95 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 197240 | ||
I've tried that code, everything is ok. Changing OS from Mac OS to Mac OS X as per bug 185991 bulk change: fixed in 0.95 |
Build ID: I20070323-1616 Steps To Reproduce: 1. Open up Ruby editor. 2. Enter the following code: # Some metaprogramming to make it rock %w{app controllers models helpers views specs spec_models spec_helpers spec_controllers spec_views spec_fixtures tests fixtures unit_tests functional_tests integration_tests public stylesheets javascripts images}.each do |item| method_to_eval = <<-EO_METH def #{item}_dir_path resolve_path(:#{item}) end EO_METH class_eval(method_to_eval) end 3. See that %{w is swallowed (substituted with spaces) while TextMate shows the same file correctly.