codeobscure 0.1.6.1 → 0.1.6.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 012bb6ed98295066ecc5bb946d393e5293de21ff3f6c2f8957049827bb05d2c3
4
- data.tar.gz: 1f738d24edc3d975128609b5b5efc0202217471b21fa47df3e0f2a9138b52d36
3
+ metadata.gz: cf6549cfa1984c9002c7c558a47e8f8f231fb8be2470e41a9ad74d7f38fe8f1a
4
+ data.tar.gz: b8ff29b1897c25de827f1111216eb478ae7191cd41f38edef9a6d1b8cd18813b
5
5
  SHA512:
6
- metadata.gz: 1f98d27094a92799c370d55b745529a6d742897ea415512d883c0ea26b1ca99638f24167791b66bbdb5bd040ca25e6ab5604a373270b6d72da18ceaad36d28b5
7
- data.tar.gz: 83706ce10df28a65a751c5b1f14e5bdea15f20c0d69b6cba381d60eadf3d2f550991fc541892eb2aa56eba5b519f8a2dd12f6e39389450108c9eaf1f29356694
6
+ metadata.gz: 1ee7e44521b2b4bd767a8c2e1d4617adbef39aee0521db52a65ce655e13209474a05b19adf1434ceb9fc81148641fc5d4f03a2411b7887efd2ef98b3253aa109
7
+ data.tar.gz: 622d33937e01d8fafeb011dc950be17f0e4cf03ee994f6f66d341181bf00bc79c3161f91156e13d367853c70af076606cf69fe2f0f6f30528502023b057edba1
@@ -60,22 +60,26 @@ module FuncList
60
60
  end
61
61
  end
62
62
  end
63
- cls_regex = ""
64
- if type == "h"
65
- cls_regex = @@hcls_regex
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
- cls_regex = @@mcls_regex
69
+ cls_regexs = [@@mcls_regex]
68
70
  end
69
- if fetch_types.include? "c"
70
- str.scan cls_regex do |curr_match|
71
- md = Regexp.last_match
72
- whole_match = md[0]
73
- captures = md.captures
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
- captures.each do |capture|
76
- results << "c:#{capture}"
77
- #p [whole_match, capture]
78
- p "c:[#{capture}]"
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
@@ -1,3 +1,3 @@
1
1
  module Codeobscure
2
- VERSION = "0.1.6.1"
2
+ VERSION = "0.1.6.2"
3
3
  end
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler