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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d56c0898c3b1795733fb1fae5dae104d4bd48d53
4
- data.tar.gz: 27f4fb684001546d486a0f00ece89f63e9c7d16d
2
+ SHA256:
3
+ metadata.gz: 8838b419b52932f72d8c992e3c1320fead845520bf0a31ed11a8a95b32484fd5
4
+ data.tar.gz: 8a8cd793478eed051840e2edc40697386f47d6b636aea0754daef26746b92386
5
5
  SHA512:
6
- metadata.gz: c12b476d98849b267ccee31388285b9905c7f8d0b850cdb2e7594347e27a273f0fa4db799fb614f50f72cc12f384d9b1c7cd019c85f471940d93fa9db824951b
7
- data.tar.gz: 7c5f99aace385418cacbf0bfada620fb821abcb35ff969004f769cf60a738862c132245889dc10b14abc6b3b03a190f28b81099fef8af61820572a9f6efbb1f8
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](http://img.shields.io/gem/v/filepreviews.svg?style=flat)](http://badge.fury.io/rb/filepreviews)
3
- [![Build Status](http://img.shields.io/travis/jonahoffline/filepreviews-ruby.svg?style=flat)](https://travis-ci.org/jonahoffline/filepreviews-ruby)
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
- [![Gitter chat](https://img.shields.io/badge/gitter-filepreviews--ruby-blue.svg?style=flat)](https://gitter.im/jonahoffline/filepreviews-ruby)
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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # @author Jonah Ruiz <jonah@pixelhipsters.com>
2
2
  # Contains the version namespaced
3
3
  module Filepreviews
4
- VERSION = '2.0.5'
4
+ VERSION = '2.0.6'
5
5
  end
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.5
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: 2018-05-04 00:00:00.000000000 Z
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.6.12
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