codeobscure 0.1.5.8 → 0.1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/codeobscure +1 -0
- data/lib/codeobscure/funclist.rb +23 -9
- data/lib/codeobscure/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b752b506e536e4ee52d351be777786b5140f68597e85f219f9f34d6266c380d7
|
4
|
+
data.tar.gz: 4f50bb9051bf7e8573c0012aefd1fc05ce1396b3e3b051821d37f5132a88be09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3096b9fb3ecb4a7bb53edb4d14c55559954243d24eb99522ef948f665ee3e1e9ca83987302eaa14aa332d857950cd3a9f981e048dcc6a71bf2cead450469c73
|
7
|
+
data.tar.gz: a77a90c016717a896dbdfdd2b131d84b8ab0a632d225d38a7ea3740ad061476a03b0a00dbd5f286877fc3ee80072ff5ae059168021fb3ab79c2342b8ca09f9ed
|
data/bin/codeobscure
CHANGED
data/lib/codeobscure/funclist.rb
CHANGED
@@ -2,7 +2,8 @@ module FuncList
|
|
2
2
|
|
3
3
|
require_relative "filtSymbols.rb"
|
4
4
|
|
5
|
-
@@func_regex = /\s*(\w+)\s*:\s*\(\s*\w*\s*\s*\w+\s*\*?\s*\)\s*\w+\s*/
|
5
|
+
# @@func_regex = /\s*(\w+)\s*:\s*\(\s*\w*\s*\s*\w+\s*\*?\s*\)\s*\w+\s*/
|
6
|
+
@@func_regex = /\s*[-\+]\s*(\w+)\s*:\s*\(\s*\w*\s*\s*\w+\s*\*?\s*\)\s*\w+\s*/
|
6
7
|
@@func_simple_regex = /\s*[-\+]\s*\(\s*\w+\s*\*?\)\s*(\w+)\s*;*/
|
7
8
|
@@hcls_regex = /@interface\s+(\w+)\s*/
|
8
9
|
@@mcls_regex = /@implementation\s+(\w+)\s*/
|
@@ -12,6 +13,15 @@ module FuncList
|
|
12
13
|
#---------------filter regex----------------
|
13
14
|
@@value_for_key_filte_regex = /\[\w*\s+setValue\s*:\s*.*\s* forKey\s*:\s*@\"(.*)\"\]/
|
14
15
|
@@class_from_str_regex = /NSClassFromString\(\s*@"(\w+)"\s*\)/
|
16
|
+
@@func_filt_keys = ["IBAction"]
|
17
|
+
|
18
|
+
def self.validate?(str, type)
|
19
|
+
p "--------#{str}"
|
20
|
+
for filt_key in @@func_filt_keys
|
21
|
+
return false if str.include? filt_key
|
22
|
+
end
|
23
|
+
return true
|
24
|
+
end
|
15
25
|
|
16
26
|
def self.to_utf8(str)
|
17
27
|
str = str.force_encoding('UTF-8')
|
@@ -28,10 +38,12 @@ module FuncList
|
|
28
38
|
whole_match = md[0]
|
29
39
|
captures = md.captures
|
30
40
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
41
|
+
if validate? whole_match , 'f'
|
42
|
+
captures.each do |capture|
|
43
|
+
results << "f:#{capture}"
|
44
|
+
#p [whole_match, capture]
|
45
|
+
p "f:[#{capture}]"
|
46
|
+
end
|
35
47
|
end
|
36
48
|
end
|
37
49
|
#no arguments function
|
@@ -40,10 +52,12 @@ module FuncList
|
|
40
52
|
whole_match = md[0]
|
41
53
|
captures = md.captures
|
42
54
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
55
|
+
if validate? whole_match , 'f'
|
56
|
+
captures.each do |capture|
|
57
|
+
results << "f:#{capture}"
|
58
|
+
#p [whole_match, capture]
|
59
|
+
p "f:[#{capture}]"
|
60
|
+
end
|
47
61
|
end
|
48
62
|
end
|
49
63
|
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.5.
|
4
|
+
version: 0.1.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,42 +78,42 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 1.5
|
81
|
+
version: '1.5'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 1.5
|
88
|
+
version: '1.5'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: sqlite3
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '1.3'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '1.3'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: random-word
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '2.1'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '2.1'
|
117
117
|
description: Code Obscure Tool.You can use it simplely
|
118
118
|
email:
|
119
119
|
- chengkai1853@163.com
|