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 +4 -4
- data/README.md +6 -0
- data/lib/docxmerge.rb +17 -0
- data/lib/docxmerge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8b6a7596b2e3019d42274d5f5d0917d21b490213bd2511eca2215b14c09e0e7
|
4
|
+
data.tar.gz: bcaa8641f5668b6eee4160d870482cd8e87f9c821f18a1c25fdb770e1b821ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/docxmerge.rb
CHANGED
@@ -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
|
data/lib/docxmerge/version.rb
CHANGED