opal-native 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/opal/native.rb +8 -0
  2. data/opal-native.gemspec +1 -1
  3. metadata +1 -1
@@ -63,6 +63,14 @@ class Native::Object
63
63
  update!
64
64
  end
65
65
 
66
+ def == (other)
67
+ `#@native == #{Native(other).to_native}`
68
+ end
69
+
70
+ def === (other)
71
+ Native::Object === other && `#@native == #{other.to_native}`
72
+ end
73
+
66
74
  def [] (name)
67
75
  Kernel.Native(`#@native[name]`)
68
76
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new {|s|
2
2
  s.name = 'opal-native'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.author = 'meh.'
5
5
  s.email = 'meh@paranoici.org'
6
6
  s.homepage = 'http://github.com/opal/opal-native'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: