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 +4 -4
- data/README.md +9 -1
- data/lib/dynamic_image/railtie.rb +11 -0
- data/lib/dynamic_image/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2be34620d7c053a12bd47d7e2f8c9af08938fdf
|
4
|
+
data.tar.gz: d61d713d978128293742e0b4ca5c860d8fd4a5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a087177590421ff0a00ffc23cee906df22f4032ceace19312b89d26f1448d42bf57a34e98ddd62d240d5bd00d80bba36896680768d7eb61052006e402f9fc2d6
|
7
|
+
data.tar.gz: 3847bbf4b94ad42a2902084b6faec37e92588b1db0d647ab12b13c89cd04d8aa25f5e98e457b5eea17243cdb16e8f8c0728a445bc42a816f7fa5c37d0896c38a
|
data/README.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
|
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)
|
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.
|
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-
|
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.
|
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
|