codeobscure 0.1.6.1 → 0.1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codeobscure/funclist.rb +17 -13
- data/lib/codeobscure/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6549cfa1984c9002c7c558a47e8f8f231fb8be2470e41a9ad74d7f38fe8f1a
|
4
|
+
data.tar.gz: b8ff29b1897c25de827f1111216eb478ae7191cd41f38edef9a6d1b8cd18813b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee7e44521b2b4bd767a8c2e1d4617adbef39aee0521db52a65ce655e13209474a05b19adf1434ceb9fc81148641fc5d4f03a2411b7887efd2ef98b3253aa109
|
7
|
+
data.tar.gz: 622d33937e01d8fafeb011dc950be17f0e4cf03ee994f6f66d341181bf00bc79c3161f91156e13d367853c70af076606cf69fe2f0f6f30528502023b057edba1
|
data/lib/codeobscure/funclist.rb
CHANGED
@@ -60,22 +60,26 @@ module FuncList
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
63
|
-
|
64
|
-
if type == "
|
65
|
-
|
63
|
+
cls_regexs = ""
|
64
|
+
if type == "all"
|
65
|
+
cls_regexs = [@@hcls_regex,@@mcls_regex]
|
66
|
+
elsif type == "h"
|
67
|
+
cls_regexs = [@@hcls_regex]
|
66
68
|
else
|
67
|
-
|
69
|
+
cls_regexs = [@@mcls_regex]
|
68
70
|
end
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
cls_regexs.each do |cls_regex|
|
72
|
+
if fetch_types.include? "c"
|
73
|
+
str.scan cls_regex do |curr_match|
|
74
|
+
md = Regexp.last_match
|
75
|
+
whole_match = md[0]
|
76
|
+
captures = md.captures
|
74
77
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
78
|
+
captures.each do |capture|
|
79
|
+
results << "c:#{capture}"
|
80
|
+
#p [whole_match, capture]
|
81
|
+
p "c:[#{capture}]"
|
82
|
+
end
|
79
83
|
end
|
80
84
|
end
|
81
85
|
end
|
data/lib/codeobscure/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeobscure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6.
|
4
|
+
version: 0.1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|