paperclip-tus 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ee78bb8a59a163b3eb3188eccd9340edf4d7718
4
- data.tar.gz: 6ae79ebaca08a797aabbeb9e3936c5542483481d
3
+ metadata.gz: 01250f6d20c44718b91fb84aa9d7049cd19a96aa
4
+ data.tar.gz: 0d33cf1b0464eebc9e01f0a5d25975838385c0dc
5
5
  SHA512:
6
- metadata.gz: cce03d6118ec66b8a090e257784471d93577325859c640b6482d1a08428cb8fb497189436b82dbdeae9b821e497b28a9c3f2fd12587fb96a205395e36f89df27
7
- data.tar.gz: dcdb5948e46c018ffb1d80e2999e53c4bc8725e24045ef8dba8e23925397cdf0c8cb7ffccf487293fd8dbc11c08449cda6d3875218b95c80d89cbad470d7d4ff
6
+ metadata.gz: aaca8e1f6a97eb52ffaae087bba8741051c7114b6f41e9eafc5c53670a8026800048fbac16b67d7f573300d1e09d8101018586a7937650e51894e7e513744adf
7
+ data.tar.gz: '0924cd9b9873c3707a7b3ffca209ff5d9eee0fc07e26cb6fb0dfd472559f889e0aec5111042671adc3cfad078405be975ff1272b4c7b1cca9af9c9b72a32a414'
@@ -1,5 +1,12 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.3.3
5
- before_install: gem install bundler -v 1.14.3
3
+ - 2.3
4
+ - 2.4
5
+ - 2.5
6
+ gemfile:
7
+ - gemfiles/Gemfile.paperclip-4.3.x
8
+ - gemfiles/Gemfile.paperclip-5.0.x
9
+ - gemfiles/Gemfile.paperclip-5.1.x
10
+ - gemfiles/Gemfile.paperclip-5.2.x
11
+ - Gemfile
12
+ before_install: gem install bundler -v 1.16.1
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in paperclip-tus.gemspec
4
3
  gemspec
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'paperclip', '~> 4.3'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'paperclip', '~> 5.0.0'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'paperclip', '~> 5.1.0'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'paperclip', '~> 5.2.0'
@@ -6,13 +6,15 @@ module Paperclip
6
6
  class Adapter < Paperclip::AbstractAdapter
7
7
  REGEXP = /\A[\da-f]{32}\Z/
8
8
 
9
- def initialize(target)
9
+ def initialize(target, _options = {})
10
10
  ensure_tus_filesystem_storage!
11
11
 
12
12
  @uid = target
13
13
  @file_path = tus_file_path.to_s
14
14
  @info = tus_info
15
15
  cache_current_values
16
+ # passing options to super for paperclip 5.2.x
17
+ super if Paperclip::VERSION.to_f > 5.1
16
18
  end
17
19
 
18
20
  private
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Tus
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-tus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Brazys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,6 +111,10 @@ files:
111
111
  - Rakefile
112
112
  - bin/console
113
113
  - bin/setup
114
+ - gemfiles/Gemfile.paperclip-4.3.x
115
+ - gemfiles/Gemfile.paperclip-5.0.x
116
+ - gemfiles/Gemfile.paperclip-5.1.x
117
+ - gemfiles/Gemfile.paperclip-5.2.x
114
118
  - lib/paperclip/tus.rb
115
119
  - lib/paperclip/tus/adapter.rb
116
120
  - lib/paperclip/tus/version.rb