filepreviews 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changelog.md +6 -0
- data/README.md +7 -6
- data/lib/filepreviews/http.rb +1 -0
- data/lib/filepreviews/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8838b419b52932f72d8c992e3c1320fead845520bf0a31ed11a8a95b32484fd5
|
4
|
+
data.tar.gz: 8a8cd793478eed051840e2edc40697386f47d6b636aea0754daef26746b92386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41453c75a7bb23360c5674669463f156c68384b0b4a6a27891034990c5f220c66adc01f199ab5064133d64991354be7ed7406bbc1a81ac1795f593ecc5ad7e80
|
7
|
+
data.tar.gz: 3f68a3c6330433c100552a11bb57ea71228295ef81eb2500e2f2b55c3445c6a690826af6f06d7bdfae04f0a581953b86ee063767ec9c78a00d89e395590da578
|
data/Changelog.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Filepreviews Changelog
|
2
2
|
|
3
|
+
## 2.0.6
|
4
|
+
|
5
|
+
Released May 19, 2019 ([2.0.6](https://github.com/jonahoffline/filepreviews-ruby/tree/v2.0.6)).
|
6
|
+
|
7
|
+
* Add `callback_url` option (thanks to [patrick-gleeson](https://github.com/patrick-gleeson))
|
8
|
+
|
3
9
|
## 2.0.5
|
4
10
|
|
5
11
|
Released May 4, 2018 ([2.0.5](https://github.com/jonahoffline/filepreviews-ruby/tree/v2.0.5)).
|
data/README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
# FilePreviews.io (Ruby client)
|
2
|
-
[![Gem Version](
|
3
|
-
[![Build Status](
|
4
|
-
[![Dependency Status](http://img.shields.io/gemnasium/jonahoffline/filepreviews-ruby.svg?style=flat)](https://gemnasium.com/jonahoffline/filepreviews-ruby)
|
5
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/jonahoffline/filepreviews-ruby.svg?style=flat)](https://codeclimate.com/github/jonahoffline/filepreviews-ruby)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/filepreviews.svg)](https://badge.fury.io/rb/filepreviews)
|
3
|
+
[![Build Status](https://travis-ci.org/jonahoffline/filepreviews-ruby.svg?branch=master)](https://travis-ci.org/jonahoffline/filepreviews-ruby)
|
6
4
|
[![security](https://hakiri.io/github/jonahoffline/filepreviews-ruby/master.svg)](https://hakiri.io/github/jonahoffline/filepreviews-ruby/master)
|
7
|
-
[![
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/da1cc5ca8fbbbf1ae3a9/maintainability)](https://codeclimate.com/github/jonahoffline/filepreviews-ruby/maintainability)
|
8
6
|
[![Inline docs](http://inch-ci.org/github/jonahoffline/filepreviews-ruby.png)](http://inch-ci.org/github/jonahoffline/filepreviews-ruby)
|
9
7
|
|
10
8
|
Ruby client library and CLI tool for the [FilePreviews.io](http://filepreviews.io) service. Generate image previews and metadata from almost any kind of file.
|
@@ -98,7 +96,10 @@ conf = {
|
|
98
96
|
},
|
99
97
|
|
100
98
|
# supported: '1', '1-3', '1,3,5', '1-3', 'all'
|
101
|
-
pages: '1-3'
|
99
|
+
pages: '1-3',
|
100
|
+
|
101
|
+
# Callback URL (POST) to send results
|
102
|
+
callback_url: 'http://requestbin.fullcontact.com/1234'
|
102
103
|
}
|
103
104
|
}
|
104
105
|
|
data/lib/filepreviews/http.rb
CHANGED
@@ -67,6 +67,7 @@ module Filepreviews
|
|
67
67
|
request.store(:data, params.data) if params.data
|
68
68
|
request.store(:uploader, params.uploader) if params.uploader
|
69
69
|
request.store(:pages, params.pages) if params.pages
|
70
|
+
request.store(:callback_url, params.callback_url) if params.callback_url
|
70
71
|
request
|
71
72
|
end
|
72
73
|
|
data/lib/filepreviews/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filepreviews
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonah Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.7.9
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: FilePreviews.io Ruby library and CLI for the service
|