ruar 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/ruar/ruar.c +1 -1
- data/lib/ruar/compression.rb +2 -0
- data/lib/ruar/entrypoint.rb +4 -0
- data/lib/ruar/ruar.so +0 -0
- data/lib/ruar/setup.rb +7 -2
- data/lib/ruar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b47119ed5972f29fca26cc2e2d268f3b7c41ef6108bc97ea4d448f4d98d33fd
|
4
|
+
data.tar.gz: 5576a1a1ae592463a5026956c7e1fa72f91fa929e9b0f97826b2edbd18f218fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4576334c741e35a2641aa8a760d926bc973d5325e475099c9423760c18fa92f1bee2642fd5ca86171e368644a2c8f10e85f71c3efcb9efb396afee0bceda9093
|
7
|
+
data.tar.gz: f2a22e07ed9d95d63696c2093eaaf0ef67b4bf8247f47ce8cade5d9248356f3c3c3fd76a30d0747af5fe72e05d32010f74245b9e0cd547ae2413669578769171
|
data/README.md
CHANGED
data/ext/ruar/ruar.c
CHANGED
@@ -44,7 +44,7 @@ STATIC_ASSERT(sizeof(struct ruar_header) == HEADER_SIZE);
|
|
44
44
|
/* Constants */
|
45
45
|
static const uint32_t current_major_version = 0;
|
46
46
|
static const uint32_t current_minor_version = 0;
|
47
|
-
static const uint32_t current_patch_version =
|
47
|
+
static const uint32_t current_patch_version = 4;
|
48
48
|
|
49
49
|
/* Flags */
|
50
50
|
#define PLAIN 0
|
data/lib/ruar/compression.rb
CHANGED
data/lib/ruar/entrypoint.rb
CHANGED
data/lib/ruar/ruar.so
CHANGED
Binary file
|
data/lib/ruar/setup.rb
CHANGED
@@ -7,9 +7,10 @@ module Ruar
|
|
7
7
|
end
|
8
8
|
|
9
9
|
module ClassMethods
|
10
|
-
def setup(archive: nil, entry: nil)
|
10
|
+
def setup(archive: nil, entry: nil, rien: false)
|
11
11
|
@entrypoint ||= Ruar::EntryPoint.new(archive: archive, entry: entry)
|
12
|
-
|
12
|
+
# Rien uses relative path when it compiles the Ruby code
|
13
|
+
@path_prefix ||= rien ? Pathname.new('') : Pathname.new('/_from/_ruar/_internal')
|
13
14
|
|
14
15
|
self
|
15
16
|
end
|
@@ -33,6 +34,10 @@ module Ruar
|
|
33
34
|
@entrypoint.eval(path, bind)
|
34
35
|
end
|
35
36
|
|
37
|
+
def read(path)
|
38
|
+
@entrypoint.read(path)
|
39
|
+
end
|
40
|
+
|
36
41
|
def cipher
|
37
42
|
@cipher ||= Ruar::Cipher.new
|
38
43
|
end
|
data/lib/ruar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kowalski Dark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|