midas-flash_growler 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -14,6 +14,7 @@ rails_generators/flash_growler_assets/templates/error.png
14
14
  rails_generators/flash_growler_assets/templates/guilded.flash_growler.js
15
15
  rails_generators/flash_growler_assets/templates/info.png
16
16
  rails_generators/flash_growler_assets/templates/jquery-growler-0.1.js
17
+ rails_generators/flash_growler_assets/templates/jquery-growler-0.1.min.js
17
18
  script/console
18
19
  script/destroy
19
20
  script/generate
data/README.rdoc CHANGED
@@ -1,32 +1,63 @@
1
1
  = flash_growler
2
2
 
3
- * http://github.com/midas/flash_growler/tree/master
3
+ http://github.com/midas/flash_growler/tree/master
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- A Guilded component that displays Rails flash messages in an interface similar to OS/X's growler.
7
+ A Guilded (http://github.com/midas/guilded/tree/master) component that displays Rails flash messages in an
8
+ interface similar to OS/X's growler.
8
9
 
9
- == FEATURES/PROBLEMS:
10
+ == FEATURES:
10
11
 
12
+ Looks for flash messages in flash[:error], flash[:warning] and flash[:notice] and displays a message that will
13
+ slide out of view if JavaScript is enabled.
11
14
 
12
15
 
13
- == SYNOPSIS:
16
+ == INSTALL:
14
17
 
18
+ sudo gem install midas-flash_growler
15
19
 
16
20
 
17
- == REQUIREMENTS:
21
+ == USE:
18
22
 
19
- * guilded
23
+ Include the gems in your Rails project:
20
24
 
21
- == INSTALL:
25
+ config.gem 'midas-guilded', :version => '0.0.5', :lib => 'guilded', :source => 'http://gems.github.com'
26
+ config.gem 'midas-flash_growler', :version => '1.0.2', :lib => 'flash_growler', :source => 'http://gems.github.com'
27
+
28
+ Run generator to create the CSS and JavaScript assets:
29
+
30
+ script/generate flash_growler_assets
31
+
32
+ Call the flash growler helper somewhere in your view(s). I usually call it in the application layout (or another layout):
33
+
34
+ <%= g_flash_growler :id => 'growler', :position => 'bottom' %>
35
+
36
+ Also, as with all Guilded components, a call to the apply behavior helper. It also makes the most sense to do this
37
+ in your layout(s):
38
+
39
+ <%= g_apply_behavior %>
40
+
41
+
42
+ == OPTIONS:
43
+
44
+ * :position - 'top' to display the message at the top of the browser or 'bottom' to display message at the bottom (defaults to bottom).
45
+ * :delay - Number of milliseconds to display the message before starting the slide out of view (defaults to 4000 ms).
46
+ * :speed - Number of milliseconds to animate the slide out of view (defaults to 1000 ms).
47
+
48
+
49
+ == REQUIREMENTS:
22
50
 
51
+ * midas-guilded >= 0.0.5
52
+ * jQuery 1.3.2 (included with midas-guilded)
53
+ * jquery-growler-0.1.js (included with midas-guilded)
23
54
 
24
55
 
25
56
  == LICENSE:
26
57
 
27
58
  (The MIT License)
28
59
 
29
- Copyright (c) 2009 FIXME full name
60
+ Copyright (c) 2009 C. Jason Harrelson (midas)
30
61
 
31
62
  Permission is hereby granted, free of charge, to any person obtaining
32
63
  a copy of this software and associated documentation files (the
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{flash_growler}
5
- s.version = "1.0.1"
5
+ s.version = "1.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["midas"]
data/lib/flash_growler.rb CHANGED
@@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'flash_growler/view_helpers'
5
5
 
6
6
  module FlashGrowler
7
- VERSION = '1.0.1'
7
+ VERSION = '1.0.2'
8
8
  end
9
9
 
10
10
  ActionView::Base.send( :include, FlashGrowler::ViewHelpers ) if defined?( ActionView )
@@ -8,6 +8,7 @@ class FlashGrowlerAssetsGenerator < Rails::Generator::Base
8
8
  m.file "guilded.flash_growler.js", "public/javascripts/guilded.flash_growler.js"
9
9
  m.directory "public/javascripts/jquery"
10
10
  m.file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.js'
11
+ m.file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.min.js'
11
12
  m.directory "public/stylesheets/guilded"
12
13
  m.directory "public/stylesheets/guilded/flash_growler"
13
14
  m.directory "public/stylesheets/guilded/flash_growler/default"
@@ -1,3 +1,18 @@
1
+ /*
2
+ Copyright © 2009 C. Jason Harrelson (midas)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
5
+ files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy,
6
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
7
+ is furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
12
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
13
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
14
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ */
1
16
  (function($){
2
17
 
3
18
  jQuery.fn.growl = function( opts )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midas-flash_growler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - midas