wiselinks 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/wiselinks/rendering.rb +4 -2
- data/wiselinks.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/wiselinks/rendering.rb
CHANGED
@@ -7,7 +7,9 @@ module Wiselinks
|
|
7
7
|
|
8
8
|
protected
|
9
9
|
|
10
|
-
def render_with_wiselinks(
|
10
|
+
def render_with_wiselinks(*args)
|
11
|
+
options = _normalize_render(*args)
|
12
|
+
|
11
13
|
if self.request.wiselinks?
|
12
14
|
self.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
|
13
15
|
self.headers['Pragma'] = 'no-cache'
|
@@ -29,7 +31,7 @@ module Wiselinks
|
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
32
|
-
self.render_without_wiselinks(options
|
34
|
+
self.render_without_wiselinks(options)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
data/wiselinks.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "wiselinks"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Igor Alexandrov", "Alexey Solilin", "Julia Egorova"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wiselinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
segments:
|
189
189
|
- 0
|
190
|
-
hash: -
|
190
|
+
hash: -421497926167596456
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
192
|
none: false
|
193
193
|
requirements:
|