filepreviews 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Changelog.md +8 -0
- data/README.md +1 -0
- data/filepreviews.gemspec +2 -2
- data/lib/filepreviews/http.rb +1 -0
- data/lib/filepreviews/version.rb +1 -1
- data/spec/filepreviews/http_spec.rb +13 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f12bf824314da70b46ba5b3bfb889e967747c407
|
4
|
+
data.tar.gz: 54d4d020ff9b94540976b1da34b1b8d41c694566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b7c6ece770ee470428752bfece08eb324c90830b51738070662c1b26ec276b04811dc46778cb59b8b65dce3aa09fe60f167c51216c744508db7691a9464db7
|
7
|
+
data.tar.gz: 99fca5538f130fd2b0e5e8b420ad72d6121e3ca866aca0b7020eaf8f429d489002c53014ae8e6cdae5d36c9713cce8bc1a23c696843900292bd717b0b60df748
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Filepreviews Changelog
|
2
2
|
|
3
|
+
## 2.0.3
|
4
|
+
|
5
|
+
Released August 5, 2017 ([2.0.3](https://github.com/jonahoffline/filepreviews-ruby/tree/v2.0.3)).
|
6
|
+
|
7
|
+
* Fix missing `pages` option parameter (thanks to [systho](https://github.com/Systho))
|
8
|
+
* Add Hakiri (security) badge
|
9
|
+
* Update `Typhoeus`, and `Faraday` dependencies
|
10
|
+
|
3
11
|
## 2.0.2
|
4
12
|
|
5
13
|
Released Nov 12, 2016 ([2.0.2](https://github.com/jonahoffline/filepreviews-ruby/tree/v2.0.2)).
|
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[![Build Status](http://img.shields.io/travis/jonahoffline/filepreviews-ruby.svg?style=flat)](https://travis-ci.org/jonahoffline/filepreviews-ruby)
|
4
4
|
[![Dependency Status](http://img.shields.io/gemnasium/jonahoffline/filepreviews-ruby.svg?style=flat)](https://gemnasium.com/jonahoffline/filepreviews-ruby)
|
5
5
|
[![Code Climate](http://img.shields.io/codeclimate/github/jonahoffline/filepreviews-ruby.svg?style=flat)](https://codeclimate.com/github/jonahoffline/filepreviews-ruby)
|
6
|
+
[![security](https://hakiri.io/github/jonahoffline/filepreviews-ruby/master.svg)](https://hakiri.io/github/jonahoffline/filepreviews-ruby/master)
|
6
7
|
[![Gitter chat](https://img.shields.io/badge/gitter-filepreviews--ruby-blue.svg?style=flat)](https://gitter.im/jonahoffline/filepreviews-ruby)
|
7
8
|
[![Inline docs](http://inch-ci.org/github/jonahoffline/filepreviews-ruby.png)](http://inch-ci.org/github/jonahoffline/filepreviews-ruby)
|
8
9
|
|
data/filepreviews.gemspec
CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'rake'
|
23
23
|
spec.add_development_dependency 'rspec'
|
24
24
|
|
25
|
-
spec.add_dependency 'faraday', '~> 0.
|
26
|
-
spec.add_dependency 'typhoeus', '~>
|
25
|
+
spec.add_dependency 'faraday', '~> 0.12.2'
|
26
|
+
spec.add_dependency 'typhoeus', '~> 1.1.2'
|
27
27
|
end
|
data/lib/filepreviews/http.rb
CHANGED
@@ -66,6 +66,7 @@ module Filepreviews
|
|
66
66
|
request.store(:format, params.format) if params.format
|
67
67
|
request.store(:data, params.data) if params.data
|
68
68
|
request.store(:uploader, params.uploader) if params.uploader
|
69
|
+
request.store(:pages, params.pages) if params.pages
|
69
70
|
request
|
70
71
|
end
|
71
72
|
|
data/lib/filepreviews/version.rb
CHANGED
@@ -53,6 +53,19 @@ describe Filepreviews::HTTP do
|
|
53
53
|
let(:params) { OpenStruct.new(options) }
|
54
54
|
let(:request) { http.prepare_request(params) }
|
55
55
|
|
56
|
+
context 'when options are provided' do
|
57
|
+
let(:options) do
|
58
|
+
{
|
59
|
+
url: 'testing.com',
|
60
|
+
pages: '1-3'
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'includes the :pages options without changes' do
|
65
|
+
expect(request).to include(pages: '1-3')
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
56
69
|
context 'when custom :data is provided' do
|
57
70
|
let(:options) do
|
58
71
|
{
|
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.3
|
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: 2017-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.12.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.12.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: typhoeus
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.1.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.1.2
|
83
83
|
description: FilePreviews.io Ruby library and CLI application.
|
84
84
|
email:
|
85
85
|
- jonah@pixelhipsters.com
|
@@ -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.4.8
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: FilePreviews.io Ruby library and CLI for the service
|