buildvu 0.2.4 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c59eaffee5f9c7f5e2c23d85128d0a51ee7b9cb1eb53b1b09f558eabf6963f9a
4
- data.tar.gz: 64e161dc08a087e9ff1bf99342591baddde39edb654ac4b9d991b9189af650fa
3
+ metadata.gz: 8daba6def01e77256ca5532b78978f463776aa3fb169be97ad07e94abd35cff1
4
+ data.tar.gz: a594083549ed0d7193d75dc3d377bcb72789cc67a108bbe08f35ea970cda84c1
5
5
  SHA512:
6
- metadata.gz: 965c299c27ea3ec66307fc8f87a1aeb7f28514ea885ad4b58c8f10685aa422ec6c2fe3d592fc729a0e71a58b03adc8a01c75c465119e2b5794279a24dc24e46a
7
- data.tar.gz: 70f9af830585d63c5123ebad8ea491b24d815fbdce9e2c7a3e6da3679d4b240ebfabd6e46115f62f62231587ec2773e41afdefcc10e13f92d60de8ddd5a43022
6
+ metadata.gz: 9cd012f9bfee425cd37bb1fdf881afc0a03f2a81d2b9fa2d2551f27051856a4b61a32800b978903e14de7a7cb850dc4b6ab346a65de83670d25f0a08cdd2f4b5
7
+ data.tar.gz: 025aa3969b8dafdde558d38914dfdef95b3569a1339554123776c41da1c2919fe08e98d9de9490c3a24fc7460cbea7b1b401acd0771546ec84ac359c6d498de1
@@ -3,7 +3,7 @@ require 'buildvu'
3
3
  buildvu = BuildVu.new'localhost:8080/microservice-example'
4
4
 
5
5
  # convert returns a URL (string) where you can view the converted output.
6
- output_url = buildvu.convert '/path/to/input.pdf'
6
+ output_url = buildvu.convert 'C:/test/general/%E3%83%96%E3%83%AD%E3%83%83%E3%82%B3%E3%83%AA%E3%83%BC.pdf', 'C:/test/out'
7
7
  puts 'Converted: ' + output_url
8
8
 
9
9
  # You can also specify a directory to download the converted output to:
@@ -65,13 +65,13 @@ class BuildVu
65
65
 
66
66
  # download output
67
67
  unless output_file_path.nil?
68
- download_url = @base_endpoint + '/' + response['downloadPath']
68
+ download_url = response['downloadUrl']
69
69
  # get filename from input_file_path (downloaded file will be [filename].zip)
70
70
  output_file_path += '/' + File.basename(input_file_path)[0..-4] + 'zip'
71
71
  download(download_url, output_file_path)
72
72
  end
73
73
 
74
- @base_endpoint + '/' + response['previewPath']
74
+ response['previewUrl']
75
75
  end
76
76
 
77
77
  private
@@ -1,3 +1,3 @@
1
1
  class BuildVu
2
- VERSION = "0.2.4"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildvu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDRsolutions
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-10 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client