rails_nav 1.3.0 → 1.3.1

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.
Files changed (3) hide show
  1. data/lib/rails_nav.rb +9 -2
  2. data/rails_nav.gemspec +1 -1
  3. metadata +1 -1
data/lib/rails_nav.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  ##
7
7
  #
8
8
  def Nav.version()
9
- '1.3.0'
9
+ '1.3.1'
10
10
  end
11
11
 
12
12
  def Nav.dependencies
@@ -162,7 +162,8 @@
162
162
  end
163
163
 
164
164
  def render
165
- @erb.result(@binding)
165
+ result = @erb.result(@binding)
166
+ result.respond_to?(:html_safe) ? result.html_safe : result
166
167
  end
167
168
  end
168
169
 
@@ -191,6 +192,12 @@
191
192
  end
192
193
 
193
194
  alias_method(:to_s, :to_html)
195
+ alias_method(:to_str, :to_html)
196
+ alias_method(:html_safe, :to_html)
197
+
198
+ def html_safe?
199
+ true
200
+ end
194
201
 
195
202
  ##
196
203
  #
data/rails_nav.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "1.3.0"
6
+ spec.version = "1.3.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "description: rails_nav kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
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: