deface 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/deface.gemspec +1 -1
- data/lib/deface/applicator.rb +4 -2
- data/spec/deface/action_view_template_spec.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 040fb8885174112590762a0220dfeb4c1597ff6f4f54804be959d60a9eb80924
|
4
|
+
data.tar.gz: f87d8e95f18c21a1e75b445556723232365a25003bfdce3898a90c0889eab52d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39cab3b39f780056f9c47354f20b868d2409eec007bab49f2b60af96392d34d38d412cd9cee634a64847dcab23552c7a7814b2eb5cebd70534ab380feb7833f8
|
7
|
+
data.tar.gz: 4d2e948527682681bb53fc8e37aeb7b6f9f71b77f571606ed3e78d59991ae8e7362d6d6319af7f1eb50b0cc52fe279d8bab3daa2f7b34df0b29992a134dae677
|
data/deface.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "deface"
|
3
|
-
s.version = "1.5.
|
3
|
+
s.version = "1.5.2"
|
4
4
|
|
5
5
|
s.authors = ["Brian D Quinn"]
|
6
6
|
s.description = "Deface is a library that allows you to customize ERB, Haml and Slim views in a Rails application without editing the underlying view."
|
data/lib/deface/applicator.rb
CHANGED
@@ -48,8 +48,10 @@ module Deface
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
|
51
|
+
if Rails.gem_version < Gem::Version.new('6.0.0')
|
52
|
+
#prevents any caching by rails in development mode
|
53
|
+
details[:updated_at] = Time.now
|
54
|
+
end
|
53
55
|
|
54
56
|
source = doc.to_s
|
55
57
|
|
@@ -43,8 +43,14 @@ module ActionView
|
|
43
43
|
expect(@template.source).to eq("<%= raw(text) %>")
|
44
44
|
end
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
if Rails.gem_version >= Gem::Version.new('6.0.0')
|
47
|
+
it "should not change updated_at" do
|
48
|
+
expect(@template.updated_at).to eq(@updated_at)
|
49
|
+
end
|
50
|
+
else
|
51
|
+
it "should change updated_at" do
|
52
|
+
expect(@template.updated_at).to be > @updated_at
|
53
|
+
end
|
48
54
|
end
|
49
55
|
end
|
50
56
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian D Quinn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|