acls 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/acls/parser.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b1e9054c2aa8a265732a826ab96128fe5101388
|
|
4
|
+
data.tar.gz: 51daeadc17700f03440fcdc417f56d90ab365897
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb760e38f2fab04f17a321c45439afefa8acf641c0f25888d8019e153e7ae277cd4bcc39d196c89a9ad12092127da22079b477debc41b1aa5f7a41e7f84bbcf1
|
|
7
|
+
data.tar.gz: 3f1d7c3c865a8161817e55855e76c50b03dd2f9933b7b9fa3f7c5c41106073582613565c69d848201dcead4ccfa3e2d0f7b11ebe2f68e8e2017a74a5c314754c
|
data/lib/acls/parser.rb
CHANGED
|
@@ -29,7 +29,9 @@ module ACLS
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def scan_classnames(file)
|
|
32
|
-
File.read(file)
|
|
32
|
+
contents = File.read(file)
|
|
33
|
+
contents.scrub! if (contents.respond_to?(:scrub!))
|
|
34
|
+
contents.scan(/(class|module)\s+([^\n\r<]+)/)
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
def process_classname_matches(matches, name)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acls
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kolo Rahl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|