classiccms 0.2.4.pre → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +11 -19
- data/classiccms.gemspec +10 -1
- data/lib/classiccms/application.rb +33 -3
- data/lib/classiccms/cli.rb +4 -10
- data/lib/classiccms/controllers/application.rb +4 -3
- data/lib/classiccms/controllers/cms.rb +36 -20
- data/lib/classiccms/controllers/website.rb +13 -5
- data/lib/classiccms/custom.rb +16 -0
- data/lib/classiccms/helpers.rb +20 -8
- data/lib/classiccms/lib/routing.rb +1 -1
- data/lib/classiccms/models/base.rb +14 -0
- data/lib/classiccms/models/image.rb +9 -0
- data/lib/classiccms/models/uploader.rb +17 -0
- data/lib/classiccms/public/css/images.sass +20 -0
- data/lib/classiccms/public/css/style.sass +115 -5
- data/lib/classiccms/public/images/image_delete.png +0 -0
- data/lib/classiccms/public/images/logout.png +0 -0
- data/lib/classiccms/public/images/logout_hover.png +0 -0
- data/lib/classiccms/public/js/images.coffee +46 -0
- data/lib/classiccms/public/js/index.coffee +61 -109
- data/lib/classiccms/public/js/uploadify/jquery.uploadify-3.1.js +975 -0
- data/lib/classiccms/public/js/uploadify/jquery.uploadify-3.1.min.js +16 -0
- data/lib/classiccms/public/js/uploadify/uploadify-cancel.png +0 -0
- data/lib/classiccms/public/js/uploadify/uploadify.css +88 -0
- data/lib/classiccms/public/js/uploadify/uploadify.swf +0 -0
- data/lib/classiccms/resque.yml +3 -0
- data/lib/classiccms/scaffold/Gemfile +2 -0
- data/lib/classiccms/scaffold/Rakefile +9 -0
- data/lib/classiccms/scaffold/app/controllers/form.rb +9 -0
- data/lib/classiccms/scaffold/app/models/Article.rb +4 -0
- data/lib/classiccms/scaffold/app/queue/mail.rb +11 -0
- data/lib/classiccms/scaffold/app/views/application/index.haml +16 -0
- data/lib/classiccms/scaffold/config/application.rb +2 -1
- data/lib/classiccms/scaffold/config/config.yml +1 -0
- data/lib/classiccms/scaffold/config.ru +7 -7
- data/lib/classiccms/scaffold/public/favicon.ico +0 -0
- data/lib/classiccms/scaffold/public/javascripts/index.coffee +1 -0
- data/lib/classiccms/scaffold/public/stylesheets/reset.sass +47 -0
- data/lib/classiccms/version.rb +1 -1
- data/lib/classiccms/views/cms/404.haml +16 -0
- data/lib/classiccms/views/cms/browse.haml +3 -0
- data/lib/classiccms/views/cms/ckeditor.haml +23 -0
- data/lib/classiccms/views/cms/form.haml +27 -24
- data/lib/classiccms/views/cms/header.haml +12 -7
- data/lib/classiccms/views/cms/images.haml +5 -0
- data/lib/classiccms/views/cms/login.haml +2 -1
- data/lib/classiccms/views/cms/logout.haml +1 -0
- data/lib/classiccms.rb +2 -2
- data/spec/assets/cat.jpg +0 -0
- data/spec/assets/cat.txt +1 -0
- data/spec/cli_spec.rb +8 -20
- data/spec/controllers/appliction_spec.rb +4 -4
- data/spec/controllers/cms_spec.rb +42 -19
- data/spec/controllers/website_spec.rb +24 -16
- data/spec/helpers_spec.rb +21 -10
- data/spec/methods.rb +4 -3
- data/spec/models/base_spec.rb +14 -0
- data/spec/models/connection_spec.rb +13 -1
- data/spec/models/image_spec.rb +28 -0
- data/spec/models/slug_spec.rb +13 -1
- data/spec/models/user_spec.rb +12 -1
- data/spec/queue_spec.rb +50 -0
- data/spec/spec_helper.rb +2 -1
- data/vendor/bundle/bin/classiccms +3 -3
- data/vendor/bundle/bin/resque +19 -0
- data/vendor/bundle/bin/resque-web +19 -0
- data/vendor/bundle/bin/tt +19 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/README.md +785 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/compatibility/paperclip.rb +95 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/locale/en.yml +9 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/mount.rb +382 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/orm/activerecord.rb +66 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/processing/mime_types.rb +58 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/processing/mini_magick.rb +254 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/processing/rmagick.rb +284 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/sanitized_file.rb +315 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/storage/abstract.rb +30 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/storage/file.rb +56 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/storage/fog.rb +358 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/test/matchers.rb +241 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/cache.rb +169 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/callbacks.rb +35 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/configuration.rb +136 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/default_url.rb +19 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/download.rb +75 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/extension_whitelist.rb +49 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/mountable.rb +39 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/processing.rb +92 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/proxy.rb +77 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/remove.rb +23 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/serialization.rb +30 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/store.rb +111 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/url.rb +32 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader/versions.rb +254 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/uploader.rb +45 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/validations/active_model.rb +63 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave/version.rb +3 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/carrierwave.rb +111 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/generators/templates/uploader.rb +55 -0
- data/vendor/bundle/gems/carrierwave-0.6.2/lib/generators/uploader_generator.rb +7 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/.gitignore +7 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/Gemfile +4 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/LICENSE +20 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/README.md +102 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/Rakefile +12 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/carrierwave-mongoid.gemspec +28 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/lib/carrierwave/mongoid/version.rb +5 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/lib/carrierwave/mongoid.rb +94 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/lib/carrierwave/storage/grid_fs.rb +134 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/new.jpeg +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/new.txt +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/old.jpeg +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/old.txt +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/portrait.jpg +0 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/test.jpeg +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/fixtures/test.jpg +1 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/mongoid_spec.rb +754 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/spec_helper.rb +67 -0
- data/vendor/bundle/gems/carrierwave-mongoid-0.2.1/spec/storage/grid_fs_spec.rb +200 -0
- data/vendor/bundle/gems/coffee-script-source-1.3.3/lib/coffee_script/coffee-script.js +8 -0
- data/vendor/bundle/gems/coffee-script-source-1.3.3/lib/coffee_script/source.rb +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/.yardopts +29 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/Gemfile +31 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/History.md +485 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/LICENSE +20 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/README.md +130 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/Rakefile +49 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/VERSION +1 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/config.ru +14 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/docs.watchr +1 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/dragonfly.gemspec +311 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Analysers.md +68 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Caching.md +23 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Configuration.md +149 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Couch.md +49 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/DataStorage.md +226 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Encoding.md +67 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/ExampleUseCases.md +116 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/GeneralUsage.md +105 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Generators.md +68 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Heroku.md +57 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/ImageMagick.md +136 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Index.md +33 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/MimeTypes.md +40 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Models.md +441 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Mongo.md +42 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Processing.md +77 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Rack.md +52 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Rails2.md +57 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Rails3.md +56 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/ServingRemotely.md +104 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/Sinatra.md +25 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/extra_docs/URLs.md +203 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/images.feature +47 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/no_processing.feature +14 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/rails.feature +8 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/steps/common_steps.rb +8 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/steps/dragonfly_steps.rb +66 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/steps/rails_steps.rb +40 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/support/env.rb +13 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/features/support/setup.rb +41 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/app/models/album.rb +5 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/app/views/albums/new.html.erb +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/app/views/albums/show.html.erb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/config/initializers/dragonfly.rb +4 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature +38 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/step_definitions/helper_steps.rb +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/step_definitions/image_steps.rb +25 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/support/paths.rb +17 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/text_images.feature +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/template.rb +20 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/irbrc.rb +19 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions/attachment.rb +279 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions/attachment_class_methods.rb +144 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions/class_methods.rb +98 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions/instance_methods.rb +28 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions/validations.rb +68 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/active_model_extensions.rb +13 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/analyser.rb +58 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/analysis/file_command_analyser.rb +33 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/analysis/image_magick_analyser.rb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/app.rb +203 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/config/heroku.rb +26 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/config/image_magick.rb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/config/rails.rb +20 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/configurable.rb +206 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/cookie_monster.rb +15 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/core_ext/array.rb +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/core_ext/hash.rb +7 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/core_ext/object.rb +12 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/data_storage/couch_data_store.rb +83 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/data_storage/file_data_store.rb +144 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/data_storage/mongo_data_store.rb +96 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/data_storage/s3data_store.rb +168 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/data_storage.rb +11 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/encoder.rb +13 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/encoding/image_magick_encoder.rb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/function_manager.rb +67 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/generation/image_magick_generator.rb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/generator.rb +9 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/has_filename.rb +24 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/hash_with_css_style_keys.rb +21 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/analyser.rb +53 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/config.rb +44 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/encoder.rb +57 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/generator.rb +145 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/processor.rb +108 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick/utils.rb +46 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/image_magick_utils.rb +4 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/job.rb +427 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/job_builder.rb +39 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/job_definitions.rb +30 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/job_endpoint.rb +19 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/loggable.rb +28 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/middleware.rb +20 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/processing/image_magick_processor.rb +6 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/processor.rb +9 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/rails/images.rb +32 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/railtie.rb +10 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/response.rb +107 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/routed_endpoint.rb +44 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/serializer.rb +32 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/server.rb +120 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/shell.rb +44 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/simple_cache.rb +23 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/temp_object.rb +216 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/url_attributes.rb +30 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly/url_mapper.rb +78 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/lib/dragonfly.rb +59 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/DSC02119.JPG +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/a.jp2 +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/beach.jpg +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/beach.png +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/egg.png +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/round.gif +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/sample.docx +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/taj.jpg +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/samples/white pixel.png +0 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/active_model_extensions/model_spec.rb +1478 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/active_model_extensions/spec_helper.rb +95 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/analyser_spec.rb +123 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/analysis/file_command_analyser_spec.rb +49 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/app_spec.rb +173 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/configurable_spec.rb +479 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/cookie_monster_spec.rb +29 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb +19 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/hash_spec.rb +19 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/data_storage/couch_data_store_spec.rb +84 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/data_storage/file_data_store_spec.rb +308 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/data_storage/mongo_data_store_spec.rb +81 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/data_storage/s3_data_store_spec.rb +277 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/data_storage/shared_data_store_examples.rb +77 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/function_manager_spec.rb +154 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/has_filename_spec.rb +88 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/hash_with_css_style_keys_spec.rb +24 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/image_magick/analyser_spec.rb +78 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/image_magick/encoder_spec.rb +41 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/image_magick/generator_spec.rb +167 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/image_magick/processor_spec.rb +293 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/job_builder_spec.rb +37 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/job_definitions_spec.rb +57 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/job_endpoint_spec.rb +235 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/job_spec.rb +1059 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/loggable_spec.rb +80 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/middleware_spec.rb +47 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/routed_endpoint_spec.rb +52 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/serializer_spec.rb +75 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/server_spec.rb +286 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/shell_spec.rb +34 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/simple_cache_spec.rb +27 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/temp_object_spec.rb +442 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/url_attributes.rb +47 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/url_mapper_spec.rb +138 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/deprecations_spec.rb +51 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/image_magick_app_spec.rb +27 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/model_urls_spec.rb +120 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/remote_on_the_fly_spec.rb +51 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/shell_commands_spec.rb +23 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/functional/to_response_spec.rb +31 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/spec_helper.rb +55 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/support/argument_matchers.rb +19 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/support/image_matchers.rb +58 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/support/simple_matchers.rb +53 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/spec/test_imagemagick.ru +49 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/handlers/configurable_attr_handler.rb +38 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/setup.rb +15 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/fulldoc/html/css/common.css +109 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/layout/html/layout.erb +93 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb +31 -0
- data/vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/setup.rb +17 -0
- data/vendor/bundle/gems/execjs-1.4.0/LICENSE +21 -0
- data/vendor/bundle/gems/execjs-1.4.0/README.md +42 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/disabled_runtime.rb +29 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/encoding.rb +33 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/external_runtime.rb +205 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/johnson_runtime.rb +106 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/json.rb +23 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/module.rb +38 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/mustang_runtime.rb +76 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb +105 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/ruby_rhino_runtime.rb +89 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/runtime.rb +55 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/runtimes.rb +94 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jsc_runner.js +19 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js +22 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/json2.js +481 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/node_runner.js +20 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/spidermonkey_runner.js +19 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs/version.rb +3 -0
- data/vendor/bundle/gems/execjs-1.4.0/lib/execjs.rb +6 -0
- data/vendor/bundle/gems/haml-3.1.6/.yardopts +11 -0
- data/vendor/bundle/gems/haml-3.1.6/CONTRIBUTING +3 -0
- data/vendor/bundle/gems/haml-3.1.6/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/haml-3.1.6/README.md +133 -0
- data/vendor/bundle/gems/haml-3.1.6/REVISION +1 -0
- data/vendor/bundle/gems/haml-3.1.6/Rakefile +419 -0
- data/vendor/bundle/gems/haml-3.1.6/VERSION +1 -0
- data/vendor/bundle/gems/haml-3.1.6/VERSION_NAME +1 -0
- data/vendor/bundle/gems/haml-3.1.6/bin/haml +9 -0
- data/vendor/bundle/gems/haml-3.1.6/bin/html2haml +7 -0
- data/vendor/bundle/gems/haml-3.1.6/extra/update_watch.rb +13 -0
- data/vendor/bundle/gems/haml-3.1.6/init.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/buffer.rb +301 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/compiler.rb +452 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/engine.rb +312 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb +22 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/exec.rb +362 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/filters.rb +385 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/helpers/action_view_extensions.rb +57 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb +260 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/helpers/rails_323_textarea_fix.rb +41 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb +165 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/helpers.rb +608 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/html/erb.rb +141 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/html.rb +412 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/parser.rb +711 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/railtie.rb +19 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/root.rb +7 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/shared.rb +78 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/template/options.rb +16 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/template/patch.rb +58 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/template/plugin.rb +123 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/template.rb +99 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/util.rb +842 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml/version.rb +109 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/haml.rb +47 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/sass/plugin.rb +10 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/sass/rails2_shim.rb +9 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/sass/rails3_shim.rb +16 -0
- data/vendor/bundle/gems/haml-3.1.6/lib/sass.rb +8 -0
- data/vendor/bundle/gems/haml-3.1.6/rails/init.rb +1 -0
- data/vendor/bundle/gems/haml-3.1.6/test/benchmark.rb +91 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.0.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.0.x.lock +38 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.1.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.1.x.lock +38 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.2.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.2.x.lock +38 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.3.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-2.3.x.lock +40 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.0.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.0.x.lock +85 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.1.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.1.x.lock +97 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.2.x +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-3.2.x.lock +95 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-xss-2.3.x +9 -0
- data/vendor/bundle/gems/haml-3.1.6/test/gemfiles/Gemfile.rails-xss-2.3.x.lock +42 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/engine_test.rb +1944 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/erb/_av_partial_1.erb +12 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/erb/_av_partial_2.erb +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/erb/action_view.erb +62 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/erb/standard.erb +55 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/helper_test.rb +467 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/html2haml/erb_tests.rb +440 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/html2haml_test.rb +336 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/markaby/standard.mab +52 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/mocks/article.rb +6 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/content_for_layout.xhtml +12 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/eval_suppressed.xhtml +9 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/filters.xhtml +62 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/helpers.xhtml +70 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/helpful.xhtml +10 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/just_stuff.xhtml +70 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/list.xhtml +12 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/original_engine.xhtml +20 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/partial_layout.xhtml +5 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/partials.xhtml +21 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/render_layout.xhtml +3 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/silent_script.xhtml +74 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/standard.xhtml +162 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/tag_parsing.xhtml +23 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/very_basic.xhtml +5 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/results/whitespace_handling.xhtml +85 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/spec/README.md +97 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/spec/lua_haml_spec.lua +30 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/spec/ruby_haml_test.rb +19 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/spec/tests.json +534 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/spec_test.rb +44 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/template_test.rb +443 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_av_partial_1.haml +9 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_av_partial_1_ugly.haml +9 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_av_partial_2.haml +5 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_av_partial_2_ugly.haml +5 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_layout.erb +3 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_layout_for_partial.haml +3 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_partial.haml +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/_text_area.haml +3 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/action_view.haml +47 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/action_view_ugly.haml +47 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/breakage.haml +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/content_for_layout.haml +8 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/eval_suppressed.haml +11 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/filters.haml +66 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/helpers.haml +55 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/helpful.haml +11 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/just_stuff.haml +85 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/list.haml +12 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/nuke_inner_whitespace.haml +32 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/nuke_outer_whitespace.haml +144 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/original_engine.haml +17 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/partial_layout.haml +10 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/partialize.haml +1 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/partials.haml +12 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/render_layout.haml +2 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/silent_script.haml +40 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/standard.haml +43 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/standard_ugly.haml +43 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/tag_parsing.haml +21 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/very_basic.haml +4 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/templates/whitespace_handling.haml +87 -0
- data/vendor/bundle/gems/haml-3.1.6/test/haml/util_test.rb +300 -0
- data/vendor/bundle/gems/haml-3.1.6/test/linked_rails.rb +42 -0
- data/vendor/bundle/gems/haml-3.1.6/test/test_helper.rb +75 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/CONTRIBUTING +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/README.md +201 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/Rakefile +339 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/TODO +39 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/VERSION +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/VERSION_NAME +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/bin/sass +8 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/bin/sass-convert +7 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/bin/scss +8 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/doc-src/FAQ.md +35 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/doc-src/INDENTED_SYNTAX.md +210 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/doc-src/SASS_CHANGELOG.md +2327 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/doc-src/SASS_REFERENCE.md +1965 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/doc-src/SCSS_FOR_SASS_USERS.md +155 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/ext/extconf.rb +10 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/extra/update_watch.rb +13 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/init.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores/base.rb +86 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores/chain.rb +33 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores/filesystem.rb +60 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores/memory.rb +47 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores/null.rb +25 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/cache_stores.rb +15 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/callbacks.rb +66 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/css.rb +295 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/engine.rb +878 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/environment.rb +166 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/error.rb +201 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/exec.rb +672 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/importers/base.rb +139 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/importers/filesystem.rb +149 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/importers.rb +22 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/less.rb +382 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger/base.rb +32 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger/log_level.rb +49 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger.rb +15 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/compiler.rb +383 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/configuration.rb +123 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/generic.rb +15 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/merb.rb +48 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/rack.rb +60 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/rails.rb +47 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin/staleness_checker.rb +173 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/plugin.rb +132 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/railtie.rb +9 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/repl.rb +58 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/root.rb +7 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/bool.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/color.rb +480 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/css_lexer.rb +29 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/css_parser.rb +31 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/funcall.rb +175 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/functions.rb +1386 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/interpolation.rb +79 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/lexer.rb +339 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/list.rb +83 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/literal.rb +250 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/node.rb +99 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/number.rb +452 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/operation.rb +99 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/parser.rb +474 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/string.rb +51 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/string_interpolation.rb +103 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/unary_operation.rb +64 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script/variable.rb +59 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/script.rb +40 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/css_parser.rb +46 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/parser.rb +960 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/rx.rb +128 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/sass_parser.rb +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/script_lexer.rb +15 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/script_parser.rb +25 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/static_parser.rb +40 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss.rb +17 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector/abstract_sequence.rb +62 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector/comma_sequence.rb +81 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector/sequence.rb +233 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector/simple.rb +113 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector/simple_sequence.rb +134 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/selector.rb +361 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/shared.rb +78 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/charset_node.rb +22 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/comment_node.rb +90 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/debug_node.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/directive_node.rb +23 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/each_node.rb +24 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/extend_node.rb +29 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/for_node.rb +36 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/function_node.rb +27 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/if_node.rb +52 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/import_node.rb +68 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/media_node.rb +32 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/mixin_def_node.rb +27 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/mixin_node.rb +32 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/node.rb +201 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/prop_node.rb +148 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/return_node.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/root_node.rb +28 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/rule_node.rb +136 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/variable_node.rb +30 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/base.rb +75 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/check_nesting.rb +133 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/convert.rb +260 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/cssize.rb +175 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/deep_copy.rb +87 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/perform.rb +332 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/set_options.rb +97 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/visitors/to_css.rb +210 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/warn_node.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/tree/while_node.rb +18 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/util/subset_map.rb +101 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/util.rb +721 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/version.rb +112 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass.rb +73 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/rails/init.rb +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/sass.gemspec +33 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/Gemfile +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/cache_test.rb +89 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/callbacks_test.rb +61 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/conversion_test.rb +1199 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/css2sass_test.rb +373 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/data/hsl-rgb.txt +319 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/engine_test.rb +2567 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/extend_test.rb +1348 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/functions_test.rb +1038 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/importer_test.rb +192 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/less_conversion_test.rb +653 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/logger_test.rb +58 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/mock_importer.rb +49 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_results/more1.css +9 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_results/more_import.css +29 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_templates/_more_partial.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_templates/more1.sass +23 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/more_templates/more_import.sass +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/plugin_test.rb +472 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/alt.css +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/basic.css +9 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/compact.css +5 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/complex.css +86 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/compressed.css +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/expanded.css +19 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/if.css +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/import.css +31 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/import_charset.css +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/import_charset_1_8.css +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/import_charset_ibm866.css +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/line_numbers.css +49 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/mixins.css +95 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/multiline.css +24 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/nested.css +22 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/options.css +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/parent_ref.css +13 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/script.css +16 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/scss_import.css +31 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/scss_importee.css +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/subdir/subdir.css +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/units.css +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/warn.css +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/results/warn_imported.css +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/script_conversion_test.rb +285 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/script_test.rb +514 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/scss/css_test.rb +922 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/scss/rx_test.rb +156 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/scss/scss_test.rb +1273 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/scss/test_helper.rb +37 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/_partial.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/alt.sass +16 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/basic.sass +23 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/bork1.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/bork2.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/bork3.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/bork4.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/bork5.sass +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/compact.sass +17 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/complex.sass +305 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/compressed.sass +15 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/expanded.sass +17 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/if.sass +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/import.sass +12 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/import_charset.sass +7 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/import_charset_1_8.sass +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/import_charset_ibm866.sass +9 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/importee.less +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/importee.sass +19 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/line_numbers.sass +13 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/mixin_bork.sass +5 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/mixins.sass +76 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/multiline.sass +20 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested.sass +25 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_bork1.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_bork2.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_bork3.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_bork4.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_bork5.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_import.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/options.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/parent_ref.sass +25 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/script.sass +101 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/scss_import.scss +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/scss_importee.scss +1 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/subdir/subdir.sass +6 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/units.sass +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/warn.sass +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/templates/warn_imported.sass +4 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/test_helper.rb +8 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/util/subset_map_test.rb +91 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/sass/util_test.rb +266 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/test/test_helper.rb +69 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/Gemfile +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/LICENSE +20 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/README.markdown +83 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/Rakefile +11 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/example.rb +12 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/fssm.gemspec +24 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/backends/fsevents.rb +36 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/backends/inotify.rb +26 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/backends/polling.rb +25 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/backends/rbfsevent.rb +42 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +131 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/monitor.rb +36 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/path.rb +94 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/pathname.rb +36 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/state/directory.rb +75 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/state/file.rb +24 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/support.rb +92 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/tree.rb +176 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm/version.rb +3 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/lib/fssm.rb +37 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-cache.rb +40 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-fssm-pathname.html +1231 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-pathname-rubinius.rb +35 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-pathname.rb +68 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-plain-pathname.html +988 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof.html +2379 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/count_down_latch.rb +151 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/monitor_spec.rb +202 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/path_spec.rb +96 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/root/duck/quack.txt +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/root/file.css +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/root/file.rb +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/root/file.yml +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/root/moo/cow.txt +0 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/spec/spec_helper.rb +14 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/yard/callbacks.rb +29 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/yard/default/fulldoc/html/css/common.sass +26 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/yard/default/layout/html/footer.erb +12 -0
- data/vendor/bundle/gems/haml-3.1.6/vendor/sass/yard/inherited_hash.rb +41 -0
- data/vendor/bundle/gems/json-1.7.3/.gitignore +12 -0
- data/vendor/bundle/gems/json-1.7.3/.travis.yml +16 -0
- data/vendor/bundle/gems/json-1.7.3/CHANGES +250 -0
- data/vendor/bundle/gems/json-1.7.3/COPYING +58 -0
- data/vendor/bundle/gems/json-1.7.3/COPYING-json-jruby +57 -0
- data/vendor/bundle/gems/json-1.7.3/GPL +340 -0
- data/vendor/bundle/gems/json-1.7.3/Gemfile +15 -0
- data/vendor/bundle/gems/json-1.7.3/README-json-jruby.markdown +33 -0
- data/vendor/bundle/gems/json-1.7.3/README.rdoc +358 -0
- data/vendor/bundle/gems/json-1.7.3/Rakefile +401 -0
- data/vendor/bundle/gems/json-1.7.3/TODO +1 -0
- data/vendor/bundle/gems/json-1.7.3/VERSION +1 -0
- data/vendor/bundle/gems/json-1.7.3/data/example.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/data/index.html +38 -0
- data/vendor/bundle/gems/json-1.7.3/data/prototype.js +4184 -0
- data/vendor/bundle/gems/json-1.7.3/diagrams/.keep +0 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/fbuffer/fbuffer.h +164 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/Makefile +214 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/depend +1 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/extconf.rb +14 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/generator.c +1393 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/generator.h +162 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/Makefile +214 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/depend +1 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/parser.c +2204 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/parser.h +77 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/gems/json-1.7.3/ext/json/ext/parser/parser.rl +927 -0
- data/vendor/bundle/gems/json-1.7.3/install.rb +23 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/Generator.java +444 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/GeneratorState.java +526 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/Parser.java +2644 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/Parser.rl +968 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/ParserService.java +35 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/StringDecoder.java +167 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/bundle/gems/json-1.7.3/java/src/json/ext/Utils.java +89 -0
- data/vendor/bundle/gems/json-1.7.3/json-java.gemspec +22 -0
- data/vendor/bundle/gems/json-1.7.3/json.gemspec +37 -0
- data/vendor/bundle/gems/json-1.7.3/json_pure.gemspec +39 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/complex.rb +22 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/core.rb +11 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/date.rb +34 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/range.rb +29 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/rational.rb +22 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/add/time.rb +38 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/common.rb +480 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/ext/.keep +0 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/ext/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/ext/parser.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/ext.rb +21 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/generic_object.rb +39 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/pure/generator.rb +472 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/pure/parser.rb +359 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/pure.rb +21 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json/version.rb +8 -0
- data/vendor/bundle/gems/json-1.7.3/lib/json.rb +62 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail1.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail10.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail11.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail12.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail13.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail14.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail18.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail19.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail2.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail20.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail21.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail22.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail23.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail24.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail25.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail27.json +2 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail28.json +2 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail3.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail4.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail5.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail6.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail7.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail8.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/fail9.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass1.json +56 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass15.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass16.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass17.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass2.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass26.json +1 -0
- data/vendor/bundle/gems/json-1.7.3/tests/fixtures/pass3.json +6 -0
- data/vendor/bundle/gems/json-1.7.3/tests/setup_variant.rb +11 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json.rb +539 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_addition.rb +188 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_encoding.rb +65 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_fixtures.rb +35 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_generate.rb +251 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_generic_object.rb +35 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_string_matching.rb +40 -0
- data/vendor/bundle/gems/json-1.7.3/tests/test_json_unicode.rb +72 -0
- data/vendor/bundle/gems/json-1.7.3/tools/fuzz.rb +139 -0
- data/vendor/bundle/gems/json-1.7.3/tools/server.rb +62 -0
- data/vendor/bundle/gems/mail-2.4.4/CHANGELOG.rdoc +603 -0
- data/vendor/bundle/gems/mail-2.4.4/CONTRIBUTING.md +45 -0
- data/vendor/bundle/gems/mail-2.4.4/Dependencies.txt +3 -0
- data/vendor/bundle/gems/mail-2.4.4/Gemfile +26 -0
- data/vendor/bundle/gems/mail-2.4.4/README.md +663 -0
- data/vendor/bundle/gems/mail-2.4.4/Rakefile +40 -0
- data/vendor/bundle/gems/mail-2.4.4/TODO.rdoc +9 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/VERSION +4 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/attachments_list.rb +104 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/body.rb +291 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/configuration.rb +75 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/nil.rb +17 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/object.rb +13 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/shell_escape.rb +56 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/smtp.rb +25 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/string/access.rb +145 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/string/multibyte.rb +78 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/core_extensions/string.rb +33 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/address.rb +306 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/address_list.rb +74 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_disposition_element.rb +30 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb +25 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_transfer_encoding_element.rb +24 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_type_element.rb +35 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/date_time_element.rb +26 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/envelope_from_element.rb +34 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/message_ids_element.rb +29 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/mime_version_element.rb +26 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/phrase_list.rb +21 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/received_element.rb +30 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/elements.rb +14 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/7bit.rb +31 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/8bit.rb +31 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/base64.rb +33 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/binary.rb +31 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/quoted_printable.rb +38 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings/transfer_encoding.rb +58 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/encodings.rb +274 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/envelope.rb +35 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/field.rb +234 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/field_list.rb +33 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/bcc_field.rb +56 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/cc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/comments_field.rb +41 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/address_container.rb +16 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/common_address.rb +125 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/common_date.rb +42 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/common_field.rb +51 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/common_message_id.rb +44 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/common/parameter_hash.rb +58 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_description_field.rb +19 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_disposition_field.rb +69 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_id_field.rb +63 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_location_field.rb +42 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_transfer_encoding_field.rb +50 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/content_type_field.rb +198 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/date_field.rb +57 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/from_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/in_reply_to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/keywords_field.rb +44 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/message_id_field.rb +83 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/mime_version_field.rb +53 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/optional_field.rb +13 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/received_field.rb +75 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/references_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/reply_to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_bcc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_cc_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_date_field.rb +35 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_from_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_message_id_field.rb +34 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_sender_field.rb +62 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/resent_to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/return_path_field.rb +65 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/sender_field.rb +67 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/structured_field.rb +51 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/subject_field.rb +16 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/to_field.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields/unstructured_field.rb +191 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/fields.rb +35 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/header.rb +265 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/indifferent_hash.rb +146 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/mail.rb +255 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/matchers/has_sent_mail.rb +124 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/message.rb +2058 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/multibyte/chars.rb +474 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/multibyte/exceptions.rb +8 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/multibyte/unicode.rb +392 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/multibyte/utils.rb +60 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/multibyte.rb +42 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/exim.rb +53 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/file_delivery.rb +40 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/sendmail.rb +62 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb +153 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp_connection.rb +74 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/delivery_methods/test_mailer.rb +40 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/retriever_methods/base.rb +63 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/retriever_methods/imap.rb +160 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/retriever_methods/pop3.rb +140 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network/retriever_methods/test_retriever.rb +47 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/network.rb +14 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/address_lists.rb +64 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/address_lists.treetop +19 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_disposition.rb +535 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_disposition.treetop +46 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_location.rb +139 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_location.treetop +20 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_transfer_encoding.rb +162 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_transfer_encoding.treetop +20 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_type.rb +967 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/content_type.treetop +68 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/date_time.rb +114 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/date_time.treetop +11 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/envelope_from.rb +194 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/envelope_from.treetop +32 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/message_ids.rb +45 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/message_ids.treetop +15 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/mime_version.rb +144 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/mime_version.treetop +19 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/phrase_lists.rb +45 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/phrase_lists.treetop +15 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/received.rb +71 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/received.treetop +11 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2045.rb +464 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2045.treetop +36 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2822.rb +5341 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2822.treetop +410 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2822_obsolete.rb +3768 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parsers/rfc2822_obsolete.treetop +241 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/part.rb +116 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/parts_list.rb +55 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/patterns.rb +35 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/utilities.rb +215 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/version.rb +24 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/version_specific/ruby_1_8.rb +98 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail/version_specific/ruby_1_9.rb +113 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/mail.rb +91 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/tasks/corpus.rake +125 -0
- data/vendor/bundle/gems/mail-2.4.4/lib/tasks/treetop.rake +10 -0
- data/vendor/bundle/gems/mime-types-1.18/.gemtest +0 -0
- data/vendor/bundle/gems/mime-types-1.18/.gitignore +8 -0
- data/vendor/bundle/gems/mime-types-1.18/.hoerc +10 -0
- data/vendor/bundle/gems/mime-types-1.18/History.rdoc +132 -0
- data/vendor/bundle/gems/mime-types-1.18/Licence.rdoc +12 -0
- data/vendor/bundle/gems/mime-types-1.18/Manifest.txt +43 -0
- data/vendor/bundle/gems/mime-types-1.18/README.rdoc +19 -0
- data/vendor/bundle/gems/mime-types-1.18/Rakefile +198 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/application +943 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/application.mac +2 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/application.nonstandard +117 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/application.obsolete +40 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/audio +132 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/audio.nonstandard +10 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/audio.obsolete +1 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/image +43 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/image.nonstandard +17 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/image.obsolete +5 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/message +19 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/message.obsolete +1 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/model +15 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/multipart +14 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/multipart.nonstandard +1 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/multipart.obsolete +7 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/other.nonstandard +8 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/text +54 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/text.nonstandard +6 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/text.obsolete +7 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/text.vms +1 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/video +69 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/video.nonstandard +11 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types/video.obsolete +3 -0
- data/vendor/bundle/gems/mime-types-1.18/lib/mime/types.rb +853 -0
- data/vendor/bundle/gems/mime-types-1.18/mime-types.gemspec +57 -0
- data/vendor/bundle/gems/mime-types-1.18/test/test_mime_type.rb +318 -0
- data/vendor/bundle/gems/mime-types-1.18/test/test_mime_types.rb +99 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/application.txt +951 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/audio.txt +132 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/image.txt +43 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/message.txt +20 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/model.txt +15 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/multipart.txt +14 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/text.txt +57 -0
- data/vendor/bundle/gems/mime-types-1.18/type-lists/video.txt +67 -0
- data/vendor/bundle/gems/polyglot-0.3.3/History.txt +72 -0
- data/vendor/bundle/gems/polyglot-0.3.3/License.txt +20 -0
- data/vendor/bundle/gems/polyglot-0.3.3/README.txt +87 -0
- data/vendor/bundle/gems/polyglot-0.3.3/Rakefile +42 -0
- data/vendor/bundle/gems/polyglot-0.3.3/lib/polyglot/version.rb +9 -0
- data/vendor/bundle/gems/polyglot-0.3.3/lib/polyglot.rb +74 -0
- data/vendor/bundle/gems/qu-0.1.4/.gitignore +4 -0
- data/vendor/bundle/gems/qu-0.1.4/ChangeLog +53 -0
- data/vendor/bundle/gems/qu-0.1.4/Gemfile +20 -0
- data/vendor/bundle/gems/qu-0.1.4/Guardfile +12 -0
- data/vendor/bundle/gems/qu-0.1.4/README.md +163 -0
- data/vendor/bundle/gems/qu-0.1.4/Rakefile +50 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/backend/base.rb +20 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/backend/immediate.rb +18 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/backend/spec.rb +288 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/failure.rb +4 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/logger.rb +20 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/payload.rb +53 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/railtie.rb +13 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb +14 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/version.rb +3 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu/worker.rb +77 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu-immediate.rb +4 -0
- data/vendor/bundle/gems/qu-0.1.4/lib/qu.rb +45 -0
- data/vendor/bundle/gems/qu-0.1.4/qu.gemspec +22 -0
- data/vendor/bundle/gems/qu-0.1.4/spec/qu/backend/immediate_spec.rb +15 -0
- data/vendor/bundle/gems/qu-0.1.4/spec/qu/payload_spec.rb +86 -0
- data/vendor/bundle/gems/qu-0.1.4/spec/qu/worker_spec.rb +99 -0
- data/vendor/bundle/gems/qu-0.1.4/spec/qu_spec.rb +37 -0
- data/vendor/bundle/gems/qu-0.1.4/spec/spec_helper.rb +14 -0
- data/vendor/bundle/gems/qu-mongo-0.1.4/lib/qu/backend/mongo.rb +156 -0
- data/vendor/bundle/gems/qu-mongo-0.1.4/lib/qu-mongo.rb +4 -0
- data/vendor/bundle/gems/redis-2.2.2/.gitignore +8 -0
- data/vendor/bundle/gems/redis-2.2.2/CHANGELOG.md +49 -0
- data/vendor/bundle/gems/redis-2.2.2/LICENSE +20 -0
- data/vendor/bundle/gems/redis-2.2.2/README.md +208 -0
- data/vendor/bundle/gems/redis-2.2.2/Rakefile +268 -0
- data/vendor/bundle/gems/redis-2.2.2/TODO.md +4 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/logging.rb +62 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/pipeline.rb +51 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/speed.rb +21 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/suite.rb +24 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/thread_safety.rb +38 -0
- data/vendor/bundle/gems/redis-2.2.2/benchmarking/worker.rb +71 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/basic.rb +15 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/dist_redis.rb +43 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb +17 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/list.rb +26 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/pubsub.rb +31 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/sets.rb +36 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/unicorn/config.ru +3 -0
- data/vendor/bundle/gems/redis-2.2.2/examples/unicorn/unicorn.rb +20 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/client.rb +265 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/compat.rb +21 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection/command_helper.rb +45 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection/hiredis.rb +49 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection/registry.rb +12 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection/ruby.rb +135 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection/synchrony.rb +129 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/connection.rb +9 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/distributed.rb +694 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/hash_ring.rb +131 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/pipeline.rb +34 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/subscribe.rb +94 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis/version.rb +3 -0
- data/vendor/bundle/gems/redis-2.2.2/lib/redis.rb +1148 -0
- data/vendor/bundle/gems/redis-2.2.2/redis.gemspec +24 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_hashes_test.rb +20 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_lists_test.rb +60 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_sets_test.rb +78 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_sorted_sets_test.rb +109 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_strings_test.rb +80 -0
- data/vendor/bundle/gems/redis-2.2.2/test/commands_on_value_types_test.rb +88 -0
- data/vendor/bundle/gems/redis-2.2.2/test/connection_handling_test.rb +88 -0
- data/vendor/bundle/gems/redis-2.2.2/test/db/.gitignore +1 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_blocking_commands_test.rb +53 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_hashes_test.rb +12 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb +24 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_sets_test.rb +85 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_strings_test.rb +50 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_value_types_test.rb +73 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_commands_requiring_clustering_test.rb +148 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_connection_handling_test.rb +25 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_internals_test.rb +27 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_key_tags_test.rb +53 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_persistence_control_commands_test.rb +24 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_publish_subscribe_test.rb +101 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_remote_server_control_commands_test.rb +43 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb +21 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_test.rb +59 -0
- data/vendor/bundle/gems/redis-2.2.2/test/distributed_transactions_test.rb +34 -0
- data/vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb +16 -0
- data/vendor/bundle/gems/redis-2.2.2/test/error_replies_test.rb +53 -0
- data/vendor/bundle/gems/redis-2.2.2/test/helper.rb +145 -0
- data/vendor/bundle/gems/redis-2.2.2/test/internals_test.rb +160 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/hashes.rb +126 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/internals.rb +37 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/lists.rb +93 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/sets.rb +66 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/sorted_sets.rb +167 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/strings.rb +137 -0
- data/vendor/bundle/gems/redis-2.2.2/test/lint/value_types.rb +84 -0
- data/vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb +22 -0
- data/vendor/bundle/gems/redis-2.2.2/test/pipelining_commands_test.rb +123 -0
- data/vendor/bundle/gems/redis-2.2.2/test/publish_subscribe_test.rb +158 -0
- data/vendor/bundle/gems/redis-2.2.2/test/redis_mock.rb +80 -0
- data/vendor/bundle/gems/redis-2.2.2/test/remote_server_control_commands_test.rb +82 -0
- data/vendor/bundle/gems/redis-2.2.2/test/sorting_test.rb +44 -0
- data/vendor/bundle/gems/redis-2.2.2/test/synchrony_driver.rb +57 -0
- data/vendor/bundle/gems/redis-2.2.2/test/test.conf +8 -0
- data/vendor/bundle/gems/redis-2.2.2/test/thread_safety_test.rb +30 -0
- data/vendor/bundle/gems/redis-2.2.2/test/transactions_test.rb +100 -0
- data/vendor/bundle/gems/redis-2.2.2/test/unknown_commands_test.rb +14 -0
- data/vendor/bundle/gems/redis-2.2.2/test/url_param_test.rb +60 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/LICENSE +20 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/README.md +37 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/Rakefile +7 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/lib/redis/namespace.rb +248 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/lib/redis-namespace.rb +1 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/spec/redis_spec.rb +180 -0
- data/vendor/bundle/gems/redis-namespace-1.0.3/spec/spec_helper.rb +18 -0
- data/vendor/bundle/gems/resque-1.20.0/HISTORY.md +354 -0
- data/vendor/bundle/gems/resque-1.20.0/LICENSE +20 -0
- data/vendor/bundle/gems/resque-1.20.0/README.markdown +908 -0
- data/vendor/bundle/gems/resque-1.20.0/Rakefile +78 -0
- data/vendor/bundle/gems/resque-1.20.0/bin/resque +81 -0
- data/vendor/bundle/gems/resque-1.20.0/bin/resque-web +27 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/errors.rb +10 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/airbrake.rb +17 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/base.rb +64 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb +33 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/multiple.rb +54 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/redis.rb +51 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure/thoughtbot.rb +33 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/failure.rb +96 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/helpers.rb +83 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/job.rb +223 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/plugin.rb +66 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/favicon.ico +0 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/idle.png +0 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/jquery-1.3.2.min.js +19 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/jquery.relatize_date.js +95 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/poll.png +0 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/ranger.js +73 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/reset.css +44 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/style.css +86 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/public/working.png +0 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb +19 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/error.erb +1 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/failed.erb +67 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/key_sets.erb +19 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/key_string.erb +11 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/layout.erb +44 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/next_more.erb +10 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/overview.erb +4 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/queues.erb +49 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/stats.erb +62 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/workers.erb +109 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/working.erb +72 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/server.rb +248 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/stat.rb +53 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/tasks.rb +61 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/version.rb +3 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque/worker.rb +544 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/resque.rb +380 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/tasks/redis.rake +161 -0
- data/vendor/bundle/gems/resque-1.20.0/lib/tasks/resque.rake +2 -0
- data/vendor/bundle/gems/resque-1.20.0/test/airbrake_test.rb +27 -0
- data/vendor/bundle/gems/resque-1.20.0/test/hoptoad_test.rb +26 -0
- data/vendor/bundle/gems/resque-1.20.0/test/job_hooks_test.rb +423 -0
- data/vendor/bundle/gems/resque-1.20.0/test/job_plugins_test.rb +230 -0
- data/vendor/bundle/gems/resque-1.20.0/test/plugin_test.rb +116 -0
- data/vendor/bundle/gems/resque-1.20.0/test/redis-test-cluster.conf +115 -0
- data/vendor/bundle/gems/resque-1.20.0/test/redis-test.conf +115 -0
- data/vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb +59 -0
- data/vendor/bundle/gems/resque-1.20.0/test/resque_test.rb +278 -0
- data/vendor/bundle/gems/resque-1.20.0/test/test_helper.rb +158 -0
- data/vendor/bundle/gems/resque-1.20.0/test/worker_test.rb +405 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/HISTORY.md +202 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/LICENSE +20 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/README.markdown +814 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/Rakefile +60 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque +57 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web +23 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/errors.rb +10 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/failure/base.rb +61 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/failure/hoptoad.rb +132 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/failure/mongo.rb +41 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/failure/multiple.rb +50 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/failure.rb +66 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/helpers.rb +71 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/job.rb +209 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/plugin.rb +46 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/idle.png +0 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/jquery-1.3.2.min.js +19 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/jquery.relatize_date.js +95 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/poll.png +0 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/ranger.js +67 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/reset.css +48 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/style.css +82 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/public/working.png +0 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/test_helper.rb +19 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/error.erb +1 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/failed.erb +53 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/key_sets.erb +20 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/key_string.erb +11 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/layout.erb +38 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/next_more.erb +10 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/overview.erb +4 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/queues.erb +49 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/stats.erb +62 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/workers.erb +78 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/working.erb +69 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server.rb +201 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/stat.rb +55 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/tasks.rb +39 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/version.rb +3 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/worker.rb +481 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque.rb +316 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/tasks/redis.rake +159 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/tasks/resque.rake +2 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/dump.rdb +0 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/job_hooks_test.rb +302 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/job_plugins_test.rb +230 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/plugin_test.rb +116 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/redis-test.conf +115 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-mongo_benchmark.rb +62 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb +34 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque_test.rb +225 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/test_helper.rb +102 -0
- data/vendor/bundle/gems/resque-mongo-1.9.8.1/test/worker_test.rb +302 -0
- data/vendor/bundle/gems/slim-1.2.1/.gemtest +0 -0
- data/vendor/bundle/gems/slim-1.2.1/.gitignore +17 -0
- data/vendor/bundle/gems/slim-1.2.1/.travis.yml +27 -0
- data/vendor/bundle/gems/slim-1.2.1/.yardopts +2 -0
- data/vendor/bundle/gems/slim-1.2.1/CHANGES +219 -0
- data/vendor/bundle/gems/slim-1.2.1/Gemfile +25 -0
- data/vendor/bundle/gems/slim-1.2.1/LICENSE +21 -0
- data/vendor/bundle/gems/slim-1.2.1/README.md +411 -0
- data/vendor/bundle/gems/slim-1.2.1/Rakefile +57 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/context.rb +11 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/profile-parser.rb +10 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb +12 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/run-benchmarks.rb +112 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/view.erb +23 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/view.haml +18 -0
- data/vendor/bundle/gems/slim-1.2.1/benchmarks/view.slim +17 -0
- data/vendor/bundle/gems/slim-1.2.1/bin/slimrb +7 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/command.rb +100 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/compiler.rb +199 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/embedded_engine.rb +203 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/end_inserter.rb +61 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/engine.rb +79 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/filter.rb +41 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/grammar.rb +23 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/interpolation.rb +55 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/parser.rb +462 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/sections.rb +97 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/template.rb +19 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/version.rb +5 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim/wrapper.rb +57 -0
- data/vendor/bundle/gems/slim-1.2.1/lib/slim.rb +14 -0
- data/vendor/bundle/gems/slim-1.2.1/slim.gemspec +31 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/Rakefile +7 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/controllers/application_controller.rb +3 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/controllers/parents_controller.rb +84 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/controllers/slim_controller.rb +32 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/helpers/application_helper.rb +2 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/models/child.rb +3 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/models/parent.rb +4 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/layouts/application.html.slim +10 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/parents/_form.html.slim +7 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/parents/edit.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/parents/new.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/parents/show.html.slim +5 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/_partial.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/content_for.html.slim +7 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/erb.html.erb +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/integers.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/nil.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/no_layout.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/normal.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/partial.html.slim +2 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/app/views/slim/variables.html.slim +1 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/application.rb +44 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/boot.rb +10 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/database.yml +4 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/environment.rb +5 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/environments/development.rb +26 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/environments/production.rb +49 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/environments/test.rb +35 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/initializers/inflections.rb +10 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/initializers/mime_types.rb +5 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/initializers/secret_token.rb +7 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/initializers/session_store.rb +8 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/locales/en.yml +5 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config/routes.rb +60 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/config.ru +4 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/db/migrate/20101220223037_parents_and_children.rb +17 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/script/rails +6 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/test/helper.rb +10 -0
- data/vendor/bundle/gems/slim-1.2.1/test/rails/test/test_slim.rb +71 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/helper.rb +206 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_chain_manipulation.rb +42 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_code_blocks.rb +68 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_code_escaping.rb +53 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_code_evaluation.rb +289 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_code_output.rb +168 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_code_structure.rb +95 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_embedded_engines.rb +145 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_encoding.rb +9 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_html_escaping.rb +40 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_html_structure.rb +579 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_parser_errors.rb +143 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_pretty.rb +75 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_ruby_errors.rb +210 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_sections.rb +90 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_slim_template.rb +118 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_text_interpolation.rb +79 -0
- data/vendor/bundle/gems/slim-1.2.1/test/slim/test_wrapper.rb +39 -0
- data/vendor/bundle/gems/treetop-1.4.10/LICENSE +19 -0
- data/vendor/bundle/gems/treetop-1.4.10/README.md +188 -0
- data/vendor/bundle/gems/treetop-1.4.10/Rakefile +60 -0
- data/vendor/bundle/gems/treetop-1.4.10/bin/tt +112 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/contributing_and_planned_features.markdown +102 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/grammar_composition.markdown +65 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/index.markdown +88 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/pitfalls_and_advanced_techniques.markdown +51 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/semantic_interpretation.markdown +218 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/contribute.html +124 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/images/bottom_background.png +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/images/middle_background.png +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/images/paren_language_output.png +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/images/pivotal.gif +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/images/top_background.png +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/index.html +102 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/pitfalls_and_advanced_techniques.html +68 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/robots.txt +5 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/screen.css +134 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/semantic_interpretation.html +245 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/syntactic_recognition.html +278 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site/using_in_ruby.html +123 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/site.rb +112 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/sitegen.rb +65 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/syntactic_recognition.markdown +215 -0
- data/vendor/bundle/gems/treetop-1.4.10/doc/using_in_ruby.markdown +105 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/arithmetic.rb +551 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/arithmetic.treetop +98 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/arithmetic_node_classes.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/arithmetic_test.rb +58 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/lambda_calculus +0 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/lambda_calculus.rb +718 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/lambda_calculus.treetop +132 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/lambda_calculus_node_classes.rb +5 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/lambda_calculus_test.rb +89 -0
- data/vendor/bundle/gems/treetop-1.4.10/examples/lambda_calculus/test_helper.rb +18 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/bootstrap_gen_1_metagrammar.rb +42 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/grammar_compiler.rb +44 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/lexical_address_space.rb +17 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/metagrammar.rb +3550 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/metagrammar.treetop +448 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/anything_symbol.rb +18 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/atomic_expression.rb +14 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/character_class.rb +28 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/choice.rb +31 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/declaration_sequence.rb +24 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/grammar.rb +28 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/inline_module.rb +27 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/nonterminal.rb +13 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/optional.rb +19 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/parenthesized_expression.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/parsing_expression.rb +146 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/parsing_rule.rb +58 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/predicate.rb +45 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/predicate_block.rb +16 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/repetition.rb +89 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/sequence.rb +71 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/terminal.rb +20 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/transient_prefix.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes/treetop_file.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/node_classes.rb +19 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler/ruby_builder.rb +115 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/compiler.rb +7 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/polyglot.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/ruby_extensions/string.rb +42 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/ruby_extensions.rb +1 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/compiled_parser.rb +115 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/interval_skip_list/head_node.rb +15 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb +200 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/interval_skip_list/node.rb +164 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/interval_skip_list.rb +3 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/syntax_node.rb +114 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/terminal_parse_failure.rb +16 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime/terminal_syntax_node.rb +17 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/runtime.rb +6 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop/version.rb +9 -0
- data/vendor/bundle/gems/treetop-1.4.10/lib/treetop.rb +3 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/and_predicate_spec.rb +36 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/anything_symbol_spec.rb +44 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/character_class_spec.rb +276 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/choice_spec.rb +80 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/circular_compilation_spec.rb +30 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/failure_propagation_functional_spec.rb +21 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/grammar_compiler_spec.rb +91 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/grammar_spec.rb +41 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/multibyte_chars_spec.rb +39 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/namespace_spec.rb +42 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/nonterminal_symbol_spec.rb +40 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/not_predicate_spec.rb +38 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/occurrence_range_spec.rb +189 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/one_or_more_spec.rb +35 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/optional_spec.rb +37 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/parenthesized_expression_spec.rb +19 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/parsing_rule_spec.rb +61 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/repeated_subrule_spec.rb +29 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/semantic_predicate_spec.rb +175 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/sequence_spec.rb +115 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/terminal_spec.rb +81 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/terminal_symbol_spec.rb +37 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/test_grammar.treetop +7 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/test_grammar.tt +7 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/test_grammar_do.treetop +7 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/tt_compiler_spec.rb +217 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/compiler/zero_or_more_spec.rb +56 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/a.treetop +11 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/b.treetop +11 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/c.treetop +10 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/d.treetop +10 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/f.treetop +17 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/grammar_composition_spec.rb +40 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/composition/subfolder/e_includes_c.treetop +15 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/ruby_extensions/string_spec.rb +32 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/compiled_parser_spec.rb +123 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/delete_spec.rb +147 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/expire_range_spec.rb +349 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/insert_and_delete_node_spec.rb +385 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/insert_spec.rb +660 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/interval_skip_list_spec.graffle +6175 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/interval_skip_list_spec.rb +58 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/palindromic_fixture.rb +35 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/palindromic_fixture_spec.rb +163 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/spec_helper.rb +91 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/runtime/syntax_node_spec.rb +77 -0
- data/vendor/bundle/gems/treetop-1.4.10/spec/spec_helper.rb +114 -0
- data/vendor/bundle/gems/treetop-1.4.10/treetop.gemspec +186 -0
- data/vendor/bundle/gems/vegas-0.1.11/History.txt +69 -0
- data/vendor/bundle/gems/vegas-0.1.11/LICENSE +22 -0
- data/vendor/bundle/gems/vegas-0.1.11/README.rdoc +47 -0
- data/vendor/bundle/gems/vegas-0.1.11/Rakefile +47 -0
- data/vendor/bundle/gems/vegas-0.1.11/lib/vegas/runner.rb +404 -0
- data/vendor/bundle/gems/vegas-0.1.11/lib/vegas.rb +16 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/apps.rb +26 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/test_app/bin/test_app +9 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/test_app/bin/test_rack_app +12 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/test_app/test_app.rb +10 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/test_helper.rb +57 -0
- data/vendor/bundle/gems/vegas-0.1.11/test/test_vegas_runner.rb +191 -0
- data/vendor/bundle/gems/vegas-0.1.11/vegas.gemspec +61 -0
- data/vendor/bundle/specifications/carrierwave-0.6.2.gemspec +65 -0
- data/vendor/bundle/specifications/carrierwave-mongoid-0.2.1.gemspec +44 -0
- data/vendor/bundle/specifications/coffee-script-source-1.3.3.gemspec +26 -0
- data/vendor/bundle/specifications/dragonfly-0.9.12.gemspec +85 -0
- data/vendor/bundle/specifications/execjs-1.4.0.gemspec +31 -0
- data/vendor/bundle/specifications/haml-3.1.6.gemspec +34 -0
- data/vendor/bundle/specifications/json-1.7.3.gemspec +36 -0
- data/vendor/bundle/specifications/mail-2.4.4.gemspec +36 -0
- data/vendor/bundle/specifications/mime-types-1.18.gemspec +56 -0
- data/vendor/bundle/specifications/polyglot-0.3.3.gemspec +28 -0
- data/vendor/bundle/specifications/qu-0.1.4.gemspec +28 -0
- data/vendor/bundle/specifications/qu-mongo-0.1.4.gemspec +34 -0
- data/vendor/bundle/specifications/redis-2.2.2.gemspec +27 -0
- data/vendor/bundle/specifications/redis-namespace-1.0.3.gemspec +28 -0
- data/vendor/bundle/specifications/resque-1.20.0.gemspec +41 -0
- data/vendor/bundle/specifications/resque-mongo-1.9.8.1.gemspec +41 -0
- data/vendor/bundle/specifications/slim-1.2.1.gemspec +54 -0
- data/vendor/bundle/specifications/treetop-1.4.10.gemspec +53 -0
- data/vendor/bundle/specifications/vegas-0.1.11.gemspec +40 -0
- metadata +1495 -9
- data/lib/classiccms/public/uploadify.swf +0 -0
- data/lib/classiccms/scaffold/models/Article.rb +0 -3
- data/lib/classiccms/scaffold/rackup.ru +0 -15
@@ -0,0 +1,2567 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
require 'test_helper'
|
4
|
+
require 'sass/test_helper'
|
5
|
+
require 'sass/engine'
|
6
|
+
require 'stringio'
|
7
|
+
require 'mock_importer'
|
8
|
+
require 'pathname'
|
9
|
+
|
10
|
+
module Sass::Script::Functions::UserFunctions
|
11
|
+
def option(name)
|
12
|
+
Sass::Script::String.new(@options[name.value.to_sym].to_s)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class SassEngineTest < Test::Unit::TestCase
|
17
|
+
FAKE_FILE_NAME = __FILE__.gsub(/rb$/,"sass")
|
18
|
+
# A map of erroneous Sass documents to the error messages they should produce.
|
19
|
+
# The error messages may be arrays;
|
20
|
+
# if so, the second element should be the line number that should be reported for the error.
|
21
|
+
# If this isn't provided, the tests will assume the line number should be the last line of the document.
|
22
|
+
EXCEPTION_MAP = {
|
23
|
+
"$a: 1 + " => 'Invalid CSS after "1 +": expected expression (e.g. 1px, bold), was ""',
|
24
|
+
"$a: 1 + 2 +" => 'Invalid CSS after "1 + 2 +": expected expression (e.g. 1px, bold), was ""',
|
25
|
+
"$a: 1 + 2 + %" => 'Invalid CSS after "1 + 2 + ": expected expression (e.g. 1px, bold), was "%"',
|
26
|
+
"$a: foo(\"bar\"" => 'Invalid CSS after "foo("bar"": expected ")", was ""',
|
27
|
+
"$a: 1 }" => 'Invalid CSS after "1 ": expected expression (e.g. 1px, bold), was "}"',
|
28
|
+
"$a: 1 }foo\"" => 'Invalid CSS after "1 ": expected expression (e.g. 1px, bold), was "}foo""',
|
29
|
+
":" => 'Invalid property: ":".',
|
30
|
+
": a" => 'Invalid property: ": a".',
|
31
|
+
"a\n :b" => <<MSG,
|
32
|
+
Invalid property: ":b" (no value).
|
33
|
+
If ":b" should be a selector, use "\\:b" instead.
|
34
|
+
MSG
|
35
|
+
"a\n b:" => 'Invalid property: "b:" (no value).',
|
36
|
+
"a\n :b: c" => 'Invalid property: ":b: c".',
|
37
|
+
"a\n :b:c d" => 'Invalid property: ":b:c d".',
|
38
|
+
"a\n :b c;" => 'Invalid CSS after "c": expected expression (e.g. 1px, bold), was ";"',
|
39
|
+
"a\n b: c;" => 'Invalid CSS after "c": expected expression (e.g. 1px, bold), was ";"',
|
40
|
+
".foo ^bar\n a: b" => ['Invalid CSS after ".foo ": expected selector, was "^bar"', 1],
|
41
|
+
"a\n @extend .foo ^bar" => 'Invalid CSS after ".foo ": expected selector, was "^bar"',
|
42
|
+
"a: b" => 'Properties are only allowed within rules, directives, or other properties.',
|
43
|
+
":a b" => 'Properties are only allowed within rules, directives, or other properties.',
|
44
|
+
"$" => 'Invalid variable: "$".',
|
45
|
+
"$a" => 'Invalid variable: "$a".',
|
46
|
+
"$ a" => 'Invalid variable: "$ a".',
|
47
|
+
"$a b" => 'Invalid variable: "$a b".',
|
48
|
+
"$a: 1b + 2c" => "Incompatible units: 'c' and 'b'.",
|
49
|
+
"$a: 1b < 2c" => "Incompatible units: 'c' and 'b'.",
|
50
|
+
"$a: 1b > 2c" => "Incompatible units: 'c' and 'b'.",
|
51
|
+
"$a: 1b <= 2c" => "Incompatible units: 'c' and 'b'.",
|
52
|
+
"$a: 1b >= 2c" => "Incompatible units: 'c' and 'b'.",
|
53
|
+
"a\n b: 1b * 2c" => "2b*c isn't a valid CSS value.",
|
54
|
+
"a\n b: 1b % 2c" => "Cannot modulo by a number with units: 2c.",
|
55
|
+
"$a: 2px + #ccc" => "Cannot add a number with units (2px) to a color (#cccccc).",
|
56
|
+
"$a: #ccc + 2px" => "Cannot add a number with units (2px) to a color (#cccccc).",
|
57
|
+
"& a\n :b c" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1],
|
58
|
+
"a\n :b\n c" => "Illegal nesting: Only properties may be nested beneath properties.",
|
59
|
+
"$a: b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
|
60
|
+
"$a: b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
|
61
|
+
"@import templates/basic\n foo" => "Illegal nesting: Nothing may be nested beneath import directives.",
|
62
|
+
"foo\n @import foo.css" => "CSS import directives may only be used at the root of a document.",
|
63
|
+
"@if true\n @import foo" => "Import directives may not be used within control directives or mixins.",
|
64
|
+
"@mixin foo\n @import foo" => "Import directives may not be used within control directives or mixins.",
|
65
|
+
"@import foo;" => "Invalid @import: expected end of line, was \";\".",
|
66
|
+
'$foo: "bar" "baz" !' => %Q{Invalid CSS after ""bar" "baz" ": expected expression (e.g. 1px, bold), was "!"},
|
67
|
+
'$foo: "bar" "baz" $' => %Q{Invalid CSS after ""bar" "baz" ": expected expression (e.g. 1px, bold), was "$"},
|
68
|
+
"=foo\n :color red\n.bar\n +bang" => "Undefined mixin 'bang'.",
|
69
|
+
"=foo\n :color red\n.bar\n +bang_bop" => "Undefined mixin 'bang_bop'.",
|
70
|
+
"=foo\n :color red\n.bar\n +bang-bop" => "Undefined mixin 'bang-bop'.",
|
71
|
+
".bar\n =foo\n :color red\n" => ["Mixins may only be defined at the root of a document.", 2],
|
72
|
+
"=foo\n :color red\n.bar\n +foo\n :color red" => "Illegal nesting: Nothing may be nested beneath mixin directives.",
|
73
|
+
" a\n b: c" => ["Indenting at the beginning of the document is illegal.", 1],
|
74
|
+
" \n \n\t\n a\n b: c" => ["Indenting at the beginning of the document is illegal.", 4],
|
75
|
+
"a\n b: c\n b: c" => ["Inconsistent indentation: 1 space was used for indentation, but the rest of the document was indented using 2 spaces.", 3],
|
76
|
+
"a\n b: c\na\n b: c" => ["Inconsistent indentation: 1 space was used for indentation, but the rest of the document was indented using 2 spaces.", 4],
|
77
|
+
"a\n\t\tb: c\n\tb: c" => ["Inconsistent indentation: 1 tab was used for indentation, but the rest of the document was indented using 2 tabs.", 3],
|
78
|
+
"a\n b: c\n b: c" => ["Inconsistent indentation: 3 spaces were used for indentation, but the rest of the document was indented using 2 spaces.", 3],
|
79
|
+
"a\n b: c\n a\n d: e" => ["Inconsistent indentation: 3 spaces were used for indentation, but the rest of the document was indented using 2 spaces.", 4],
|
80
|
+
"a\n b: c\na\n d: e" => ["The line was indented 2 levels deeper than the previous line.", 4],
|
81
|
+
"a\n b: c\n a\n d: e" => ["The line was indented 3 levels deeper than the previous line.", 4],
|
82
|
+
"a\n \tb: c" => ["Indentation can't use both tabs and spaces.", 2],
|
83
|
+
"=a(" => 'Invalid CSS after "(": expected variable (e.g. $foo), was ""',
|
84
|
+
"=a(b)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was "b)"',
|
85
|
+
"=a(,)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was ",)"',
|
86
|
+
"=a($)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was "$)"',
|
87
|
+
"=a($foo bar)" => 'Invalid CSS after "($foo ": expected ")", was "bar)"',
|
88
|
+
"=foo\n bar: baz\n+foo" => ["Properties are only allowed within rules, directives, or other properties.", 2],
|
89
|
+
"a-\#{$b\n c: d" => ['Invalid CSS after "a-#{$b": expected "}", was ""', 1],
|
90
|
+
"=a($b: 1, $c)" => "Required argument $c must come before any optional arguments.",
|
91
|
+
"=a($b: 1)\n a: $b\ndiv\n +a(1,2)" => "Mixin a takes 1 argument but 2 were passed.",
|
92
|
+
"=a($b: 1)\n a: $b\ndiv\n +a(1,$c: 3)" => "Mixin a doesn't have an argument named $c",
|
93
|
+
"=a($b)\n a: $b\ndiv\n +a" => "Mixin a is missing parameter $b.",
|
94
|
+
"@function foo()\n 1 + 2" => "Functions can only contain variable declarations and control directives.",
|
95
|
+
"@function foo()\n foo: bar" => "Functions can only contain variable declarations and control directives.",
|
96
|
+
"@function foo()\n foo: bar\n @return 3" => ["Functions can only contain variable declarations and control directives.", 2],
|
97
|
+
"@function foo\n @return 1" => ['Invalid CSS after "": expected "(", was ""', 1],
|
98
|
+
"@function foo(\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was ""', 1],
|
99
|
+
"@function foo(b)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was "b)"', 1],
|
100
|
+
"@function foo(,)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was ",)"', 1],
|
101
|
+
"@function foo($)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was "$)"', 1],
|
102
|
+
"@function foo()\n @return" => 'Invalid @return: expected expression.',
|
103
|
+
"@function foo()\n @return 1\n $var: val" => 'Illegal nesting: Nothing may be nested beneath return directives.',
|
104
|
+
"foo\n @function bar()\n @return 1" => ['Functions may only be defined at the root of a document.', 2],
|
105
|
+
"@function foo($a)\n @return 1\na\n b: foo()" => 'Function foo is missing parameter $a.',
|
106
|
+
"@function foo()\n @return 1\na\n b: foo(2)" => 'Wrong number of arguments (1 for 0) for `foo\'',
|
107
|
+
"@return 1" => '@return may only be used within a function.',
|
108
|
+
"@if true\n @return 1" => '@return may only be used within a function.',
|
109
|
+
"@mixin foo\n @return 1\n@include foo" => ['@return may only be used within a function.', 2],
|
110
|
+
"@else\n a\n b: c" => ["@else must come after @if.", 1],
|
111
|
+
"@if false\n@else foo" => "Invalid else directive '@else foo': expected 'if <expr>'.",
|
112
|
+
"@if false\n@else if " => "Invalid else directive '@else if': expected 'if <expr>'.",
|
113
|
+
"a\n $b: 12\nc\n d: $b" => 'Undefined variable: "$b".',
|
114
|
+
"=foo\n $b: 12\nc\n +foo\n d: $b" => 'Undefined variable: "$b".',
|
115
|
+
"c\n d: $b-foo" => 'Undefined variable: "$b-foo".',
|
116
|
+
"c\n d: $b_foo" => 'Undefined variable: "$b_foo".',
|
117
|
+
'@for $a from "foo" to 1' => '"foo" is not an integer.',
|
118
|
+
'@for $a from 1 to "2"' => '"2" is not an integer.',
|
119
|
+
'@for $a from 1 to "foo"' => '"foo" is not an integer.',
|
120
|
+
'@for $a from 1 to 1.232323' => '1.232 is not an integer.',
|
121
|
+
'@for $a from 1px to 3em' => "Incompatible units: 'em' and 'px'.",
|
122
|
+
'@if' => "Invalid if directive '@if': expected expression.",
|
123
|
+
'@while' => "Invalid while directive '@while': expected expression.",
|
124
|
+
'@debug' => "Invalid debug directive '@debug': expected expression.",
|
125
|
+
%Q{@debug "a message"\n "nested message"} => "Illegal nesting: Nothing may be nested beneath debug directives.",
|
126
|
+
'@warn' => "Invalid warn directive '@warn': expected expression.",
|
127
|
+
%Q{@warn "a message"\n "nested message"} => "Illegal nesting: Nothing may be nested beneath warn directives.",
|
128
|
+
"/* foo\n bar\n baz" => "Inconsistent indentation: previous line was indented by 4 spaces, but this line was indented by 2 spaces.",
|
129
|
+
'+foo(1 + 1: 2)' => 'Invalid CSS after "(1 + 1": expected comma, was ": 2)"',
|
130
|
+
'+foo($var: )' => 'Invalid CSS after "($var: ": expected mixin argument, was ")"',
|
131
|
+
'+foo($var: a, $var: b)' => 'Keyword argument "$var" passed more than once',
|
132
|
+
'+foo($var-var: a, $var_var: b)' => 'Keyword argument "$var-var" passed more than once',
|
133
|
+
'+foo($var_var: a, $var-var: b)' => 'Keyword argument "$var_var" passed more than once',
|
134
|
+
"a\n b: foo(1 + 1: 2)" => 'Invalid CSS after "foo(1 + 1": expected comma, was ": 2)"',
|
135
|
+
"a\n b: foo($var: )" => 'Invalid CSS after "foo($var: ": expected function argument, was ")"',
|
136
|
+
"a\n b: foo($var: a, $var: b)" => 'Keyword argument "$var" passed more than once',
|
137
|
+
"a\n b: foo($var-var: a, $var_var: b)" => 'Keyword argument "$var-var" passed more than once',
|
138
|
+
"a\n b: foo($var_var: a, $var-var: b)" => 'Keyword argument "$var_var" passed more than once',
|
139
|
+
"@if foo\n @extend .bar" => ["Extend directives may only be used within rules.", 2],
|
140
|
+
"$var: true\n@while $var\n @extend .bar\n $var: false" => ["Extend directives may only be used within rules.", 3],
|
141
|
+
"@for $i from 0 to 1\n @extend .bar" => ["Extend directives may only be used within rules.", 2],
|
142
|
+
"@mixin foo\n @extend .bar\n@include foo" => ["Extend directives may only be used within rules.", 2],
|
143
|
+
|
144
|
+
# Regression tests
|
145
|
+
"a\n b:\n c\n d" => ["Illegal nesting: Only properties may be nested beneath properties.", 3],
|
146
|
+
"& foo\n bar: baz\n blat: bang" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1],
|
147
|
+
"a\n b: c\n& foo\n bar: baz\n blat: bang" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 3],
|
148
|
+
}
|
149
|
+
|
150
|
+
def teardown
|
151
|
+
clean_up_sassc
|
152
|
+
end
|
153
|
+
|
154
|
+
def test_basic_render
|
155
|
+
renders_correctly "basic", { :style => :compact }
|
156
|
+
end
|
157
|
+
|
158
|
+
def test_empty_render
|
159
|
+
assert_equal "", render("")
|
160
|
+
end
|
161
|
+
|
162
|
+
def test_multiple_calls_to_render
|
163
|
+
sass = Sass::Engine.new("a\n b: c")
|
164
|
+
assert_equal sass.render, sass.render
|
165
|
+
end
|
166
|
+
|
167
|
+
def test_alternate_styles
|
168
|
+
renders_correctly "expanded", { :style => :expanded }
|
169
|
+
renders_correctly "compact", { :style => :compact }
|
170
|
+
renders_correctly "nested", { :style => :nested }
|
171
|
+
renders_correctly "compressed", { :style => :compressed }
|
172
|
+
end
|
173
|
+
|
174
|
+
def test_compile
|
175
|
+
assert_equal "div { hello: world; }\n", Sass.compile("$who: world\ndiv\n hello: $who", :syntax => :sass, :style => :compact)
|
176
|
+
assert_equal "div { hello: world; }\n", Sass.compile("$who: world; div { hello: $who }", :style => :compact)
|
177
|
+
end
|
178
|
+
|
179
|
+
def test_compile_file
|
180
|
+
FileUtils.mkdir_p(absolutize("tmp"))
|
181
|
+
open(absolutize("tmp/test_compile_file.sass"), "w") {|f| f.write("$who: world\ndiv\n hello: $who")}
|
182
|
+
open(absolutize("tmp/test_compile_file.scss"), "w") {|f| f.write("$who: world; div { hello: $who }")}
|
183
|
+
assert_equal "div { hello: world; }\n", Sass.compile_file(absolutize("tmp/test_compile_file.sass"), :style => :compact)
|
184
|
+
assert_equal "div { hello: world; }\n", Sass.compile_file(absolutize("tmp/test_compile_file.scss"), :style => :compact)
|
185
|
+
ensure
|
186
|
+
FileUtils.rm_rf(absolutize("tmp"))
|
187
|
+
end
|
188
|
+
|
189
|
+
def test_compile_file_to_css_file
|
190
|
+
FileUtils.mkdir_p(absolutize("tmp"))
|
191
|
+
open(absolutize("tmp/test_compile_file.sass"), "w") {|f| f.write("$who: world\ndiv\n hello: $who")}
|
192
|
+
open(absolutize("tmp/test_compile_file.scss"), "w") {|f| f.write("$who: world; div { hello: $who }")}
|
193
|
+
Sass.compile_file(absolutize("tmp/test_compile_file.sass"), absolutize("tmp/test_compile_file_sass.css"), :style => :compact)
|
194
|
+
Sass.compile_file(absolutize("tmp/test_compile_file.scss"), absolutize("tmp/test_compile_file_scss.css"), :style => :compact)
|
195
|
+
assert_equal "div { hello: world; }\n", File.read(absolutize("tmp/test_compile_file_sass.css"))
|
196
|
+
assert_equal "div { hello: world; }\n", File.read(absolutize("tmp/test_compile_file_scss.css"))
|
197
|
+
ensure
|
198
|
+
FileUtils.rm_rf(absolutize("tmp"))
|
199
|
+
end
|
200
|
+
|
201
|
+
def test_flexible_tabulation
|
202
|
+
assert_equal("p {\n a: b; }\n p q {\n c: d; }\n",
|
203
|
+
render("p\n a: b\n q\n c: d\n"))
|
204
|
+
assert_equal("p {\n a: b; }\n p q {\n c: d; }\n",
|
205
|
+
render("p\n\ta: b\n\tq\n\t\tc: d\n"))
|
206
|
+
end
|
207
|
+
|
208
|
+
EXCEPTION_MAP.each do |key, value|
|
209
|
+
define_method("test_exception (#{key.inspect})") do
|
210
|
+
line = 10
|
211
|
+
begin
|
212
|
+
silence_warnings {Sass::Engine.new(key, :filename => FAKE_FILE_NAME, :line => line).render}
|
213
|
+
rescue Sass::SyntaxError => err
|
214
|
+
value = [value] unless value.is_a?(Array)
|
215
|
+
|
216
|
+
assert_equal(value.first.rstrip, err.message, "Line: #{key}")
|
217
|
+
assert_equal(FAKE_FILE_NAME, err.sass_filename)
|
218
|
+
assert_equal((value[1] || key.split("\n").length) + line - 1, err.sass_line, "Line: #{key}")
|
219
|
+
assert_match(/#{Regexp.escape(FAKE_FILE_NAME)}:[0-9]+/, err.backtrace[0], "Line: #{key}")
|
220
|
+
else
|
221
|
+
assert(false, "Exception not raised for\n#{key}")
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
def test_exception_line
|
227
|
+
to_render = <<SASS
|
228
|
+
rule
|
229
|
+
:prop val
|
230
|
+
// comment!
|
231
|
+
|
232
|
+
:broken
|
233
|
+
SASS
|
234
|
+
begin
|
235
|
+
Sass::Engine.new(to_render).render
|
236
|
+
rescue Sass::SyntaxError => err
|
237
|
+
assert_equal(5, err.sass_line)
|
238
|
+
else
|
239
|
+
assert(false, "Exception not raised for '#{to_render}'!")
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
def test_exception_location
|
244
|
+
to_render = <<SASS
|
245
|
+
rule
|
246
|
+
:prop val
|
247
|
+
// comment!
|
248
|
+
|
249
|
+
:broken
|
250
|
+
SASS
|
251
|
+
begin
|
252
|
+
Sass::Engine.new(to_render, :filename => FAKE_FILE_NAME, :line => (__LINE__-7)).render
|
253
|
+
rescue Sass::SyntaxError => err
|
254
|
+
assert_equal(FAKE_FILE_NAME, err.sass_filename)
|
255
|
+
assert_equal((__LINE__-6), err.sass_line)
|
256
|
+
else
|
257
|
+
assert(false, "Exception not raised for '#{to_render}'!")
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
def test_imported_exception
|
262
|
+
[1, 2, 3, 4, 5].each do |i|
|
263
|
+
begin
|
264
|
+
Sass::Engine.new("@import bork#{i}", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
|
265
|
+
rescue Sass::SyntaxError => err
|
266
|
+
assert_equal(2, err.sass_line)
|
267
|
+
assert_match(/(\/|^)bork#{i}\.sass$/, err.sass_filename)
|
268
|
+
|
269
|
+
assert_hash_has(err.sass_backtrace.first,
|
270
|
+
:filename => err.sass_filename, :line => err.sass_line)
|
271
|
+
|
272
|
+
assert_nil(err.sass_backtrace[1][:filename])
|
273
|
+
assert_equal(1, err.sass_backtrace[1][:line])
|
274
|
+
|
275
|
+
assert_match(/(\/|^)bork#{i}\.sass:2$/, err.backtrace.first)
|
276
|
+
assert_equal("(sass):1", err.backtrace[1])
|
277
|
+
else
|
278
|
+
assert(false, "Exception not raised for imported template: bork#{i}")
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
def test_double_imported_exception
|
284
|
+
[1, 2, 3, 4, 5].each do |i|
|
285
|
+
begin
|
286
|
+
Sass::Engine.new("@import nested_bork#{i}", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
|
287
|
+
rescue Sass::SyntaxError => err
|
288
|
+
assert_equal(2, err.sass_line)
|
289
|
+
assert_match(/(\/|^)bork#{i}\.sass$/, err.sass_filename)
|
290
|
+
|
291
|
+
assert_hash_has(err.sass_backtrace.first,
|
292
|
+
:filename => err.sass_filename, :line => err.sass_line)
|
293
|
+
|
294
|
+
assert_match(/(\/|^)nested_bork#{i}\.sass$/, err.sass_backtrace[1][:filename])
|
295
|
+
assert_equal(2, err.sass_backtrace[1][:line])
|
296
|
+
|
297
|
+
assert_nil(err.sass_backtrace[2][:filename])
|
298
|
+
assert_equal(1, err.sass_backtrace[2][:line])
|
299
|
+
|
300
|
+
assert_match(/(\/|^)bork#{i}\.sass:2$/, err.backtrace.first)
|
301
|
+
assert_match(/(\/|^)nested_bork#{i}\.sass:2$/, err.backtrace[1])
|
302
|
+
assert_equal("(sass):1", err.backtrace[2])
|
303
|
+
else
|
304
|
+
assert(false, "Exception not raised for imported template: bork#{i}")
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
def test_selector_tracing
|
310
|
+
actual_css = render(<<-SCSS, :syntax => :scss, :trace_selectors => true)
|
311
|
+
@mixin mixed {
|
312
|
+
.mixed { color: red; }
|
313
|
+
}
|
314
|
+
.context {
|
315
|
+
@include mixed;
|
316
|
+
}
|
317
|
+
SCSS
|
318
|
+
assert_equal(<<CSS,actual_css)
|
319
|
+
/* on line 2 of test_selector_tracing_inline.scss, in `mixed'
|
320
|
+
from line 5 of test_selector_tracing_inline.scss */
|
321
|
+
.context .mixed {
|
322
|
+
color: red; }
|
323
|
+
CSS
|
324
|
+
end
|
325
|
+
|
326
|
+
def test_mixin_exception
|
327
|
+
render(<<SASS)
|
328
|
+
=error-mixin($a)
|
329
|
+
color: $a * 1em * 1px
|
330
|
+
|
331
|
+
=outer-mixin($a)
|
332
|
+
+error-mixin($a)
|
333
|
+
|
334
|
+
.error
|
335
|
+
+outer-mixin(12)
|
336
|
+
SASS
|
337
|
+
assert(false, "Exception not raised")
|
338
|
+
rescue Sass::SyntaxError => err
|
339
|
+
assert_equal(2, err.sass_line)
|
340
|
+
assert_equal(filename_for_test, err.sass_filename)
|
341
|
+
assert_equal("error-mixin", err.sass_mixin)
|
342
|
+
|
343
|
+
assert_hash_has(err.sass_backtrace.first, :line => err.sass_line,
|
344
|
+
:filename => err.sass_filename, :mixin => err.sass_mixin)
|
345
|
+
assert_hash_has(err.sass_backtrace[1], :line => 5,
|
346
|
+
:filename => filename_for_test, :mixin => "outer-mixin")
|
347
|
+
assert_hash_has(err.sass_backtrace[2], :line => 8,
|
348
|
+
:filename => filename_for_test, :mixin => nil)
|
349
|
+
|
350
|
+
assert_equal("#{filename_for_test}:2:in `error-mixin'", err.backtrace.first)
|
351
|
+
assert_equal("#{filename_for_test}:5:in `outer-mixin'", err.backtrace[1])
|
352
|
+
assert_equal("#{filename_for_test}:8", err.backtrace[2])
|
353
|
+
end
|
354
|
+
|
355
|
+
def test_mixin_callsite_exception
|
356
|
+
render(<<SASS)
|
357
|
+
=one-arg-mixin($a)
|
358
|
+
color: $a
|
359
|
+
|
360
|
+
=outer-mixin($a)
|
361
|
+
+one-arg-mixin($a, 12)
|
362
|
+
|
363
|
+
.error
|
364
|
+
+outer-mixin(12)
|
365
|
+
SASS
|
366
|
+
assert(false, "Exception not raised")
|
367
|
+
rescue Sass::SyntaxError => err
|
368
|
+
assert_hash_has(err.sass_backtrace.first, :line => 5,
|
369
|
+
:filename => filename_for_test, :mixin => "one-arg-mixin")
|
370
|
+
assert_hash_has(err.sass_backtrace[1], :line => 5,
|
371
|
+
:filename => filename_for_test, :mixin => "outer-mixin")
|
372
|
+
assert_hash_has(err.sass_backtrace[2], :line => 8,
|
373
|
+
:filename => filename_for_test, :mixin => nil)
|
374
|
+
end
|
375
|
+
|
376
|
+
def test_mixin_exception_cssize
|
377
|
+
render(<<SASS)
|
378
|
+
=parent-ref-mixin
|
379
|
+
& foo
|
380
|
+
a: b
|
381
|
+
|
382
|
+
=outer-mixin
|
383
|
+
+parent-ref-mixin
|
384
|
+
|
385
|
+
+outer-mixin
|
386
|
+
SASS
|
387
|
+
assert(false, "Exception not raised")
|
388
|
+
rescue Sass::SyntaxError => err
|
389
|
+
assert_hash_has(err.sass_backtrace.first, :line => 2,
|
390
|
+
:filename => filename_for_test, :mixin => "parent-ref-mixin")
|
391
|
+
assert_hash_has(err.sass_backtrace[1], :line => 6,
|
392
|
+
:filename => filename_for_test, :mixin => "outer-mixin")
|
393
|
+
assert_hash_has(err.sass_backtrace[2], :line => 8,
|
394
|
+
:filename => filename_for_test, :mixin => nil)
|
395
|
+
end
|
396
|
+
|
397
|
+
def test_mixin_and_import_exception
|
398
|
+
Sass::Engine.new("@import nested_mixin_bork", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
|
399
|
+
assert(false, "Exception not raised")
|
400
|
+
rescue Sass::SyntaxError => err
|
401
|
+
assert_match(/(\/|^)nested_mixin_bork\.sass$/, err.sass_backtrace.first[:filename])
|
402
|
+
assert_hash_has(err.sass_backtrace.first, :mixin => "error-mixin", :line => 4)
|
403
|
+
|
404
|
+
assert_match(/(\/|^)mixin_bork\.sass$/, err.sass_backtrace[1][:filename])
|
405
|
+
assert_hash_has(err.sass_backtrace[1], :mixin => "outer-mixin", :line => 2)
|
406
|
+
|
407
|
+
assert_match(/(\/|^)mixin_bork\.sass$/, err.sass_backtrace[2][:filename])
|
408
|
+
assert_hash_has(err.sass_backtrace[2], :mixin => nil, :line => 5)
|
409
|
+
|
410
|
+
assert_match(/(\/|^)nested_mixin_bork\.sass$/, err.sass_backtrace[3][:filename])
|
411
|
+
assert_hash_has(err.sass_backtrace[3], :mixin => nil, :line => 6)
|
412
|
+
|
413
|
+
assert_hash_has(err.sass_backtrace[4], :filename => nil, :mixin => nil, :line => 1)
|
414
|
+
end
|
415
|
+
|
416
|
+
def test_basic_mixin_loop_exception
|
417
|
+
render <<SASS
|
418
|
+
@mixin foo
|
419
|
+
@include foo
|
420
|
+
@include foo
|
421
|
+
SASS
|
422
|
+
assert(false, "Exception not raised")
|
423
|
+
rescue Sass::SyntaxError => err
|
424
|
+
assert_equal("An @include loop has been found: foo includes itself", err.message)
|
425
|
+
assert_hash_has(err.sass_backtrace[0], :mixin => "foo", :line => 2)
|
426
|
+
end
|
427
|
+
|
428
|
+
def test_double_mixin_loop_exception
|
429
|
+
render <<SASS
|
430
|
+
@mixin foo
|
431
|
+
@include bar
|
432
|
+
@mixin bar
|
433
|
+
@include foo
|
434
|
+
@include foo
|
435
|
+
SASS
|
436
|
+
assert(false, "Exception not raised")
|
437
|
+
rescue Sass::SyntaxError => err
|
438
|
+
assert_equal(<<MESSAGE.rstrip, err.message)
|
439
|
+
An @include loop has been found:
|
440
|
+
foo includes bar
|
441
|
+
bar includes foo
|
442
|
+
MESSAGE
|
443
|
+
assert_hash_has(err.sass_backtrace[0], :mixin => "bar", :line => 4)
|
444
|
+
assert_hash_has(err.sass_backtrace[1], :mixin => "foo", :line => 2)
|
445
|
+
end
|
446
|
+
|
447
|
+
def test_deep_mixin_loop_exception
|
448
|
+
render <<SASS
|
449
|
+
@mixin foo
|
450
|
+
@include bar
|
451
|
+
|
452
|
+
@mixin bar
|
453
|
+
@include baz
|
454
|
+
|
455
|
+
@mixin baz
|
456
|
+
@include foo
|
457
|
+
|
458
|
+
@include foo
|
459
|
+
SASS
|
460
|
+
assert(false, "Exception not raised")
|
461
|
+
rescue Sass::SyntaxError => err
|
462
|
+
assert_equal(<<MESSAGE.rstrip, err.message)
|
463
|
+
An @include loop has been found:
|
464
|
+
foo includes bar
|
465
|
+
bar includes baz
|
466
|
+
baz includes foo
|
467
|
+
MESSAGE
|
468
|
+
assert_hash_has(err.sass_backtrace[0], :mixin => "baz", :line => 8)
|
469
|
+
assert_hash_has(err.sass_backtrace[1], :mixin => "bar", :line => 5)
|
470
|
+
assert_hash_has(err.sass_backtrace[2], :mixin => "foo", :line => 2)
|
471
|
+
end
|
472
|
+
|
473
|
+
def test_exception_css_with_offset
|
474
|
+
opts = {:full_exception => true, :line => 362}
|
475
|
+
render(("a\n b: c\n" * 10) + "d\n e:\n" + ("f\n g: h\n" * 10), opts)
|
476
|
+
rescue Sass::SyntaxError => e
|
477
|
+
assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e, opts).split("\n")[0..15].join("\n"))
|
478
|
+
/*
|
479
|
+
Syntax error: Invalid property: "e:" (no value).
|
480
|
+
on line 383 of test_exception_css_with_offset_inline.sass
|
481
|
+
|
482
|
+
378: a
|
483
|
+
379: b: c
|
484
|
+
380: a
|
485
|
+
381: b: c
|
486
|
+
382: d
|
487
|
+
383: e:
|
488
|
+
384: f
|
489
|
+
385: g: h
|
490
|
+
386: f
|
491
|
+
387: g: h
|
492
|
+
388: f
|
493
|
+
CSS
|
494
|
+
else
|
495
|
+
assert(false, "Exception not raised for test_exception_css_with_offset")
|
496
|
+
end
|
497
|
+
|
498
|
+
def test_exception_css_with_mixins
|
499
|
+
opts = {:full_exception => true}
|
500
|
+
render(<<SASS, opts)
|
501
|
+
=error-mixin($a)
|
502
|
+
color: $a * 1em * 1px
|
503
|
+
|
504
|
+
=outer-mixin($a)
|
505
|
+
+error-mixin($a)
|
506
|
+
|
507
|
+
.error
|
508
|
+
+outer-mixin(12)
|
509
|
+
SASS
|
510
|
+
rescue Sass::SyntaxError => e
|
511
|
+
assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e, opts).split("\n")[0..13].join("\n"))
|
512
|
+
/*
|
513
|
+
Syntax error: 12em*px isn't a valid CSS value.
|
514
|
+
on line 2 of test_exception_css_with_mixins_inline.sass, in `error-mixin'
|
515
|
+
from line 5 of test_exception_css_with_mixins_inline.sass, in `outer-mixin'
|
516
|
+
from line 8 of test_exception_css_with_mixins_inline.sass
|
517
|
+
|
518
|
+
1: =error-mixin($a)
|
519
|
+
2: color: $a * 1em * 1px
|
520
|
+
3:
|
521
|
+
4: =outer-mixin($a)
|
522
|
+
5: +error-mixin($a)
|
523
|
+
6:
|
524
|
+
7: .error
|
525
|
+
CSS
|
526
|
+
else
|
527
|
+
assert(false, "Exception not raised")
|
528
|
+
end
|
529
|
+
|
530
|
+
def test_cssize_exception_css
|
531
|
+
opts = {:full_exception => true}
|
532
|
+
render(<<SASS, opts)
|
533
|
+
.filler
|
534
|
+
stuff: "stuff!"
|
535
|
+
|
536
|
+
a: b
|
537
|
+
|
538
|
+
.more.filler
|
539
|
+
a: b
|
540
|
+
SASS
|
541
|
+
rescue Sass::SyntaxError => e
|
542
|
+
assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e, opts).split("\n")[0..11].join("\n"))
|
543
|
+
/*
|
544
|
+
Syntax error: Properties are only allowed within rules, directives, or other properties.
|
545
|
+
on line 4 of test_cssize_exception_css_inline.sass
|
546
|
+
|
547
|
+
1: .filler
|
548
|
+
2: stuff: "stuff!"
|
549
|
+
3:
|
550
|
+
4: a: b
|
551
|
+
5:
|
552
|
+
6: .more.filler
|
553
|
+
7: a: b
|
554
|
+
CSS
|
555
|
+
else
|
556
|
+
assert(false, "Exception not raised")
|
557
|
+
end
|
558
|
+
|
559
|
+
def test_css_import
|
560
|
+
assert_equal("@import url(./fonts.css);\n", render("@import \"./fonts.css\""))
|
561
|
+
end
|
562
|
+
|
563
|
+
def test_http_import
|
564
|
+
assert_equal("@import url(http://fonts.googleapis.com/css?family=Droid+Sans);\n",
|
565
|
+
render("@import \"http://fonts.googleapis.com/css?family=Droid+Sans\""))
|
566
|
+
end
|
567
|
+
|
568
|
+
def test_http_import_with_interpolation
|
569
|
+
assert_equal("@import url(http://fonts.googleapis.com/css?family=Droid+Sans);\n",
|
570
|
+
render("$family: unquote(\"Droid+Sans\")\n@import \"http://fonts.googleapis.com/css?family=\#{$family}\"\n"))
|
571
|
+
assert_equal("@import url(\"http://fonts.googleapis.com/css?family=Droid+Sans\");\n",
|
572
|
+
render("$family: unquote(\"Droid+Sans\")\n@import url(\"http://fonts.googleapis.com/css?family=\#{$family}\")\n"))
|
573
|
+
end
|
574
|
+
|
575
|
+
def test_url_import
|
576
|
+
assert_equal("@import url(fonts.sass);\n", render("@import url(fonts.sass)"))
|
577
|
+
end
|
578
|
+
|
579
|
+
def test_sass_import
|
580
|
+
sassc_file = sassc_path("importee")
|
581
|
+
assert !File.exists?(sassc_file)
|
582
|
+
renders_correctly "import", { :style => :compact, :load_paths => [File.dirname(__FILE__) + "/templates"] }
|
583
|
+
assert File.exists?(sassc_file)
|
584
|
+
end
|
585
|
+
|
586
|
+
def test_sass_pathname_import
|
587
|
+
sassc_file = sassc_path("importee")
|
588
|
+
assert !File.exists?(sassc_file)
|
589
|
+
renders_correctly("import",
|
590
|
+
:style => :compact,
|
591
|
+
:load_paths => [Pathname.new(File.dirname(__FILE__) + "/templates")])
|
592
|
+
assert File.exists?(sassc_file)
|
593
|
+
end
|
594
|
+
|
595
|
+
def test_nonexistent_import
|
596
|
+
assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) do
|
597
|
+
File to import not found or unreadable: nonexistent.sass.
|
598
|
+
Load path: #{Dir.pwd}
|
599
|
+
ERR
|
600
|
+
render("@import nonexistent.sass")
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
604
|
+
def test_nonexistent_extensionless_import
|
605
|
+
assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) do
|
606
|
+
File to import not found or unreadable: nonexistent.
|
607
|
+
Load path: #{Dir.pwd}
|
608
|
+
ERR
|
609
|
+
render("@import nonexistent")
|
610
|
+
end
|
611
|
+
end
|
612
|
+
|
613
|
+
def test_no_cache
|
614
|
+
assert !File.exists?(sassc_path("importee"))
|
615
|
+
renders_correctly("import", {
|
616
|
+
:style => :compact, :cache => false,
|
617
|
+
:load_paths => [File.dirname(__FILE__) + "/templates"],
|
618
|
+
})
|
619
|
+
assert !File.exists?(sassc_path("importee"))
|
620
|
+
end
|
621
|
+
|
622
|
+
def test_import_in_rule
|
623
|
+
assert_equal(<<CSS, render(<<SASS, :load_paths => [File.dirname(__FILE__) + '/templates/']))
|
624
|
+
.foo #foo {
|
625
|
+
background-color: #bbaaff; }
|
626
|
+
|
627
|
+
.bar {
|
628
|
+
a: b; }
|
629
|
+
.bar #foo {
|
630
|
+
background-color: #bbaaff; }
|
631
|
+
CSS
|
632
|
+
.foo
|
633
|
+
@import partial
|
634
|
+
|
635
|
+
.bar
|
636
|
+
a: b
|
637
|
+
@import partial
|
638
|
+
SASS
|
639
|
+
end
|
640
|
+
|
641
|
+
def test_nested_import_with_toplevel_constructs
|
642
|
+
Sass::Engine.new(".foo\n @import importee", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
|
643
|
+
rescue Sass::SyntaxError => err
|
644
|
+
assert_equal(3, err.sass_line)
|
645
|
+
assert_match(/(\/|^)importee\.sass$/, err.sass_filename)
|
646
|
+
|
647
|
+
assert_hash_has(err.sass_backtrace.first,
|
648
|
+
:filename => err.sass_filename, :line => err.sass_line)
|
649
|
+
|
650
|
+
assert_nil(err.sass_backtrace[1][:filename])
|
651
|
+
assert_equal(2, err.sass_backtrace[1][:line])
|
652
|
+
|
653
|
+
assert_match(/(\/|^)importee\.sass:3$/, err.backtrace.first)
|
654
|
+
assert_equal("(sass):2", err.backtrace[1])
|
655
|
+
else
|
656
|
+
assert(false, "Exception not raised for importing mixins nested")
|
657
|
+
end
|
658
|
+
|
659
|
+
def test_units
|
660
|
+
renders_correctly "units"
|
661
|
+
end
|
662
|
+
|
663
|
+
def test_default_function
|
664
|
+
assert_equal(<<CSS, render(<<SASS))
|
665
|
+
foo {
|
666
|
+
bar: url("foo.png"); }
|
667
|
+
CSS
|
668
|
+
foo
|
669
|
+
bar: url("foo.png")
|
670
|
+
SASS
|
671
|
+
assert_equal("foo {\n bar: url(); }\n", render("foo\n bar: url()\n"));
|
672
|
+
end
|
673
|
+
|
674
|
+
def test_string_minus
|
675
|
+
assert_equal("foo {\n bar: baz-boom-bat; }\n", render(%Q{foo\n bar: baz-boom-bat}))
|
676
|
+
assert_equal("foo {\n bar: -baz-boom; }\n", render(%Q{foo\n bar: -baz-boom}))
|
677
|
+
end
|
678
|
+
|
679
|
+
def test_string_div
|
680
|
+
assert_equal("foo {\n bar: baz/boom/bat; }\n", render(%Q{foo\n bar: baz/boom/bat}))
|
681
|
+
assert_equal("foo {\n bar: /baz/boom; }\n", render(%Q{foo\n bar: /baz/boom}))
|
682
|
+
end
|
683
|
+
|
684
|
+
def test_basic_multiline_selector
|
685
|
+
assert_equal("#foo #bar,\n#baz #boom {\n foo: bar; }\n",
|
686
|
+
render("#foo #bar,\n#baz #boom\n :foo bar"))
|
687
|
+
assert_equal("#foo #bar,\n#foo #baz {\n foo: bar; }\n",
|
688
|
+
render("#foo\n #bar,\n #baz\n :foo bar"))
|
689
|
+
assert_equal("#foo,\n#bar {\n foo: bar; }\n #foo #baz,\n #bar #baz {\n foo: bar; }\n",
|
690
|
+
render("#foo,\n#bar\n :foo bar\n #baz\n :foo bar"))
|
691
|
+
assert_equal("#foo #bar, #baz #boom { foo: bar; }\n",
|
692
|
+
render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compact))
|
693
|
+
|
694
|
+
assert_equal("#foo #bar,#baz #boom{foo:bar}\n",
|
695
|
+
render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compressed))
|
696
|
+
|
697
|
+
assert_equal("#foo #bar,\n#baz #boom {\n foo: bar; }\n",
|
698
|
+
render("#foo #bar,,\n,#baz #boom,\n :foo bar"))
|
699
|
+
|
700
|
+
assert_equal("#bip #bop {\n foo: bar; }\n",
|
701
|
+
render("#bip #bop,, ,\n :foo bar"))
|
702
|
+
end
|
703
|
+
|
704
|
+
def test_complex_multiline_selector
|
705
|
+
renders_correctly "multiline"
|
706
|
+
end
|
707
|
+
|
708
|
+
def test_colon_only
|
709
|
+
begin
|
710
|
+
render("a\n b: c", :property_syntax => :old)
|
711
|
+
rescue Sass::SyntaxError => e
|
712
|
+
assert_equal("Illegal property syntax: can't use new syntax when :property_syntax => :old is set.",
|
713
|
+
e.message)
|
714
|
+
assert_equal(2, e.sass_line)
|
715
|
+
else
|
716
|
+
assert(false, "SyntaxError not raised for :property_syntax => :old")
|
717
|
+
end
|
718
|
+
|
719
|
+
begin
|
720
|
+
render("a\n :b c", :property_syntax => :new)
|
721
|
+
assert_equal(2, e.sass_line)
|
722
|
+
rescue Sass::SyntaxError => e
|
723
|
+
assert_equal("Illegal property syntax: can't use old syntax when :property_syntax => :new is set.",
|
724
|
+
e.message)
|
725
|
+
else
|
726
|
+
assert(false, "SyntaxError not raised for :property_syntax => :new")
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
def test_pseudo_elements
|
731
|
+
assert_equal(<<CSS, render(<<SASS))
|
732
|
+
::first-line {
|
733
|
+
size: 10em; }
|
734
|
+
CSS
|
735
|
+
::first-line
|
736
|
+
size: 10em
|
737
|
+
SASS
|
738
|
+
end
|
739
|
+
|
740
|
+
def test_directive
|
741
|
+
assert_equal("@a b;\n", render("@a b"))
|
742
|
+
|
743
|
+
assert_equal("@a {\n b: c; }\n", render("@a\n :b c"))
|
744
|
+
assert_equal("@a { b: c; }\n", render("@a\n :b c", :style => :compact))
|
745
|
+
assert_equal("@a {\n b: c;\n}\n", render("@a\n :b c", :style => :expanded))
|
746
|
+
assert_equal("@a{b:c}\n", render("@a\n :b c", :style => :compressed))
|
747
|
+
|
748
|
+
assert_equal("@a {\n b: c;\n d: e; }\n",
|
749
|
+
render("@a\n :b c\n :d e"))
|
750
|
+
assert_equal("@a { b: c; d: e; }\n",
|
751
|
+
render("@a\n :b c\n :d e", :style => :compact))
|
752
|
+
assert_equal("@a {\n b: c;\n d: e;\n}\n",
|
753
|
+
render("@a\n :b c\n :d e", :style => :expanded))
|
754
|
+
assert_equal("@a{b:c;d:e}\n",
|
755
|
+
render("@a\n :b c\n :d e", :style => :compressed))
|
756
|
+
|
757
|
+
assert_equal("@a {\n #b {\n c: d; } }\n",
|
758
|
+
render("@a\n #b\n :c d"))
|
759
|
+
assert_equal("@a { #b { c: d; } }\n",
|
760
|
+
render("@a\n #b\n :c d", :style => :compact))
|
761
|
+
assert_equal("@a {\n #b {\n c: d;\n }\n}\n",
|
762
|
+
render("@a\n #b\n :c d", :style => :expanded))
|
763
|
+
assert_equal("@a{#b{c:d}}\n",
|
764
|
+
render("@a\n #b\n :c d", :style => :compressed))
|
765
|
+
|
766
|
+
assert_equal("@a {\n #b {\n a: b; }\n #b #c {\n d: e; } }\n",
|
767
|
+
render("@a\n #b\n :a b\n #c\n :d e"))
|
768
|
+
assert_equal("@a { #b { a: b; }\n #b #c { d: e; } }\n",
|
769
|
+
render("@a\n #b\n :a b\n #c\n :d e", :style => :compact))
|
770
|
+
assert_equal("@a {\n #b {\n a: b;\n }\n #b #c {\n d: e;\n }\n}\n",
|
771
|
+
render("@a\n #b\n :a b\n #c\n :d e", :style => :expanded))
|
772
|
+
assert_equal("@a{#b{a:b}#b #c{d:e}}\n",
|
773
|
+
render("@a\n #b\n :a b\n #c\n :d e", :style => :compressed))
|
774
|
+
|
775
|
+
assert_equal("@a {\n #foo,\n #bar {\n b: c; } }\n",
|
776
|
+
render("@a\n #foo, \n #bar\n :b c"))
|
777
|
+
assert_equal("@a { #foo, #bar { b: c; } }\n",
|
778
|
+
render("@a\n #foo, \n #bar\n :b c", :style => :compact))
|
779
|
+
assert_equal("@a {\n #foo,\n #bar {\n b: c;\n }\n}\n",
|
780
|
+
render("@a\n #foo, \n #bar\n :b c", :style => :expanded))
|
781
|
+
assert_equal("@a{#foo,#bar{b:c}}\n",
|
782
|
+
render("@a\n #foo, \n #bar\n :b c", :style => :compressed))
|
783
|
+
|
784
|
+
to_render = <<END
|
785
|
+
@a
|
786
|
+
:b c
|
787
|
+
#d
|
788
|
+
:e f
|
789
|
+
:g h
|
790
|
+
END
|
791
|
+
rendered = <<END
|
792
|
+
@a { b: c;
|
793
|
+
#d { e: f; }
|
794
|
+
g: h; }
|
795
|
+
END
|
796
|
+
assert_equal(rendered, render(to_render, :style => :compact))
|
797
|
+
|
798
|
+
assert_equal("@a{b:c;#d{e:f}g:h}\n", render(to_render, :style => :compressed))
|
799
|
+
end
|
800
|
+
|
801
|
+
def test_property_hacks
|
802
|
+
assert_equal(<<CSS, render(<<SASS))
|
803
|
+
foo {
|
804
|
+
_name: val;
|
805
|
+
*name: val;
|
806
|
+
#name: val;
|
807
|
+
.name: val;
|
808
|
+
name/**/: val;
|
809
|
+
name/*\\**/: val;
|
810
|
+
name: val; }
|
811
|
+
CSS
|
812
|
+
foo
|
813
|
+
_name: val
|
814
|
+
*name: val
|
815
|
+
#name: val
|
816
|
+
.name: val
|
817
|
+
name/**/: val
|
818
|
+
name/*\\**/: val
|
819
|
+
name: val
|
820
|
+
SASS
|
821
|
+
end
|
822
|
+
|
823
|
+
def test_properties_with_space_after_colon
|
824
|
+
assert_equal <<CSS, render(<<SASS)
|
825
|
+
foo {
|
826
|
+
bar: baz;
|
827
|
+
bizz: bap; }
|
828
|
+
CSS
|
829
|
+
foo
|
830
|
+
bar : baz
|
831
|
+
bizz : bap
|
832
|
+
SASS
|
833
|
+
end
|
834
|
+
|
835
|
+
def test_line_annotations
|
836
|
+
assert_equal(<<CSS, render(<<SASS, :line_comments => true, :style => :compact))
|
837
|
+
/* line 2, test_line_annotations_inline.sass */
|
838
|
+
foo bar { foo: bar; }
|
839
|
+
/* line 5, test_line_annotations_inline.sass */
|
840
|
+
foo baz { blip: blop; }
|
841
|
+
|
842
|
+
/* line 9, test_line_annotations_inline.sass */
|
843
|
+
floodle { flop: blop; }
|
844
|
+
|
845
|
+
/* line 18, test_line_annotations_inline.sass */
|
846
|
+
bup { mix: on; }
|
847
|
+
/* line 15, test_line_annotations_inline.sass */
|
848
|
+
bup mixin { moop: mup; }
|
849
|
+
|
850
|
+
/* line 22, test_line_annotations_inline.sass */
|
851
|
+
bip hop, skip hop { a: b; }
|
852
|
+
CSS
|
853
|
+
foo
|
854
|
+
bar
|
855
|
+
foo: bar
|
856
|
+
|
857
|
+
baz
|
858
|
+
blip: blop
|
859
|
+
|
860
|
+
|
861
|
+
floodle
|
862
|
+
|
863
|
+
flop: blop
|
864
|
+
|
865
|
+
=mxn
|
866
|
+
mix: on
|
867
|
+
mixin
|
868
|
+
moop: mup
|
869
|
+
|
870
|
+
bup
|
871
|
+
+mxn
|
872
|
+
|
873
|
+
bip, skip
|
874
|
+
hop
|
875
|
+
a: b
|
876
|
+
SASS
|
877
|
+
end
|
878
|
+
|
879
|
+
def test_line_annotations_with_filename
|
880
|
+
renders_correctly "line_numbers", :line_comments => true, :load_paths => [File.dirname(__FILE__) + "/templates"]
|
881
|
+
end
|
882
|
+
|
883
|
+
def test_debug_info
|
884
|
+
esc_file_name = Sass::SCSS::RX.escape_ident(Sass::Util.scope("test_debug_info_inline.sass"))
|
885
|
+
|
886
|
+
assert_equal(<<CSS, render(<<SASS, :debug_info => true, :style => :compact))
|
887
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000032}}
|
888
|
+
foo bar { foo: bar; }
|
889
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000035}}
|
890
|
+
foo baz { blip: blop; }
|
891
|
+
|
892
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000039}}
|
893
|
+
floodle { flop: blop; }
|
894
|
+
|
895
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000318}}
|
896
|
+
bup { mix: on; }
|
897
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000315}}
|
898
|
+
bup mixin { moop: mup; }
|
899
|
+
|
900
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000322}}
|
901
|
+
bip hop, skip hop { a: b; }
|
902
|
+
CSS
|
903
|
+
foo
|
904
|
+
bar
|
905
|
+
foo: bar
|
906
|
+
|
907
|
+
baz
|
908
|
+
blip: blop
|
909
|
+
|
910
|
+
|
911
|
+
floodle
|
912
|
+
|
913
|
+
flop: blop
|
914
|
+
|
915
|
+
=mxn
|
916
|
+
mix: on
|
917
|
+
mixin
|
918
|
+
moop: mup
|
919
|
+
|
920
|
+
bup
|
921
|
+
+mxn
|
922
|
+
|
923
|
+
bip, skip
|
924
|
+
hop
|
925
|
+
a: b
|
926
|
+
SASS
|
927
|
+
end
|
928
|
+
|
929
|
+
def test_debug_info_without_filename
|
930
|
+
assert_equal(<<CSS, Sass::Engine.new(<<SASS, :debug_info => true).render)
|
931
|
+
@media -sass-debug-info{filename{font-family:}line{font-family:\\000031}}
|
932
|
+
foo {
|
933
|
+
a: b; }
|
934
|
+
CSS
|
935
|
+
foo
|
936
|
+
a: b
|
937
|
+
SASS
|
938
|
+
end
|
939
|
+
|
940
|
+
def test_debug_info_with_compressed
|
941
|
+
assert_equal(<<CSS, render(<<SASS, :debug_info => true, :style => :compressed))
|
942
|
+
foo{a:b}
|
943
|
+
CSS
|
944
|
+
foo
|
945
|
+
a: b
|
946
|
+
SASS
|
947
|
+
end
|
948
|
+
|
949
|
+
def test_debug_info_with_line_annotations
|
950
|
+
esc_file_name = Sass::SCSS::RX.escape_ident(Sass::Util.scope("test_debug_info_with_line_annotations_inline.sass"))
|
951
|
+
|
952
|
+
assert_equal(<<CSS, render(<<SASS, :debug_info => true, :line_comments => true))
|
953
|
+
@media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000031}}
|
954
|
+
foo {
|
955
|
+
a: b; }
|
956
|
+
CSS
|
957
|
+
foo
|
958
|
+
a: b
|
959
|
+
SASS
|
960
|
+
end
|
961
|
+
|
962
|
+
def test_empty_first_line
|
963
|
+
assert_equal("#a {\n b: c; }\n", render("#a\n\n b: c"))
|
964
|
+
end
|
965
|
+
|
966
|
+
def test_escaped_rule
|
967
|
+
assert_equal(":focus {\n a: b; }\n", render("\\:focus\n a: b"))
|
968
|
+
assert_equal("a {\n b: c; }\n a :focus {\n d: e; }\n", render("\\a\n b: c\n \\:focus\n d: e"))
|
969
|
+
end
|
970
|
+
|
971
|
+
def test_cr_newline
|
972
|
+
assert_equal("foo {\n a: b;\n c: d;\n e: f; }\n", render("foo\r a: b\r\n c: d\n\r e: f"))
|
973
|
+
end
|
974
|
+
|
975
|
+
def test_property_with_content_and_nested_props
|
976
|
+
assert_equal(<<CSS, render(<<SASS))
|
977
|
+
foo {
|
978
|
+
a: b;
|
979
|
+
a-c: d;
|
980
|
+
a-c-e: f; }
|
981
|
+
CSS
|
982
|
+
foo
|
983
|
+
a: b
|
984
|
+
c: d
|
985
|
+
e: f
|
986
|
+
SASS
|
987
|
+
|
988
|
+
assert_equal(<<CSS, render(<<SASS))
|
989
|
+
foo {
|
990
|
+
a: b;
|
991
|
+
a-c-e: f; }
|
992
|
+
CSS
|
993
|
+
foo
|
994
|
+
a: b
|
995
|
+
c:
|
996
|
+
e: f
|
997
|
+
SASS
|
998
|
+
end
|
999
|
+
|
1000
|
+
def test_guarded_assign
|
1001
|
+
assert_equal("foo {\n a: b; }\n", render(%Q{$foo: b\n$foo: c !default\nfoo\n a: $foo}))
|
1002
|
+
assert_equal("foo {\n a: b; }\n", render(%Q{$foo: b !default\nfoo\n a: $foo}))
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
def test_mixins
|
1006
|
+
renders_correctly "mixins", { :style => :expanded }
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
def test_directive_style_mixins
|
1010
|
+
assert_equal <<CSS, render(<<SASS)
|
1011
|
+
bar {
|
1012
|
+
prop: baz; }
|
1013
|
+
CSS
|
1014
|
+
@mixin foo($arg)
|
1015
|
+
prop: $arg
|
1016
|
+
|
1017
|
+
bar
|
1018
|
+
@include foo(baz)
|
1019
|
+
SASS
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
def test_mixins_dont_interfere_with_sibling_combinator
|
1023
|
+
assert_equal("foo + bar {\n a: b; }\nfoo + baz {\n c: d; }\n",
|
1024
|
+
render("foo\n +\n bar\n a: b\n baz\n c: d"))
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
def test_mixin_args
|
1028
|
+
assert_equal("blat {\n baz: hi; }\n", render(<<SASS))
|
1029
|
+
=foo($bar)
|
1030
|
+
baz: $bar
|
1031
|
+
blat
|
1032
|
+
+foo(hi)
|
1033
|
+
SASS
|
1034
|
+
assert_equal("blat {\n baz: 3; }\n", render(<<SASS))
|
1035
|
+
=foo($a, $b)
|
1036
|
+
baz: $a + $b
|
1037
|
+
blat
|
1038
|
+
+foo(1, 2)
|
1039
|
+
SASS
|
1040
|
+
assert_equal("blat {\n baz: 4;\n baz: 3;\n baz: 5;\n bang: 3; }\n", render(<<SASS))
|
1041
|
+
=foo($c: (6 + 4) / 2)
|
1042
|
+
baz: $c
|
1043
|
+
$c: 3
|
1044
|
+
blat
|
1045
|
+
+foo($c + 1)
|
1046
|
+
+foo(($c + 3)/2)
|
1047
|
+
+foo
|
1048
|
+
bang: $c
|
1049
|
+
SASS
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
def test_default_values_for_mixin_arguments
|
1053
|
+
assert_equal("white {\n color: white; }\n\nblack {\n color: black; }\n", render(<<SASS))
|
1054
|
+
=foo($a: #FFF)
|
1055
|
+
:color $a
|
1056
|
+
white
|
1057
|
+
+foo
|
1058
|
+
black
|
1059
|
+
+foo(#000)
|
1060
|
+
SASS
|
1061
|
+
assert_equal(<<CSS, render(<<SASS))
|
1062
|
+
one {
|
1063
|
+
color: white;
|
1064
|
+
padding: 1px;
|
1065
|
+
margin: 4px; }
|
1066
|
+
|
1067
|
+
two {
|
1068
|
+
color: white;
|
1069
|
+
padding: 2px;
|
1070
|
+
margin: 5px; }
|
1071
|
+
|
1072
|
+
three {
|
1073
|
+
color: white;
|
1074
|
+
padding: 2px;
|
1075
|
+
margin: 3px; }
|
1076
|
+
CSS
|
1077
|
+
$a: 5px
|
1078
|
+
=foo($a, $b: 1px, $c: 3px + $b)
|
1079
|
+
:color $a
|
1080
|
+
:padding $b
|
1081
|
+
:margin $c
|
1082
|
+
one
|
1083
|
+
+foo(#fff)
|
1084
|
+
two
|
1085
|
+
+foo(#fff, 2px)
|
1086
|
+
three
|
1087
|
+
+foo(#fff, 2px, 3px)
|
1088
|
+
SASS
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
def test_hyphen_underscore_insensitive_mixins
|
1092
|
+
assert_equal(<<CSS, render(<<SASS))
|
1093
|
+
a {
|
1094
|
+
b: 12;
|
1095
|
+
c: foo; }
|
1096
|
+
CSS
|
1097
|
+
=mixin-hyphen
|
1098
|
+
b: 12
|
1099
|
+
|
1100
|
+
=mixin_under
|
1101
|
+
c: foo
|
1102
|
+
|
1103
|
+
a
|
1104
|
+
+mixin_hyphen
|
1105
|
+
+mixin-under
|
1106
|
+
SASS
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def test_css_identifier_mixin
|
1110
|
+
assert_equal(<<CSS, render(<<SASS))
|
1111
|
+
a {
|
1112
|
+
foo: 12; }
|
1113
|
+
CSS
|
1114
|
+
=\\{foo\\(12\\)($a)
|
1115
|
+
foo: $a
|
1116
|
+
|
1117
|
+
a
|
1118
|
+
+\\{foo\\(12\\)(12)
|
1119
|
+
SASS
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
def test_basic_function
|
1123
|
+
assert_equal(<<CSS, render(<<SASS))
|
1124
|
+
bar {
|
1125
|
+
a: 3; }
|
1126
|
+
CSS
|
1127
|
+
@function foo()
|
1128
|
+
@return 1 + 2
|
1129
|
+
|
1130
|
+
bar
|
1131
|
+
a: foo()
|
1132
|
+
SASS
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
def test_function_args
|
1136
|
+
assert_equal(<<CSS, render(<<SASS))
|
1137
|
+
bar {
|
1138
|
+
a: 3; }
|
1139
|
+
CSS
|
1140
|
+
@function plus($var1, $var2)
|
1141
|
+
@return $var1 + $var2
|
1142
|
+
|
1143
|
+
bar
|
1144
|
+
a: plus(1, 2)
|
1145
|
+
SASS
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
def test_function_arg_default
|
1149
|
+
assert_equal(<<CSS, render(<<SASS))
|
1150
|
+
bar {
|
1151
|
+
a: 3; }
|
1152
|
+
CSS
|
1153
|
+
@function plus($var1, $var2: 2)
|
1154
|
+
@return $var1 + $var2
|
1155
|
+
|
1156
|
+
bar
|
1157
|
+
a: plus(1)
|
1158
|
+
SASS
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
def test_function_arg_keyword
|
1162
|
+
assert_equal(<<CSS, render(<<SASS))
|
1163
|
+
bar {
|
1164
|
+
a: 1bar; }
|
1165
|
+
CSS
|
1166
|
+
@function plus($var1: 1, $var2: 2)
|
1167
|
+
@return $var1 + $var2
|
1168
|
+
|
1169
|
+
bar
|
1170
|
+
a: plus($var2: bar)
|
1171
|
+
SASS
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def test_function_with_if
|
1175
|
+
assert_equal(<<CSS, render(<<SASS))
|
1176
|
+
bar {
|
1177
|
+
a: foo;
|
1178
|
+
b: bar; }
|
1179
|
+
CSS
|
1180
|
+
@function my-if($cond, $val1, $val2)
|
1181
|
+
@if $cond
|
1182
|
+
@return $val1
|
1183
|
+
@else
|
1184
|
+
@return $val2
|
1185
|
+
|
1186
|
+
bar
|
1187
|
+
a: my-if(true, foo, bar)
|
1188
|
+
b: my-if(false, foo, bar)
|
1189
|
+
SASS
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
def test_function_with_var
|
1193
|
+
assert_equal(<<CSS, render(<<SASS))
|
1194
|
+
bar {
|
1195
|
+
a: 1; }
|
1196
|
+
CSS
|
1197
|
+
@function foo($val1, $val2)
|
1198
|
+
$intermediate: $val1 + $val2
|
1199
|
+
@return $intermediate/3
|
1200
|
+
|
1201
|
+
bar
|
1202
|
+
a: foo(1, 2)
|
1203
|
+
SASS
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
def test_control_directive_in_nested_property
|
1207
|
+
assert_equal(<<CSS, render(<<SASS))
|
1208
|
+
foo {
|
1209
|
+
a-b: c; }
|
1210
|
+
CSS
|
1211
|
+
foo
|
1212
|
+
a:
|
1213
|
+
@if true
|
1214
|
+
b: c
|
1215
|
+
SASS
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
def test_interpolation
|
1219
|
+
assert_equal("a-1 {\n b-2-3: c-3; }\n", render(<<SASS))
|
1220
|
+
$a: 1
|
1221
|
+
$b: 2
|
1222
|
+
$c: 3
|
1223
|
+
a-\#{$a}
|
1224
|
+
b-\#{$b}-\#{$c}: c-\#{$a + $b}
|
1225
|
+
SASS
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
def test_complex_property_interpolation
|
1229
|
+
assert_equal(<<CSS, render(<<SASS))
|
1230
|
+
a-1 {
|
1231
|
+
b-2 3-fizzap18: c-3; }
|
1232
|
+
CSS
|
1233
|
+
$a: 1
|
1234
|
+
$b: 2
|
1235
|
+
$c: 3
|
1236
|
+
a-\#{$a}
|
1237
|
+
b-\#{$b $c}-\#{fizzap + ($c + 15)}: c-\#{$a + $b}
|
1238
|
+
SASS
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
def test_if_directive
|
1242
|
+
assert_equal("a {\n b: 1; }\n", render(<<SASS))
|
1243
|
+
$var: true
|
1244
|
+
a
|
1245
|
+
@if $var
|
1246
|
+
b: 1
|
1247
|
+
@if not $var
|
1248
|
+
b: 2
|
1249
|
+
SASS
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
def test_for
|
1253
|
+
assert_equal(<<CSS, render(<<SASS))
|
1254
|
+
a-0 {
|
1255
|
+
two-i: 0; }
|
1256
|
+
|
1257
|
+
a-1 {
|
1258
|
+
two-i: 2; }
|
1259
|
+
|
1260
|
+
a-2 {
|
1261
|
+
two-i: 4; }
|
1262
|
+
|
1263
|
+
a-3 {
|
1264
|
+
two-i: 6; }
|
1265
|
+
|
1266
|
+
b-1 {
|
1267
|
+
j-1: 0; }
|
1268
|
+
|
1269
|
+
b-2 {
|
1270
|
+
j-1: 1; }
|
1271
|
+
|
1272
|
+
b-3 {
|
1273
|
+
j-1: 2; }
|
1274
|
+
|
1275
|
+
b-4 {
|
1276
|
+
j-1: 3; }
|
1277
|
+
CSS
|
1278
|
+
$a: 3
|
1279
|
+
@for $i from 0 to $a + 1
|
1280
|
+
a-\#{$i}
|
1281
|
+
two-i: 2 * $i
|
1282
|
+
|
1283
|
+
@for $j from 1 through 4
|
1284
|
+
b-\#{$j}
|
1285
|
+
j-1: $j - 1
|
1286
|
+
SASS
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
def test_while
|
1290
|
+
assert_equal(<<CSS, render(<<SASS))
|
1291
|
+
a-5 {
|
1292
|
+
blooble: gloop; }
|
1293
|
+
|
1294
|
+
a-4 {
|
1295
|
+
blooble: gloop; }
|
1296
|
+
|
1297
|
+
a-3 {
|
1298
|
+
blooble: gloop; }
|
1299
|
+
|
1300
|
+
a-2 {
|
1301
|
+
blooble: gloop; }
|
1302
|
+
|
1303
|
+
a-1 {
|
1304
|
+
blooble: gloop; }
|
1305
|
+
CSS
|
1306
|
+
$a: 5
|
1307
|
+
@while $a != 0
|
1308
|
+
a-\#{$a}
|
1309
|
+
blooble: gloop
|
1310
|
+
$a: $a - 1
|
1311
|
+
SASS
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
def test_else
|
1315
|
+
assert_equal(<<CSS, render(<<SASS))
|
1316
|
+
a {
|
1317
|
+
t1: t;
|
1318
|
+
t2: t;
|
1319
|
+
t3: t;
|
1320
|
+
t4: t; }
|
1321
|
+
CSS
|
1322
|
+
a
|
1323
|
+
@if true
|
1324
|
+
t1: t
|
1325
|
+
@else
|
1326
|
+
f1: f
|
1327
|
+
|
1328
|
+
@if false
|
1329
|
+
f2: f
|
1330
|
+
@else
|
1331
|
+
t2: t
|
1332
|
+
|
1333
|
+
@if false
|
1334
|
+
f3: f1
|
1335
|
+
@else if 1 + 1 == 3
|
1336
|
+
f3: f2
|
1337
|
+
@else
|
1338
|
+
t3: t
|
1339
|
+
|
1340
|
+
@if false
|
1341
|
+
f4: f1
|
1342
|
+
@else if 1 + 1 == 2
|
1343
|
+
t4: t
|
1344
|
+
@else
|
1345
|
+
f4: f2
|
1346
|
+
|
1347
|
+
@if false
|
1348
|
+
f5: f1
|
1349
|
+
@else if false
|
1350
|
+
f5: f2
|
1351
|
+
SASS
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
def test_each
|
1355
|
+
assert_equal(<<CSS, render(<<SASS))
|
1356
|
+
a {
|
1357
|
+
b: 1px;
|
1358
|
+
b: 2px;
|
1359
|
+
b: 3px;
|
1360
|
+
b: 4px;
|
1361
|
+
c: foo;
|
1362
|
+
c: bar;
|
1363
|
+
c: baz;
|
1364
|
+
c: bang;
|
1365
|
+
d: blue; }
|
1366
|
+
CSS
|
1367
|
+
a
|
1368
|
+
@each $number in 1px 2px 3px 4px
|
1369
|
+
b: $number
|
1370
|
+
@each $str in foo, bar, baz, bang
|
1371
|
+
c: $str
|
1372
|
+
@each $single in blue
|
1373
|
+
d: $single
|
1374
|
+
SASS
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
def test_variable_reassignment
|
1378
|
+
assert_equal(<<CSS, render(<<SASS))
|
1379
|
+
a {
|
1380
|
+
b: 1;
|
1381
|
+
c: 2; }
|
1382
|
+
CSS
|
1383
|
+
$a: 1
|
1384
|
+
a
|
1385
|
+
b: $a
|
1386
|
+
$a: 2
|
1387
|
+
c: $a
|
1388
|
+
SASS
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
def test_variable_scope
|
1392
|
+
assert_equal(<<CSS, render(<<SASS))
|
1393
|
+
a {
|
1394
|
+
b-1: c;
|
1395
|
+
b-2: c;
|
1396
|
+
d: 12; }
|
1397
|
+
|
1398
|
+
b {
|
1399
|
+
d: 17; }
|
1400
|
+
CSS
|
1401
|
+
$i: 12
|
1402
|
+
a
|
1403
|
+
@for $i from 1 through 2
|
1404
|
+
b-\#{$i}: c
|
1405
|
+
d: $i
|
1406
|
+
|
1407
|
+
=foo
|
1408
|
+
$i: 17
|
1409
|
+
|
1410
|
+
b
|
1411
|
+
+foo
|
1412
|
+
d: $i
|
1413
|
+
SASS
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
def test_hyphen_underscore_insensitive_variables
|
1417
|
+
assert_equal(<<CSS, render(<<SASS))
|
1418
|
+
a {
|
1419
|
+
b: c; }
|
1420
|
+
|
1421
|
+
d {
|
1422
|
+
e: 13;
|
1423
|
+
f: foobar; }
|
1424
|
+
CSS
|
1425
|
+
$var-hyphen: 12
|
1426
|
+
$var_under: foo
|
1427
|
+
|
1428
|
+
a
|
1429
|
+
$var_hyphen: 1 + $var_hyphen
|
1430
|
+
$var-under: $var-under + bar
|
1431
|
+
b: c
|
1432
|
+
|
1433
|
+
d
|
1434
|
+
e: $var-hyphen
|
1435
|
+
f: $var_under
|
1436
|
+
SASS
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
def test_css_identifier_variable
|
1440
|
+
assert_equal(<<CSS, render(<<SASS))
|
1441
|
+
a {
|
1442
|
+
b: 12; }
|
1443
|
+
CSS
|
1444
|
+
$\\{foo\\(12\\): 12
|
1445
|
+
|
1446
|
+
a
|
1447
|
+
b: $\\{foo\\(12\\)
|
1448
|
+
SASS
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
def test_important
|
1452
|
+
assert_equal(<<CSS, render(<<SASS))
|
1453
|
+
a {
|
1454
|
+
b: 12px !important; }
|
1455
|
+
CSS
|
1456
|
+
$foo: 12px
|
1457
|
+
a
|
1458
|
+
b: $foo !important
|
1459
|
+
SASS
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
def test_argument_error
|
1463
|
+
assert_raise(Sass::SyntaxError) { render("a\n b: hsl(1)") }
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
def test_comments_at_the_top_of_a_document
|
1467
|
+
render(<<SASS)
|
1468
|
+
//
|
1469
|
+
This is a comment that
|
1470
|
+
continues to the second line.
|
1471
|
+
foo
|
1472
|
+
bar: baz
|
1473
|
+
SASS
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
def test_loud_comments_containing_a_comment_close
|
1477
|
+
actual_css = render(<<SASS)
|
1478
|
+
/*
|
1479
|
+
This is a comment that
|
1480
|
+
continues to the second line. */
|
1481
|
+
foo
|
1482
|
+
bar: baz
|
1483
|
+
SASS
|
1484
|
+
assert_equal(<<CSS, actual_css)
|
1485
|
+
/* This is a comment that
|
1486
|
+
* continues to the second line. */
|
1487
|
+
foo {
|
1488
|
+
bar: baz; }
|
1489
|
+
CSS
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
def test_loud_comments_with_starred_lines
|
1493
|
+
assert_equal(<<CSS, render(<<SASS))
|
1494
|
+
/* This is a comment that
|
1495
|
+
* continues to the second line.
|
1496
|
+
* And even to the third! */
|
1497
|
+
CSS
|
1498
|
+
/* This is a comment that
|
1499
|
+
* continues to the second line.
|
1500
|
+
* And even to the third!
|
1501
|
+
SASS
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
def test_loud_comments_with_no_space_after_starred_lines
|
1505
|
+
assert_equal(<<CSS, render(<<SASS))
|
1506
|
+
/*bip bop
|
1507
|
+
*beep boop
|
1508
|
+
*bap blimp */
|
1509
|
+
CSS
|
1510
|
+
/*bip bop
|
1511
|
+
*beep boop
|
1512
|
+
*bap blimp
|
1513
|
+
SASS
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
def test_comment_indentation_at_beginning_of_doc
|
1517
|
+
assert_equal <<CSS, render(<<SASS)
|
1518
|
+
/* foo
|
1519
|
+
* bar
|
1520
|
+
* baz */
|
1521
|
+
foo {
|
1522
|
+
a: b; }
|
1523
|
+
CSS
|
1524
|
+
/* foo
|
1525
|
+
bar
|
1526
|
+
baz
|
1527
|
+
foo
|
1528
|
+
a: b
|
1529
|
+
SASS
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
def test_unusual_comment_indentation
|
1533
|
+
assert_equal <<CSS, render(<<SASS)
|
1534
|
+
foo {
|
1535
|
+
/* foo
|
1536
|
+
* bar
|
1537
|
+
* baz */ }
|
1538
|
+
CSS
|
1539
|
+
foo
|
1540
|
+
/* foo
|
1541
|
+
bar
|
1542
|
+
baz
|
1543
|
+
SASS
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
def test_loud_comment_with_close
|
1547
|
+
assert_equal <<CSS, render(<<SASS)
|
1548
|
+
foo {
|
1549
|
+
/* foo
|
1550
|
+
* bar */ }
|
1551
|
+
CSS
|
1552
|
+
foo
|
1553
|
+
/* foo
|
1554
|
+
bar */
|
1555
|
+
SASS
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
def test_loud_comment_with_separate_line_close
|
1559
|
+
assert_equal <<CSS, render(<<SASS)
|
1560
|
+
foo {
|
1561
|
+
/* foo
|
1562
|
+
* bar
|
1563
|
+
*/ }
|
1564
|
+
CSS
|
1565
|
+
foo
|
1566
|
+
/* foo
|
1567
|
+
* bar
|
1568
|
+
*/
|
1569
|
+
SASS
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
def test_loud_comment_in_compressed_mode
|
1573
|
+
assert_equal <<CSS, render(<<SASS, :style => :compressed)
|
1574
|
+
foo{color:blue;/* foo
|
1575
|
+
* bar
|
1576
|
+
*/}
|
1577
|
+
CSS
|
1578
|
+
foo
|
1579
|
+
color: blue
|
1580
|
+
/*! foo
|
1581
|
+
* bar
|
1582
|
+
*/
|
1583
|
+
SASS
|
1584
|
+
end
|
1585
|
+
|
1586
|
+
def test_loud_comment_in_silent_comment
|
1587
|
+
silence_warnings {assert_equal <<CSS, render(<<SASS, :style => :compressed)}
|
1588
|
+
foo{color:blue;/* foo */
|
1589
|
+
/* bar */
|
1590
|
+
/* bip */
|
1591
|
+
/* baz */}
|
1592
|
+
CSS
|
1593
|
+
foo
|
1594
|
+
color: blue
|
1595
|
+
//! foo
|
1596
|
+
//! bar
|
1597
|
+
//!
|
1598
|
+
bip
|
1599
|
+
baz
|
1600
|
+
SASS
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
def test_loud_comment_is_evaluated
|
1604
|
+
assert_equal <<CSS, render(<<SASS)
|
1605
|
+
/* Hue: 327.216deg */
|
1606
|
+
CSS
|
1607
|
+
/*!
|
1608
|
+
Hue: \#{hue(#f836a0)}
|
1609
|
+
SASS
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
def test_attribute_selector_with_spaces
|
1613
|
+
assert_equal(<<CSS, render(<<SASS))
|
1614
|
+
a b[foo=bar] {
|
1615
|
+
c: d; }
|
1616
|
+
CSS
|
1617
|
+
a
|
1618
|
+
b[foo = bar]
|
1619
|
+
c: d
|
1620
|
+
SASS
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
def test_quoted_colon
|
1624
|
+
assert_equal(<<CSS, render(<<SASS))
|
1625
|
+
a b[foo="bar: baz"] {
|
1626
|
+
c: d; }
|
1627
|
+
CSS
|
1628
|
+
a
|
1629
|
+
b[foo="bar: baz"]
|
1630
|
+
c: d
|
1631
|
+
SASS
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
def test_quoted_comma
|
1635
|
+
assert_equal(<<CSS, render(<<SASS))
|
1636
|
+
a b[foo="bar, baz"] {
|
1637
|
+
c: d; }
|
1638
|
+
CSS
|
1639
|
+
a
|
1640
|
+
b[foo="bar, baz"]
|
1641
|
+
c: d
|
1642
|
+
SASS
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
def test_quoted_ampersand
|
1646
|
+
assert_equal(<<CSS, render(<<SASS))
|
1647
|
+
a b[foo="bar & baz"] {
|
1648
|
+
c: d; }
|
1649
|
+
CSS
|
1650
|
+
a
|
1651
|
+
b[foo="bar & baz"]
|
1652
|
+
c: d
|
1653
|
+
SASS
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
def test_empty_selector_warning
|
1657
|
+
assert_warning(<<END) {render("foo bar")}
|
1658
|
+
WARNING on line 1 of test_empty_selector_warning_inline.sass:
|
1659
|
+
This selector doesn't have any properties and will not be rendered.
|
1660
|
+
END
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
def test_root_level_pseudo_class_with_new_properties
|
1664
|
+
assert_equal(<<CSS, render(<<SASS, :property_syntax => :new))
|
1665
|
+
:focus {
|
1666
|
+
outline: 0; }
|
1667
|
+
CSS
|
1668
|
+
:focus
|
1669
|
+
outline: 0
|
1670
|
+
SASS
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
def test_pseudo_class_with_new_properties
|
1674
|
+
assert_equal(<<CSS, render(<<SASS, :property_syntax => :new))
|
1675
|
+
p :focus {
|
1676
|
+
outline: 0; }
|
1677
|
+
CSS
|
1678
|
+
p
|
1679
|
+
:focus
|
1680
|
+
outline: 0
|
1681
|
+
SASS
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
def test_nil_option
|
1685
|
+
assert_equal(<<CSS, render(<<SASS, :format => nil))
|
1686
|
+
foo {
|
1687
|
+
a: b; }
|
1688
|
+
CSS
|
1689
|
+
foo
|
1690
|
+
a: b
|
1691
|
+
SASS
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
def test_interpolation_in_raw_functions
|
1695
|
+
assert_equal(<<CSS, render(<<SASS))
|
1696
|
+
foo {
|
1697
|
+
filter: progid:Microsoft.foo.bar.Baz(flip=foobar, bang=#00ff00cc); }
|
1698
|
+
CSS
|
1699
|
+
foo
|
1700
|
+
filter: progid:Microsoft.foo.bar.Baz(flip=\#{foo + bar}, bang=#00ff00cc)
|
1701
|
+
SASS
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
# SassScript string behavior
|
1705
|
+
|
1706
|
+
def test_plus_preserves_quotedness
|
1707
|
+
assert_equal(<<CSS, render(<<SASS))
|
1708
|
+
foo {
|
1709
|
+
a: "foo1";
|
1710
|
+
b: "1foo";
|
1711
|
+
c: foo1;
|
1712
|
+
d: 1foo;
|
1713
|
+
e: "foobar";
|
1714
|
+
f: foobar; }
|
1715
|
+
CSS
|
1716
|
+
foo
|
1717
|
+
a: "foo" + 1
|
1718
|
+
b: 1 + "foo"
|
1719
|
+
c: foo + 1
|
1720
|
+
d: 1 + foo
|
1721
|
+
e: "foo" + bar
|
1722
|
+
f: foo + "bar"
|
1723
|
+
SASS
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
def test_colon_properties_preserve_quotedness
|
1727
|
+
assert_equal(<<CSS, render(<<SASS))
|
1728
|
+
foo {
|
1729
|
+
a: "foo";
|
1730
|
+
b: bar;
|
1731
|
+
c: "foo" bar;
|
1732
|
+
d: foo, "bar"; }
|
1733
|
+
CSS
|
1734
|
+
foo
|
1735
|
+
a: "foo"
|
1736
|
+
b: bar
|
1737
|
+
c: "foo" bar
|
1738
|
+
d: foo, "bar"
|
1739
|
+
SASS
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
def test_colon_variables_preserve_quotedness
|
1743
|
+
assert_equal(<<CSS, render(<<SASS))
|
1744
|
+
foo {
|
1745
|
+
a: "foo";
|
1746
|
+
b: bar; }
|
1747
|
+
CSS
|
1748
|
+
$a: "foo"
|
1749
|
+
$b: bar
|
1750
|
+
|
1751
|
+
foo
|
1752
|
+
a: $a
|
1753
|
+
b: $b
|
1754
|
+
SASS
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
def test_colon_args_preserve_quotedness
|
1758
|
+
assert_equal(<<CSS, render(<<SASS))
|
1759
|
+
foo {
|
1760
|
+
a: "foo";
|
1761
|
+
b: bar;
|
1762
|
+
c: "foo" bar;
|
1763
|
+
d: foo, "bar"; }
|
1764
|
+
CSS
|
1765
|
+
=foo($a: "foo", $b: bar, $c: "foo" bar, $d: (foo, "bar"))
|
1766
|
+
foo
|
1767
|
+
a: $a
|
1768
|
+
b: $b
|
1769
|
+
c: $c
|
1770
|
+
d: $d
|
1771
|
+
|
1772
|
+
+foo
|
1773
|
+
SASS
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
def test_interpolation_unquotes_strings
|
1777
|
+
assert_equal(<<CSS, render(<<SASS))
|
1778
|
+
.foo-bar {
|
1779
|
+
a: b; }
|
1780
|
+
CSS
|
1781
|
+
.foo-\#{"bar"}
|
1782
|
+
a: b
|
1783
|
+
SASS
|
1784
|
+
|
1785
|
+
assert_equal(<<CSS, render(<<SASS))
|
1786
|
+
.foo {
|
1787
|
+
a: b c; }
|
1788
|
+
CSS
|
1789
|
+
.foo
|
1790
|
+
a: b \#{"c"}
|
1791
|
+
SASS
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
def test_interpolation_unquotes_strings_in_vars
|
1795
|
+
assert_equal(<<CSS, render(<<SASS))
|
1796
|
+
.foo-bar {
|
1797
|
+
a: b; }
|
1798
|
+
CSS
|
1799
|
+
$var: "bar"
|
1800
|
+
|
1801
|
+
.foo-\#{$var}
|
1802
|
+
a: b
|
1803
|
+
SASS
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
def test_interpolation_doesnt_deep_unquote_strings
|
1807
|
+
assert_equal(<<CSS, render(<<SASS))
|
1808
|
+
.foo {
|
1809
|
+
a: "bar" "baz"; }
|
1810
|
+
CSS
|
1811
|
+
.foo
|
1812
|
+
a: \#{"bar" "baz"}
|
1813
|
+
SASS
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
def test_warn_directive
|
1817
|
+
expected_warning = <<EXPECTATION
|
1818
|
+
WARNING: this is a warning
|
1819
|
+
on line 4 of test_warn_directive_inline.sass
|
1820
|
+
|
1821
|
+
WARNING: this is a mixin warning
|
1822
|
+
on line 2 of test_warn_directive_inline.sass, in `foo'
|
1823
|
+
from line 7 of test_warn_directive_inline.sass
|
1824
|
+
EXPECTATION
|
1825
|
+
assert_warning expected_warning do
|
1826
|
+
assert_equal <<CSS, render(<<SASS)
|
1827
|
+
bar {
|
1828
|
+
c: d; }
|
1829
|
+
CSS
|
1830
|
+
=foo
|
1831
|
+
@warn "this is a mixin warning"
|
1832
|
+
|
1833
|
+
@warn "this is a warning"
|
1834
|
+
bar
|
1835
|
+
c: d
|
1836
|
+
+foo
|
1837
|
+
SASS
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
def test_warn_directive_when_quiet
|
1842
|
+
assert_warning "" do
|
1843
|
+
assert_equal <<CSS, render(<<SASS, :quiet => true)
|
1844
|
+
CSS
|
1845
|
+
@warn "this is a warning"
|
1846
|
+
SASS
|
1847
|
+
end
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
def test_warn_with_imports
|
1851
|
+
expected_warning = <<WARN
|
1852
|
+
WARNING: In the main file
|
1853
|
+
on line 1 of #{File.dirname(__FILE__)}/templates/warn.sass
|
1854
|
+
|
1855
|
+
WARNING: Imported
|
1856
|
+
on line 1 of #{File.dirname(__FILE__)}/templates/warn_imported.sass
|
1857
|
+
from line 2 of #{File.dirname(__FILE__)}/templates/warn.sass
|
1858
|
+
|
1859
|
+
WARNING: In an imported mixin
|
1860
|
+
on line 4 of #{File.dirname(__FILE__)}/templates/warn_imported.sass, in `emits-a-warning'
|
1861
|
+
from line 3 of #{File.dirname(__FILE__)}/templates/warn.sass
|
1862
|
+
WARN
|
1863
|
+
assert_warning expected_warning do
|
1864
|
+
renders_correctly "warn", :style => :compact, :load_paths => [File.dirname(__FILE__) + "/templates"]
|
1865
|
+
end
|
1866
|
+
end
|
1867
|
+
|
1868
|
+
def test_media_bubbling
|
1869
|
+
assert_equal <<CSS, render(<<SASS)
|
1870
|
+
.foo {
|
1871
|
+
a: b; }
|
1872
|
+
@media bar {
|
1873
|
+
.foo {
|
1874
|
+
c: d; } }
|
1875
|
+
.foo .baz {
|
1876
|
+
e: f; }
|
1877
|
+
@media bip {
|
1878
|
+
.foo .baz {
|
1879
|
+
g: h; } }
|
1880
|
+
|
1881
|
+
.other {
|
1882
|
+
i: j; }
|
1883
|
+
CSS
|
1884
|
+
.foo
|
1885
|
+
a: b
|
1886
|
+
@media bar
|
1887
|
+
c: d
|
1888
|
+
.baz
|
1889
|
+
e: f
|
1890
|
+
@media bip
|
1891
|
+
g: h
|
1892
|
+
|
1893
|
+
.other
|
1894
|
+
i: j
|
1895
|
+
SASS
|
1896
|
+
|
1897
|
+
assert_equal <<CSS, render(<<SASS, :style => :compact)
|
1898
|
+
.foo { a: b; }
|
1899
|
+
@media bar { .foo { c: d; } }
|
1900
|
+
.foo .baz { e: f; }
|
1901
|
+
@media bip { .foo .baz { g: h; } }
|
1902
|
+
|
1903
|
+
.other { i: j; }
|
1904
|
+
CSS
|
1905
|
+
.foo
|
1906
|
+
a: b
|
1907
|
+
@media bar
|
1908
|
+
c: d
|
1909
|
+
.baz
|
1910
|
+
e: f
|
1911
|
+
@media bip
|
1912
|
+
g: h
|
1913
|
+
|
1914
|
+
.other
|
1915
|
+
i: j
|
1916
|
+
SASS
|
1917
|
+
|
1918
|
+
assert_equal <<CSS, render(<<SASS, :style => :expanded)
|
1919
|
+
.foo {
|
1920
|
+
a: b;
|
1921
|
+
}
|
1922
|
+
@media bar {
|
1923
|
+
.foo {
|
1924
|
+
c: d;
|
1925
|
+
}
|
1926
|
+
}
|
1927
|
+
.foo .baz {
|
1928
|
+
e: f;
|
1929
|
+
}
|
1930
|
+
@media bip {
|
1931
|
+
.foo .baz {
|
1932
|
+
g: h;
|
1933
|
+
}
|
1934
|
+
}
|
1935
|
+
|
1936
|
+
.other {
|
1937
|
+
i: j;
|
1938
|
+
}
|
1939
|
+
CSS
|
1940
|
+
.foo
|
1941
|
+
a: b
|
1942
|
+
@media bar
|
1943
|
+
c: d
|
1944
|
+
.baz
|
1945
|
+
e: f
|
1946
|
+
@media bip
|
1947
|
+
g: h
|
1948
|
+
|
1949
|
+
.other
|
1950
|
+
i: j
|
1951
|
+
SASS
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
def test_double_media_bubbling
|
1955
|
+
assert_equal <<CSS, render(<<SASS)
|
1956
|
+
@media bar and baz {
|
1957
|
+
.foo {
|
1958
|
+
c: d; } }
|
1959
|
+
CSS
|
1960
|
+
@media bar
|
1961
|
+
@media baz
|
1962
|
+
.foo
|
1963
|
+
c: d
|
1964
|
+
SASS
|
1965
|
+
|
1966
|
+
assert_equal <<CSS, render(<<SASS)
|
1967
|
+
@media bar {
|
1968
|
+
.foo {
|
1969
|
+
a: b; } }
|
1970
|
+
@media bar and baz {
|
1971
|
+
.foo {
|
1972
|
+
c: d; } }
|
1973
|
+
CSS
|
1974
|
+
.foo
|
1975
|
+
@media bar
|
1976
|
+
a: b
|
1977
|
+
@media baz
|
1978
|
+
c: d
|
1979
|
+
SASS
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
def test_rule_media_rule_bubbling
|
1983
|
+
assert_equal <<CSS, render(<<SASS)
|
1984
|
+
@media bar {
|
1985
|
+
.foo {
|
1986
|
+
a: b;
|
1987
|
+
e: f; }
|
1988
|
+
.foo .baz {
|
1989
|
+
c: d; } }
|
1990
|
+
CSS
|
1991
|
+
.foo
|
1992
|
+
@media bar
|
1993
|
+
a: b
|
1994
|
+
.baz
|
1995
|
+
c: d
|
1996
|
+
e: f
|
1997
|
+
SASS
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
def test_nested_media_around_properties
|
2001
|
+
assert_equal <<CSS, render(<<SASS)
|
2002
|
+
.outside {
|
2003
|
+
color: red;
|
2004
|
+
background: blue; }
|
2005
|
+
@media print {
|
2006
|
+
.outside {
|
2007
|
+
color: black; } }
|
2008
|
+
@media print and nested {
|
2009
|
+
.outside .inside {
|
2010
|
+
border: 1px solid black; } }
|
2011
|
+
.outside .middle {
|
2012
|
+
display: block; }
|
2013
|
+
CSS
|
2014
|
+
.outside
|
2015
|
+
color: red
|
2016
|
+
@media print
|
2017
|
+
color: black
|
2018
|
+
.inside
|
2019
|
+
@media nested
|
2020
|
+
border: 1px solid black
|
2021
|
+
background: blue
|
2022
|
+
.middle
|
2023
|
+
display: block
|
2024
|
+
SASS
|
2025
|
+
end
|
2026
|
+
|
2027
|
+
def test_media_with_parent_references
|
2028
|
+
sass_str = <<SASS
|
2029
|
+
.outside
|
2030
|
+
@media print
|
2031
|
+
&.inside
|
2032
|
+
border: 1px solid black
|
2033
|
+
SASS
|
2034
|
+
css_str = <<CSS
|
2035
|
+
@media print {
|
2036
|
+
.outside.inside {
|
2037
|
+
border: 1px solid black; } }
|
2038
|
+
CSS
|
2039
|
+
assert_equal css_str, render(sass_str)
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
# Regression tests
|
2043
|
+
|
2044
|
+
def test_interpolated_comment_in_mixin
|
2045
|
+
assert_equal <<CSS, render(<<SASS)
|
2046
|
+
/* color: red */
|
2047
|
+
.foo {
|
2048
|
+
color: red; }
|
2049
|
+
|
2050
|
+
/* color: blue */
|
2051
|
+
.foo {
|
2052
|
+
color: blue; }
|
2053
|
+
|
2054
|
+
/* color: green */
|
2055
|
+
.foo {
|
2056
|
+
color: green; }
|
2057
|
+
CSS
|
2058
|
+
=foo($var)
|
2059
|
+
/*! color: \#{$var}
|
2060
|
+
.foo
|
2061
|
+
color: $var
|
2062
|
+
|
2063
|
+
+foo(red)
|
2064
|
+
+foo(blue)
|
2065
|
+
+foo(green)
|
2066
|
+
SASS
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
def test_parens_in_mixins
|
2070
|
+
assert_equal(<<CSS, render(<<SASS))
|
2071
|
+
.foo {
|
2072
|
+
color: #01ff7f;
|
2073
|
+
background-color: #000102; }
|
2074
|
+
CSS
|
2075
|
+
=foo($c1, $c2: rgb(0, 1, 2))
|
2076
|
+
color: $c1
|
2077
|
+
background-color: $c2
|
2078
|
+
|
2079
|
+
.foo
|
2080
|
+
+foo(rgb(1,255,127))
|
2081
|
+
SASS
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
def test_comment_beneath_prop
|
2085
|
+
assert_equal(<<RESULT, render(<<SOURCE))
|
2086
|
+
.box {
|
2087
|
+
border-style: solid; }
|
2088
|
+
RESULT
|
2089
|
+
.box
|
2090
|
+
:border
|
2091
|
+
//:color black
|
2092
|
+
:style solid
|
2093
|
+
SOURCE
|
2094
|
+
|
2095
|
+
assert_equal(<<RESULT, render(<<SOURCE))
|
2096
|
+
.box {
|
2097
|
+
/* :color black */
|
2098
|
+
border-style: solid; }
|
2099
|
+
RESULT
|
2100
|
+
.box
|
2101
|
+
:border
|
2102
|
+
/* :color black
|
2103
|
+
:style solid
|
2104
|
+
SOURCE
|
2105
|
+
|
2106
|
+
assert_equal(<<RESULT, render(<<SOURCE, :style => :compressed))
|
2107
|
+
.box{border-style:solid}
|
2108
|
+
RESULT
|
2109
|
+
.box
|
2110
|
+
:border
|
2111
|
+
/*:color black
|
2112
|
+
:style solid
|
2113
|
+
SOURCE
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
def test_compressed_comment_beneath_directive
|
2117
|
+
assert_equal(<<RESULT, render(<<SOURCE, :style => :compressed))
|
2118
|
+
@foo{a:b}
|
2119
|
+
RESULT
|
2120
|
+
@foo
|
2121
|
+
a: b
|
2122
|
+
/*b: c
|
2123
|
+
SOURCE
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
def test_comment_with_crazy_indentation
|
2127
|
+
assert_equal(<<CSS, render(<<SASS))
|
2128
|
+
/* This is a loud comment:
|
2129
|
+
* Where the indentation is wonky. */
|
2130
|
+
.comment {
|
2131
|
+
width: 1px; }
|
2132
|
+
CSS
|
2133
|
+
/*
|
2134
|
+
This is a loud comment:
|
2135
|
+
Where the indentation is wonky.
|
2136
|
+
//
|
2137
|
+
This is a silent comment:
|
2138
|
+
Where the indentation is wonky.
|
2139
|
+
.comment
|
2140
|
+
width: 1px
|
2141
|
+
SASS
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
def test_plus_with_space
|
2145
|
+
assert_equal(<<CSS, render(<<SASS))
|
2146
|
+
a + b {
|
2147
|
+
color: green; }
|
2148
|
+
CSS
|
2149
|
+
a
|
2150
|
+
+ b
|
2151
|
+
color: green
|
2152
|
+
SASS
|
2153
|
+
end
|
2154
|
+
|
2155
|
+
def test_empty_line_comment
|
2156
|
+
assert_equal(<<CSS, render(<<SASS))
|
2157
|
+
/* Foo
|
2158
|
+
*
|
2159
|
+
* Bar */
|
2160
|
+
CSS
|
2161
|
+
/*
|
2162
|
+
Foo
|
2163
|
+
|
2164
|
+
Bar
|
2165
|
+
SASS
|
2166
|
+
end
|
2167
|
+
|
2168
|
+
def test_empty_comment
|
2169
|
+
assert_equal(<<CSS, render(<<SASS))
|
2170
|
+
/* */
|
2171
|
+
a {
|
2172
|
+
/* */
|
2173
|
+
b: c; }
|
2174
|
+
CSS
|
2175
|
+
/*
|
2176
|
+
a
|
2177
|
+
/*
|
2178
|
+
b: c
|
2179
|
+
SASS
|
2180
|
+
end
|
2181
|
+
|
2182
|
+
def test_options_available_in_environment
|
2183
|
+
assert_equal(<<CSS, render(<<SASS))
|
2184
|
+
a {
|
2185
|
+
b: nested; }
|
2186
|
+
CSS
|
2187
|
+
a
|
2188
|
+
b: option("style")
|
2189
|
+
SASS
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
def test_mixin_no_arg_error
|
2193
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "($bar,": expected variable (e.g. $foo), was ")"') do
|
2194
|
+
render(<<SASS)
|
2195
|
+
=foo($bar,)
|
2196
|
+
bip: bap
|
2197
|
+
SASS
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
def test_import_with_commas_in_url
|
2202
|
+
assert_equal <<CSS, render(<<SASS)
|
2203
|
+
@import url(foo.css?bar,baz);
|
2204
|
+
CSS
|
2205
|
+
@import url(foo.css?bar,baz)
|
2206
|
+
SASS
|
2207
|
+
end
|
2208
|
+
|
2209
|
+
def test_silent_comment_in_prop_val_after_important
|
2210
|
+
assert_equal(<<CSS, render(<<SASS))
|
2211
|
+
.advanced {
|
2212
|
+
display: none !important; }
|
2213
|
+
CSS
|
2214
|
+
.advanced
|
2215
|
+
display: none !important // yeah, yeah. it's not really a style anyway.
|
2216
|
+
SASS
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
def test_mixin_with_keyword_args
|
2220
|
+
assert_equal <<CSS, render(<<SASS)
|
2221
|
+
.mixed {
|
2222
|
+
required: foo;
|
2223
|
+
arg1: default-val1;
|
2224
|
+
arg2: non-default-val2; }
|
2225
|
+
CSS
|
2226
|
+
=a-mixin($required, $arg1: default-val1, $arg2: default-val2)
|
2227
|
+
required: $required
|
2228
|
+
arg1: $arg1
|
2229
|
+
arg2: $arg2
|
2230
|
+
.mixed
|
2231
|
+
+a-mixin(foo, $arg2: non-default-val2)
|
2232
|
+
SASS
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
def test_mixin_with_keyword_arg_variable_value
|
2236
|
+
assert_equal <<CSS, render(<<SASS)
|
2237
|
+
.mixed {
|
2238
|
+
required: foo;
|
2239
|
+
arg1: default-val1;
|
2240
|
+
arg2: a-value; }
|
2241
|
+
CSS
|
2242
|
+
=a-mixin($required, $arg1: default-val1, $arg2: default-val2)
|
2243
|
+
required: $required
|
2244
|
+
arg1: $arg1
|
2245
|
+
arg2: $arg2
|
2246
|
+
.mixed
|
2247
|
+
$a-value: a-value
|
2248
|
+
+a-mixin(foo, $arg2: $a-value)
|
2249
|
+
SASS
|
2250
|
+
end
|
2251
|
+
|
2252
|
+
def test_mixin_keyword_args_handle_variable_underscore_dash_equivalence
|
2253
|
+
assert_equal <<CSS, render(<<SASS)
|
2254
|
+
.mixed {
|
2255
|
+
required: foo;
|
2256
|
+
arg1: non-default-val1;
|
2257
|
+
arg2: non-default-val2; }
|
2258
|
+
CSS
|
2259
|
+
=a-mixin($required, $arg-1: default-val1, $arg_2: default-val2)
|
2260
|
+
required: $required
|
2261
|
+
arg1: $arg_1
|
2262
|
+
arg2: $arg-2
|
2263
|
+
.mixed
|
2264
|
+
+a-mixin(foo, $arg-2: non-default-val2, $arg_1: non-default-val1)
|
2265
|
+
SASS
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
def test_passing_required_args_as_a_keyword_arg
|
2269
|
+
assert_equal <<CSS, render(<<SASS)
|
2270
|
+
.mixed {
|
2271
|
+
required: foo;
|
2272
|
+
arg1: default-val1;
|
2273
|
+
arg2: default-val2; }
|
2274
|
+
CSS
|
2275
|
+
=a-mixin($required, $arg1: default-val1, $arg2: default-val2)
|
2276
|
+
required: $required
|
2277
|
+
arg1: $arg1
|
2278
|
+
arg2: $arg2
|
2279
|
+
.mixed
|
2280
|
+
+a-mixin($required: foo)
|
2281
|
+
SASS
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
def test_passing_all_as_keyword_args_in_opposite_order
|
2285
|
+
assert_equal <<CSS, render(<<SASS)
|
2286
|
+
.mixed {
|
2287
|
+
required: foo;
|
2288
|
+
arg1: non-default-val1;
|
2289
|
+
arg2: non-default-val2; }
|
2290
|
+
CSS
|
2291
|
+
=a-mixin($required, $arg1: default-val1, $arg2: default-val2)
|
2292
|
+
required: $required
|
2293
|
+
arg1: $arg1
|
2294
|
+
arg2: $arg2
|
2295
|
+
.mixed
|
2296
|
+
+a-mixin($arg2: non-default-val2, $arg1: non-default-val1, $required: foo)
|
2297
|
+
SASS
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
def test_function_output_with_comma
|
2301
|
+
assert_equal <<CSS, render(<<SASS)
|
2302
|
+
foo {
|
2303
|
+
a: b(c), d(e); }
|
2304
|
+
CSS
|
2305
|
+
foo
|
2306
|
+
a: b(c), d(e)
|
2307
|
+
SASS
|
2308
|
+
end
|
2309
|
+
|
2310
|
+
def test_interpolation_with_comma
|
2311
|
+
assert_equal <<CSS, render(<<SASS)
|
2312
|
+
foo {
|
2313
|
+
a: foo, bar; }
|
2314
|
+
CSS
|
2315
|
+
$foo: foo
|
2316
|
+
foo
|
2317
|
+
a: \#{$foo}, bar
|
2318
|
+
SASS
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
def test_string_interpolation_with_comma
|
2322
|
+
assert_equal <<CSS, render(<<SASS)
|
2323
|
+
foo {
|
2324
|
+
a: "bip foo bap", bar; }
|
2325
|
+
CSS
|
2326
|
+
$foo: foo
|
2327
|
+
foo
|
2328
|
+
a: "bip \#{$foo} bap", bar
|
2329
|
+
SASS
|
2330
|
+
end
|
2331
|
+
|
2332
|
+
def test_unknown_directive
|
2333
|
+
assert_equal <<CSS, render(<<SASS)
|
2334
|
+
@baz {
|
2335
|
+
c: d; }
|
2336
|
+
CSS
|
2337
|
+
@baz
|
2338
|
+
c: d
|
2339
|
+
SASS
|
2340
|
+
end
|
2341
|
+
|
2342
|
+
def test_comment_interpolation_warning
|
2343
|
+
assert_warning(<<END) {render("/* \#{foo}")}
|
2344
|
+
WARNING:
|
2345
|
+
On line 1 of 'test_comment_interpolation_warning_inline.sass'
|
2346
|
+
Comments will evaluate the contents of interpolations (\#{ ... }) in Sass 3.2.
|
2347
|
+
Please escape the interpolation by adding a backslash before the `#`.
|
2348
|
+
END
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
def test_loud_silent_comment_warning
|
2352
|
+
assert_warning(<<END) {render("//! \#{foo}")}
|
2353
|
+
WARNING:
|
2354
|
+
On line 1 of 'test_loud_silent_comment_warning_inline.sass'
|
2355
|
+
`//` comments will no longer be allowed to use the `!` flag in Sass 3.2.
|
2356
|
+
Please change to `/*` comments.
|
2357
|
+
END
|
2358
|
+
end
|
2359
|
+
|
2360
|
+
def test_loud_comment_interpolations_can_be_escaped
|
2361
|
+
assert_equal <<CSS, render(<<SASS)
|
2362
|
+
/* \#{foo} */
|
2363
|
+
CSS
|
2364
|
+
/* \\\#{foo}
|
2365
|
+
SASS
|
2366
|
+
assert_equal <<CSS, render(<<SASS)
|
2367
|
+
/* \#{foo} */
|
2368
|
+
CSS
|
2369
|
+
/*! \\\#{foo}
|
2370
|
+
SASS
|
2371
|
+
end
|
2372
|
+
|
2373
|
+
# Encodings
|
2374
|
+
|
2375
|
+
unless Sass::Util.ruby1_8?
|
2376
|
+
def test_encoding_error
|
2377
|
+
render("foo\nbar\nb\xFEaz".force_encoding("utf-8"))
|
2378
|
+
assert(false, "Expected exception")
|
2379
|
+
rescue Sass::SyntaxError => e
|
2380
|
+
assert_equal(3, e.sass_line)
|
2381
|
+
assert_equal('Invalid UTF-8 character "\xFE"', e.message)
|
2382
|
+
end
|
2383
|
+
|
2384
|
+
def test_ascii_incompatible_encoding_error
|
2385
|
+
template = "foo\nbar\nb_z".encode("utf-16le")
|
2386
|
+
template[9] = "\xFE".force_encoding("utf-16le")
|
2387
|
+
render(template)
|
2388
|
+
assert(false, "Expected exception")
|
2389
|
+
rescue Sass::SyntaxError => e
|
2390
|
+
assert_equal(3, e.sass_line)
|
2391
|
+
assert_equal('Invalid UTF-16LE character "\xFE"', e.message)
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
def test_same_charset_as_encoding
|
2395
|
+
assert_renders_encoded(<<CSS, <<SASS)
|
2396
|
+
@charset "UTF-8";
|
2397
|
+
fóó {
|
2398
|
+
a: b; }
|
2399
|
+
CSS
|
2400
|
+
@charset "utf-8"
|
2401
|
+
fóó
|
2402
|
+
a: b
|
2403
|
+
SASS
|
2404
|
+
end
|
2405
|
+
|
2406
|
+
def test_different_charset_than_encoding
|
2407
|
+
assert_renders_encoded(<<CSS.force_encoding("IBM866"), <<SASS)
|
2408
|
+
@charset "IBM866";
|
2409
|
+
fóó {
|
2410
|
+
a: b; }
|
2411
|
+
CSS
|
2412
|
+
@charset "ibm866"
|
2413
|
+
fóó
|
2414
|
+
a: b
|
2415
|
+
SASS
|
2416
|
+
end
|
2417
|
+
|
2418
|
+
def test_different_encoding_than_system
|
2419
|
+
assert_renders_encoded(<<CSS.encode("IBM866"), <<SASS.encode("IBM866"))
|
2420
|
+
@charset "IBM866";
|
2421
|
+
тАЬ {
|
2422
|
+
a: b; }
|
2423
|
+
CSS
|
2424
|
+
тАЬ
|
2425
|
+
a: b
|
2426
|
+
SASS
|
2427
|
+
end
|
2428
|
+
|
2429
|
+
def test_multibyte_charset
|
2430
|
+
assert_renders_encoded(<<CSS.encode("UTF-16LE"), <<SASS.encode("UTF-16LE").force_encoding("UTF-8"))
|
2431
|
+
@charset "UTF-16LE";
|
2432
|
+
fóó {
|
2433
|
+
a: b; }
|
2434
|
+
CSS
|
2435
|
+
@charset "utf-16le"
|
2436
|
+
fóó
|
2437
|
+
a: b
|
2438
|
+
SASS
|
2439
|
+
end
|
2440
|
+
|
2441
|
+
def test_multibyte_charset_without_endian_specifier
|
2442
|
+
assert_renders_encoded(<<CSS.encode("UTF-32BE"), <<SASS.encode("UTF-32BE").force_encoding("UTF-8"))
|
2443
|
+
@charset "UTF-32BE";
|
2444
|
+
fóó {
|
2445
|
+
a: b; }
|
2446
|
+
CSS
|
2447
|
+
@charset "utf-32"
|
2448
|
+
fóó
|
2449
|
+
a: b
|
2450
|
+
SASS
|
2451
|
+
end
|
2452
|
+
|
2453
|
+
def test_utf8_bom
|
2454
|
+
assert_renders_encoded(<<CSS, <<SASS.force_encoding("BINARY"))
|
2455
|
+
@charset "UTF-8";
|
2456
|
+
fóó {
|
2457
|
+
a: b; }
|
2458
|
+
CSS
|
2459
|
+
\uFEFFfóó
|
2460
|
+
a: b
|
2461
|
+
SASS
|
2462
|
+
end
|
2463
|
+
|
2464
|
+
def test_utf16le_bom
|
2465
|
+
assert_renders_encoded(<<CSS.encode("UTF-16LE"), <<SASS.encode("UTF-16LE").force_encoding("BINARY"))
|
2466
|
+
@charset "UTF-16LE";
|
2467
|
+
fóó {
|
2468
|
+
a: b; }
|
2469
|
+
CSS
|
2470
|
+
\uFEFFfóó
|
2471
|
+
a: b
|
2472
|
+
SASS
|
2473
|
+
end
|
2474
|
+
|
2475
|
+
def test_utf32be_bom
|
2476
|
+
assert_renders_encoded(<<CSS.encode("UTF-32BE"), <<SASS.encode("UTF-32BE").force_encoding("BINARY"))
|
2477
|
+
@charset "UTF-32BE";
|
2478
|
+
fóó {
|
2479
|
+
a: b; }
|
2480
|
+
CSS
|
2481
|
+
\uFEFFfóó
|
2482
|
+
a: b
|
2483
|
+
SASS
|
2484
|
+
end
|
2485
|
+
end
|
2486
|
+
|
2487
|
+
def test_original_filename_set
|
2488
|
+
importer = MockImporter.new
|
2489
|
+
importer.add_import("imported", "div{color:red}")
|
2490
|
+
|
2491
|
+
original_filename = filename_for_test
|
2492
|
+
engine = Sass::Engine.new('@import "imported"; div{color:blue}',
|
2493
|
+
:filename => original_filename, :load_paths => [importer], :syntax => :scss)
|
2494
|
+
engine.render
|
2495
|
+
|
2496
|
+
assert_equal original_filename, engine.options[:original_filename]
|
2497
|
+
assert_equal original_filename, importer.engine("imported").options[:original_filename]
|
2498
|
+
end
|
2499
|
+
|
2500
|
+
def test_deprecated_PRECISION
|
2501
|
+
assert_warning(<<END) {assert_equal 1000.0, Sass::Script::Number::PRECISION}
|
2502
|
+
Sass::Script::Number::PRECISION is deprecated and will be removed in a future release. Use Sass::Script::Number.precision_factor instead.
|
2503
|
+
END
|
2504
|
+
end
|
2505
|
+
def test_changing_precision
|
2506
|
+
begin
|
2507
|
+
Sass::Script::Number.precision = 8
|
2508
|
+
assert_equal <<CSS, render(<<SASS)
|
2509
|
+
div {
|
2510
|
+
maximum: 1.00000001;
|
2511
|
+
too-much: 1.0; }
|
2512
|
+
CSS
|
2513
|
+
div
|
2514
|
+
maximum : 1.00000001
|
2515
|
+
too-much: 1.000000001
|
2516
|
+
SASS
|
2517
|
+
ensure
|
2518
|
+
Sass::Script::Number.precision = 3
|
2519
|
+
end
|
2520
|
+
end
|
2521
|
+
|
2522
|
+
private
|
2523
|
+
|
2524
|
+
def assert_hash_has(hash, expected)
|
2525
|
+
expected.each {|k, v| assert_equal(v, hash[k])}
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
def assert_renders_encoded(css, sass)
|
2529
|
+
result = render(sass)
|
2530
|
+
assert_equal css.encoding, result.encoding
|
2531
|
+
assert_equal css, result
|
2532
|
+
end
|
2533
|
+
|
2534
|
+
def render(sass, options = {})
|
2535
|
+
munge_filename options
|
2536
|
+
Sass::Engine.new(sass, options).render
|
2537
|
+
end
|
2538
|
+
|
2539
|
+
def renders_correctly(name, options={})
|
2540
|
+
sass_file = load_file(name, "sass")
|
2541
|
+
css_file = load_file(name, "css")
|
2542
|
+
options[:filename] ||= filename(name, "sass")
|
2543
|
+
options[:syntax] ||= :sass
|
2544
|
+
options[:css_filename] ||= filename(name, "css")
|
2545
|
+
css_result = Sass::Engine.new(sass_file, options).render
|
2546
|
+
assert_equal css_file, css_result
|
2547
|
+
end
|
2548
|
+
|
2549
|
+
def load_file(name, type = "sass")
|
2550
|
+
@result = ''
|
2551
|
+
File.new(filename(name, type)).each_line { |l| @result += l }
|
2552
|
+
@result
|
2553
|
+
end
|
2554
|
+
|
2555
|
+
def filename(name, type)
|
2556
|
+
File.dirname(__FILE__) + "/#{type == 'sass' ? 'templates' : 'results'}/#{name}.#{type}"
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
def sassc_path(template)
|
2560
|
+
sassc_path = File.join(File.dirname(__FILE__) + "/templates/#{template}.sass")
|
2561
|
+
engine = Sass::Engine.new("", :filename => sassc_path,
|
2562
|
+
:importer => Sass::Importers::Filesystem.new("."))
|
2563
|
+
key = engine.send(:sassc_key)
|
2564
|
+
File.join(engine.options[:cache_location], key)
|
2565
|
+
end
|
2566
|
+
end
|
2567
|
+
|