dynamic_image 2.0.9 → 2.0.10

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: 47649c2aa2a14d05bf56664cba7688766adc3194
4
- data.tar.gz: 18f14997cf8f817baa19e260ae70a5bc57a68b8e
3
+ metadata.gz: a2be34620d7c053a12bd47d7e2f8c9af08938fdf
4
+ data.tar.gz: d61d713d978128293742e0b4ca5c860d8fd4a5c6
5
5
  SHA512:
6
- metadata.gz: e5ebed365c6799d41ed23d04f36fab939ac1fa18d2198e31d80c12b2336c8b57fcfc70156fc45636610d4ad491e3b5b757cb8c384a8b62239bc73c603217c0ec
7
- data.tar.gz: bd0da1f2fdcf83965ef16bce021dff1eda121bdb33ce630381cb25c44c422f5a0fb95d34160c84b338902f91712ca590824c8b21ef4702feeb2f8c6ff390a729
6
+ metadata.gz: a087177590421ff0a00ffc23cee906df22f4032ceace19312b89d26f1448d42bf57a34e98ddd62d240d5bd00d80bba36896680768d7eb61052006e402f9fc2d6
7
+ data.tar.gz: 3847bbf4b94ad42a2902084b6faec37e92588b1db0d647ab12b13c89cd04d8aa25f5e98e457b5eea17243cdb16e8f8c0728a445bc42a816f7fa5c37d0896c38a
data/README.md CHANGED
@@ -1,4 +1,12 @@
1
- # DynamicImage [![Build Status](https://travis-ci.org/elektronaut/dynamic_image.svg?branch=master)](https://travis-ci.org/elektronaut/dynamic_image) [![Code Climate](https://codeclimate.com/github/elektronaut/dynamic_image/badges/gpa.svg)](https://codeclimate.com/github/elektronaut/dynamic_image) [![Code Climate](https://codeclimate.com/github/elektronaut/dynamic_image/badges/coverage.svg)](https://codeclimate.com/github/elektronaut/dynamic_image) [![Dependency Status](https://gemnasium.com/elektronaut/dynamic_image.svg)](https://gemnasium.com/elektronaut/dynamic_image)
1
+ [![Version](https://img.shields.io/gem/v/dynamic_image.svg?style=flat)](https://rubygems.org/gems/dynamic_image)
2
+ [![Build Status](https://travis-ci.org/elektronaut/dynamic_image.svg?branch=master)](https://travis-ci.org/elektronaut/dynamic_image)
3
+ [![Code Climate](https://codeclimate.com/github/elektronaut/dynamic_image/badges/gpa.svg)](https://codeclimate.com/github/elektronaut/dynamic_image)
4
+ [![Code Climate](https://codeclimate.com/github/elektronaut/dynamic_image/badges/coverage.svg)](https://codeclimate.com/github/elektronaut/dynamic_image)
5
+ [![Dependency Status](https://gemnasium.com/elektronaut/dynamic_image.svg)](https://gemnasium.com/elektronaut/dynamic_image)
6
+ [![Inline docs](http://inch-ci.org/github/elektronaut/dynamic_image.svg)](http://inch-ci.org/github/elektronaut/dynamic_image)
7
+ [![Security](https://hakiri.io/github/elektronaut/dynamic_image/master.svg)](https://hakiri.io/github/elektronaut/dynamic_image/master)
8
+
9
+ # DynamicImage
2
10
 
3
11
  Need to handle image uploads in your Rails app?
4
12
  Give DynamicImage a try.
@@ -5,6 +5,17 @@ module DynamicImage
5
5
  initializer "dynamic_image" do
6
6
  ActionDispatch::Routing::Mapper.send :include, DynamicImage::Routing
7
7
 
8
+ ActionDispatch::ExceptionWrapper.rescue_responses.merge!(
9
+ "DynamicImage::Errors::InvalidSignature" => :unauthorized
10
+ )
11
+
12
+ # If Sentry is configured, exclude reporting of tampered signatures
13
+ if Object.const_defined?("Raven")
14
+ Raven.configure do |c|
15
+ c.excluded_exceptions += ["DynamicImage::Errors::InvalidSignature"]
16
+ end
17
+ end
18
+
8
19
  config.after_initialize do |app|
9
20
  secret = app.key_generator.generate_key("dynamic_image")
10
21
  DynamicImage.digest_verifier = DynamicImage::DigestVerifier.new(secret)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.0.9".freeze
4
+ VERSION = "2.0.10".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-07 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.5.1
158
+ rubygems_version: 2.6.13
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Rails plugin that simplifies image uploading and processing