midas-flash_growler 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +23 -2
- data/Manifest.txt +1 -0
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/flash_growler.gemspec +8 -8
- data/lib/flash_growler.rb +1 -1
- data/lib/flash_growler/view_helpers.rb +1 -1
- data/rails_generators/flash_growler_assets/flash_growler_assets_generator.rb +1 -0
- data/rails_generators/flash_growler_assets/templates/guilded.flash_growler.js +10 -0
- data/rails_generators/flash_growler_assets/templates/jquery-growler-0.1.min.js +1 -0
- metadata +6 -5
data/History.txt
CHANGED
@@ -1,4 +1,25 @@
|
|
1
|
+
== 1.0.3 2009-03-11
|
2
|
+
|
3
|
+
* Added guilded.flash_growler.min.js
|
4
|
+
* Updated view helper to prefer jquery-growler-0.1.min.js
|
5
|
+
* Updated Guilded dependency to 0.0.6
|
6
|
+
|
7
|
+
|
8
|
+
== 1.0.2 2009-03-10
|
9
|
+
|
10
|
+
* Bug fixes
|
11
|
+
|
12
|
+
|
13
|
+
== 1.0.1 2009-03-10
|
14
|
+
|
15
|
+
* Bug fixes
|
16
|
+
|
17
|
+
|
18
|
+
== 1.0.0 2009-03-10
|
19
|
+
|
20
|
+
* First stable release
|
21
|
+
|
22
|
+
|
1
23
|
== 0.0.1 2009-03-07
|
2
24
|
|
3
|
-
*
|
4
|
-
* Initial release
|
25
|
+
* Initial release
|
data/Manifest.txt
CHANGED
@@ -12,6 +12,7 @@ rails_generators/flash_growler_assets/templates/bg.png
|
|
12
12
|
rails_generators/flash_growler_assets/templates/default.css
|
13
13
|
rails_generators/flash_growler_assets/templates/error.png
|
14
14
|
rails_generators/flash_growler_assets/templates/guilded.flash_growler.js
|
15
|
+
rails_generators/flash_growler_assets/templates/guilded.flash_growler.min.js
|
15
16
|
rails_generators/flash_growler_assets/templates/info.png
|
16
17
|
rails_generators/flash_growler_assets/templates/jquery-growler-0.1.js
|
17
18
|
rails_generators/flash_growler_assets/templates/jquery-growler-0.1.min.js
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
data/flash_growler.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{flash_growler}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["midas"]
|
9
|
-
s.date = %q{2009-03-
|
10
|
-
s.description = %q{A Guilded component that displays Rails flash messages in an
|
9
|
+
s.date = %q{2009-03-11}
|
10
|
+
s.description = %q{A Guilded (http://github.com/midas/guilded/tree/master) component that displays Rails flash messages in an interface similar to OS/X's growler.}
|
11
11
|
s.email = ["jason@lookforwardenterprises.com"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
|
13
|
-
s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "flash_growler.gemspec", "lib/flash_growler.rb", "lib/flash_growler/view_helpers.rb", "rails_generators/flash_growler_assets/flash_growler_assets_generator.rb", "rails_generators/flash_growler_assets/templates/alert.png", "rails_generators/flash_growler_assets/templates/bg.png", "rails_generators/flash_growler_assets/templates/default.css", "rails_generators/flash_growler_assets/templates/error.png", "rails_generators/flash_growler_assets/templates/guilded.flash_growler.js", "rails_generators/flash_growler_assets/templates/info.png", "rails_generators/flash_growler_assets/templates/jquery-growler-0.1.js", "script/console", "script/destroy", "script/generate", "spec/flash_growler_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
|
13
|
+
s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "flash_growler.gemspec", "lib/flash_growler.rb", "lib/flash_growler/view_helpers.rb", "rails_generators/flash_growler_assets/flash_growler_assets_generator.rb", "rails_generators/flash_growler_assets/templates/alert.png", "rails_generators/flash_growler_assets/templates/bg.png", "rails_generators/flash_growler_assets/templates/default.css", "rails_generators/flash_growler_assets/templates/error.png", "rails_generators/flash_growler_assets/templates/guilded.flash_growler.js", "rails_generators/flash_growler_assets/templates/info.png", "rails_generators/flash_growler_assets/templates/jquery-growler-0.1.js", "rails_generators/flash_growler_assets/templates/jquery-growler-0.1.min.js", "script/console", "script/destroy", "script/generate", "spec/flash_growler_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.homepage = %q{http://github.com/midas/flash_growler/tree/master}
|
16
16
|
s.post_install_message = %q{PostInstall.txt}
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.rubyforge_project = %q{flash_growler}
|
20
20
|
s.rubygems_version = %q{1.3.1}
|
21
|
-
s.summary = %q{A Guilded component that displays Rails flash messages in an
|
21
|
+
s.summary = %q{A Guilded (http://github.com/midas/guilded/tree/master) component that displays Rails flash messages in an interface similar to OS/X's growler.}
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
24
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -26,16 +26,16 @@ Gem::Specification.new do |s|
|
|
26
26
|
|
27
27
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
28
|
s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
|
29
|
-
s.add_development_dependency(%q<midas-guilded>, [">= 0.0.
|
29
|
+
s.add_development_dependency(%q<midas-guilded>, [">= 0.0.6"])
|
30
30
|
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
31
31
|
else
|
32
32
|
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
33
|
-
s.add_dependency(%q<midas-guilded>, [">= 0.0.
|
33
|
+
s.add_dependency(%q<midas-guilded>, [">= 0.0.6"])
|
34
34
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
35
35
|
end
|
36
36
|
else
|
37
37
|
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
38
|
-
s.add_dependency(%q<midas-guilded>, [">= 0.0.
|
38
|
+
s.add_dependency(%q<midas-guilded>, [">= 0.0.6"])
|
39
39
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
40
40
|
end
|
41
41
|
end
|
data/lib/flash_growler.rb
CHANGED
@@ -13,7 +13,7 @@ module FlashGrowler
|
|
13
13
|
position_cls = 'growl-bottom'
|
14
14
|
end
|
15
15
|
|
16
|
-
Guilded::Guilder.instance.add( :flash_growler, options, [ 'jquery/jquery-growler-0.1.js' ] )
|
16
|
+
Guilded::Guilder.instance.add( :flash_growler, options, [ 'jquery/jquery-growler-0.1.min.js' ] )
|
17
17
|
|
18
18
|
if flash[:error]
|
19
19
|
return "<div class=\"growl flash error #{position_cls}\" id=\"#{options[:id]}\"><div id=\"growl-icon-error\"></div><h3>Error</h3><p>#{flash[:error]}</p></div>"
|
@@ -6,6 +6,7 @@ class FlashGrowlerAssetsGenerator < Rails::Generator::Base
|
|
6
6
|
def manifest
|
7
7
|
record do |m|
|
8
8
|
m.file "guilded.flash_growler.js", "public/javascripts/guilded.flash_growler.js"
|
9
|
+
m.file "guilded.flash_growler.min.js", "public/javascripts/guilded.flash_growler.min.js"
|
9
10
|
m.directory "public/javascripts/jquery"
|
10
11
|
m.file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.js'
|
11
12
|
m.file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.min.js'
|
@@ -1,4 +1,14 @@
|
|
1
|
+
/* Guilded Flash Growler 1.0.1
|
2
|
+
* Copyright (c) 2009 C. Jason Harrelson (midas)
|
3
|
+
* Guilded Flash Growler is licensed under the terms of the MIT License */
|
4
|
+
|
1
5
|
g.flashGrowlerInit = function( options )
|
2
6
|
{
|
7
|
+
if( g.beforeLiveValidatorInit )
|
8
|
+
g.beforeFlashGrowlerInit( options );
|
9
|
+
|
3
10
|
$j( '#' + options.id ).growl( options );
|
11
|
+
|
12
|
+
if( g.afterLiveValidatorInit )
|
13
|
+
g.afterFlashGrowlerInit( options );
|
4
14
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
(function($){jQuery.fn.growl=function(opts){options=jQuery.extend({delay:4000,speed:1000},opts);window.setTimeout(function(){jQuery('#'+options.id).slideToggle(options.speed);},options.delay );return jQuery;}})(jQuery);
|
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.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- midas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-11 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.6
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: hoe
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 1.8.0
|
44
44
|
version:
|
45
|
-
description: A Guilded component that displays Rails flash messages in an
|
45
|
+
description: A Guilded (http://github.com/midas/guilded/tree/master) component that displays Rails flash messages in an interface similar to OS/X's growler.
|
46
46
|
email:
|
47
47
|
- jason@lookforwardenterprises.com
|
48
48
|
executables: []
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- rails_generators/flash_growler_assets/templates/guilded.flash_growler.js
|
72
72
|
- rails_generators/flash_growler_assets/templates/info.png
|
73
73
|
- rails_generators/flash_growler_assets/templates/jquery-growler-0.1.js
|
74
|
+
- rails_generators/flash_growler_assets/templates/jquery-growler-0.1.min.js
|
74
75
|
- script/console
|
75
76
|
- script/destroy
|
76
77
|
- script/generate
|
@@ -104,6 +105,6 @@ rubyforge_project: flash_growler
|
|
104
105
|
rubygems_version: 1.2.0
|
105
106
|
signing_key:
|
106
107
|
specification_version: 2
|
107
|
-
summary: A Guilded component that displays Rails flash messages in an
|
108
|
+
summary: A Guilded (http://github.com/midas/guilded/tree/master) component that displays Rails flash messages in an interface similar to OS/X's growler.
|
108
109
|
test_files: []
|
109
110
|
|