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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ac89192a367b163454220c7ef4a0c963cbd4624
4
- data.tar.gz: 11ed9bee9514ed5a265bd29ad7d3651f700b5c75
3
+ metadata.gz: f12bf824314da70b46ba5b3bfb889e967747c407
4
+ data.tar.gz: 54d4d020ff9b94540976b1da34b1b8d41c694566
5
5
  SHA512:
6
- metadata.gz: 73376d985dbe03617ad7cd0a2d70659431fde9189c4c47b006a474b8a0745d09286ac4eea910ff1e54513d8f60e31d4a6353adb5ba61bc8937b5ff609b45ebfa
7
- data.tar.gz: 9c9e38337a939a76fe8cd1e6a4c87b7b9aededfb93715d6942b134105e1df13ad2464dd5b44e1e921de562778cff3e05eac22b1a574f1685de0d991dbaef6cb1
6
+ metadata.gz: 03b7c6ece770ee470428752bfece08eb324c90830b51738070662c1b26ec276b04811dc46778cb59b8b65dce3aa09fe60f167c51216c744508db7691a9464db7
7
+ data.tar.gz: 99fca5538f130fd2b0e5e8b420ad72d6121e3ca866aca0b7020eaf8f429d489002c53014ae8e6cdae5d36c9713cce8bc1a23c696843900292bd717b0b60df748
data/.travis.yml CHANGED
@@ -1,6 +1,9 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
+ - 2.4.1
5
+ - 2.3.3
6
+ - 2.2.6
4
7
  - 2.1.1
5
8
  - 2.0.0
6
9
  script: bundle exec rake test
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.9.0'
26
- spec.add_dependency 'typhoeus', '~> 0.6.8'
25
+ spec.add_dependency 'faraday', '~> 0.12.2'
26
+ spec.add_dependency 'typhoeus', '~> 1.1.2'
27
27
  end
@@ -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
 
@@ -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.2'
4
+ VERSION = '2.0.3'
5
5
  end
@@ -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.2
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: 2016-11-12 00:00:00.000000000 Z
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.9.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.9.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: 0.6.8
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: 0.6.8
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.5.1
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