rubydict 0.0.2 → 0.0.3

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: 931f2e9bf11c939423ba19a9694396a5fe063a55
4
- data.tar.gz: 9aa4735007e0edbedda6f4dc72bf702975567c41
3
+ metadata.gz: 817440b8f1ee7799b533bd02f4d4e26059c8fa17
4
+ data.tar.gz: fe2a8c255574a2fc73d7586ed6a2c62fc07e405c
5
5
  SHA512:
6
- metadata.gz: cebee6e12ebb13b1170bd672bd31cc7a7f66bd9c318d4382045750cd818e1401ba2b1ba386dabd6774b0ee5b96c31d615f06aab72086cb618e606b916b92373b
7
- data.tar.gz: 3dd2199477693d04a270efbecd848b88858b5bd26c13cfdc088581ee67724070134b577547b08d6d3db254a9ba2db77a39f54a4c1f313d7d403e6d57ad3a1a05
6
+ metadata.gz: 06daf94e63e3096607a4f473023dfd2237095baabfc4c0ab4e8db9f1e82e9686164a79e1be0e9c4fde00ca503a97a57d205b907b6ce3f4606f213ad8730127c4
7
+ data.tar.gz: d557a9d64054ccd7252af84cd5c997e6260a32491a5f854f480c03d5adfeca2e9404045b8ebc0b4cee059bc64edae1da9a175bd804f82c7cb93d547b85894213
@@ -4,8 +4,14 @@ module Rubydict
4
4
  module MixBox
5
5
  module Dictionary
6
6
  extend FFI::Library
7
- ffi_lib "clib/liblookup.so"
7
+
8
+ def self.clib_path
9
+ File.expand_path("#{__FILE__}/../../../../clib/liblookup.so")
10
+ end
11
+
12
+ ffi_lib clib_path
8
13
  attach_function :lookup, [:string, :long, :long, :string], :string
14
+
9
15
  end
10
16
 
11
17
  class Translator
@@ -1,3 +1,3 @@
1
1
  module Rubydict
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -3,6 +3,9 @@ require 'rubydict'
3
3
  describe Rubydict::MixBox::Dictionary do
4
4
  it "should load so file" do
5
5
  Rubydict::MixBox::Dictionary.should be_respond_to(:lookup)
6
+
7
+ puts Rubydict::MixBox::Dictionary.clib_path
8
+
6
9
  end
7
10
  end
8
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubydict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jason.li