middleman-i18n 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (354) hide show
  1. data/.gitignore +3 -0
  2. data/.travis.yml +7 -0
  3. data/Gemfile +4 -0
  4. data/README +6 -0
  5. data/Rakefile +15 -0
  6. data/features/builder_alt_path.feature +27 -0
  7. data/features/builder_alt_root.feature +27 -0
  8. data/features/builder_default.feature +27 -0
  9. data/features/builder_no_mount.feature +32 -0
  10. data/features/builder_subset.feature +27 -0
  11. data/features/preview_alt_path.feature +37 -0
  12. data/features/preview_alt_root.feature +37 -0
  13. data/features/preview_default.feature +37 -0
  14. data/features/preview_no_mount.feature +37 -0
  15. data/features/preview_subset.feature +37 -0
  16. data/features/step_definitions/builder_steps.rb +40 -0
  17. data/features/step_definitions/middleman_steps.rb +53 -0
  18. data/features/support/env.rb +4 -0
  19. data/fixtures/alt-path-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
  20. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
  21. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
  22. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
  23. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
  24. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
  25. data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
  26. data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
  27. data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
  28. data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
  29. data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
  30. data/fixtures/alt-path-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
  31. data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
  32. data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
  33. data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
  34. data/fixtures/alt-path-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
  35. data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
  36. data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
  37. data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
  38. data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
  39. data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
  40. data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
  41. data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
  42. data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
  43. data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
  44. data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
  45. data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
  46. data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
  47. data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
  48. data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
  49. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
  50. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
  51. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
  52. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
  53. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
  54. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
  55. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
  56. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
  57. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
  58. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
  59. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
  60. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
  61. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
  62. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
  63. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
  64. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
  65. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
  66. data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
  67. data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
  68. data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
  69. data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
  70. data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
  71. data/fixtures/alt-path-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
  72. data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
  73. data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
  74. data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
  75. data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
  76. data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
  77. data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
  78. data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
  79. data/fixtures/alt-path-app/config.rb +2 -0
  80. data/fixtures/alt-path-app/locales/en.yml +4 -0
  81. data/fixtures/alt-path-app/locales/es.yml +7 -0
  82. data/fixtures/alt-path-app/source/layout.erb +1 -0
  83. data/fixtures/alt-path-app/source/localizable/hello.html.erb +1 -0
  84. data/fixtures/alt-path-app/source/localizable/index.html.erb +1 -0
  85. data/fixtures/alt-root-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
  86. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
  87. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
  88. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
  89. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
  90. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
  91. data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
  92. data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
  93. data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
  94. data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
  95. data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
  96. data/fixtures/alt-root-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
  97. data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
  98. data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
  99. data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
  100. data/fixtures/alt-root-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
  101. data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
  102. data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
  103. data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
  104. data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
  105. data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
  106. data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
  107. data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
  108. data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
  109. data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
  110. data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
  111. data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
  112. data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
  113. data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
  114. data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
  115. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
  116. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
  117. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
  118. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
  119. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
  120. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
  121. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
  122. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
  123. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
  124. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
  125. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
  126. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
  127. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
  128. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
  129. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
  130. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
  131. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
  132. data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
  133. data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
  134. data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
  135. data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
  136. data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
  137. data/fixtures/alt-root-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
  138. data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
  139. data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
  140. data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
  141. data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
  142. data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
  143. data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
  144. data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
  145. data/fixtures/alt-root-app/config.rb +2 -0
  146. data/fixtures/alt-root-app/locales/en.yml +4 -0
  147. data/fixtures/alt-root-app/locales/es.yml +7 -0
  148. data/fixtures/alt-root-app/source/lang_data/hello.html.erb +1 -0
  149. data/fixtures/alt-root-app/source/lang_data/index.html.erb +1 -0
  150. data/fixtures/alt-root-app/source/layout.erb +1 -0
  151. data/fixtures/no-mount-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
  152. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
  153. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
  154. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
  155. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
  156. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
  157. data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
  158. data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
  159. data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
  160. data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
  161. data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
  162. data/fixtures/no-mount-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
  163. data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
  164. data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
  165. data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
  166. data/fixtures/no-mount-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
  167. data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
  168. data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
  169. data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
  170. data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
  171. data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
  172. data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
  173. data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
  174. data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
  175. data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
  176. data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
  177. data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
  178. data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
  179. data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
  180. data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
  181. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
  182. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
  183. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
  184. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
  185. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
  186. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
  187. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
  188. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
  189. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
  190. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
  191. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
  192. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
  193. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
  194. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
  195. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
  196. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
  197. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
  198. data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
  199. data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
  200. data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
  201. data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
  202. data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
  203. data/fixtures/no-mount-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
  204. data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
  205. data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
  206. data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
  207. data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
  208. data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
  209. data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
  210. data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
  211. data/fixtures/no-mount-app/config.rb +2 -0
  212. data/fixtures/no-mount-app/locales/en.yml +4 -0
  213. data/fixtures/no-mount-app/locales/es.yml +7 -0
  214. data/fixtures/no-mount-app/source/layout.erb +1 -0
  215. data/fixtures/no-mount-app/source/localizable/hello.html.erb +1 -0
  216. data/fixtures/no-mount-app/source/localizable/index.html.erb +1 -0
  217. data/fixtures/subset-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
  218. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
  219. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
  220. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
  221. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
  222. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
  223. data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
  224. data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
  225. data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
  226. data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
  227. data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
  228. data/fixtures/subset-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
  229. data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
  230. data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
  231. data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
  232. data/fixtures/subset-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
  233. data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
  234. data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
  235. data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
  236. data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
  237. data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
  238. data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
  239. data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
  240. data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
  241. data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
  242. data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
  243. data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
  244. data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
  245. data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
  246. data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
  247. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
  248. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
  249. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
  250. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
  251. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
  252. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
  253. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
  254. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
  255. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
  256. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
  257. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
  258. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
  259. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
  260. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
  261. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
  262. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
  263. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
  264. data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
  265. data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
  266. data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
  267. data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
  268. data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
  269. data/fixtures/subset-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
  270. data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
  271. data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
  272. data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
  273. data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
  274. data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
  275. data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
  276. data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
  277. data/fixtures/subset-app/config.rb +2 -0
  278. data/fixtures/subset-app/locales/en.yml +4 -0
  279. data/fixtures/subset-app/locales/es.yml +7 -0
  280. data/fixtures/subset-app/source/layout.erb +1 -0
  281. data/fixtures/subset-app/source/localizable/hello.html.erb +1 -0
  282. data/fixtures/subset-app/source/localizable/index.html.erb +1 -0
  283. data/fixtures/test-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
  284. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
  285. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
  286. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
  287. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
  288. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
  289. data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
  290. data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
  291. data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
  292. data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
  293. data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
  294. data/fixtures/test-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
  295. data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
  296. data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
  297. data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
  298. data/fixtures/test-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
  299. data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
  300. data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
  301. data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
  302. data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
  303. data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
  304. data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
  305. data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
  306. data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
  307. data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
  308. data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
  309. data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
  310. data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
  311. data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
  312. data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
  313. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
  314. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
  315. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
  316. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
  317. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
  318. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
  319. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
  320. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
  321. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
  322. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
  323. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
  324. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
  325. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
  326. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
  327. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
  328. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
  329. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
  330. data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
  331. data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
  332. data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
  333. data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
  334. data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
  335. data/fixtures/test-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
  336. data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
  337. data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
  338. data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
  339. data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
  340. data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
  341. data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
  342. data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
  343. data/fixtures/test-app/config.rb +2 -0
  344. data/fixtures/test-app/locales/en.yml +4 -0
  345. data/fixtures/test-app/locales/es.yml +7 -0
  346. data/fixtures/test-app/source/layout.erb +1 -0
  347. data/fixtures/test-app/source/localizable/hello.html.erb +1 -0
  348. data/fixtures/test-app/source/localizable/index.html.erb +1 -0
  349. data/lib/middleman-i18n.rb +1 -0
  350. data/lib/middleman-i18n/feature.rb +77 -0
  351. data/lib/middleman-i18n/version.rb +5 -0
  352. data/lib/middleman_init.rb +1 -0
  353. data/middleman-i18n.gemspec +26 -0
  354. metadata +497 -0
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ .rbenv-version
3
+ Gemfile.lock
@@ -0,0 +1,7 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - rbx-2.0
6
+ - jruby
7
+ script: "bundle exec rake test"
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in middleman-blog.gemspec
4
+ gemspec
data/README ADDED
@@ -0,0 +1,6 @@
1
+ activate :i18n
2
+
3
+ # Requires:
4
+ # locales/en.yml, locales/es.yml
5
+ # source/localizable/files.html
6
+ localize [:en, :es], :path => "/:locale/", :root => "localizable"
@@ -0,0 +1,15 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'cucumber/rake/task'
5
+
6
+ Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
7
+ t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
8
+ end
9
+
10
+ #$LOAD_PATH.unshift 'lib'
11
+
12
+ require 'rake/testtask'
13
+ require 'rake/clean'
14
+
15
+ task :test => ["cucumber"]
@@ -0,0 +1,27 @@
1
+ Feature: Builder Alt Path
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given a built app at "alt-path-app"
6
+ Then "index.html" should exist at "alt-path-app" and include "Howdy"
7
+ And cleanup built app at "alt-path-app"
8
+
9
+ Scenario: EN mounted at root should not be in directory
10
+ Given a built app at "alt-path-app"
11
+ Then "lang_en/index.html" should not exist at "alt-path-app"
12
+ And cleanup built app at "alt-path-app"
13
+
14
+ Scenario: Paths can be localized EN
15
+ Given a built app at "alt-path-app"
16
+ Then "hello.html" should exist at "alt-path-app" and include "Hello World"
17
+ And cleanup built app at "alt-path-app"
18
+
19
+ Scenario: ES should be under namespace
20
+ Given a built app at "alt-path-app"
21
+ Then "lang_es/index.html" should exist at "alt-path-app" and include "Como Esta?"
22
+ And cleanup built app at "alt-path-app"
23
+
24
+ Scenario: Paths can be localized ES
25
+ Given a built app at "alt-path-app"
26
+ Then "lang_es/hola.html" should exist at "alt-path-app" and include "Hola World"
27
+ And cleanup built app at "alt-path-app"
@@ -0,0 +1,27 @@
1
+ Feature: Builder Alt Root
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given a built app at "alt-root-app"
6
+ Then "index.html" should exist at "alt-root-app" and include "Howdy"
7
+ And cleanup built app at "alt-root-app"
8
+
9
+ Scenario: EN mounted at root should not be in directory
10
+ Given a built app at "alt-root-app"
11
+ Then "en/index.html" should not exist at "alt-root-app"
12
+ And cleanup built app at "alt-root-app"
13
+
14
+ Scenario: Paths can be localized EN
15
+ Given a built app at "alt-root-app"
16
+ Then "hello.html" should exist at "alt-root-app" and include "Hello World"
17
+ And cleanup built app at "alt-root-app"
18
+
19
+ Scenario: ES should be under namespace
20
+ Given a built app at "alt-root-app"
21
+ Then "es/index.html" should exist at "alt-root-app" and include "Como Esta?"
22
+ And cleanup built app at "alt-root-app"
23
+
24
+ Scenario: Paths can be localized ES
25
+ Given a built app at "alt-root-app"
26
+ Then "es/hola.html" should exist at "alt-root-app" and include "Hola World"
27
+ And cleanup built app at "alt-root-app"
@@ -0,0 +1,27 @@
1
+ Feature: Builder Default
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given a built app at "test-app"
6
+ Then "index.html" should exist at "test-app" and include "Howdy"
7
+ And cleanup built app at "test-app"
8
+
9
+ Scenario: EN mounted at root should not be in directory
10
+ Given a built app at "test-app"
11
+ Then "en/index.html" should not exist at "test-app"
12
+ And cleanup built app at "test-app"
13
+
14
+ Scenario: Paths can be localized EN
15
+ Given a built app at "test-app"
16
+ Then "hello.html" should exist at "test-app" and include "Hello World"
17
+ And cleanup built app at "test-app"
18
+
19
+ Scenario: ES should be under namespace
20
+ Given a built app at "test-app"
21
+ Then "es/index.html" should exist at "test-app" and include "Como Esta?"
22
+ And cleanup built app at "test-app"
23
+
24
+ Scenario: Paths can be localized ES
25
+ Given a built app at "test-app"
26
+ Then "es/hola.html" should exist at "test-app" and include "Hola World"
27
+ And cleanup built app at "test-app"
@@ -0,0 +1,32 @@
1
+ Feature: Builder No Mount
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given a built app at "no-mount-app"
6
+ Then "en/index.html" should exist at "no-mount-app" and include "Howdy"
7
+ And cleanup built app at "no-mount-app"
8
+
9
+ Scenario: EN mounted at root should not be in directory
10
+ Given a built app at "no-mount-app"
11
+ Then "index.html" should not exist at "no-mount-app"
12
+ And cleanup built app at "no-mount-app"
13
+
14
+ Scenario: Paths can be localized EN
15
+ Given a built app at "no-mount-app"
16
+ Then "en/hello.html" should exist at "no-mount-app" and include "Hello World"
17
+ And cleanup built app at "no-mount-app"
18
+
19
+ Scenario: EN mounted at root should not be in directory
20
+ Given a built app at "no-mount-app"
21
+ Then "hello.html" should not exist at "no-mount-app"
22
+ And cleanup built app at "no-mount-app"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given a built app at "test-app"
26
+ Then "es/index.html" should exist at "test-app" and include "Como Esta?"
27
+ And cleanup built app at "test-app"
28
+
29
+ Scenario: Paths can be localized ES
30
+ Given a built app at "test-app"
31
+ Then "es/hola.html" should exist at "test-app" and include "Hola World"
32
+ And cleanup built app at "test-app"
@@ -0,0 +1,27 @@
1
+ Feature: Builder Subset
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given a built app at "subset-app"
6
+ Then "index.html" should exist at "subset-app" and include "Howdy"
7
+ And cleanup built app at "subset-app"
8
+
9
+ Scenario: EN mounted at root should not be in directory
10
+ Given a built app at "subset-app"
11
+ Then "en/index.html" should not exist at "subset-app"
12
+ And cleanup built app at "subset-app"
13
+
14
+ Scenario: Paths can be localized EN
15
+ Given a built app at "subset-app"
16
+ Then "hello.html" should exist at "subset-app" and include "Hello World"
17
+ And cleanup built app at "subset-app"
18
+
19
+ Scenario: ES should be under namespace
20
+ Given a built app at "subset-app"
21
+ Then "es/index.html" should not exist at "subset-app"
22
+ And cleanup built app at "subset-app"
23
+
24
+ Scenario: Paths can be localized ES
25
+ Given a built app at "subset-app"
26
+ Then "es/hola.html" should not exist at "subset-app"
27
+ And cleanup built app at "subset-app"
@@ -0,0 +1,37 @@
1
+ Feature: Preview Alt Path
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given the Server is running at "alt-path-app"
6
+ When I go to "/"
7
+ Then I should see "Howdy"
8
+
9
+ Scenario: EN should be at root 2
10
+ Given the Server is running at "alt-path-app"
11
+ When I go to "/index.html"
12
+ Then I should see "Howdy"
13
+
14
+ Scenario: EN mounted at root should not be in directory
15
+ Given the Server is running at "alt-path-app"
16
+ When I go to "/lang_en/index.html"
17
+ Then I should see "File Not Found"
18
+
19
+ Scenario: Paths can be localized EN
20
+ Given the Server is running at "alt-path-app"
21
+ When I go to "/hello.html"
22
+ Then I should see "Hello World"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given the Server is running at "alt-path-app"
26
+ When I go to "/lang_es/"
27
+ Then I should see "Como Esta?"
28
+
29
+ Scenario: ES should be under namespace 2
30
+ Given the Server is running at "alt-path-app"
31
+ When I go to "/lang_es/index.html"
32
+ Then I should see "Como Esta?"
33
+
34
+ Scenario: Paths can be localized ES
35
+ Given the Server is running at "alt-path-app"
36
+ When I go to "/lang_es/hola.html"
37
+ Then I should see "Hola World"
@@ -0,0 +1,37 @@
1
+ Feature: Preview Alt Root
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given the Server is running at "alt-root-app"
6
+ When I go to "/"
7
+ Then I should see "Howdy"
8
+
9
+ Scenario: EN should be at root 2
10
+ Given the Server is running at "alt-root-app"
11
+ When I go to "/index.html"
12
+ Then I should see "Howdy"
13
+
14
+ Scenario: EN mounted at root should not be in directory
15
+ Given the Server is running at "alt-root-app"
16
+ When I go to "/en/index.html"
17
+ Then I should see "File Not Found"
18
+
19
+ Scenario: Paths can be localized EN
20
+ Given the Server is running at "alt-root-app"
21
+ When I go to "/hello.html"
22
+ Then I should see "Hello World"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given the Server is running at "alt-root-app"
26
+ When I go to "/es/"
27
+ Then I should see "Como Esta?"
28
+
29
+ Scenario: ES should be under namespace 2
30
+ Given the Server is running at "alt-root-app"
31
+ When I go to "/es/index.html"
32
+ Then I should see "Como Esta?"
33
+
34
+ Scenario: Paths can be localized ES
35
+ Given the Server is running at "alt-root-app"
36
+ When I go to "/es/hola.html"
37
+ Then I should see "Hola World"
@@ -0,0 +1,37 @@
1
+ Feature: Preview Default
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given the Server is running at "test-app"
6
+ When I go to "/"
7
+ Then I should see "Howdy"
8
+
9
+ Scenario: EN should be at root 2
10
+ Given the Server is running at "test-app"
11
+ When I go to "/index.html"
12
+ Then I should see "Howdy"
13
+
14
+ Scenario: EN mounted at root should not be in directory
15
+ Given the Server is running at "test-app"
16
+ When I go to "/en/index.html"
17
+ Then I should see "File Not Found"
18
+
19
+ Scenario: Paths can be localized EN
20
+ Given the Server is running at "test-app"
21
+ When I go to "/hello.html"
22
+ Then I should see "Hello World"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given the Server is running at "test-app"
26
+ When I go to "/es/"
27
+ Then I should see "Como Esta?"
28
+
29
+ Scenario: ES should be under namespace 2
30
+ Given the Server is running at "test-app"
31
+ When I go to "/es/index.html"
32
+ Then I should see "Como Esta?"
33
+
34
+ Scenario: Paths can be localized ES
35
+ Given the Server is running at "test-app"
36
+ When I go to "/es/hola.html"
37
+ Then I should see "Hola World"
@@ -0,0 +1,37 @@
1
+ Feature: Preview No Mount
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given the Server is running at "no-mount-app"
6
+ When I go to "/en/"
7
+ Then I should see "Howdy"
8
+
9
+ Scenario: EN should be at root 2
10
+ Given the Server is running at "no-mount-app"
11
+ When I go to "/en/index.html"
12
+ Then I should see "Howdy"
13
+
14
+ Scenario: EN mounted at root should not be in directory
15
+ Given the Server is running at "no-mount-app"
16
+ When I go to "/index.html"
17
+ Then I should see "File Not Found"
18
+
19
+ Scenario: Paths can be localized EN
20
+ Given the Server is running at "no-mount-app"
21
+ When I go to "/en/hello.html"
22
+ Then I should see "Hello World"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given the Server is running at "no-mount-app"
26
+ When I go to "/es/"
27
+ Then I should see "Como Esta?"
28
+
29
+ Scenario: ES should be under namespace 2
30
+ Given the Server is running at "no-mount-app"
31
+ When I go to "/es/index.html"
32
+ Then I should see "Como Esta?"
33
+
34
+ Scenario: Paths can be localized ES
35
+ Given the Server is running at "no-mount-app"
36
+ When I go to "/es/hola.html"
37
+ Then I should see "Hola World"
@@ -0,0 +1,37 @@
1
+ Feature: Preview Subset
2
+ In order to preview localized html
3
+
4
+ Scenario: EN should be at root
5
+ Given the Server is running at "subset-app"
6
+ When I go to "/"
7
+ Then I should see "Howdy"
8
+
9
+ Scenario: EN should be at root 2
10
+ Given the Server is running at "subset-app"
11
+ When I go to "/index.html"
12
+ Then I should see "Howdy"
13
+
14
+ Scenario: EN mounted at root should not be in directory
15
+ Given the Server is running at "subset-app"
16
+ When I go to "/en/index.html"
17
+ Then I should see "File Not Found"
18
+
19
+ Scenario: Paths can be localized EN
20
+ Given the Server is running at "subset-app"
21
+ When I go to "/hello.html"
22
+ Then I should see "Hello World"
23
+
24
+ Scenario: ES should be under namespace
25
+ Given the Server is running at "subset-app"
26
+ When I go to "/es/"
27
+ Then I should see "File Not Found"
28
+
29
+ Scenario: ES should be under namespace 2
30
+ Given the Server is running at "subset-app"
31
+ When I go to "/es/index.html"
32
+ Then I should see "File Not Found"
33
+
34
+ Scenario: Paths can be localized ES
35
+ Given the Server is running at "subset-app"
36
+ When I go to "/es/hola.html"
37
+ Then I should see "File Not Found"
@@ -0,0 +1,40 @@
1
+ require 'fileutils'
2
+
3
+ Given /^app "([^"]*)" is using config "([^"]*)"$/ do |path, config_name|
4
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
5
+ target = File.join(root, "fixtures", path)
6
+ config_path = File.join(target, "config-#{config_name}.rb")
7
+ config_dest = File.join(target, "config.rb")
8
+ FileUtils.cp(config_path, config_dest)
9
+ end
10
+
11
+ Given /^a built app at "([^"]*)"$/ do |path|
12
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
13
+ target = File.join(root, "fixtures", path)
14
+ `cd #{target} && bundle exec middleman build`
15
+ end
16
+
17
+ Then /^cleanup built app at "([^"]*)"$/ do |path|
18
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
19
+ target = File.join(root, "fixtures", path, "build")
20
+ FileUtils.rm_rf(target)
21
+ end
22
+
23
+ Then /^"([^"]*)" should exist at "([^"]*)"$/ do |target_file, path|
24
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
25
+ target = File.join(root, "fixtures", path, "build", target_file)
26
+ File.exists?(target).should be_true
27
+ end
28
+
29
+ Then /^"([^"]*)" should exist at "([^"]*)" and include "([^"]*)"$/ do |target_file, path, expected|
30
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
31
+ target = File.join(root, "fixtures", path, "build", target_file)
32
+ File.exists?(target).should be_true
33
+ File.read(target).should include(expected)
34
+ end
35
+
36
+ Then /^"([^"]*)" should not exist at "([^"]*)"$/ do |target_file, path|
37
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
38
+ target = File.join(root, "fixtures", path, "build", target_file)
39
+ File.exists?(target).should be_false
40
+ end
@@ -0,0 +1,53 @@
1
+ Given /^a clean server$/ do
2
+ @server = Middleman.server
3
+ @server.set :show_exceptions, false
4
+ end
5
+
6
+ Given /^"([^\"]*)" feature is "([^\"]*)"$/ do |feature, state|
7
+ @server = Middleman.server
8
+ @server.set :show_exceptions, false
9
+
10
+ if state == "enabled"
11
+ @server.activate(feature.to_sym)
12
+ end
13
+
14
+ @server.set :environment, @current_env || :development
15
+ end
16
+
17
+ Given /^"([^\"]*)" is set to "([^\"]*)"$/ do |variable, value|
18
+ @server ||= Middleman.server
19
+ @server.set :show_exceptions, false
20
+ @server.set variable.to_sym, value
21
+ end
22
+
23
+ Given /^current environment is "([^\"]*)"$/ do |env|
24
+ @current_env = env.to_sym
25
+ end
26
+
27
+ Given /^the Server is running at "([^\"]*)"$/ do |app_path|
28
+ @server ||= Middleman.server
29
+ @server.set :show_exceptions, false
30
+ root = File.dirname(File.dirname(File.dirname(__FILE__)))
31
+ @server.set :root, File.join(root, "fixtures", app_path)
32
+ @browser = Rack::Test::Session.new(Rack::MockSession.new(@server.new))
33
+ end
34
+
35
+ When /^I go to "([^\"]*)"$/ do |url|
36
+ @browser.get(url)
37
+ end
38
+
39
+ Then /^I should see "([^\"]*)"$/ do |expected|
40
+ @browser.last_response.body.should include(expected)
41
+ end
42
+
43
+ Then /^I should see '([^\']*)'$/ do |expected|
44
+ @browser.last_response.body.should include(expected)
45
+ end
46
+
47
+ Then /^I should not see "([^\"]*)"$/ do |expected|
48
+ @browser.last_response.body.should_not include(expected)
49
+ end
50
+
51
+ Then /^I should see "([^\"]*)" lines$/ do |lines|
52
+ @browser.last_response.body.chomp.split($/).length.should == lines.to_i
53
+ end