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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80eb048a1dff74ccee030287645cc8996e1a338769a951c1eb5531b21fe52cb1
4
- data.tar.gz: 96dc49e08d2dafebe2fc5863c4dd19eec5bde80578f8233c6d58b06d7c186f81
3
+ metadata.gz: 040fb8885174112590762a0220dfeb4c1597ff6f4f54804be959d60a9eb80924
4
+ data.tar.gz: f87d8e95f18c21a1e75b445556723232365a25003bfdce3898a90c0889eab52d
5
5
  SHA512:
6
- metadata.gz: 676d9b569fa4bdef9fc3c4c41024b94ddcbae98f15bbaf6709d7b0f35361ff4f47a567806bc0afe8a1fdd8ac111e95f86fb36c6f7098a8d3b53dd51980098ee4
7
- data.tar.gz: 560df8c020a27ba1f48aea7fc8059c87b99fe3e83985d9bd24e907557e0d1068c3fa0aad3657fda99e04fbf76084b98d12cbf80ee308280797c78c864889ab84
6
+ metadata.gz: 39cab3b39f780056f9c47354f20b868d2409eec007bab49f2b60af96392d34d38d412cd9cee634a64847dcab23552c7a7814b2eb5cebd70534ab380feb7833f8
7
+ data.tar.gz: 4d2e948527682681bb53fc8e37aeb7b6f9f71b77f571606ed3e78d59991ae8e7362d6d6319af7f1eb50b0cc52fe279d8bab3daa2f7b34df0b29992a134dae677
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "deface"
3
- s.version = "1.5.1"
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."
@@ -48,8 +48,10 @@ module Deface
48
48
  end
49
49
  end
50
50
 
51
- #prevents any caching by rails in development mode
52
- details[:updated_at] = Time.now
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
- it "should change updated_at" do
47
- expect(@template.updated_at).to be > @updated_at
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.1
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-08-20 00:00:00.000000000 Z
11
+ date: 2019-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri