rzipline 0.0.1 → 0.0.4

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: 2985056bd6aa3781b2449e34b6d94a4ab4cda83bbd52dc93d8cc3de36f23d6af
4
- data.tar.gz: 952bda0077d47edd71baa4111777584b826a53ef2fd61a2b7df5a391d7dd1872
3
+ metadata.gz: '096cad305cacaaf1da193ae4eb612952117cb0bc5f3c99bd19d7cbe3dec3d40f'
4
+ data.tar.gz: 7b5240462ca1bd255d10f6ff63aef072f84585d8efa320a81c096049debbb585
5
5
  SHA512:
6
- metadata.gz: fd86629409529d7ccca740577a43dc17436d0e61257f111b343c52c483a70532f1ff4a852934be4fbf07e61dfdf0fd1c8bf34fc3bab0bdb9114937be6963a5d0
7
- data.tar.gz: 70e2d71322aa654b7c3adbbafac3c6cf62a0c63c1f5e4fcd79baa18ce4d8f01b9d9e28010cddd5401df3622e379555535c921a5f53aea14ea4a206016db6371b
6
+ metadata.gz: 3f6d4aa75598e15dcd138b8c7afe2f6888109f621b3d83b2f53172a1552fdb47e36903675abc9e8fbb0f3ab9e96520ec02857dbad70804929ee39977625a7dd8
7
+ data.tar.gz: e231535f088c58f07c3eb492525c0986ed5b2ff8553de258a2fdfd36904d05e79216e7a70ad30448f165f41da86a9428308c032afa28e02889b4afdbde3e487a
data/lib/libzipline.so CHANGED
Binary file
data/lib/rzipline.rb CHANGED
@@ -8,10 +8,10 @@ module Rzipline
8
8
  end
9
9
 
10
10
  def self.import_symbols()
11
- attach_function :zipline_create, [:string], :void
11
+ attach_function :zipline_create, [:string], :string
12
12
  end
13
13
 
14
14
  def self.create(pathname)
15
- zipline_create(pathname)
15
+ return zipline_create(pathname)
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rzipline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaut Daniel
@@ -32,7 +32,6 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - lib/libzipline.so
34
34
  - lib/rzipline.rb
35
- - lib/rzipline.rb~
36
35
  homepage: https://rubygems.org/gems/rzipline
37
36
  licenses:
38
37
  - MIT
data/lib/rzipline.rb~ DELETED
@@ -1,15 +0,0 @@
1
- require 'ffi'
2
-
3
- module Rzipline
4
- extend FFI::Library
5
- def self.load_lib(libpath = './libzipline.so')
6
-
7
- ffi_lib "./libzipline.so"
8
- attach_function :zipline_create, [:string], :void
9
- end
10
-
11
- module Rzipline
12
- def self.create(pathname)
13
- LibZiplineInterop.zipline_create(pathname)
14
- end
15
- end