ivey-merb_has_flash 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +6 -9
- data/Rakefile +6 -6
- data/lib/merb_has_flash/flash_hash.rb +2 -5
- metadata +3 -4
data/README
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
merb_has_flash
|
2
|
-
|
2
|
+
==============
|
3
3
|
|
4
4
|
A plugin for the Merb framework that provides Rails-style flash.
|
5
5
|
|
@@ -7,16 +7,13 @@ Most of the code is taken directly from Rails, which is
|
|
7
7
|
Copyright (c) 2004-2006 David Heinemeier Hansson.
|
8
8
|
This plugin is released under the same terms as Rails itself.
|
9
9
|
|
10
|
-
|
11
|
-
reports and patches to him.
|
10
|
+
Originally hacked together by Michael Ivey <ivey@gweezlebur.com>
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
NOTE: Jeremy Nicoll may be taking over this codebase, and his tree is
|
16
|
-
http://github.com/eltiare/merb_has_flash ... I'll try to keep master
|
17
|
-
updated from him until we decide (IE: I can convince him) to take it
|
12
|
+
Current maintainer: Jeremy Nicoll <jnicoll@gnexp.com>
|
13
|
+
Please send bug reports and patches to him.
|
18
14
|
|
19
15
|
Contributors:
|
20
16
|
Tim Kofol
|
21
17
|
Shay Arnett
|
22
|
-
|
18
|
+
Martin Kihlgren
|
19
|
+
Andrei Bocan
|
data/Rakefile
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake/gempackagetask'
|
3
|
-
|
3
|
+
|
4
4
|
spec = eval(File.read('merb_has_flash.gemspec'))
|
5
|
+
Rake::GemPackageTask.new(spec) { |pkg| pkg.gem_spec = spec }
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
end
|
7
|
+
# Checks to see if Windows platform or if "SUDOLESS" environment variable is set
|
8
|
+
sudo = ((RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil) ? '' : ('sudo' unless ENV['SUDOLESS'])
|
9
9
|
|
10
10
|
task :install => [:package] do
|
11
|
-
sh %{sudo gem install pkg/#{
|
11
|
+
sh %{#{sudo} gem install pkg/#{spec.name}-#{spec.version}}
|
12
12
|
end
|
13
13
|
|
14
14
|
task :release => :package do
|
15
|
-
sh %{rubyforge add_release merb-plugins
|
15
|
+
sh %{rubyforge add_release merb-plugins #{spec.name} #{spec.version} pkg/#{spec.name}-#{spec.version}.gem}
|
16
16
|
end
|
@@ -42,12 +42,10 @@ module MerbHasFlash
|
|
42
42
|
keep # keep with no args automatically clears out unused keys and keeps all used ones.
|
43
43
|
end
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
@attrs.send(method_name, *args)
|
45
|
+
def method_missing(method_name, *args, &block) #:nodoc:
|
46
|
+
@attrs.send(method_name, *args, &block)
|
48
47
|
end
|
49
48
|
|
50
|
-
|
51
49
|
# Sets a flash that will not be available to the next action, only to the current.
|
52
50
|
#
|
53
51
|
# flash.now[:message] = "Hello current action"
|
@@ -85,7 +83,6 @@ module MerbHasFlash
|
|
85
83
|
discard
|
86
84
|
end
|
87
85
|
|
88
|
-
|
89
86
|
end
|
90
87
|
|
91
88
|
end
|
metadata
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ivey-merb_has_flash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Michael D. Ivey
|
8
7
|
- Jeremy Nicoll
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
@@ -23,7 +22,7 @@ dependencies:
|
|
23
22
|
version: 0.9.0
|
24
23
|
version:
|
25
24
|
description: Rails' 'flash' session notification system ported to Merb
|
26
|
-
email:
|
25
|
+
email: jnicoll@gnexp.com
|
27
26
|
executables: []
|
28
27
|
|
29
28
|
extensions: []
|
@@ -43,7 +42,7 @@ files:
|
|
43
42
|
- spec/merb_has_flash/flash_hash_spec.rb
|
44
43
|
- spec/spec_helper.rb
|
45
44
|
has_rdoc: false
|
46
|
-
homepage: http://github.com/
|
45
|
+
homepage: http://github.com/eltiare/merb_has_flash
|
47
46
|
post_install_message:
|
48
47
|
rdoc_options: []
|
49
48
|
|