image_vise 0.0.22 → 0.0.23

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
  SHA1:
3
- metadata.gz: fd846193c9dfec3d6a6489d87a2145eeb602a02c
4
- data.tar.gz: 5d0cf54a6245a0c345517e9a5eca524f0621d6f0
3
+ metadata.gz: 9c2ae809c21c7b550cdc50ec8a6cb5a697582a6c
4
+ data.tar.gz: 2d805b06da8bbd98eeef3234d98d1aeff42a67f0
5
5
  SHA512:
6
- metadata.gz: 7e818b5aa0a04154d248f94a29d95e923ca995cc009115004f86cbfb636136b5f88c9b94b9da568a623832bb1bc230b0cd35688bd67410e8237f512f75c912ba
7
- data.tar.gz: c0a1e0fb980a1f2b92a5b337d4ccf9051ffc0d52358a14cc6e9ab7a46e28f1c32c35354621a54de2f1c1e780a7d843ce33ff6659acd4428c8b96d0959994dba0
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.22 ruby lib
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.22"
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.realpath(File.expand_path(path_to_check))
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.realpath(File.expand_path(path_on_filesystem))
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
@@ -8,7 +8,7 @@ require 'base64'
8
8
  require 'rack'
9
9
 
10
10
  class ImageVise
11
- VERSION = '0.0.22'
11
+ VERSION = '0.0.23'
12
12
  S_MUTEX = Mutex.new
13
13
  private_constant :S_MUTEX
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_vise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov