teamon-merb-flash 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +1 -1
  2. data/Rakefile +2 -2
  3. data/lib/merb-flash.rb +1 -7
  4. metadata +3 -3
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Tymon <teamon> Tobolski (http://teamon.eu)
1
+ Copyright (c) 2008-2009 Tymon Tobolski (http://teamon.eu)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -5,10 +5,10 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "merb-flash"
8
- GEM_VERSION = "0.1.3"
8
+ GEM_VERSION = "0.1.4"
9
9
  AUTHOR = "Tymon Tobolski"
10
10
  EMAIL = "i@teamon.eu"
11
- HOMEPAGE = "http://blog.teamon.eu/projekty/"
11
+ HOMEPAGE = "http://teamon.eu/"
12
12
  SUMMARY = "Merb plugin that provides rails-like flash messages"
13
13
 
14
14
  spec = Gem::Specification.new do |s|
@@ -19,13 +19,7 @@ if defined?(Merb::Plugins)
19
19
  def redirect(url, opts = {})
20
20
  if opts[:message]
21
21
  msg = opts.delete(:message)
22
- unless msg.is_a?(Hash)
23
- if msg.is_a?(String)
24
- msg = Mash.new(:notice => msg)
25
- else
26
- raise ArgumentError
27
- end
28
- end
22
+ msg = Mash.new(:notice => msg.to_s) unless msg.is_a?(Hash)
29
23
  session[:flash] = msg
30
24
  end
31
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamon-merb-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-29 00:00:00 -07:00
12
+ date: 2009-07-12 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,7 +42,7 @@ files:
42
42
  - spec/spec.opts
43
43
  - spec/spec_helper.rb
44
44
  has_rdoc: true
45
- homepage: http://blog.teamon.eu/projekty/
45
+ homepage: http://teamon.eu/
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48