squash_java 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/squash/java/namespace.rb +2 -2
- metadata +4 -4
@@ -127,7 +127,7 @@ class Squash::Java::Namespace
|
|
127
127
|
|
128
128
|
def add_method_alias(class_or_name, method_name, obfuscation)
|
129
129
|
cl = (class_or_name.kind_of?(Squash::Java::Class) ? class_or_name : klass(class_or_name))
|
130
|
-
meth =
|
130
|
+
meth = java_method(cl, method_name)
|
131
131
|
meth.obfuscation = obfuscation
|
132
132
|
return meth
|
133
133
|
end
|
@@ -219,7 +219,7 @@ class Squash::Java::Namespace
|
|
219
219
|
# full, unobfuscated types (e.g., "com.foo.Bar myMethod(com.foo.Baz, int[])".
|
220
220
|
# @return [Squash::Java::Method] The corresponding method.
|
221
221
|
|
222
|
-
def
|
222
|
+
def java_method(klass, name)
|
223
223
|
matches = name.match(METHOD_REGEX) or raise "Invalid method name #{name.inspect}"
|
224
224
|
return_type = argument(matches[1])
|
225
225
|
method_name = matches[2]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squash_java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Morgan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01-
|
18
|
+
date: 2013-01-04 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|