image_vise 0.0.22 → 0.0.23
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/image_vise.gemspec +2 -2
- data/lib/image_vise/image_request.rb +1 -1
- data/lib/image_vise/render_engine.rb +1 -1
- data/lib/image_vise.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c2ae809c21c7b550cdc50ec8a6cb5a697582a6c
|
|
4
|
+
data.tar.gz: 2d805b06da8bbd98eeef3234d98d1aeff42a67f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f1a43a887a52f3f2858ec4909379912dbdc1d15bfbebb53de7725afc4c872664d5d5c9aed5730b358f2d40f09c29cd1d8d79dfe9be431af69fdf714a89dab36
|
|
7
|
+
data.tar.gz: 1f9bfef4781380c210a9847bc436c13e8ad2552e38bb5d372abd702977f854f66b7b5e274131a788da82dbfdcf14e45ee1d501f3077a84973dc6a380168f5e90
|
data/image_vise.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: image_vise 0.0.
|
|
5
|
+
# stub: image_vise 0.0.23 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "image_vise"
|
|
9
|
-
s.version = "0.0.
|
|
9
|
+
s.version = "0.0.23"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
@@ -56,7 +56,7 @@ class ImageVise::ImageRequest < Ks.strict(:src_url, :pipeline)
|
|
|
56
56
|
private
|
|
57
57
|
|
|
58
58
|
def self.allowed_path?(filesystem_glob_patterns, path_to_check)
|
|
59
|
-
expanded_path = File.
|
|
59
|
+
expanded_path = File.expand_path(path_to_check)
|
|
60
60
|
filesystem_glob_patterns.any? {|pattern| File.fnmatch?(pattern, expanded_path) }
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -234,7 +234,7 @@ class ImageVise::RenderEngine
|
|
|
234
234
|
|
|
235
235
|
def copy_path_into_tempfile(path_on_filesystem)
|
|
236
236
|
tf = binary_tempfile
|
|
237
|
-
real_path_on_filesystem = File.
|
|
237
|
+
real_path_on_filesystem = File.expand_path(path_on_filesystem)
|
|
238
238
|
File.open(real_path_on_filesystem, 'rb') do |f|
|
|
239
239
|
IO.copy_stream(f, tf)
|
|
240
240
|
end
|
data/lib/image_vise.rb
CHANGED