lucide-ruby 0.1.3 → 0.1.5
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 +4 -4
- data/lib/lucide-ruby.rb +3 -0
- data/lib/lucide_ruby/tasks/lucide.rake +4 -2
- data/lib/lucide_ruby/version.rb +1 -1
- metadata +2 -2
- data/lib/lucide/ruby.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0902f5bb59b803ef15f608817956033ac3aeafac4fd53f0e7105fcd1eca4d3c
|
|
4
|
+
data.tar.gz: eeb5517c4c477eb52e30e27ec7f61505aa95209a268c7665eee7333255e35ae5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab36d567831359a48f01fe529ae40a339eb66ecaf87ad81460cd96842a3adffb915e5efe9e67a79d6025d053ceed018cc4cc2cd422b8135526050a517d24dde7
|
|
7
|
+
data.tar.gz: 8dbbe1a534e7e56801b2176c725146d090e99328d62fea3bcd9f24b906082a814823ac969f3264e9586696cd53a1d5d4460e2975c38b2fd739104cc43bda47fd
|
data/lib/lucide-ruby.rb
ADDED
|
@@ -142,12 +142,14 @@ def make_request(uri)
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def extract_zip(zip_path, extract_path)
|
|
145
|
+
real_extract_path = File.realpath(extract_path)
|
|
146
|
+
|
|
145
147
|
Zip::File.open(zip_path) do |zip_file|
|
|
146
148
|
zip_file.each do |entry|
|
|
147
|
-
entry_path = File.
|
|
149
|
+
entry_path = File.expand_path(entry.name, real_extract_path)
|
|
148
150
|
|
|
149
151
|
# Prevent zip slip
|
|
150
|
-
unless entry_path.start_with?(
|
|
152
|
+
unless entry_path.start_with?(real_extract_path)
|
|
151
153
|
raise LucideRuby::SyncError, "Zip slip detected: #{entry.name}"
|
|
152
154
|
end
|
|
153
155
|
|
data/lib/lucide_ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lucide-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lucide-ruby contributors
|
|
@@ -61,7 +61,7 @@ files:
|
|
|
61
61
|
- README.md
|
|
62
62
|
- lib/generators/lucide_ruby/install_generator.rb
|
|
63
63
|
- lib/generators/lucide_ruby/templates/initializer.rb
|
|
64
|
-
- lib/lucide
|
|
64
|
+
- lib/lucide-ruby.rb
|
|
65
65
|
- lib/lucide_ruby.rb
|
|
66
66
|
- lib/lucide_ruby/cache.rb
|
|
67
67
|
- lib/lucide_ruby/configuration.rb
|
data/lib/lucide/ruby.rb
DELETED