rzipline 0.0.1
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 +7 -0
- data/lib/libzipline.so +0 -0
- data/lib/rzipline.rb +17 -0
- data/lib/rzipline.rb~ +15 -0
- metadata +59 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2985056bd6aa3781b2449e34b6d94a4ab4cda83bbd52dc93d8cc3de36f23d6af
|
4
|
+
data.tar.gz: 952bda0077d47edd71baa4111777584b826a53ef2fd61a2b7df5a391d7dd1872
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fd86629409529d7ccca740577a43dc17436d0e61257f111b343c52c483a70532f1ff4a852934be4fbf07e61dfdf0fd1c8bf34fc3bab0bdb9114937be6963a5d0
|
7
|
+
data.tar.gz: 70e2d71322aa654b7c3adbbafac3c6cf62a0c63c1f5e4fcd79baa18ce4d8f01b9d9e28010cddd5401df3622e379555535c921a5f53aea14ea4a206016db6371b
|
data/lib/libzipline.so
ADDED
Binary file
|
data/lib/rzipline.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
|
3
|
+
module Rzipline
|
4
|
+
extend FFI::Library
|
5
|
+
def self.load_lib(libpath = __dir__ + '/libzipline.so')
|
6
|
+
ffi_lib libpath
|
7
|
+
import_symbols()
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.import_symbols()
|
11
|
+
attach_function :zipline_create, [:string], :void
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.create(pathname)
|
15
|
+
zipline_create(pathname)
|
16
|
+
end
|
17
|
+
end
|
data/lib/rzipline.rb~
ADDED
@@ -0,0 +1,15 @@
|
|
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
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rzipline
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arnaut Daniel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ffi
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
description: Allows for the creation of zipline packages.
|
28
|
+
email: jack@occiro.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/libzipline.so
|
34
|
+
- lib/rzipline.rb
|
35
|
+
- lib/rzipline.rb~
|
36
|
+
homepage: https://rubygems.org/gems/rzipline
|
37
|
+
licenses:
|
38
|
+
- MIT
|
39
|
+
metadata: {}
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
requirements: []
|
55
|
+
rubygems_version: 3.3.16
|
56
|
+
signing_key:
|
57
|
+
specification_version: 4
|
58
|
+
summary: Bindings to libzipline
|
59
|
+
test_files: []
|