cloudconvert 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cloudconvert.gemspec +6 -1
- data/lib/cloudconvert.rb +1 -1
- data/lib/cloudconvert/file.rb +1 -1
- data/lib/cloudconvert/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0621b57af79ed4ca2da99d0faa68b8f1dd2a521c6dc6a8d213a166d2eb227995
|
4
|
+
data.tar.gz: 79c815db38bf6fb2ce72c248b0be92b52534ffff1dcb27eaab5fbc943ef2c4ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2fa3f85ab383c07eb9b265413de98b40919589276f95d49f0a3ca5d7d18a2da6fdde0dc5a519c1c2cafd582b789a52f491bc033efda2128dcb11d6a77a27b6
|
7
|
+
data.tar.gz: b28cff912cddf060ce4f9f1627cb2acc0eabe555bdc2971735d8d39a377879a07d49336158d4dd4a8342efc706d311021ee122198b602dd80cc3500a1667bd96
|
data/cloudconvert.gemspec
CHANGED
@@ -8,6 +8,11 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.description = "A Ruby interface to the CloudConvert API v2."
|
9
9
|
spec.summary = spec.description
|
10
10
|
spec.homepage = "https://cloudconvert.com/api/v2"
|
11
|
+
spec.metadata = {
|
12
|
+
"bug_tracker_uri" => "https://github.com/cloudconvert/cloudconvert-ruby/issues",
|
13
|
+
"documentation_uri" => "https://cloudconvert.com/api/v2",
|
14
|
+
"source_code_uri" => "https://github.com/cloudconvert/cloudconvert-ruby"
|
15
|
+
}
|
11
16
|
spec.files = %w[cloudconvert.gemspec LICENSE.txt README.md] + Dir["lib/**/*.rb"]
|
12
17
|
spec.license = "MIT"
|
13
18
|
spec.require_paths = %w[lib]
|
@@ -20,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
20
25
|
spec.add_dependency "forwardable"
|
21
26
|
spec.add_dependency "json"
|
22
27
|
spec.add_dependency "memoizable", "~> 0.4"
|
23
|
-
spec.add_dependency "
|
28
|
+
spec.add_dependency "marcel", "~> 1.0.1"
|
24
29
|
spec.add_dependency "openssl"
|
25
30
|
spec.add_dependency "ostruct"
|
26
31
|
spec.add_dependency "schemacop", "~> 2.4"
|
data/lib/cloudconvert.rb
CHANGED
data/lib/cloudconvert/file.rb
CHANGED
@@ -2,7 +2,7 @@ module CloudConvert
|
|
2
2
|
class File < Faraday::FilePart
|
3
3
|
def initialize(file, content_type = nil, *parts)
|
4
4
|
content_type ||= "text/plain" if file.is_a? StringIO
|
5
|
-
content_type ||=
|
5
|
+
content_type ||= Marcel::Magic.by_magic(file) || Marcel::Magic.by_path(file)
|
6
6
|
super(file, content_type, *parts)
|
7
7
|
end
|
8
8
|
end
|
data/lib/cloudconvert/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudconvert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josias Montag
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -124,19 +124,19 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0.4'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: marcel
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.
|
132
|
+
version: 1.0.1
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
139
|
+
version: 1.0.1
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: openssl
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -366,7 +366,10 @@ files:
|
|
366
366
|
homepage: https://cloudconvert.com/api/v2
|
367
367
|
licenses:
|
368
368
|
- MIT
|
369
|
-
metadata:
|
369
|
+
metadata:
|
370
|
+
bug_tracker_uri: https://github.com/cloudconvert/cloudconvert-ruby/issues
|
371
|
+
documentation_uri: https://cloudconvert.com/api/v2
|
372
|
+
source_code_uri: https://github.com/cloudconvert/cloudconvert-ruby
|
370
373
|
post_install_message:
|
371
374
|
rdoc_options: []
|
372
375
|
require_paths:
|
@@ -382,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
382
385
|
- !ruby/object:Gem::Version
|
383
386
|
version: '0'
|
384
387
|
requirements: []
|
385
|
-
rubygems_version: 3.
|
388
|
+
rubygems_version: 3.2.15
|
386
389
|
signing_key:
|
387
390
|
specification_version: 4
|
388
391
|
summary: A Ruby interface to the CloudConvert API v2.
|