carrierwave-bombshelter 0.1.1 → 0.1.1.1

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: dce2ab6cee5e0c117fe94303c3836757d310eeef
4
- data.tar.gz: e409298b581bff00c3b85e957ef883e526384acf
3
+ metadata.gz: 10cc0b727b8d44b8f5ac7525f10e97714c49079a
4
+ data.tar.gz: 459c940ef1a9441de746408346814161ffbefd2a
5
5
  SHA512:
6
- metadata.gz: 6f6b29efd717baccd4ddd4af8a0a963170332490cc7b6673e442f84e1074838da0bc741f4cc2122b5e8c755c8ab985f6ede810bf314b02b970512b0550ba302a
7
- data.tar.gz: 4bb42f073af153d38d2d52e6ac28dd1441f9a748a2f549d3d86ed0c15d0aaa97666324b032ad1d69592741d626ead7caa2189ebb5ab6d315f414a123456c3b0f
6
+ metadata.gz: c58fe982e5de12c4e8589c40921e128073be27d7c7668bf4bd5238815c36017e7de02fad812dff8effb9f0836ccb489360468b931a05d8ae28595f42c03c1ba1
7
+ data.tar.gz: b5c55254d68a0768e4f31b70b61019fc250daee2f54044df34b11fbc334f88309891d0c4726c6ef8421715eec94a790609fa01b78e7345a7324550249e34d5ef
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.10'
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
23
  spec.add_development_dependency 'minitest'
24
+ spec.add_development_dependency 'webmock'
24
25
 
25
26
  spec.add_dependency 'activesupport', '>= 3.2.0'
26
27
  spec.add_dependency 'fastimage'
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module BombShelter
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.1.1'
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ module CarrierWave
24
24
  private
25
25
 
26
26
  def protect_from_image_bomb!(new_file)
27
- image = FastImage.new(new_file.path)
27
+ image = FastImage.new(new_file.path || new_file.file)
28
28
  check_image_type!(image)
29
29
  check_pixel_dimensions!(image)
30
30
  end
data/lib/locale/fr.yml CHANGED
@@ -2,4 +2,4 @@ fr:
2
2
  errors:
3
3
  messages:
4
4
  pixel_dimensions_error: "La taille de l'image doit être inférieure ou égale à %{x_size}x%{y_size}"
5
- not_image: "Fichier est pas une image"
5
+ not_image: "Ce fichier n'est pas une image"
data/lib/locale/tr.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  tr:
2
2
  errors:
3
3
  messages:
4
- pixel_dimensions_error: "Göürüntü boyutu %{x_size}x%{y_size} ölçüsüne eşit yada daha küçük olmalıdır"
5
- not_image: "Dosya bir görüntü değil"
4
+ pixel_dimensions_error: "Görüntü boyutu %{x_size}x%{y_size} ölçüsüne eşit ya da daha küçük olmalıdır"
5
+ not_image: "Bir görüntü dosyası değil"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-bombshelter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarthSim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2015-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: activesupport
57
71
  requirement: !ruby/object:Gem::Requirement