rails_default_url_options 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ unless defined?(DefaultUrlOptions)
31
31
  DefaultUrlOptions = defined?(HashWithIndifferentAccess) ? HashWithIndifferentAccess.new : Hash.new
32
32
 
33
33
  def DefaultUrlOptions.version
34
- '1.3.0'
34
+ '1.3.1'
35
35
  end
36
36
 
37
37
  def DefaultUrlOptions.configure(request = {})
@@ -130,16 +130,14 @@ end
130
130
 
131
131
 
132
132
  if defined?(Rails)
133
- ## sane defaults
134
- #
135
- DefaultUrlOptions.configure(
136
- :host => '0.0.0.0',
137
- :port => 3000
138
- )
139
-
140
133
  ##
141
134
  #
142
135
  def DefaultUrlOptions.install_before_filter!
136
+ DefaultUrlOptions.configure(
137
+ :host => '0.0.0.0',
138
+ :port => 3000
139
+ ) unless DefaultUrlOptions.configured?
140
+
143
141
  if defined?(::ActionController::Base)
144
142
  ::ActionController::Base.module_eval do
145
143
  prepend_before_filter do |controller|
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_default_url_options"
6
- spec.version = "1.3.0"
6
+ spec.version = "1.3.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_default_url_options"
9
9
  spec.description = "description: rails_default_url_options kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_default_url_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: