discover-unused-partials 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/discover-unused-partials.rb +2 -2
- data/lib/discover-unused-partials/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36d5e00efbadcb010ad5ccebd55707e2eac2fb84
|
4
|
+
data.tar.gz: 10776a8ad4264fb38700701509dce7f80b224e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8fffc1eed66a870a4731631e133428af74bb29fd630e06f68789b3a286e67b776a71afeb109bca4e91c925a78d3fd39d2d3812fcb0e127354ac7255db9adae
|
7
|
+
data.tar.gz: ff15b3f4ba2f1203f7731b7c7e6e92640f475699933edbf84632f03f64d72dfb52e6e1881d93b25f2667ea9c47b6d9e25ef214452d09efc6b1070b6ed34346a8
|
@@ -34,7 +34,7 @@ module DiscoverUnusedPartials
|
|
34
34
|
@@extension = /\.\w+/
|
35
35
|
@@partial = /:partial\s*=>\s*|partial:\s*/
|
36
36
|
@@render = /\brender\s*(?:\(\s*)?/
|
37
|
-
|
37
|
+
|
38
38
|
def initialize options
|
39
39
|
@options = options
|
40
40
|
end
|
@@ -117,7 +117,7 @@ module DiscoverUnusedPartials
|
|
117
117
|
[partials, dynamic]
|
118
118
|
end
|
119
119
|
|
120
|
-
EXT = %w(.html.erb .text.erb .erb .html.haml .text.haml .haml .rhtml)
|
120
|
+
EXT = %w(.html.erb .text.erb .erb .html.haml .text.haml .haml .rhtml .html.slim slim)
|
121
121
|
def check_extension_path(file)
|
122
122
|
"#{file}#{EXT.find{ |e| File.exists? file + e }}"
|
123
123
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discover-unused-partials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willian Molinari (a.k.a PotHix)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A script to help you finding out unused partials. Good for big projects
|
15
15
|
or projects under heavy refactoring
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.6.11
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: A script to help you finding out unused partials. Good for big projects or
|