convert_api 1.1.0 → 1.2.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 +5 -5
- data/README.md +1 -1
- data/lib/convert_api/task.rb +3 -2
- data/lib/convert_api/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9c441da8556b69bd1bf36136cde284ccb9993e30ea2bfaf92b925d658f130ea4
|
|
4
|
+
data.tar.gz: 810216361dab674fd1d12bf4ed43f65fe6ee913d56346560a6ad7a573ffdee27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b83cb7d0701b146ab3b571fb19e7b721092b5a294a66e169b37144cf98a2dc0d7619a8a6233aa06bc3142bb77a0f2b3febacb8d07bf9d106d9b7f3604a13c0c7
|
|
7
|
+
data.tar.gz: 46d1d4fa6b3010fd81868833d4c4d0fa7dac89960bf34a6986bbc0de61c289e2246465440230487aa768adddefcb7c321e85a8a86435a34b87a5f8084cb7b991
|
data/README.md
CHANGED
|
@@ -96,7 +96,7 @@ puts user_info['SecondsLeft']
|
|
|
96
96
|
|
|
97
97
|
### More examples
|
|
98
98
|
|
|
99
|
-
You can find more advanced examples in the [examples/](examples) folder.
|
|
99
|
+
You can find more advanced examples in the [examples/](https://github.com/ConvertAPI/convertapi-ruby/tree/master/examples) folder.
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
## Development
|
data/lib/convert_api/task.rb
CHANGED
|
@@ -15,9 +15,10 @@ module ConvertApi
|
|
|
15
15
|
|
|
16
16
|
from_format = @from_format || detect_format(params)
|
|
17
17
|
read_timeout = @conversion_timeout + config.conversion_timeout_delta
|
|
18
|
+
converter = params[:converter] ? "/converter/#{params[:converter]}" : ''
|
|
18
19
|
|
|
19
20
|
response = ConvertApi.client.post(
|
|
20
|
-
"convert/#{from_format}/to/#{@to_format}",
|
|
21
|
+
"convert/#{from_format}/to/#{@to_format}#{converter}",
|
|
21
22
|
params,
|
|
22
23
|
read_timeout: read_timeout
|
|
23
24
|
)
|
|
@@ -72,4 +73,4 @@ module ConvertApi
|
|
|
72
73
|
ConvertApi.config
|
|
73
74
|
end
|
|
74
75
|
end
|
|
75
|
-
end
|
|
76
|
+
end
|
data/lib/convert_api/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module ConvertApi
|
|
2
|
-
VERSION = '1.
|
|
3
|
-
end
|
|
2
|
+
VERSION = '1.2.0'
|
|
3
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: convert_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomas Rutkauskas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
104
|
rubyforge_project:
|
|
105
|
-
rubygems_version: 2.
|
|
105
|
+
rubygems_version: 2.7.7
|
|
106
106
|
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: ConvertAPI client library
|