merb_has_flash 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,3 +1,6 @@
1
+ Original code Copyright (c) 2007 Michael D. Ivey
2
+
3
+ Most of this code is based on the Flash code in Rails/ActionPack:
1
4
  Copyright (c) 2004-2006 David Heinemeier Hansson
2
5
 
3
6
  Permission is hereby granted, free of charge, to any person obtaining
data/README CHANGED
@@ -3,4 +3,12 @@ merb_has_flash
3
3
 
4
4
  A plugin for the Merb framework that provides Rails-style flash.
5
5
 
6
- Most of the code is taken directly from Rails.
6
+ Most of the code is taken directly from Rails, which is
7
+ Copyright (c) 2004-2006 David Heinemeier Hansson.
8
+ This plugin is released under the same terms as Rails itself.
9
+
10
+ Hacked together by Michael Ivey <ivey@gweezlebur.com> ... send bug
11
+ reports and patches to him.
12
+
13
+ Contributors:
14
+ Tim Kofol
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
3
3
 
4
4
  PLUGIN = "merb_has_flash"
5
5
  NAME = "merb_has_flash"
6
- VERSION = "0.0.2"
6
+ VERSION = "0.1.0"
7
7
  AUTHOR = "Michael Ivey"
8
8
  EMAIL = "ivey@gweezlebur.com"
9
9
  HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_has_flash/"
@@ -32,4 +32,8 @@ end
32
32
 
33
33
  task :install => [:package] do
34
34
  sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
35
+ end
36
+
37
+ task :release => :package do
38
+ sh %{rubyforge add_release merb-plugins merb_has_flash #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
35
39
  end
@@ -9,11 +9,6 @@ module MerbHasFlash
9
9
  end
10
10
 
11
11
  module InstanceMethods
12
- protected
13
- def sweep_flash
14
- flash.sweep if request.session
15
- end
16
-
17
12
  # Access the contents of the flash. Use <tt>flash["notice"]</tt> to read a notice you put there or
18
13
  # <tt>flash["notice"] = "hello"</tt> to put a new one.
19
14
  # Note that if sessions are disabled only flash.now will work.
@@ -32,6 +27,12 @@ module MerbHasFlash
32
27
 
33
28
  @_flash
34
29
  end
30
+
31
+ protected
32
+ def sweep_flash
33
+ flash.sweep if request.session
34
+ session["flash"] = flash
35
+ end
35
36
  end
36
37
  end
37
- end
38
+ end
metadata CHANGED
@@ -1,64 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: merb_has_flash
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.0.2
7
- date: 2007-11-26 00:00:00 -06:00
8
- summary: Merb plugin that provides a Rails-style flash
9
- require_paths:
10
- - lib
11
- email: ivey@gweezlebur.com
12
- homepage: http://merb-plugins.rubyforge.org/merb_has_flash/
13
- rubyforge_project:
14
- description: Merb plugin that provides a Rails-style flash
15
- autorequire: merb_has_flash
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 0.1.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Michael Ivey
8
+ autorequire: merb_has_flash
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-08 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: merb
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.4.0
23
+ version:
24
+ description: Merb plugin that provides a Rails-style flash
25
+ email: ivey@gweezlebur.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - README
32
+ - LICENSE
33
+ - TODO
31
34
  files:
32
35
  - LICENSE
33
36
  - README
34
37
  - Rakefile
35
38
  - TODO
36
39
  - lib/merb_has_flash
37
- - lib/merb_has_flash.rb
38
40
  - lib/merb_has_flash/controller_extension.rb
39
41
  - lib/merb_has_flash/flash_hash.rb
40
42
  - lib/merb_has_flash/helper.rb
41
- test_files: []
42
-
43
+ - lib/merb_has_flash.rb
44
+ has_rdoc: true
45
+ homepage: http://merb-plugins.rubyforge.org/merb_has_flash/
46
+ post_install_message:
43
47
  rdoc_options: []
44
48
 
45
- extra_rdoc_files:
46
- - README
47
- - LICENSE
48
- - TODO
49
- executables: []
50
-
51
- extensions: []
52
-
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
53
63
  requirements: []
54
64
 
55
- dependencies:
56
- - !ruby/object:Gem::Dependency
57
- name: merb
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Version::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 0.4.0
64
- version:
65
+ rubyforge_project:
66
+ rubygems_version: 0.9.5
67
+ signing_key:
68
+ specification_version: 2
69
+ summary: Merb plugin that provides a Rails-style flash
70
+ test_files: []
71
+