discover-unused-partials 0.3.0 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/VERSION +1 -1
- data/bin/discover-unused-partials +1 -0
- data/lib/discover-unused-partials.rb +3 -3
- data/lib/discover-unused-partials/version.rb +3 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce4e895a6dd8da80e6ed7a07cd733f10fac39ef8be0b9bb7966b48e9a943d0ab
|
4
|
+
data.tar.gz: 903b078f9e4d70a12e079b6cb05918d21ae978ceb3b41e7f830e47da06ea29c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30bd8d5d1459292dd5a9bea4312eeaa7b2b4aa8977f8e54f6773f82c21ab8e68e3b2ab96a3d485a7db5bba22bc560f99be40ae5db73d6302b0001cff4e2dec24
|
7
|
+
data.tar.gz: 38291f0716773f2167e330df814017b291f622083dfc3707ff37d9980abcc1b49dbcf076afacf3283449e87a15eab16c5b97ce54d416db23f17359f412463542
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -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
|
@@ -116,8 +116,8 @@ module DiscoverUnusedPartials
|
|
116
116
|
partials.uniq!
|
117
117
|
[partials, dynamic]
|
118
118
|
end
|
119
|
-
|
120
|
-
EXT = %w(.html.erb .text.erb .html.haml .text.haml .rhtml)
|
119
|
+
|
120
|
+
EXT = %w(.html.erb .text.erb .pdf.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.5
|
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: 2020-07-06 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
|
@@ -21,7 +21,7 @@ executables:
|
|
21
21
|
extensions: []
|
22
22
|
extra_rdoc_files: []
|
23
23
|
files:
|
24
|
-
- .gitignore
|
24
|
+
- ".gitignore"
|
25
25
|
- Gemfile
|
26
26
|
- LICENSE
|
27
27
|
- README.rdoc
|
@@ -43,17 +43,16 @@ require_paths:
|
|
43
43
|
- lib
|
44
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
|
-
|
56
|
-
rubygems_version: 2.0.3
|
55
|
+
rubygems_version: 3.1.2
|
57
56
|
signing_key:
|
58
57
|
specification_version: 4
|
59
58
|
summary: A script to help you finding out unused partials. Good for big projects or
|