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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3a28d1e85118c3214475e30a0fa2124e2124ff0e
4
- data.tar.gz: ce4ac735dc68cc482c5fd43ba5590f8e555d22be
2
+ SHA256:
3
+ metadata.gz: ce4e895a6dd8da80e6ed7a07cd733f10fac39ef8be0b9bb7966b48e9a943d0ab
4
+ data.tar.gz: 903b078f9e4d70a12e079b6cb05918d21ae978ceb3b41e7f830e47da06ea29c7
5
5
  SHA512:
6
- metadata.gz: 8177575c1c4c9cc9e66eb8085bc903c814fb7caea6a917dfae57ac6bc209573f83764fef6d0bf7bd73925b6e516d1c2fba8f062b6fdd4aad8e322b602e02ca7c
7
- data.tar.gz: ce3cb5a10dc4416de7d3fb7211b45ecc9bed987120df8d44316ce62bd1c240224ff2f520ad90d2d4a1cc06b1ff7c6e06673ca3bc7d95641710a73faebf0f2026
6
+ metadata.gz: 30bd8d5d1459292dd5a9bea4312eeaa7b2b4aa8977f8e54f6773f82c21ab8e68e3b2ab96a3d485a7db5bba22bc560f99be40ae5db73d6302b0001cff4e2dec24
7
+ data.tar.gz: 38291f0716773f2167e330df814017b291f622083dfc3707ff37d9980abcc1b49dbcf076afacf3283449e87a15eab16c5b97ce54d416db23f17359f412463542
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.5
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'discover-unused-partials'
5
5
  require 'optparse'
6
+ require 'yaml'
6
7
 
7
8
  options = {}
8
9
  OptionParser.new do |opts|
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DiscoverUnusedPartials
2
- VERSION = "0.3.0"
4
+ VERSION = "0.3.5"
3
5
  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.0
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: 2013-08-12 00:00:00.000000000 Z
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
- rubyforge_project:
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