paperclip-tus 0.3.1 → 0.5.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
  SHA256:
3
- metadata.gz: c5d601cd57bbe26be98af3052db9518bcc9e90fca6814dab1a4485d8a6ce6973
4
- data.tar.gz: 6c6ac3aa0a7b98658c4527fbf43eac42ac4ca1a7ab21bdc281efa6522573ec8b
3
+ metadata.gz: 85d0aef937accc952fb54ed8e35055a639e050b4b7dd4328d09930be60597c07
4
+ data.tar.gz: 31446adc9eae90ef33f282715293d7118ab49c95ab12b02ce78a33c7d47b700e
5
5
  SHA512:
6
- metadata.gz: a189c75abff7b2048e500245ffaa6211fe9e36285d89de791f53b47a56fc5f327a9be23bd89fdbe8b7364bba61ad11cfc636f291b1b444e48e4584b5e3f5b41d
7
- data.tar.gz: cadace0028a9002c9839a34e663828869d032e454e382115a2d140dd3f5179255526a73a393374915283dbd75a3e713d85f24ddd8d40ca26ec9c8fec868b45db
6
+ metadata.gz: b9632dffb047fa9368b670bd8399ea2783bf2e7afa5e5172b77a6b9d4846c49ada184bae5a4e5246449cfb750780ff0a9d7d69b15268b55a1fd5f857c6b1d1bc
7
+ data.tar.gz: f78acad6fcb3866a33b78c318d0a548c70ab6fe2b3ab83fc0e32e9beeda09b6cab1838e51b4363af6166a9ff436f5fc009f9144b1e0229d63114d1008fe74d67
@@ -0,0 +1,32 @@
1
+ name: Tests
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - master
7
+ jobs:
8
+ rspec:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ gemfile: [
13
+ gemfiles/Gemfile.kt-paperclip-6.2.x,
14
+ gemfiles/Gemfile.kt-paperclip-6.4.x,
15
+ gemfiles/Gemfile.kt-paperclip-7.0.x,
16
+ gemfiles/Gemfile.kt-paperclip-7.1.x,
17
+ gemfiles/Gemfile.kt-paperclip-7.2.x,
18
+ gemfiles/Gemfile.kt-paperclip-7.3.x,
19
+ Gemfile
20
+ ]
21
+ ruby: [2.7, 3.2, 3.4]
22
+ runs-on: ubuntu-latest
23
+ env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
24
+ BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ - uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby }}
30
+ bundler-cache: false # testing with multiple gemfiles
31
+ - run: bundle install
32
+ - run: bundle exec rake
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # paperclip-tus
2
2
 
3
- [![Build Status](https://travis-ci.org/deees/paperclip-tus.svg?branch=master)](https://travis-ci.org/deees/paperclip-tus)
3
+ [![Build Status](https://github.com/deees/paperclip-tus/actions/workflows/test.yml/badge.svg)](https://github.com/deees/paperclip-tus/actions/workflows/test.yml)
4
4
 
5
5
  paperclip-tus is paperclip io adapter for [tus-ruby-server](https://github.com/janko-m/tus-ruby-server).
6
6
 
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
4
 
5
- gem 'paperclip', '~> 5.2.0'
5
+ gem 'kt-paperclip', '~> 6.2.0'
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
4
 
5
- gem 'paperclip', '~> 4.3'
5
+ gem 'kt-paperclip', '~> 6.4.0'
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
4
 
5
- gem 'paperclip', '~> 5.0.0'
5
+ gem 'kt-paperclip', '~> 7.0.0'
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
4
 
5
- gem 'paperclip', '~> 5.1.0'
5
+ gem 'kt-paperclip', '~> 7.1.0'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'kt-paperclip', '~> 7.2.0'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'kt-paperclip', '~> 7.3.0'
@@ -13,14 +13,13 @@ module Paperclip
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
+ super
18
17
  end
19
18
 
20
19
  private
21
20
 
22
21
  def cache_current_values
23
- self.original_filename = @info.metadata['filename']
22
+ self.original_filename = @info.name
24
23
  @tempfile = copy_to_tempfile(@file_path)
25
24
  @content_type = Paperclip::ContentTypeDetector.new(@file_path).detect
26
25
  @size = @info.length
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Tus
3
- VERSION = '0.3.1'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'rspec', '~> 3.0'
27
27
  spec.add_development_dependency 'rubocop'
28
28
 
29
- spec.add_runtime_dependency 'paperclip', '>= 4.3'
30
- spec.add_runtime_dependency 'tus-server', '~> 0.10'
29
+ spec.add_runtime_dependency 'kt-paperclip', '>= 6.2'
30
+ spec.add_runtime_dependency 'tus-server', '~> 2.0'
31
31
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-tus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Brazys
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
10
+ date: 2026-04-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -67,56 +66,55 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
69
68
  - !ruby/object:Gem::Dependency
70
- name: paperclip
69
+ name: kt-paperclip
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
74
73
  - !ruby/object:Gem::Version
75
- version: '4.3'
74
+ version: '6.2'
76
75
  type: :runtime
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
79
78
  requirements:
80
79
  - - ">="
81
80
  - !ruby/object:Gem::Version
82
- version: '4.3'
81
+ version: '6.2'
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: tus-server
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - "~>"
88
87
  - !ruby/object:Gem::Version
89
- version: '0.10'
88
+ version: '2.0'
90
89
  type: :runtime
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - "~>"
95
94
  - !ruby/object:Gem::Version
96
- version: '0.10'
97
- description:
95
+ version: '2.0'
98
96
  email:
99
97
  - tomas.brazys@gmail.com
100
98
  executables: []
101
99
  extensions: []
102
100
  extra_rdoc_files: []
103
101
  files:
102
+ - ".github/workflows/test.yml"
104
103
  - ".gitignore"
105
104
  - ".rspec"
106
105
  - ".rubocop.yml"
107
- - ".travis.yml"
108
106
  - Gemfile
109
107
  - LICENSE.txt
110
108
  - README.md
111
109
  - Rakefile
112
110
  - bin/console
113
111
  - 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
118
- - gemfiles/Gemfile.paperclip-5.3.x
119
- - gemfiles/Gemfile.paperclip-6.0.x
112
+ - gemfiles/Gemfile.kt-paperclip-6.2.x
113
+ - gemfiles/Gemfile.kt-paperclip-6.4.x
114
+ - gemfiles/Gemfile.kt-paperclip-7.0.x
115
+ - gemfiles/Gemfile.kt-paperclip-7.1.x
116
+ - gemfiles/Gemfile.kt-paperclip-7.2.x
117
+ - gemfiles/Gemfile.kt-paperclip-7.3.x
120
118
  - lib/paperclip/tus.rb
121
119
  - lib/paperclip/tus/adapter.rb
122
120
  - lib/paperclip/tus/version.rb
@@ -125,7 +123,6 @@ homepage: https://github.com/deees/paperclip-tus
125
123
  licenses:
126
124
  - MIT
127
125
  metadata: {}
128
- post_install_message:
129
126
  rdoc_options: []
130
127
  require_paths:
131
128
  - lib
@@ -140,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
137
  - !ruby/object:Gem::Version
141
138
  version: '0'
142
139
  requirements: []
143
- rubygems_version: 3.0.3
144
- signing_key:
140
+ rubygems_version: 3.6.3
145
141
  specification_version: 4
146
142
  summary: tus server adapter for Paperclip
147
143
  test_files: []
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - 2.6
7
- - 2.7
8
- gemfile:
9
- - gemfiles/Gemfile.paperclip-4.3.x
10
- - gemfiles/Gemfile.paperclip-5.0.x
11
- - gemfiles/Gemfile.paperclip-5.1.x
12
- - gemfiles/Gemfile.paperclip-5.2.x
13
- - gemfiles/Gemfile.paperclip-5.3.x
14
- - gemfiles/Gemfile.paperclip-6.0.x
15
- - Gemfile
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '../'
4
-
5
- gem 'paperclip', '~> 5.3.0'
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '../'
4
-
5
- gem 'paperclip', '~> 6.0.0'