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 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
- * 1 major enhancement:
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
@@ -48,7 +48,7 @@ in your layout(s):
48
48
 
49
49
  == REQUIREMENTS:
50
50
 
51
- * midas-guilded >= 0.0.5
51
+ * midas-guilded >= 0.0.5 (http://github.com/midas/guilded/tree/master)
52
52
  * jQuery 1.3.2 (included with midas-guilded)
53
53
  * jquery-growler-0.1.js (included with midas-guilded)
54
54
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ $hoe = Hoe.new('flash_growler', FlashGrowler::VERSION) do |p|
13
13
  # ]
14
14
  p.extra_dev_deps = [
15
15
  ['newgem', ">= #{::Newgem::VERSION}"],
16
- ['midas-guilded', ">=0.0.5"]
16
+ ['midas-guilded', ">=0.0.6"]
17
17
  ]
18
18
 
19
19
  p.clean_globs |= %w[**/.DS_Store tmp *.log]
@@ -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.2"
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-07}
10
- s.description = %q{A Guilded component that displays Rails flash messages in an interface similar to OS/X's growler.}
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 interface similar to OS/X's growler.}
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.5"])
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.4"])
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.4"])
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
@@ -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.2'
7
+ VERSION = '1.0.3'
8
8
  end
9
9
 
10
10
  ActionView::Base.send( :include, FlashGrowler::ViewHelpers ) if defined?( ActionView )
@@ -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.2
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-07 00:00:00 -08:00
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.5
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 interface similar to OS/X's growler.
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 interface similar to OS/X's growler.
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