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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89b916bcf6d9efb3b86d1def064e3b6bb50970466db82b7fdcd3342050c639d8
4
- data.tar.gz: 68d95fcc22a697704661bb8aa0926b36afabcf1edb41620d1c71c7fc8412959e
3
+ metadata.gz: 0621b57af79ed4ca2da99d0faa68b8f1dd2a521c6dc6a8d213a166d2eb227995
4
+ data.tar.gz: 79c815db38bf6fb2ce72c248b0be92b52534ffff1dcb27eaab5fbc943ef2c4ff
5
5
  SHA512:
6
- metadata.gz: df53fc7aff33f2d745a1ff53d840fa4c8ada45e8ea77bce1a10b3b4cd18de594f777b5c77f5dd43e13efd9754abe3ac4cdb5332ccd247ff918fd6822da0ef5bd
7
- data.tar.gz: 2fbed2d93cf5c8ed525ebbabc4950e9139fefd7513fadd256b33c6f607505820b2c44009cf9c01b92c1baab69e636c2cb825dc7b40a7a2bbb421fcb8322a29f5
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 "mimemagic", "~> 0.3.5"
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
@@ -7,7 +7,7 @@ require "faraday_middleware"
7
7
  require "forwardable"
8
8
  require "json"
9
9
  require "memoizable"
10
- require "mimemagic"
10
+ require "marcel"
11
11
  require "openssl"
12
12
  require "ostruct"
13
13
  require "schemacop"
@@ -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 ||= MimeMagic.by_magic(file) || MimeMagic.by_path(file)
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
@@ -1,3 +1,3 @@
1
1
  module CloudConvert
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-01-12 00:00:00.000000000 Z
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: mimemagic
127
+ name: marcel
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 0.3.5
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.3.5
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.1.4
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.