stic 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +661 -0
- data/README.md +64 -0
- data/bin/stic +8 -0
- data/doc/file.README.html +125 -0
- data/lib/stic.rb +44 -0
- data/lib/stic/blob.rb +106 -0
- data/lib/stic/cli.rb +61 -0
- data/lib/stic/cli/command.rb +78 -0
- data/lib/stic/config.rb +26 -0
- data/lib/stic/errors.rb +27 -0
- data/lib/stic/file.rb +31 -0
- data/lib/stic/generator.rb +92 -0
- data/lib/stic/generators/page.rb +28 -0
- data/lib/stic/generators/static.rb +45 -0
- data/lib/stic/layout.rb +57 -0
- data/lib/stic/layoutable.rb +28 -0
- data/lib/stic/metadata.rb +35 -0
- data/lib/stic/metadata/block_comment_yaml.rb +34 -0
- data/lib/stic/metadata/comment_yaml.rb +43 -0
- data/lib/stic/metadata/html_yaml.rb +27 -0
- data/lib/stic/metadata/parser.rb +21 -0
- data/lib/stic/metadata/yaml.rb +52 -0
- data/lib/stic/page.rb +34 -0
- data/lib/stic/readable.rb +103 -0
- data/lib/stic/renderable.rb +40 -0
- data/lib/stic/renderer.rb +31 -0
- data/lib/stic/site.rb +174 -0
- data/lib/stic/site_base.rb +38 -0
- data/lib/stic/utils.rb +20 -0
- data/lib/stic/version.rb +13 -0
- data/spec/fixtures/tmp/d20140110-23550-1kyaeb6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140110-23550-1w8hpqt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140110-23664-1uw0y4u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140110-23664-endjsg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-10655-vpioyr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-10655-zrxr1o/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-29171-1ku21ij/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-29171-yhpuds/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-32285-2ige9n/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-32285-ibazly/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-32504-11yva37/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-32504-fx1s4i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-3954-1nr53ss/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-3954-gv6jl4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4044-16lwnsm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4044-1eazx0q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4239-h5al5v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4239-j6yxnx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4373-1xvpe0y/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4373-1xxeoy1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4468-16bj623/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4468-qm7h3l/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4636-1sjabw8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-4636-up7anp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-5186-1iihkdu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-5186-1wf6jbt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-5800-18b7lps/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140111-5800-ebzwxw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140112-32318-1472be3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140112-32318-181gn34/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140119-5346-1yt41ar/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140119-5346-1z0cqw6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140119-5408-njzjyv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140119-5408-p6kdd5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10009-1038whb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10009-10yvxyv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10794-17cduzr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10794-6wkotj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10889-1fx4qkh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-10889-1ky8jvy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-11416-1yf95z7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-11416-4eksm7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-11509-1mbuy8v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-11509-rjaj67/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-13566-11p3uzb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-13566-t9qw1c/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-13661-1hcxi0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-13661-1mann7u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-16873-100liri/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-16873-f06hwa/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-18628-11m064z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-18628-1ocywdl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-18981-1q9aznw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-18981-1sgc0b5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19077-vo0g4z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19077-zvo6x2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19337-145akuv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19337-1upwiwi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19615-1dcezqo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19615-1f830vj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19881-ft4sa5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19881-len34z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19978-14xgqvo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-19978-46mrha/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-2232-1wgyisq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-2232-r7144k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-2602-16jasco/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-2602-1iz2x17/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-26476-15lj85g/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-26476-fei8e4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-26518-cnu14f/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-26518-ejelr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-3064-v44tf7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-3064-z0ru9c/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-3252-1pls05u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-3252-au3hgy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-4389-1jy7cid/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140216-4389-1pg9lja/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140405-11431-1kndkj3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140405-11431-iyqfbc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140405-28343-1hifjtu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140405-28343-qh0lab/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17342-27wh8z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17342-s44xv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17581-1m5g7p/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17581-q0l3c2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17847-1wn00n2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-17847-2tuk02/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-19288-1ew8sww/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-19288-mli42k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-19568-1clew2k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-19568-unr1w6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20028-h5024p/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20028-kgfyf0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20190-1ng8zj7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20190-ppf6z7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20642-mjl8y3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20642-yy2dwp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20712-dtmal9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-20712-hehsou/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-21545-1i4mgbb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-21545-xdho2t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-22365-80de4o/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-22365-pqhw71/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-22818-5nylr9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-22818-i6ed6w/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-23108-1omwvhd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-23108-jyqcsz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-9833-ngg9su/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140406-9833-ocmr2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-10459-1hn7uim/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-10459-kj03wy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-18934-jolrcl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-18934-qfmiwe/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-20406-blv65d/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-20406-wsnye/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-21792-k8vhpc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-21792-kpl75v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-22590-16oxjr4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-22590-xh3orf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-23080-1fbvcuz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-23080-ka9fbp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-26418-1lxsznr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-26418-1myk0mz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-27757-1qztyfu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-27757-giwyy4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-2781-199tuql/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-2781-8iaf5f/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-3750-1cf7e7v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140416-3750-36p2u9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140417-1538-1gik3xs/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140417-1538-gldu0d/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-14783-kwiilg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-14783-xmrp4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-14888-1bsatku/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-14888-7o5a3w/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-15660-16dz6eb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-15660-994wr5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-16301-1ftyfe8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-16301-jkoph3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-16714-1cjlbc4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-16714-1py707t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-17306-3svg56/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-17306-z1sbfz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-17895-2hbaxd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-17895-toubtm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-18491-10hbjta/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-18491-26mr8t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-19431-1b28or3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-19431-1jjl94m/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-19672-1gsxmzi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-19672-1w8baky/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-20197-1njbksl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-20197-xbyc64/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-22414-10z5y02/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-22414-mvsryb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-23323-133up7d/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-23323-kjk6kc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-24512-13dq3qd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-24512-xq871/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-25398-1rk0n38/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-25398-mmygqs/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-25620-827h2p/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-25620-eo5hly/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-26571-17yj6pu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-26571-kdk9db/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-27372-1bboxzr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-27372-1fyctuo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-28646-12e6wmc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-28646-yi98vl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-29059-1jzk1m0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140419-29059-1wbcuye/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-12901-rfax50/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-12901-wkc41c/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-16092-dx5ohe/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-16092-k0rdj0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17354-1uzh3cx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17354-a7h3z1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17571-11vf5zy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17571-mva36w/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17982-1cqgr9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-17982-p6f4os/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-18702-1cjze4r/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-18702-wosras/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-18775-kvt4yd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-18775-ltxkyn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-19110-1qbir2v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-19110-wxmnas/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-19300-13my6cz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-19300-1kyxkd1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20198-1g3arb5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20198-pplp9q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20605-1ob04z7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20605-ysybs4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20710-1avs9de/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-20710-3zr93j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-21125-19uh678/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-21125-5xxj2j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-22619-1ddxua3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-22619-m68moo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23365-15zax0i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23365-1salevl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23557-c0ax6s/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23557-lktrkr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23790-mrjyll/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-23790-urztsa/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-24601-198q4tx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-24601-1sfyhe3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-25007-14h4bp6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-25007-463ok6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-26024-6tha2s/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-26024-j0s4qk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-27235-1dzmaed/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-27235-1en6s0s/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-27468-dcwghz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-27468-vohkbn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-28307-168a5pc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-28307-694jz1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-30943-1aqr6vm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-30943-1m4uuei/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-6205-1rqax3h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-6205-oawc2q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-6920-1s3qmoe/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-6920-m69ghp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-7725-161no3b/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-7725-lrlgau/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-8745-bg7064/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140420-8745-js2sjp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-10771-1if5wwo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-10771-1j9qv2h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-11976-12lb772/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-11976-1mchb9m/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-12574-1irin8n/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-12574-fqt1g9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-1418-fxzuhh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-1418-nalhr9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-1712-14ckof6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-1712-qmunxn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-18290-1xhj34x/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-18290-t3gck7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-18715-1k1xpdf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-18715-a14s6e/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-20593-194cjpv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-20593-cniazz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-2123-1mwlcu3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-2123-doahmc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-22491-1jt3eg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-22491-1yot94z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-22906-qppmug/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-22906-qumjfs/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25099-1d60016/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25099-bfvo10/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25597-bv1rzw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25597-ifc1zt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25932-5n0ecu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-25932-fpcyti/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-26529-64gq7u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-26529-q9rmpe/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-26958-1ezcowc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-26958-1y0ewa7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-27243-1wdfkpj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-27243-d9dcfi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-27673-1y0zd4h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-27673-52snmn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-28084-9dd587/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-28084-t05tqz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-29878-6cd4oz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-29878-ydhsb4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-30792-1bd4a61/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-30792-1e2s3fm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-31209-138ehsm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-31209-5ezih8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-32114-1194x89/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-32114-11jrrha/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-4034-3rnhtx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-4034-jvbe4b/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-5294-1e4spkp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-5294-1kmi81i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-6095-1g01ef/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-6095-2hqjvz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-6533-5c9oia/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-6533-wrbzdu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-7523-15vjw6r/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-7523-r20bpa/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-7745-158z534/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-7745-ibrh03/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-8292-1apyywv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-8292-1juuqt6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-9015-1izaiwf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-9015-605dfk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-9788-11sbh02/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-9788-sd2rh3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-982-10vevme/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140421-982-6ohdkl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-19179-1a9c3bc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-19179-ej0v61/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-20271-1cdtjbm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-20271-zq4a7g/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-22461-11ecodd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-22461-x392at/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-22656-h3cfrj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-22656-i0e1rs/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-23516-5y0sjx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-23516-5y7djj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-32315-167bc8d/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-32315-1uszvsy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-32552-q084eo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-32552-rhh7of/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-360-gsddwz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140424-360-uq5z27/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10046-br6h3b/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10046-ziimll/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10381-1eh1yaj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10381-1o9lwfq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10709-1hcqh7k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10709-asipm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10917-17n9on4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-10917-1m22mve/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-11062-16130fo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-11062-bgz6qw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1147-1xxelw3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1147-s6r7w8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-12407-8zp0qc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-12407-rfv86t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-12931-fe3f00/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-12931-muztqy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-13574-e883hw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-13574-xbhj5q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-13990-1edsch2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-13990-1risnpk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-14590-16s3phc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-14590-9agt0e/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-15021-16xw48a/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-15021-qnqqzi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1665-1paampf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1665-1vht5tm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-16927-1nkqw1h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-16927-tvevo8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17330-ed97vt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17330-osu8kc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17517-14v1ew/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17517-xldh36/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17907-16g44lk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-17907-m9d8j6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18271-12qdv9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18271-1rrdda9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1865-1ny6vb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1865-85cmn4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18761-1y6zu8o/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18761-htyo3y/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18900-1x32ijc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-18900-hmpg03/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-19343-hurh7c/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-19343-sh29o5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1989-k3uqfp/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-1989-rbnn1w/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-19981-1a22raq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-19981-5lkjrb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-20076-1o7op1o/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-20076-mk6cn6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-20320-7a2dj8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-20320-rt012j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-21872-1mtt431/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-21872-1tvidqe/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-22504-71qvop/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-22504-i1r2s3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23068-193qgxc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23068-1vegcgf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23091-1e0kre8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23091-1gav2n5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23306-1ap3njr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23306-1ar0xmh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23411-18bbxhj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23411-ovshun/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23495-11tnfrx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-23495-13f0tcm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-24180-10u5ymt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-24180-1s9juvy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-24506-stgci6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-24506-xmkxc8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-2553-mkgyph/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-2553-rkwaw8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-2776-11k5nfu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-2776-4p4d3p/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-29589-lclgjx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-29589-nua1jm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-30024-h0uiwr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-30024-sv28ch/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3074-1y3l42j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3074-dc798g/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-30947-1aocf1l/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-30947-j3fntl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31324-79zqq5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31324-j6a1vi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31448-14jvamh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31448-dp7nhr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31984-5qwewl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-31984-wmi7sj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-32151-17ktwqk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-32151-44xtne/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3218-h4dlma/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3218-vb5hzg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-32657-13dco5i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-32657-14xn5is/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3764-1pf3smn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-3764-1um2gw4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-4257-1cm4ldf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-4257-tc0pr8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-478-1x1qpl1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-478-fj2efq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5054-lbdxai/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5054-xo1lnq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5363-1hno1we/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5363-ebw4j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5545-13usafg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-5545-27h4em/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-6332-1oskwyz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-6332-x5lqqy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-7332-id1sj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-7332-n0fxsy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8086-1x22rj1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8086-d91hu4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8148-1c5zf1y/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8148-9ei2tx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8571-1ulwrn6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8571-9jpnn2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8901-1bkiex2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-8901-1c01uzg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9097-1bp4oup/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9097-1fhzcvu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9146-16mftd9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9146-vfpu8y/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9288-1dgaxz2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9288-6cly4a/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9618-14w19o7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140427-9618-1v040gn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-1715-1i1gylu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-1715-1vfcq84/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-17789-24psgg/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-17789-obyran/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-1854-2whwi9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-1854-61scf5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-2009-1rytchn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140721-2009-d7801o/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-10034-5eixi4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-10034-k56z5r/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-11956-18fy4h5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-11956-1xn8fyd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-13443-1s42hwy/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-13443-cyfg2i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-13566-4gcpr4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-13566-gepopm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-1450-13mlsa6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-1450-p8nda4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-14901-1g9yc2a/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-14901-26shkc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-15994-17q9s4z/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-15994-2zl28m/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-1684-1smoed7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-1684-x5g3xc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-16964-kzbjqu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-16964-pib05i/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17002-c61td9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17002-hzo1lu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17640-1atfg3e/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17640-tdt6pc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17783-17lrr3t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-17783-2w5edx/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-18993-1l9cysh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-18993-vmtl89/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19506-1vmg6jl/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19506-1xlh9ag/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19782-jcseew/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19782-oomr42/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19909-1um2az0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-19909-j1a10t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-20271-aoebav/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-20271-bnz844/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2053-1yruyms/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2053-3jk87h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2212-dm59e9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2212-du7ic2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-22476-1p99z6q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-22476-o56ie5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-22692-i76vp0/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-22692-uss2jq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2287-1ikrmc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2287-wzsn4a/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2470-13hythu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2470-u7x3du/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-24861-j3w00j/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-24861-sweyos/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2530-10qn2lw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2530-1bgwzsv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-25790-7e8sfi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-25790-wddyc5/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-26075-16x1mzq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-26075-lv90l8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-28166-11za2od/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-28166-1g36c8a/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2905-pnm5uq/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-2905-t6t2d2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-30503-58wb7q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-30503-jb624u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-30934-1gvne1f/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-30934-1s03nu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31149-1hz9a6h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31149-jf7ugm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31151-l8md23/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31151-mv84hu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31201-11s2gb8/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31201-1v30ybw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31320-17yj1zt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-31320-8911dv/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3266-clqy7v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3266-hivm33/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3419-crni3q/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3419-r3fmsm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3720-1u5es3e/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3720-xlhqm7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3800-1i8zi6k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3800-6a94vn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3995-1us9boh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-3995-5bqdfo/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4092-1jibb0h/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4092-puypnm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4223-q53ye3/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4223-r3yyf4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4351-1fubfac/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4351-9hr549/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4411-13zoq6l/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4411-1ppzzqw/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4442-6rva41/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4442-wmqe8v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4556-1tldwwb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4556-lu2ugj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4640-1a48m57/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4640-hz0ov9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4641-1oo0oif/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4641-1wvni2t/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4742-iktt74/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4742-u92ejt/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4824-1tjdeq1/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4824-vsf2zu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4897-1fw357l/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-4897-1ghjf6v/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5000-6h3rmj/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5000-aurdqr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5127-1guusdh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5127-tbe46/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5198-1wiha7m/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5198-xbyps9/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5294-1c9ff5k/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5294-ff78ui/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5463-1f4eqt4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5463-1lyqgpk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5558-15eb6u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5558-ruzn9p/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5570-16g7tsd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5570-16wlh0x/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-571-10mx3uc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-571-1telmsf/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5828-1nta8ez/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-5828-1v1is65/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6164-15o4poi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6164-1g3lvlh/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6165-19tz2zi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6165-yqs4pm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6298-1hp4drd/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6298-4fdeo2/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6558-1gd7yzu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6558-85x5o6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-656-1m2glyc/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-656-1y21odi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6604-1cazop7/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-6604-zrofp4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7230-15ql4dz/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7230-7a8a93/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7495-1mpqymn/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7495-q8mh6n/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7846-14bx0vk/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7846-puiatr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7907-1i1z8y4/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-7907-f839cr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8060-19c2yhr/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8060-png6ih/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8675-vkd6/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8675-yjgpsb/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8723-3vwlqm/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8723-7dansu/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8813-1r5y94n/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8813-zmw27u/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8870-9eknpi/path/to/file.html +1 -0
- data/spec/fixtures/tmp/d20140905-8870-kxk62n/path/to/file.html +1 -0
- data/spec/functional/generators/static_spec.rb +21 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/stic/blob_spec.rb +105 -0
- data/spec/stic/config_spec.rb +18 -0
- data/spec/stic/file_spec.rb +94 -0
- data/spec/stic/generator_spec.rb +23 -0
- data/spec/stic/layout_spec.rb +45 -0
- data/spec/stic/metadata/block_comment_yaml_spec.rb +86 -0
- data/spec/stic/metadata/comment_yaml_spec.rb +42 -0
- data/spec/stic/metadata/html_yaml_spec.rb +61 -0
- data/spec/stic/metadata/yaml_spec.rb +42 -0
- data/spec/stic/site_spec.rb +148 -0
- data/spec/support/file_fixtures.rb +44 -0
- data/stic.gemspec +28 -0
- metadata +1381 -0
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1 @@
|
|
1
|
+
Just some content!
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Static Generator' do
|
4
|
+
let(:site) { ::Stic::Site.new '/', {} }
|
5
|
+
let(:config) { Hash.new }
|
6
|
+
let(:generator) { ::Stic::Generators::Static.new site, config }
|
7
|
+
before do
|
8
|
+
Path.mock do |root, backend|
|
9
|
+
root.mkfile '/files/stylesheets/main.css'
|
10
|
+
root.mkfile '/files/stylesheets/typo.css'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should add static file blobs' do
|
15
|
+
generator.run
|
16
|
+
|
17
|
+
expect(site.blobs.size).to eq 2
|
18
|
+
expect(site.blobs.map(&:source)).to match_array \
|
19
|
+
%w(/files/stylesheets/main.css /files/stylesheets/typo.css)
|
20
|
+
end
|
21
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
|
3
|
+
if ENV['CI'] || (defined?(:RUBY_ENGINE) && RUBY_ENGINE != 'rbx')
|
4
|
+
require 'coveralls'
|
5
|
+
require 'codeclimate-test-reporter'
|
6
|
+
|
7
|
+
Coveralls.wear! do
|
8
|
+
add_filter 'spec'
|
9
|
+
end
|
10
|
+
|
11
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
12
|
+
Coveralls::SimpleCov::Formatter,
|
13
|
+
SimpleCov::Formatter::HTMLFormatter,
|
14
|
+
CodeClimate::TestReporter::Formatter
|
15
|
+
]
|
16
|
+
end
|
17
|
+
|
18
|
+
# Load stic
|
19
|
+
require 'stic'
|
20
|
+
|
21
|
+
# Load spec support files
|
22
|
+
Dir[File.expand_path('spec/support/**/*.rb')].each {|f| require f }
|
23
|
+
|
24
|
+
RSpec.configure do |config|
|
25
|
+
# Random order
|
26
|
+
config.order = 'random'
|
27
|
+
|
28
|
+
config.around(:each) do |example|
|
29
|
+
Path::Backend.mock(&example)
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::Blob do
|
4
|
+
let(:data) { nil }
|
5
|
+
let(:site) { double('site') }
|
6
|
+
let(:blob) do
|
7
|
+
blob = Stic::Blob.new site: site, data: data
|
8
|
+
allow(blob).to receive(:url_template){ url_template }
|
9
|
+
blob
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#relative_url' do
|
13
|
+
let(:url_template) { Path.new tpl }
|
14
|
+
subject { blob.relative_url }
|
15
|
+
|
16
|
+
context 'without placeholders' do
|
17
|
+
let(:tpl) { '/assets/styles/blog.css' }
|
18
|
+
it { should eq '/assets/styles/blog.css' }
|
19
|
+
end
|
20
|
+
|
21
|
+
context 'with one parameter' do
|
22
|
+
let(:data) { {slug: 'a-blog-title'} }
|
23
|
+
let(:tpl) { '/blog/:slug/' }
|
24
|
+
it { should eq '/blog/a-blog-title/' }
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'with multiple parameters' do
|
28
|
+
let(:data) { {slug: 'a-blog-title', year: 2013, month: 12} }
|
29
|
+
let(:tpl) { '/blog/:year/:month/:slug/' }
|
30
|
+
it { should eq '/blog/2013/12/a-blog-title/' }
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '#relative_target_path' do
|
35
|
+
let(:url_template) { Path.new url }
|
36
|
+
subject { blob.relative_target_path }
|
37
|
+
|
38
|
+
context 'with full file URL' do
|
39
|
+
let(:url) { '/assets/styles/blog.css' }
|
40
|
+
it { should eq '/assets/styles/blog.css' }
|
41
|
+
end
|
42
|
+
|
43
|
+
context 'with directory URL' do
|
44
|
+
let(:url) { '/blog/2013/12/a-blog-post/' }
|
45
|
+
it { should eq '/blog/2013/12/a-blog-post/index.html' }
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe '#mime_type' do
|
50
|
+
subject { blob.mime_type }
|
51
|
+
let(:path) { 'file' }
|
52
|
+
let(:url_template) { Path.new path }
|
53
|
+
|
54
|
+
it 'should return MIME::Type' do
|
55
|
+
should be_a MIME::Type
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'with .css file' do
|
59
|
+
let(:path) { 'files/css/style.css' }
|
60
|
+
it { expect(subject.to_s).to eq 'text/css' }
|
61
|
+
end
|
62
|
+
|
63
|
+
context 'with .html file' do
|
64
|
+
let(:path) { 'files/index.html' }
|
65
|
+
it { expect(subject.to_s).to eq 'text/html' }
|
66
|
+
end
|
67
|
+
|
68
|
+
context 'with .js file' do
|
69
|
+
let(:path) { 'files/js/jquery.js' }
|
70
|
+
it { expect(subject.to_s).to eq 'application/javascript' }
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe '#target_path' do
|
75
|
+
let(:url_template) { Path.new path }
|
76
|
+
before { allow(site).to receive(:target).and_return(Path.new('/path/to/stic-site')) }
|
77
|
+
subject { blob.target_path }
|
78
|
+
|
79
|
+
context 'with path' do
|
80
|
+
let(:path) { 'files/css/style.css' }
|
81
|
+
it { should eq '/path/to/stic-site/files/css/style.css' }
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe '#write' do
|
86
|
+
around { |example| within_temporary_fixture_base(&example) }
|
87
|
+
let(:target_path) { Path.new fixture_path '/path/to/file.html' }
|
88
|
+
let(:content) { 'Just some content!' }
|
89
|
+
|
90
|
+
before { allow(blob).to receive(:target_path).and_return(target_path) }
|
91
|
+
before { allow(blob).to receive(:render).and_return(content) }
|
92
|
+
|
93
|
+
it 'should create directories and file' do
|
94
|
+
blob.write
|
95
|
+
expect(File.directory?(fixture_path '/path/to')).to be true
|
96
|
+
expect(File.file?(fixture_path '/path/to/file.html')).to be true
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'should write content to file' do
|
100
|
+
blob.write
|
101
|
+
expect(File.read(fixture_path '/path/to/file.html'))
|
102
|
+
.to eq 'Just some content!'
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::Config do
|
4
|
+
let(:config) { Stic::Config.new }
|
5
|
+
subject { config }
|
6
|
+
|
7
|
+
describe '#load' do
|
8
|
+
let(:action) { ->{ config.load(path) } }
|
9
|
+
subject { action }
|
10
|
+
|
11
|
+
context 'with non-existent file' do
|
12
|
+
let(:path) { Path '/does/not/exist.yaml' }
|
13
|
+
|
14
|
+
it { should_not change(config, :options) }
|
15
|
+
it { should change(config, :files).to([path]) }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::File do
|
4
|
+
let(:source) { '/full/path/to/file.txt' }
|
5
|
+
let(:path) { 'to/file.txt' }
|
6
|
+
let(:site) { double('site') }
|
7
|
+
let(:name) { nil }
|
8
|
+
let(:args) { {site: site, source: source, path: path, name: name} }
|
9
|
+
let(:file) { ::Stic::File.new args }
|
10
|
+
subject { file }
|
11
|
+
|
12
|
+
describe '#source' do
|
13
|
+
subject { file.source }
|
14
|
+
|
15
|
+
it { should be_a ::Path }
|
16
|
+
it { expect(subject.to_s).to eq '/full/path/to/file.txt' }
|
17
|
+
|
18
|
+
context 'when initialized with relative path' do
|
19
|
+
let(:source) { 'to/file.txt' }
|
20
|
+
|
21
|
+
it 'should be converted to absolute path' do
|
22
|
+
expect(subject.to_s).to eq '/root/to/file.txt'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#path' do
|
28
|
+
subject { file.path }
|
29
|
+
|
30
|
+
it { should be_a ::Path }
|
31
|
+
it { expect(subject.to_s).to eq 'to/file.txt' }
|
32
|
+
|
33
|
+
context 'when initialized with leading slash' do
|
34
|
+
let(:path) { '/to/file.txt' }
|
35
|
+
|
36
|
+
it 'should be converted to relative path' do
|
37
|
+
expect(subject.to_s).to eq 'to/file.txt'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#name' do
|
43
|
+
subject { file.name }
|
44
|
+
|
45
|
+
it { should eq 'file.txt' }
|
46
|
+
|
47
|
+
context 'when initialized with name' do
|
48
|
+
let(:name) { 'index.html' }
|
49
|
+
it { should eq 'index.html' }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe '#source_path' do
|
54
|
+
subject { file.source_path }
|
55
|
+
|
56
|
+
it { should be_a ::Path }
|
57
|
+
it { expect(subject.to_s).to eq '/full/path/to/file.txt' }
|
58
|
+
end
|
59
|
+
|
60
|
+
describe '#url_template' do
|
61
|
+
let(:path) { 'path/to/source.txt' }
|
62
|
+
let(:name) { 'styles.css' }
|
63
|
+
subject { file.url_template }
|
64
|
+
|
65
|
+
it { should eq '/path/to/styles.css' }
|
66
|
+
end
|
67
|
+
|
68
|
+
describe '#render' do
|
69
|
+
before { expect(file).to receive(:content).and_return('CONTENT!') }
|
70
|
+
subject { file.render }
|
71
|
+
|
72
|
+
it { should eq 'CONTENT!' }
|
73
|
+
end
|
74
|
+
|
75
|
+
describe '#content' do
|
76
|
+
before { expect(file).to receive(:read).once.and_return('CONTENT!') }
|
77
|
+
subject { file.content }
|
78
|
+
|
79
|
+
it { should eq 'CONTENT!' }
|
80
|
+
it 'should cache red content' do
|
81
|
+
expect(subject).to eq 'CONTENT!'
|
82
|
+
expect(subject).to eq 'CONTENT!'
|
83
|
+
expect(subject).to eq 'CONTENT!'
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe '#read' do
|
88
|
+
before { allow(site).to receive(:source).and_return(Path('source')) }
|
89
|
+
before { Path('/full/path/to/file.txt').mkfile.write 'CONTENT!' }
|
90
|
+
subject { file.read }
|
91
|
+
|
92
|
+
it { should eq 'CONTENT!' }
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::Generator do
|
4
|
+
let(:site) { double('site') }
|
5
|
+
let(:name) { 'MyCustomGenerator' }
|
6
|
+
let(:config) { {} }
|
7
|
+
let(:generator) { described_class.new site, config }
|
8
|
+
before { allow(described_class).to receive(:name).and_return(name) }
|
9
|
+
|
10
|
+
describe '#name' do
|
11
|
+
subject { generator.name }
|
12
|
+
|
13
|
+
it { should eq 'my_custom' }
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#config' do
|
17
|
+
let(:config) { {'my_custom' => {'key' => 'value'}} }
|
18
|
+
subject { generator.config }
|
19
|
+
|
20
|
+
it { should eq 'key' => 'value' }
|
21
|
+
it { should be_a HashWithIndifferentAccess }
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::Layout do
|
4
|
+
let(:site) { double 'site' }
|
5
|
+
let(:path) { Path '/layouts/default.html.erb' }
|
6
|
+
let(:layout) { Stic::Layout.new site: site, source: path }
|
7
|
+
let(:content) { '<default><%= yield %></default>' }
|
8
|
+
before do
|
9
|
+
Path.mock {|root, backend| path.mkfile.write content }
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#render' do
|
13
|
+
let(:blob) { double 'blob' }
|
14
|
+
before do
|
15
|
+
allow(blob).to receive(:locals).and_return({})
|
16
|
+
end
|
17
|
+
|
18
|
+
subject { layout.render(blob){ 'CONTENT' } }
|
19
|
+
|
20
|
+
it { should eq '<default>CONTENT</default>' }
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'class' do
|
24
|
+
describe '#load' do
|
25
|
+
let(:source) { Path '/' }
|
26
|
+
let(:config) { {} }
|
27
|
+
|
28
|
+
before do
|
29
|
+
Path.mock do |root, backend|
|
30
|
+
backend.cwd = '/'
|
31
|
+
|
32
|
+
dir = root.mkdir 'layouts'
|
33
|
+
dir.touch 'default.erb'
|
34
|
+
dir.touch 'post.slim'
|
35
|
+
dir.touch 'author.haml'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
subject { Stic::Layout.load(site, source, config) }
|
40
|
+
|
41
|
+
it { expect(subject.size).to eq 3 }
|
42
|
+
it { should include 'default', 'post', 'author' }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stic::Metadata::BlockCommentYaml do
|
4
|
+
let(:parser) { described_class.new }
|
5
|
+
let(:file) { double 'file' }
|
6
|
+
subject { parser.parse(file, blob) }
|
7
|
+
|
8
|
+
context 'with frontmatter (1)' do
|
9
|
+
let(:blob) do <<EOF.strip_heredoc
|
10
|
+
/*
|
11
|
+
yaml: true
|
12
|
+
val: 1
|
13
|
+
*/
|
14
|
+
CONTENT
|
15
|
+
EOF
|
16
|
+
end
|
17
|
+
|
18
|
+
it { should eq [{'yaml' => true, 'val' => 1}, "CONTENT\n"] }
|
19
|
+
end
|
20
|
+
|
21
|
+
context 'with frontmatter (2)' do
|
22
|
+
let(:blob) do <<EOF.strip_heredoc
|
23
|
+
/* yaml: true
|
24
|
+
val: 1
|
25
|
+
*/CONTENT
|
26
|
+
EOF
|
27
|
+
end
|
28
|
+
|
29
|
+
it { should eq [{'yaml' => true, 'val' => 1}, "CONTENT\n"] }
|
30
|
+
end
|
31
|
+
|
32
|
+
context 'with frontmatter (3)' do
|
33
|
+
let(:blob) do <<EOF.strip_heredoc
|
34
|
+
/*
|
35
|
+
* yaml: true
|
36
|
+
* val: 1
|
37
|
+
*/
|
38
|
+
CONTENT
|
39
|
+
EOF
|
40
|
+
end
|
41
|
+
|
42
|
+
it { should eq [{'yaml' => true, 'val' => 1}, "CONTENT\n"] }
|
43
|
+
end
|
44
|
+
|
45
|
+
context 'with frontmatter (4)' do
|
46
|
+
let(:blob) do <<EOF.strip_heredoc
|
47
|
+
/* yaml: true */
|
48
|
+
CONTENT
|
49
|
+
EOF
|
50
|
+
end
|
51
|
+
|
52
|
+
it { should eq [{'yaml' => true}, "CONTENT\n"] }
|
53
|
+
end
|
54
|
+
|
55
|
+
context 'with frontmatter (5)' do
|
56
|
+
let(:blob) do <<EOF.strip_heredoc
|
57
|
+
/*yaml: true*/CONTENT
|
58
|
+
EOF
|
59
|
+
end
|
60
|
+
|
61
|
+
it { should eq nil }
|
62
|
+
end
|
63
|
+
|
64
|
+
context 'with frontmatter (5)' do
|
65
|
+
let(:blob) do <<EOF.strip_heredoc
|
66
|
+
/* yaml: '*/' */
|
67
|
+
CONTENT
|
68
|
+
EOF
|
69
|
+
end
|
70
|
+
|
71
|
+
it { should eq [{'yaml' => '*/'}, "CONTENT\n"] }
|
72
|
+
end
|
73
|
+
|
74
|
+
context 'with frontmatter (6)' do
|
75
|
+
let(:blob) do <<EOF.strip_heredoc
|
76
|
+
/**
|
77
|
+
yaml: true
|
78
|
+
val: 1
|
79
|
+
*/
|
80
|
+
CONTENT
|
81
|
+
EOF
|
82
|
+
end
|
83
|
+
|
84
|
+
it { should eq [{'yaml' => true, 'val' => 1}, "CONTENT\n"] }
|
85
|
+
end
|
86
|
+
end
|