rsense-core 0.5.8 → 0.5.9

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
  SHA1:
3
- metadata.gz: ea7d550cad6e3326f281dfe2d74b45490482a076
4
- data.tar.gz: de4e8c69f48ae9d77e5348974c3c047e430eabd2
3
+ metadata.gz: 987b4dad768c853df5e17b38d17f258179264e5d
4
+ data.tar.gz: 443f3c0ea949a6a819089fc877f4ab5816daff23
5
5
  SHA512:
6
- metadata.gz: d694a57f2ae66b9fa73a6a236caed7008b768816a7a1cbde5d0d9caa806af00a747b1e99f65c0981e38725703f731a9c7f42c3e0cf88b7501487e517d85e5846
7
- data.tar.gz: 0a25325106b8d8cea07e02f2a87ffcd5c8ca5d399a1a63649bdcb6fc7109ce5045ed9b2d9de0a4f3874e8270592e85e09d590182aaefb986a220cd3094277d7a
6
+ metadata.gz: 18a0ab68c982ca1c19fbce80d114e0fe6abb8d9b32086818d7be4a97e331f423f32c5a5e9db1ec735eb659111cc4d3d04371e9b46be07e5f6ab741a27e46adca
7
+ data.tar.gz: 44ddfc0b45788119df638b05d7a14a0957394fc61ec93739dcdb7d11564dea2f3e34a84446e9447d1acb274c8294778b89b16af2d4901918a41f31a4d199ad47
Binary file
@@ -1,5 +1,5 @@
1
1
  module Rsense
2
2
  module Core
3
- VERSION = "0.5.8"
3
+ VERSION = "0.5.9"
4
4
  end
5
5
  end
@@ -149,6 +149,10 @@ public class Ruby {
149
149
  return kernelModule;
150
150
  }
151
151
 
152
+ public RubyClass getBasicObject() {
153
+ return basicObjectClass;
154
+ }
155
+
152
156
  public RubyClass getObject() {
153
157
  return objectClass;
154
158
  }
@@ -32,7 +32,7 @@ public class AnnotationResolver {
32
32
  public enum Result {
33
33
  NOANNOT, UNRESOLVED, RESOLVED,
34
34
  };
35
-
35
+
36
36
  private Graph graph;
37
37
  private Ruby runtime;
38
38
  private TypeVarMap env;
@@ -107,7 +107,7 @@ public class AnnotationResolver {
107
107
  return receiver == null
108
108
  || resolveClassConstraints(template, RuntimeHelper.getClassAnnotation(receiver.getMetaClass()), receiver);
109
109
  }
110
-
110
+
111
111
  public boolean resolveMethodArg(Template template, ClassType classType, TypeExpression argType, IRubyObject receiver, IRubyObject[] args) {
112
112
  if (argType == null) {
113
113
  // arity check
@@ -295,7 +295,7 @@ public class AnnotationResolver {
295
295
  }
296
296
  return true;
297
297
  }
298
-
298
+
299
299
  public boolean resolveMethodBlock(Template template, ClassType classType, MethodType.Block blockType, IRubyObject receiver) {
300
300
  Block block = template.getAttribute().getBlock();
301
301
 
@@ -354,7 +354,7 @@ public class AnnotationResolver {
354
354
 
355
355
  return args.toArray(new TypeSet[0]);
356
356
  }
357
-
357
+
358
358
  public TypeSet processMethodReturn(Template template, ClassType classType, TypeExpression returnType, IRubyObject receiver) {
359
359
  if (returnType == null) { return TypeSet.EMPTY; }
360
360
 
@@ -454,7 +454,7 @@ public class AnnotationResolver {
454
454
  }
455
455
  return null;
456
456
  }
457
-
457
+
458
458
  public boolean resolveMethodReturn(Template template, ClassType classType, TypeExpression returnType, IRubyObject receiver) {
459
459
  if (returnType == null) { return true; }
460
460
 
@@ -752,7 +752,7 @@ public class RuntimeHelper {
752
752
  Logger.debug(SourceLocation.of(node), "template dummy call: %s", method);
753
753
  }
754
754
 
755
- private static Vertex applyTemplateAttribute(Graph graph, CallVertex vertex, String name, TemplateAttribute attr, boolean callSuper) {
755
+ public static Vertex applyTemplateAttribute(Graph graph, CallVertex vertex, String name, TemplateAttribute attr, boolean callSuper) {
756
756
  IRubyObject receiver = attr.getReceiver();
757
757
  IRubyObject[] args = attr.getArgs();
758
758
  RubyClass receiverType = null;
@@ -787,7 +787,7 @@ public class RuntimeHelper {
787
787
  return null;
788
788
  }
789
789
 
790
- private static Template createTemplate(Graph graph, CallVertex vertex, String name, Method method, TemplateAttribute attr) {
790
+ public static Template createTemplate(Graph graph, CallVertex vertex, String name, Method method, TemplateAttribute attr) {
791
791
  IRubyObject receiver = attr.getReceiver();
792
792
  IRubyObject[] args = attr.getArgs();
793
793
  Vertex[] argVertices = new Vertex[args.length];
@@ -826,7 +826,7 @@ public class RuntimeHelper {
826
826
  return template;
827
827
  }
828
828
 
829
- private static List<TemplateAttribute> generateTemplateAttributes(Collection<IRubyObject> receivers, List<Collection<IRubyObject>> args, Block block) {
829
+ public static List<TemplateAttribute> generateTemplateAttributes(Collection<IRubyObject> receivers, List<Collection<IRubyObject>> args, Block block) {
830
830
  int size = 1;
831
831
  for (Collection<IRubyObject> c : args) {
832
832
  size *= c.size();
@@ -1 +1 @@
1
- rsense.version = 0.5.8
1
+ rsense.version = 0.5.9
@@ -1921,7 +1921,7 @@ class Numeric
1921
1921
  end
1922
1922
 
1923
1923
  class BasicObject
1924
- ##% ==(a) -> Boolean
1924
+ ##% ==(a) -> Boolean
1925
1925
  def ==(other) BOOLEAN end
1926
1926
  ##% ===(a) -> Boolean
1927
1927
  def __id__() 0 end
@@ -1953,7 +1953,7 @@ class BasicObject
1953
1953
  false
1954
1954
  end
1955
1955
  end
1956
-
1956
+
1957
1957
  def singleton_method_added(name) end
1958
1958
 
1959
1959
  def singleton_method_removed(name) end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsense-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric West
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-20 00:00:00.000000000 Z
12
+ date: 2014-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spoon