Guest User

Untitled

a guest
Mar 8th, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.71 KB | None | 0 0
  1.  
  2. New patches:
  3.  
  4. [Allow render_template to work recursively + spec
  5. Aman Gupta <ramaze@tmm1.net>**20071018154324] {
  6. hunk ./lib/ramaze/helper/partial.rb 56
  7. - options[:binding] ||= current.binding
  8. - options[:controller] ||= current.controller
  9. - options[:instance] ||= current.instance
  10. + options[:controller] ||= current.controller
  11. + options[:instance] ||= current.instance.dup
  12. + options[:binding] ||= options[:instance].instance_eval{ binding }
  13. hunk ./spec/ramaze/helper/partial.rb 24
  14. +
  15. + def recursive
  16. + @n = 1
  17. + end
  18. hunk ./spec/ramaze/helper/partial.rb 42
  19. +
  20. + it 'should work recursively' do
  21. + get('/recursive').body.gsub(/\n|\s+/, '').should ==
  22. + '<ul><li>1</li><ul><li>2</li><li>2</li></ul><li>1</li></ul>'
  23. + end
  24. addfile ./spec/ramaze/helper/template/recursive.xhtml
  25. hunk ./spec/ramaze/helper/template/recursive.xhtml 1
  26. -
  27. +<ul>
  28. + <li>#@n</li>
  29. + <?r if @n < 2 ?>
  30. + <?r @n += 1 ?>
  31. + #{render_template('recursive.xhtml')}
  32. + <?r @n -= 1 ?>
  33. + <?r end ?>
  34. + <li>#@n</li>
  35. +</ul>
  36. }
  37.  
  38. Context:
  39.  
  40. [Add Ramaze::APPDIR to complement Ramaze::SEEED, make Global.public_root and Global.template_root relative from the APPDIR so we don't have to care where we run start.rb from
  41. Michael Fellinger <m.fellinger@gmail.com>**20071018044723]
  42. [Change spec to point to an unexisting file in any case
  43. Michael Fellinger <m.fellinger@gmail.com>**20071018044704]
  44. [Some improvments for whywiki
  45. Michael Fellinger <m.fellinger@gmail.com>**20071018044220]
  46. [Introduce Controller::engine and change specs to use the new form
  47. Michael Fellinger <m.fellinger@gmail.com>**20071017234039]
  48. [LinkHelper was escaping query-parameters, update implementation and specs.
  49. Michael Fellinger <m.fellinger@gmail.com>**20071017130736]
  50. [Add template example for nagoro
  51. Michael Fellinger <m.fellinger@gmail.com>**20071017130725]
  52. [Remove some junk from Rakefile, we don't use svn
  53. Michael Fellinger <m.fellinger@gmail.com>**20071017123101]
  54. [Make examples/sourceview work anywhere
  55. Michael Fellinger <m.fellinger@gmail.com>**20071017122821]
  56. [A few cleanups to the whywiki example (thanks gimb)
  57. Aman Gupta <ramaze@tmm1.net>**20071017192459]
  58. [Keep the session[:STACK] out if we don't need it
  59. Michael Fellinger <m.fellinger@gmail.com>**20071016144938]
  60. [Simplify redirection
  61. Michael Fellinger <m.fellinger@gmail.com>**20071016140908]
  62. [Correct $LOAD_PATH in spec/helper.rb
  63. Michael Fellinger <m.fellinger@gmail.com>**20071016140854]
  64. [Sequel API change
  65. Michael Fellinger <m.fellinger@gmail.com>**20071016133116]
  66. [Small improvment for docs of RedirectHelper
  67. Michael Fellinger <m.fellinger@gmail.com>**20071016145327]
  68. [Small beautification to Dispatcher::File
  69. Michael Fellinger <m.fellinger@gmail.com>**20071016145239]
  70. [Don't mention coderay in README anymore
  71. Michael Fellinger <m.fellinger@gmail.com>**20071016152037]
  72. [Adapt Nagoro for latest API changes
  73. Michael Fellinger <m.fellinger@gmail.com>**20071016120024]
  74. [Add (for now optional) support for Nagoro templates.
  75. Michael Fellinger <m.fellinger@gmail.com>**20071015045805]
  76. [Add caching to sourceview
  77. Aman Gupta <ramaze@tmm1.net>**20071015221353]
  78. [Fix ezamar morpher, seems to break on 0.6 - simplify implementation at the same time... couldn't do a real benchmark for the new vs old since the old one doesn't seem to be able to process more complex documents, new one builds on XPATH functionality of hpricot and is a lot more robust but at the same time much easier to understand. Extend specs for it and don't require it by default anymore.
  79. Michael Fellinger <m.fellinger@gmail.com>**20071012124124]
  80. [layout example should not have an Element
  81. Michael Fellinger <m.fellinger@gmail.com>**20071011152604]
  82. [Minor sourceview cleanups
  83. Aman Gupta <ramaze@tmm1.net>**20071011043035]
  84. [Numeric#human_readable_filesize_format #=> Numeric#filesize_format
  85. Michael Fellinger <m.fellinger@gmail.com>**20071011035130]
  86. [gzip filter added
  87. jesuswasramazing.10.pistos@geoshell.com**20071005054848]
  88. [Fix <title> in layout example
  89. Michael Fellinger <m.fellinger@gmail.com>**20071010122507]
  90. [Remove mention of Nginx from feature CGI
  91. Michael Fellinger <m.fellinger@gmail.com>**20071009170713]
  92. [Add sourceview example- syntax highlighting source browser for ramaze source code
  93. Aman Gupta <ramaze@tmm1.net>**20071011013118]
  94. [rescue MissingArgument for missing arguments in bin/ramaze
  95. Michael Fellinger <m.fellinger@gmail.com>**20071006222648]
  96. [Add doc/LEGAL that is required by doc/LEGAL, holds a list of licenses and authors of files we use but do not 'own'.
  97. Michael Fellinger <m.fellinger@gmail.com>**20071005152720]
  98. [Add Global.boring to avoid logging of some static files
  99. Michael Fellinger <m.fellinger@gmail.com>**20071005052916]
  100. [Don't overwrite Global on sourcereload
  101. Michael Fellinger <m.fellinger@gmail.com>**20071005015003]
  102. [Move auth example into its own dir and separate out templates so action stubs aren't required. Make AuthHelper#login_required private
  103. Aman Gupta <ramaze@tmm1.net>**20071003043840]
  104. [Add benchmark suite
  105. Aman Gupta <ramaze@tmm1.net>**20071003010530]
  106. [Add the needed adapter/swiftiplied_mongrel and adapter/evented_mongrel
  107. Michael Fellinger <m.fellinger@gmail.com>**20071002233631]
  108. [Support :adapter => (:evented_mongrel|:swiftiplied_mongrel), setting by ENV with :adapter => :mongrel and (SWIFT|EVENT)=1 should still work. we require 'mongrel' in any case, could that lead to problems?
  109. Michael Fellinger <m.fellinger@gmail.com>**20071002233135]
  110. [AuthHelper cleanups and an example using Sequel
  111. Aman Gupta <ramaze@tmm1.net>**20071002234747]
  112. [Ignore /favicon.ico by default
  113. Aman Gupta <ramaze@tmm1.net>**20071002234355]
  114. [Fix hash-order issue for gestalt spec.
  115. Michael Fellinger <m.fellinger@gmail.com>**20071002152504]
  116. [Fix reference and logging of CGI adapter.
  117. Michael Fellinger <m.fellinger@gmail.com>**20070930163354]
  118. [Fix docs for AuthHelper
  119. Michael Fellinger <m.fellinger@gmail.com>**20070930051429]
  120. [Gestalt should accept symbols as attributes
  121. Michael Fellinger <m.fellinger@gmail.com>**20070929133737]
  122. [[localize] normalize session locale too
  123. Jonathan Buch <john@oxyliquit.de>**20070926160207]
  124. [Minor cleanup of whitespace
  125. Jonathan Buch <john@oxyliquit.de>**20070926102009]
  126. [[localize] normalize dictionary to regard symbols and strings the same, add usage doc
  127. Jonathan Buch <john@oxyliquit.de>**20070926095546]
  128. [Expand new Layout lookup so it can be relative paths too (no / at beginning means current controller)
  129. Jonathan Buch <john@oxyliquit.de>**20070925171154]
  130. [Add Stephan Maka to authors.
  131. Michael Fellinger <m.fellinger@gmail.com>**20070925160834]
  132. [spec/helper/wrap now handles rubygems version mismatch better.
  133. Michael Fellinger <m.fellinger@gmail.com>**20070925042337]
  134. [Do not automatically wrap layout paths in R(self, path) anymore, this allows for absolute paths so you can use layouts from other controllers easily.
  135. Michael Fellinger <m.fellinger@gmail.com>**20070925041727]
  136. [trivial comment changes
  137. jesuswasramazing.10.pistos@geoshell.com**20070925140510]
  138. [Global.ignore now only ignores files if they don't exist.
  139. Michael Fellinger <m.fellinger@gmail.com>**20070923051241]
  140. [Fix requires for to specs.
  141. Michael Fellinger <m.fellinger@gmail.com>**20070923050957]
  142. [Remove unused methods from Action
  143. Michael Fellinger <m.fellinger@gmail.com>**20070922191754]
  144. [XSLT template example: add Content-Type
  145. stephan@spaceboyz.net**20070921225525]
  146. [XSLT template spec: two more examples
  147. stephan@spaceboyz.net**20070921130029]
  148. [XSLT templates: add extFunctions capability
  149. stephan@spaceboyz.net**20070921115648]
  150. [Ramaze support for XSLT templates, example
  151. stephan@spaceboyz.net**20070920011044]
  152. [Instruct SourceReload to expand filenames before loading to make sure they really do exist where we think they do.
  153. Michael Fellinger <m.fellinger@gmail.com>**20070921140842]
  154. [Slight 'beautifcation' for specwrapper
  155. Michael Fellinger <m.fellinger@gmail.com>**20070921081739]
  156. [SourceReload#reload_glob is now SourceReload.trait[:reload_glob] for ultimate control.
  157. Michael Fellinger <m.fellinger@gmail.com>**20070921080937]
  158. [This improves logging a bit by introducing the :dev tag and so lowering the overall output in default mode.
  159. Michael Fellinger <m.fellinger@gmail.com>**20070921064236]
  160. [Gestalt: allow text in arguments, properly escape this text and attributes
  161. stephan@spaceboyz.net**20070920153337]
  162. [alias Ramaze.contrib to Ramaze::Contrib.load
  163. Aman Gupta <ramaze@tmm1.net>**20070919153655]
  164. [Add $0 to files being sourcereloaded.
  165. Michael Fellinger <m.fellinger@gmail.com>**20070919062417]
  166. [Implement Global.ignore and spec it.
  167. Michael Fellinger <m.fellinger@gmail.com>**20070919062143]
  168. [Add Global.cache_alternative so you can specify a different cache-class to use for only certain caches. For example: Ramaze::Global.cache_alternative[:sessions] = Ramaze::MemcachedCache
  169. Michael Fellinger <m.fellinger@gmail.com>**20070918104659]
  170. [Small improvment to the sequel/fill contrib
  171. Michael Fellinger <m.fellinger@gmail.com>**20070918054112]
  172. [Add contrib/sequel/fill
  173. Michael Fellinger <m.fellinger@gmail.com>**20070918053330]
  174. [alias redirect_referer to redirect_referrer in RedirectHelper
  175. Michael Fellinger <m.fellinger@gmail.com>**20070918045439]
  176. [Allow custom /helper directory in apps, will be searched before ramazes helpers.
  177. Michael Fellinger <m.fellinger@gmail.com>**20070918014843]
  178. [Add the wikore example and fix spec for wiktacular a little.
  179. Michael Fellinger <m.fellinger@gmail.com>**20070917114503]
  180. [Improve output of spec wrapper a bit.
  181. Michael Fellinger <m.fellinger@gmail.com>**20070917114458]
  182. [Adding path for OSX to tool/tidy and improve readability of the spec for it a bit.
  183. Michael Fellinger <m.fellinger@gmail.com>**20070912125255]
  184. [Fixing dependence on the debug.rb implementation of ruby, since this may vary between different versions/implementations, use gestalt.rb instead, the oldest and most stable file we have.
  185. Michael Fellinger <m.fellinger@gmail.com>**20070912090809]
  186. [Small beautification/speedup for the mocked http
  187. Michael Fellinger <m.fellinger@gmail.com>**20070911084731]
  188. [Clean up the controller/resolve part a bit, implement raise_no_filter which throws a NoFilter error now and fix a minor bug that would result in a faulty response if an element of Cache.resolved was no valid action. Added docs for all methods in Controller.
  189. Michael Fellinger <m.fellinger@gmail.com>**20070911162955]
  190. [Restructuring of how contribs are handled, introducing the Ramaze::Contrib namespace, adding Global.contribs so we can add a unified shutdown in future, fixing routing so it won't try to match an already resolved route again and thereby avoiding recursion.
  191. Michael Fellinger <m.fellinger@gmail.com>**20070911144843]
  192. [Adding snippet for Array#put_within/put_before/put_after plus specs. docs missing.
  193. Michael Fellinger <m.fellinger@gmail.com>**20070911054158]
  194. [Updated spec for route
  195. Aman Gupta <ramaze@tmm1.net>**20070910063242]
  196. [This introduces the first contrib for routes, slight restructuring of Controller::resolve to allow filtering based on Controller::FILTER like we know it from Dispatcher. Added dictionary.rb from facets to allow sorted but hash-like routes-adding. Spec for routes added as small showcase.
  197. Michael Fellinger <m.fellinger@gmail.com>**20070910044521]
  198. [Add basic Ramaze::contrib as future helping instance for contributed things.
  199. Michael Fellinger <m.fellinger@gmail.com>**20070910044506]
  200. [make snippets/struct/values_at behaviour compatible with standard ruby (orig. by riffraff)
  201. Michael Fellinger <m.fellinger@gmail.com>**20070907083216]
  202. [Fix for directory-listing, always sort files/dirs shown
  203. Michael Fellinger <m.fellinger@gmail.com>**20070907083158]
  204. [TAG 0.1.4
  205. Michael Fellinger <m.fellinger@gmail.com>**20070906135219]
  206. Patch bundle hash:
  207. 76e3c374775d4a3653ec9781b63eeb00fad38756
Add Comment
Please, Sign In to add comment