fume 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 4
5
5
  :build:
data/fume.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fume}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sunteya"]
12
- s.date = %q{2010-03-27}
12
+ s.date = %q{2010-03-29}
13
13
  s.email = %q{Sunteya@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README"
@@ -20,10 +20,6 @@ module Fume
20
20
  return @current_user if defined?(@current_user)
21
21
  @current_user = current_user_session && current_user_session.user
22
22
  end
23
-
24
- def redirect_to_ok_url_or_default(default)
25
- redirect_to params[:ok_url] || default
26
- end
27
23
  end
28
24
  end
29
25
  end
@@ -2,9 +2,20 @@ module Fume
2
2
  module RailsExt
3
3
 
4
4
  def self.try_enable
5
+ ActionController::Base.send :include, ControllerExtensions::InstanceMethods
5
6
  ActionController::Base.send :helper, RailsHelpers
6
7
  end
7
8
 
9
+ module ControllerExtensions
10
+ module InstanceMethods
11
+
12
+ protected
13
+ def redirect_to_ok_url_or_default(default)
14
+ redirect_to params[:ok_url] || default
15
+ end
16
+ end
17
+ end
18
+
8
19
  module RailsHelpers
9
20
  def public_path(source)
10
21
  url_for("#{ActionController::Base.relative_url_root}#{source}")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sunteya
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-27 00:00:00 +08:00
17
+ date: 2010-03-29 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency