convert_api 1.1.0 → 1.2.0

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
- SHA1:
3
- metadata.gz: 10c027fe092b92379732b9ace81b981a4cc65ae8
4
- data.tar.gz: 30e6381b72fb1489f0a20e171afe90fd7ba4f533
2
+ SHA256:
3
+ metadata.gz: 9c441da8556b69bd1bf36136cde284ccb9993e30ea2bfaf92b925d658f130ea4
4
+ data.tar.gz: 810216361dab674fd1d12bf4ed43f65fe6ee913d56346560a6ad7a573ffdee27
5
5
  SHA512:
6
- metadata.gz: e05161c98250dc7de2af71758838af0723612bd29bb110340f8fb481e6ebd72a50e68b1d0f2d83b42ca39ba9bbe443cf7fceb15b3018ebe1ec2b86f2bec1af22
7
- data.tar.gz: b1872e5582d1a362d72371112d690b79bf3cec4624ce86b55be515eb86540c80ae0e6eea7c18d6040794cd70c9ac36d31dfa31aecbcc248d391af15e016efefc
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ConvertApi
2
- VERSION = '1.1.0'
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.1.0
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: 2018-09-30 00:00:00.000000000 Z
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.5.1
105
+ rubygems_version: 2.7.7
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: ConvertAPI client library