pindo 5.20.8 → 5.20.9

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: 1f5a6e7629e145e28daaf6e8bd9f5ef838a47a5eb064f02828a158eb9483b283
4
- data.tar.gz: 320e0f2169ca80df136fdf09ca6ac21da7368405c39e763f7f5e92fe2717a7a4
3
+ metadata.gz: 43c41eaa6671a3097e7fad15ad65aeb7490304fe920dde0c015304485a9aa4e8
4
+ data.tar.gz: c608ef0eb98bd26a763d018fa0a2921b2e155a484487d395efff7d4c0fe492e9
5
5
  SHA512:
6
- metadata.gz: c216eeacfa2afc59bb33b1195459acbdebe880c9aee6d59c07b52fa080c564861786a17bccef0f23c1f17976e92f892fe6b94a97fdcdd519e51a927220bc3108
7
- data.tar.gz: dcead01b8d154b1ec138dcc489b509307e5cef5ce090fb34c214c32ba2af8d6f76e0665bac5a6eece1b307090621842c45b79955b74d72b621b8d0545844ec71
6
+ metadata.gz: 4ea46cbf09d11e019fa94baaa4793a757b635461ce77d8f09b5fd962dfd26d4d6d30c88b392ed454cbcf2d0ccb7145278fea486957ed9e5776775c8c32ff57f1
7
+ data.tar.gz: 422f3765e0e5357070e0055056600855af1aa85f1a627ee44048bbdbe4161d838b2760a74b12f2e48bd11b1d12bc6b7927c0222ec50c0ef50df98648596881cd
@@ -16,11 +16,13 @@ module Pindo
16
16
  upload_result["success_urls"] || []
17
17
  end
18
18
 
19
+ # 只拼渲染需要的 width/height,与 JPS 网页端写入 fileUrls 的形态保持一致。
20
+ # 视频不拼 x-oss-process=image/snapshot:那是展示预览图时临时加的参数,
21
+ # 写进 fileUrls 会让请求返回一帧截图而不是视频本身
19
22
  def decorate_media_url(url, file_path)
20
23
  return url if url.to_s.empty? || file_path.to_s.empty?
21
24
 
22
25
  params = []
23
- params << ["x-oss-process", "image/snapshot"] if video_file?(file_path)
24
26
 
25
27
  dimensions = media_dimensions(file_path)
26
28
  if dimensions
data/lib/pindo/version.rb CHANGED
@@ -6,13 +6,13 @@ require 'time'
6
6
 
7
7
  module Pindo
8
8
 
9
- VERSION = "5.20.8"
9
+ VERSION = "5.20.9"
10
10
 
11
11
  class VersionCheck
12
12
  RUBYGEMS_API = 'https://rubygems.org/api/v1/gems/pindo.json'
13
13
  VERSION_INFO_FILE = File.expand_path('~/.pindo/version_info.yml')
14
14
  CHECK_INTERVAL = 5 * 60 * 60 # 5小时检查一次
15
- CONFIG_MIN_VERSION = '1.9.0' # 硬编码的配置版本要求
15
+ CONFIG_MIN_VERSION = '2.1.0' # 硬编码的配置版本要求
16
16
 
17
17
  class << self
18
18
  # 主版本检查方法(保持向后兼容)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.20.8
4
+ version: 5.20.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: '2.7'
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 2.7.5
115
+ version: 2.7.6
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  version: '2.7'
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: 2.7.5
125
+ version: 2.7.6
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rqrcode
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -532,7 +532,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
532
532
  - !ruby/object:Gem::Version
533
533
  version: 3.0.0
534
534
  requirements: []
535
- rubygems_version: 4.0.10
535
+ rubygems_version: 4.0.11
536
536
  specification_version: 4
537
537
  summary: easy work
538
538
  test_files: []