ffi-hydrogen 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcf7222814e1b73a17b3ea735aea98e9b8ba25af66e140cf44930fe8c933d80d
4
- data.tar.gz: 7beeae085e1a733aeefbfed6107bfc7c8649ebd37037dace6945ca264bd4185b
3
+ metadata.gz: ccbd8be472cd4723875fdd43e8160ee1a3170cc58d677686fdf375d4fbfdb91d
4
+ data.tar.gz: a69956b47424d4670dbef066e5e1039b36eb94fff0a2af00c336b312a76e2d2f
5
5
  SHA512:
6
- metadata.gz: d9ebfc742fb3a4e8065328f7e5262188f805d2a42d658d17346be91a389aebbcc3835ae67a96ff933faea709add7b82b5ea262e9d887b3969835dd085d6f7966
7
- data.tar.gz: 4b37a7cd2c2b60c5a422bd5e72cee11f8cdeb2badefb2c0c724de35c525205cd78073a6d68062f38175fb7f71eef8d011647f33293120a4354298271813a0aeb
6
+ metadata.gz: 608dc549fb320cb3e62498651482b15b67f1d1667fd40c222bf5d37d56e0d9e639dd61290a708daf1de04000e8505293d3f9c41f900b689eff9bc658ffd91e7f
7
+ data.tar.gz: cf511f398a700940d129803fb502ae71d27087227310b7e489c72983107e49cab0c399172e77d080f79f12dba2aeb2aec8683034f38f0bb0b3ea0a35d162da66
data/ffi-hydrogen.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "ffi-hydrogen"
6
- spec.version = "0.1.0"
6
+ spec.version = "0.1.1"
7
7
  spec.authors = ["Marcos Minond"]
8
8
  spec.email = ["marcos.minond@mx.com"]
9
9
 
data/lib/ffi/hydrogen.rb CHANGED
@@ -9,7 +9,8 @@ module FFI
9
9
  KEYBYTES = 32
10
10
  HEADERBYTES = 36
11
11
 
12
- ffi_lib "vendor/main.#{::FFI::Platform::LIBSUFFIX}"
12
+ gem_base = ::File.join(::File.dirname(__FILE__), "..", "..")
13
+ ffi_lib "#{gem_base}/vendor/main.#{::FFI::Platform::LIBSUFFIX}"
13
14
 
14
15
  # void hydro_secretbox_keygen(uint8_t key[hydro_secretbox_KEYBYTES])
15
16
  attach_function :_hydro_secretbox_keygen, :hydro_secretbox_keygen, [:pointer], :void
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-hydrogen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Minond