optimacms 0.1.57 → 0.1.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/lib/optimacms/page_services/page_route_service.rb +29 -8
  3. data/lib/optimacms/version.rb +1 -1
  4. data/spec/dummy/log/development.log +2674 -0
  5. data/spec/dummy/tmp/cache/assets/development/sass/38aaf4982e776a83df88ee6142fe315d8c8a4576/font-awesome.css.erbc +0 -0
  6. data/spec/dummy/tmp/cache/assets/development/sass/5b1098eb74c8e1af5b245ed4a552e3cb0be260fc/_css3.scssc +0 -0
  7. data/spec/dummy/tmp/cache/assets/development/sass/5b1098eb74c8e1af5b245ed4a552e3cb0be260fc/_support.scssc +0 -0
  8. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_alerts.scssc +0 -0
  9. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_background-variant.scssc +0 -0
  10. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_border-radius.scssc +0 -0
  11. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_buttons.scssc +0 -0
  12. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_center-block.scssc +0 -0
  13. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_clearfix.scssc +0 -0
  14. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_forms.scssc +0 -0
  15. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_gradients.scssc +0 -0
  16. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_grid-framework.scssc +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_grid.scssc +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_hide-text.scssc +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_image.scssc +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_labels.scssc +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_list-group.scssc +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_nav-divider.scssc +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_nav-vertical-align.scssc +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_opacity.scssc +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_pagination.scssc +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_panels.scssc +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_progress-bar.scssc +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_reset-filter.scssc +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_reset-text.scssc +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_resize.scssc +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_responsive-visibility.scssc +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_size.scssc +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_tab-focus.scssc +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_table-row.scssc +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_text-emphasis.scssc +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_text-overflow.scssc +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sass/64274c788e379a0793dc9738d8050418da1d172b/_vendor-prefixes.scssc +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sass/842dfd874be6f9cd3bb0569e23cfc0feb61f18f5/_bootstrap-sprockets.scssc +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_alerts.scssc +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_badges.scssc +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_breadcrumbs.scssc +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_button-groups.scssc +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_buttons.scssc +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_carousel.scssc +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_close.scssc +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_code.scssc +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_component-animations.scssc +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_dropdowns.scssc +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_forms.scssc +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_glyphicons.scssc +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_grid.scssc +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_input-groups.scssc +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_jumbotron.scssc +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_labels.scssc +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_list-group.scssc +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_media.scssc +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_mixins.scssc +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_modals.scssc +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_navbar.scssc +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_navs.scssc +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_normalize.scssc +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_pager.scssc +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_pagination.scssc +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_panels.scssc +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_popovers.scssc +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_print.scssc +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_progress-bars.scssc +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_responsive-embed.scssc +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_responsive-utilities.scssc +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_scaffolding.scssc +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_tables.scssc +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_thumbnails.scssc +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_tooltip.scssc +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_type.scssc +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_utilities.scssc +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_variables.scssc +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sass/a187b9541eb09cfae0c829c63cfde3b9430dcf1d/_wells.scssc +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sass/b27ef787063ed015fccbe329d61e14a18daf3345/_hacks.scssc +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_appearance.scssc +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_background-clip.scssc +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_background-origin.scssc +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_background-size.scssc +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_border-radius.scssc +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_box-shadow.scssc +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_box-sizing.scssc +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_box.scssc +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_columns.scssc +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_filter.scssc +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_font-face.scssc +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_hyphenation.scssc +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_images.scssc +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_inline-block.scssc +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_opacity.scssc +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_regions.scssc +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_shared.scssc +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_text-shadow.scssc +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_transform.scssc +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_transition.scssc +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sass/f438bd478b9ef93f8ca1863646316d42015ad317/_user-interface.scssc +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/053f826d1ea01a2fac355de0755e5c40 +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/07ba91287641124bffd2cf22c286c1eb +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/0a470277dd21c166b9dfb68b03d34d5c +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/0ad60696a13becd5f46dd8c71385d357 +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sprockets/13272781c2d1959f2c75a3a1eac100f5 +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sprockets/1776fe7c16d4aeeb72b23a586739cdfc +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sprockets/1c43d48e2adb866e5d787a64e031c27f +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sprockets/1f631bd03bec1d51bfd51a6c795b4357 +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sprockets/2056383a5a4df3722dab30a62592c626 +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sprockets/22c754d2d93ffdc2c40d01c8322fc421 +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sprockets/28fff87693a34b5beb7e66a806ad3833 +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sprockets/2cb2e5b2abc5f527ba6d3f05a6315873 +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sprockets/2f7d38a264678a2db4a0d569a3313cb1 +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sprockets/3240ef40c1dc9d13156bbd790ec2651a +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sprockets/3df9dc08e786041b758b3dde7d1b783a +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sprockets/4024da72ad47959820fe18874c53f221 +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sprockets/4810421fd0c71c5d69338209e10070aa +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sprockets/4bfebf7044cd57045582604aeda41b70 +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sprockets/51a30045d73bcb4e287247540a1f8b1a +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/529a74a4530de52f6c3ebbf107ffe9f2 +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/543486503ee069fde21aa3e66cd4c53b +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sprockets/56c7eb172a7423728c45d0a751d198e3 +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sprockets/5b51dc1a00c7421b8d18c4cdc25659ef +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sprockets/5e6f22ffe50d81fe0fbd9e8141614e24 +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sprockets/678a2e392e656b8132f0420e4ec28ed6 +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sprockets/6843f0414f73089579ae0f9fddf7b38f +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sprockets/6cdbd6f171a27a578bcb07dd5bfa83a2 +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sprockets/6d4a2ae7c3150f5058333fe6fc31dbe4 +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sprockets/6f943f22c610e6417422e4a13e0bcc0d +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sprockets/7c1da2863c9cc5c4beca7faee9b926f8 +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sprockets/7df9b8a145ee6d36ab1b2467c38293ec +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sprockets/808e3fbf28912a70798599773f9c3fb8 +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sprockets/8283708d8708e538744205689ee9c787 +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sprockets/8956737a82f17db48d50e13f133aeefc +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sprockets/8a1d0d36be43e2abdde4adac99884e72 +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sprockets/8a7fdc9ba36fbfd607efe8253cbaafe0 +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sprockets/8b5a7992567ebbeb9a882d074778f8c8 +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sprockets/8ecd5a0dbf510f928efa95340e9fe910 +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sprockets/924857562e72b2a6911810c63aa3b6b7 +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sprockets/937d161d17165f27d31fbb60de6262b5 +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sprockets/97c1e12a09973e0fb97f23a1dc496443 +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sprockets/99e8d6370ba85ec4a61d953f5ed261af +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sprockets/9c9ee3bcfa3192458b487b7b9558ee97 +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sprockets/9cb4510e55f0c07098e6a2a270265e99 +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sprockets/9ee15139da5c7d931eebe585dfa4f704 +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sprockets/a090bc14ad5f648880e3e0b3d1de90de +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sprockets/a25a5420710420425c171eb2f62627f3 +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sprockets/a64dbcf0e4afe0985b1abd3e209d17cd +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sprockets/a6d357fbe03dae6f590180f6c5e0e148 +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sprockets/a7478d68549f51df0523244f7bc75f6d +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sprockets/aa58fb159780a7200a1bc4c6844cc5c4 +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sprockets/ac7254cb771a232e117073343e8bcfca +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sprockets/aeaa5cb837408b775c7450a61f97a698 +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sprockets/ba3a30de386fac6b6725525c6fa5c5a0 +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sprockets/ba9859d0d2b7d4d7d5b03ff3a71ed478 +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sprockets/bd51aad443f452b0aa7d863427f5b164 +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sprockets/c1b70e8dd963b37b21718ca80e0746ff +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sprockets/c9dfca6de1f728a082245491ed927b38 +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sprockets/d3e6478e505aa1d0482c102b86205e0c +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sprockets/d88422881c326190e968b349d27e5680 +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sprockets/dc4e2dfae80b82939b81a2aeef7f03d9 +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sprockets/dec42a70eea64c724a9e98d7f0e80ea8 +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sprockets/e2af681c85db2ce8cd92ec1b4f327b55 +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sprockets/e3dd086dd858b5bff9cfd60a031c2091 +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sprockets/e6e4cc77e615a00707af83c80a7eed17 +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sprockets/e94d980a1c3b4ef3554b82f3b8566bb9 +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sprockets/ec33505f0e2ed4dd12951ecceffa3695 +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sprockets/f06187d4328e75bbd878bc2dced2b601 +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  174. data/spec/dummy/tmp/pids/server.pid +1 -0
  175. metadata +290 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3d4e52c4c4f6ee80e2e2cc715fe5942ee76800f
4
- data.tar.gz: ab6c741215c43f9a2ab6da485b835a7c4bfdd765
3
+ metadata.gz: b97da65940e9e195a6724bef2dbacd66e3b748f1
4
+ data.tar.gz: 750087e73c213267611d745337edb7c337e473cf
5
5
  SHA512:
6
- metadata.gz: 14df3169bf11dab1293192bae129fb27a2fb7e581f22b355038f3f68c9a03ab134ea80a22da4dcca5f50b99aa9ddcf2882c4fc7920e6ecc0edf85aff2d2d938c
7
- data.tar.gz: 512efcbef77513ee9d20b0281842a0d71280171dfed7265470f12925435c059ef48ec5b5a72c8954d5b59ee75e7e0f1347ecb8d1b58fbe609e48407eb2ed59a8
6
+ metadata.gz: ee8de12d7ad50837f34f3617719d1f360b481f721bb72e784571ce71edd6d1a513c3c16ce54e326936116bda964645a70244cc36400e17623141840a74e64ddd
7
+ data.tar.gz: c8600d0d2effef8000d7eada7f6123aac76a111ddb2dfbcf2bf4df68935e0c1175639c751f92faf6e57548e9eedb945034ba251a20cd6e2cfe5a4715cd578709
@@ -64,8 +64,12 @@ module Optimacms
64
64
  url_parts = url.split '/'
65
65
  a = []
66
66
  i_part = 0
67
+ n_parts = url_parts.count
68
+ is_last_optional = false
69
+
67
70
  url_parts.each do |part|
68
71
  i_part+=1
72
+ is_last_optional = false
69
73
 
70
74
 
71
75
  # check for brackets inside brackets
@@ -77,30 +81,47 @@ module Optimacms
77
81
  p = part
78
82
 
79
83
 
80
- # variables inside (.) - optional
84
+ # variables inside (...) - optional
85
+
86
+ # last optional varible
87
+ if i_part==n_parts
88
+ # /^(:name)..$
89
+ # include last / as optional
90
+ p_before = p.clone
91
+ p.gsub! /^(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '\/?([^/]+)*\2'
92
+ is_last_optional = true if p!=p_before
93
+ end
81
94
 
82
- if i_part>1
95
+ p.gsub! /(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '([^/]+)*\2'
96
+
97
+ #if i_part>1
83
98
  # add / to the beginning - / is optional too
84
- p.gsub! /(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '(\/[^/]+)*\2'
85
- else
99
+ #p.gsub! /(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '([^/]+)*\2'
100
+ #else
86
101
  # the first param
87
- p.gsub! /(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '([^/]+)*\2'
88
- end
102
+ #p.gsub! /(\(\:#{REGEX_VARIABLE}\))([-\.]|$)/, '([^/]+)*\2'
103
+ #end
89
104
 
90
105
  # variables
91
106
  #p.gsub! /\{\$[^}]+\}/, '([^/]+)'
92
- p.gsub! /(\:#{REGEX_VARIABLE})([-\.]|$)/, '\/([^/]+)\2'
107
+ p.gsub! /(\:#{REGEX_VARIABLE})([-\.]|$)/, '([^/]+)\2'
93
108
 
94
109
 
95
110
  # escape system symbols
96
111
  # replace '.'
97
112
  p.sub! '.', '[.]'
98
113
 
114
+ #
115
+ if i_part>1 && !is_last_optional
116
+ p = '/'+p
117
+ end
118
+
119
+
99
120
 
100
121
  a << p
101
122
  end
102
123
 
103
- return '^'+url_parts.join('')+'$'
124
+ return '^'+a.join('')+'$'
104
125
  end
105
126
 
106
127
  def self.count_url_parts(url)
@@ -1,3 +1,3 @@
1
1
  module Optimacms
2
- VERSION = "0.1.57"
2
+ VERSION = "0.1.58"
3
3
  end