uploadcare-rails 3.3.4 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -2
- data/Gemfile +5 -1
- data/README.md +1 -1
- data/lib/uploadcare/rails/active_record/mount_uploadcare_file.rb +2 -2
- data/lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb +1 -1
- data/lib/uploadcare/rails/version.rb +1 -1
- data/uploadcare-rails.gemspec +0 -6
- metadata +6 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88ea791d5c14c9fc7ac61a6599bd3276dd8ad0a663b05734de131055a5a585e3
|
4
|
+
data.tar.gz: 33df2e2e0047b05335533407de9cc2ce017a601fb4edf29782f0ff5ec5f19d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f273c141ece91307c45fe5e8ea6c02d5d3cfa2f7497ac5e8b97745f47a1e90dfd991d28036ff26605c5624cae4ad0487026496f579b4544110c1ffb56f5154
|
7
|
+
data.tar.gz: 81980a67b96a2f2aed8d2ec2f6ee2ba0691a77175476da55746dcd63db6104ed3f0376cbf7077fee43b4d0cffff9ed09a9e3bc925bbfd704cf5e0a3ea54f4d5d
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based now on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 3.4.0 — 2024-03-05
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
* Documentation issue with `uploadcare_include_tag`
|
12
|
+
|
13
|
+
### Breaking Changes
|
14
|
+
|
15
|
+
* Drop support for Ruby < 3.x
|
16
|
+
* Drop support for Rails < 6.1x
|
17
|
+
|
7
18
|
## 3.3.4 — 2023-04-04
|
8
19
|
|
9
20
|
### Changed
|
@@ -40,7 +51,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
40
51
|
|
41
52
|
Guarantee support of maintainable versions of Ruby and Rails.
|
42
53
|
|
43
|
-
### Breaking
|
54
|
+
### Breaking Changes
|
44
55
|
|
45
56
|
Drop support of unmaintainable Ruby 2.4, 2.5, 2.6 and Rails before 6.0.
|
46
57
|
|
@@ -57,7 +68,7 @@ This version supports latest Uploadcare REST API — [v0.7](https://uploadcare.c
|
|
57
68
|
* [Virus checking](https://uploadcare.com/docs/security/malware-protection/)
|
58
69
|
* [Object recognition](https://uploadcare.com/docs/intelligence/object-recognition/)
|
59
70
|
|
60
|
-
### Breaking
|
71
|
+
### Breaking Changes
|
61
72
|
|
62
73
|
- For `Uploadcare::FileApi#get_file`
|
63
74
|
- File information doesn't return `image_info` and `video_info` fields anymore
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -153,7 +153,7 @@ Add this string to your `<head>` html-tag
|
|
153
153
|
<html>
|
154
154
|
<head>
|
155
155
|
<title>RailsApp</title>
|
156
|
-
<%=
|
156
|
+
<%= uploadcare_include_tag %>
|
157
157
|
<!--
|
158
158
|
results in:
|
159
159
|
<script src="https://ucarecdn.com/libs/widget/3.x/uploadcare.full.min.js"></script>
|
@@ -48,12 +48,12 @@ module Uploadcare
|
|
48
48
|
end
|
49
49
|
|
50
50
|
unless Uploadcare::Rails.configuration.do_not_store
|
51
|
-
after_save "uploadcare_store_#{attribute}!"
|
51
|
+
after_save :"uploadcare_store_#{attribute}!", if: :"will_save_change_to_#{attribute}?"
|
52
52
|
end
|
53
53
|
|
54
54
|
return unless Uploadcare::Rails.configuration.delete_files_after_destroy
|
55
55
|
|
56
|
-
after_destroy "uploadcare_delete_#{attribute}!"
|
56
|
+
after_destroy :"uploadcare_delete_#{attribute}!"
|
57
57
|
end
|
58
58
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
59
59
|
end
|
@@ -46,7 +46,7 @@ module Uploadcare
|
|
46
46
|
Uploadcare::GroupApi.store_group(group_id)
|
47
47
|
end
|
48
48
|
|
49
|
-
after_save "uploadcare_store_#{attribute}!"
|
49
|
+
after_save :"uploadcare_store_#{attribute}!" unless Uploadcare::Rails.configuration.do_not_store
|
50
50
|
end
|
51
51
|
# rubocop:enable Metrics/MethodLength
|
52
52
|
end
|
data/uploadcare-rails.gemspec
CHANGED
@@ -45,10 +45,4 @@ Gem::Specification.new do |gem|
|
|
45
45
|
gem.version = Uploadcare::Rails::VERSION
|
46
46
|
gem.add_dependency 'rails', '>= 6'
|
47
47
|
gem.add_dependency 'uploadcare-ruby', '>= 4.3'
|
48
|
-
|
49
|
-
gem.add_development_dependency 'rspec', '~> 3.12'
|
50
|
-
gem.add_development_dependency 'rspec-rails', '>= 5.1'
|
51
|
-
gem.add_development_dependency 'rubocop', '~> 1.48'
|
52
|
-
gem.add_development_dependency 'vcr', '~> 6.1'
|
53
|
-
gem.add_development_dependency 'webmock', '~> 3.18'
|
54
48
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadcare-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
|
8
8
|
- kraft001 (Konstantin Rafalskii)
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -39,76 +39,6 @@ dependencies:
|
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '4.3'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rspec
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '3.12'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '3.12'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rspec-rails
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '5.1'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '5.1'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: rubocop
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - "~>"
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '1.48'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.48'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: vcr
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '6.1'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '6.1'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: webmock
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - "~>"
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '3.18'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - "~>"
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '3.18'
|
112
42
|
description: |
|
113
43
|
Rails API client (based on uploadcare-ruby) that handles uploads
|
114
44
|
and further operations with files by wrapping Uploadcare Upload and REST APIs.
|
@@ -167,7 +97,7 @@ metadata:
|
|
167
97
|
documentation_uri: https://www.rubydoc.info/gems/uploadcare-rails/
|
168
98
|
homepage_uri: https://uploadcare.com/
|
169
99
|
rubygems_mfa_required: 'true'
|
170
|
-
post_install_message:
|
100
|
+
post_install_message:
|
171
101
|
rdoc_options:
|
172
102
|
- "--line-numbers"
|
173
103
|
- "--title"
|
@@ -188,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
118
|
- !ruby/object:Gem::Version
|
189
119
|
version: '0'
|
190
120
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
192
|
-
signing_key:
|
121
|
+
rubygems_version: 3.5.3
|
122
|
+
signing_key:
|
193
123
|
specification_version: 4
|
194
124
|
summary: Rails gem for Uploadcare
|
195
125
|
test_files: []
|