docxmerge 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
2
  SHA256:
3
- metadata.gz: c7b764dd032435f0904a3565546d9567511b374053bf934b97abcd5a3baf4b5f
4
- data.tar.gz: 73c5cb829b317e09ff49a83fb9e52a89e0f621f4b37a9060b2305ccb62ab38b0
3
+ metadata.gz: a8b6a7596b2e3019d42274d5f5d0917d21b490213bd2511eca2215b14c09e0e7
4
+ data.tar.gz: bcaa8641f5668b6eee4160d870482cd8e87f9c821f18a1c25fdb770e1b821ba3
5
5
  SHA512:
6
- metadata.gz: 255c3155a4efb2de8d944f92b91af8fb0946b3b3f78c000a8380c74af3267d1f19a74282bfd57f777ee66f2158ab99dbe77a45ffe19f688dfb718aade64d747f
7
- data.tar.gz: 35ab652818772b76f8cb8bd20ebffa2cf5d59e713eddb9bed4e1d4fcf47f2dab7b5f5033c13aef3f2d813dd3114344ac64b87ba0a17bacf976ad3091df13ca4d
6
+ metadata.gz: b5acd65975628d3840a054199fe34ea69da9fec07c3e0f6fe65fbcf7c1dca6cc929930dc53ac9c8fc725f27d9f3cc8f56a9c93c61031f5e9c77add6dc4b50c87
7
+ data.tar.gz: a65ac99227c1c8e2f4c3d2889da5c75ca9b6c563fff129da41144d8794b26924cc74160cfdec9677291fc51a8c8575fe4b5754b48f3f44859471349cd0e4b421
data/README.md CHANGED
@@ -29,6 +29,12 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
29
29
 
30
30
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
31
 
32
+
33
+ ## Deploy
34
+ ```bash
35
+ gem build docxmerge
36
+ gem push ./docxmerge-1.1.0.gem
37
+ ```
32
38
  ## Contributing
33
39
 
34
40
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/docxmerge. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -47,6 +47,23 @@ module Docxmerge
47
47
  response.body
48
48
  end
49
49
 
50
+ def render_url(url, data, conversion_type, version = "")
51
+ uri = "#{@base_uri}/api/v1/Admin/RenderUrl"
52
+ headers = get_headers
53
+ headers["content-type"] = "application/json"
54
+ response = RestClient.post(uri,
55
+ {
56
+ url: url,
57
+ data: data,
58
+ version: version,
59
+ conversionType: conversion_type,
60
+ }.to_json,
61
+ headers,
62
+ )
63
+ raise BadRequestError.new unless response.code == 200
64
+ response.body
65
+ end
66
+
50
67
  private
51
68
 
52
69
  def get_headers
@@ -1,3 +1,3 @@
1
1
  module Docxmerge
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docxmerge
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
  - dviejo