# -*- encoding: utf-8 -*- # stub: unobtrusive_flash 0.0.1 ruby lib Gem::Specification.new do |s| s.name = "unobtrusive_flash".freeze s.version = "0.0.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Leonid Shevtsov".freeze] s.date = "2010-11-18" s.description = "# Unobtrusive flash messages for Rails\n\nEver got tired of pages that can't be cached because they contain flash messages?\n\nEver got tired of writing custom code to handle flash messages passed in AJAX responses?\n\nHere comes the solution.\n\n`unobtrusive_flash` takes your flash messages for the backend and automagically passes them to the frontend via\nHTTP cookies. This works with both regular page loads and AJAX requests, does not tamper with the page body and requires\nabout 3 extra lines of code in your app - how's that for unobtrusive?\n\nYou can pass up to 4K of text into flash this way, and you don't need to worry about cookie size since they are\ncleared immediately upon rendering.\n\nTested and fully functional in: \n\n* Internet Explorer 8\n* Firefox 4b7\n* Chrome 7\n* Safari 5\n* Opera 10.6\n* *please let me know if it works in firefox 3 and ie 6, 7*\n\n## Requirements\n\n* Rails 2.3 or 3\n* jQuery (maybe I'll make it agnostic in the future)\n\n## Usage\n\n1. Add the gem to your Rails app.\n2. Run `script/generate unobtrusive_flash` or `rails g unobtrusive_flash:install`\n3. Add the following to the controllers that generate flash messages (or better, to the `ApplicationController`):\n\n after_filter :prepare_unobtrusive_flash\n \n4. Include `unobtrusive_flash.css` and `unobtrusive_flash.js` in your layouts. No custom markup is needed.\n5. Remove existing flash rendering code from your layouts.\n6. That's all! You can also edit the generated CSS/JS to your liking.\n\n* * *\n\n© 2010 Leonid Shevtsov, released under the MIT license\n".freeze s.email = "leonid@shevtsov.me".freeze s.files = ["README.markdown".freeze, "generators/unobtrusive_flash/unobtrusive_flash_generator.rb".freeze, "lib/generators/templates/unobtrusive_flash.css".freeze, "lib/generators/templates/unobtrusive_flash.js".freeze, "lib/generators/unobtrusive_flash/install/install_generator.rb".freeze, "lib/unobtrusive_flash.rb".freeze, "lib/unobtrusive_flash/railtie.rb".freeze, "rails/init.rb".freeze] s.homepage = "http://github.com/leonid-shevtsov/unobtrusive_flash".freeze s.rubygems_version = "3.5.10".freeze s.summary = "Unobtrusive flash messages for rails".freeze end