discover-unused-partials 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ tags
2
+ discover-unused-partials-*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.1.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{discover-unused-partials}
8
- s.version = "0.0.2"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vinicius Baggio", "Willian Molinari (a.k.a PotHix)"]
@@ -19,7 +19,8 @@ Gem::Specification.new do |s|
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
- "LICENSE",
22
+ ".gitignore",
23
+ "LICENSE",
23
24
  "README.rdoc",
24
25
  "Rakefile",
25
26
  "VERSION",
@@ -31,7 +31,7 @@ module DiscoverUnusedPartials
31
31
  File.open(file) do |f|
32
32
  f.each do |line|
33
33
  line.strip!
34
- if line =~ /:partial\s+=>\s+\"([a-zA-Z_\/]+)\"/
34
+ if line =~ /:partial\s+=>\s+[\"\']([a-zA-Z_\/]+)[\"\']/
35
35
  match = $1
36
36
  if match[0] == ?/ or match[0] == '/'
37
37
  match = match[1..-1]
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.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinicius Baggio
@@ -24,6 +24,7 @@ extra_rdoc_files:
24
24
  - LICENSE
25
25
  - README.rdoc
26
26
  files:
27
+ - .gitignore
27
28
  - LICENSE
28
29
  - README.rdoc
29
30
  - Rakefile