htmltoword 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/htmltoword/version.rb +1 -1
- data/lib/htmltoword/xslt/links.xslt +1 -3
- 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: 3826f44c3db796f2386882c38ee4ff6f8f809fe1fc83e75dfa8b36ad6f9f0fa1
|
4
|
+
data.tar.gz: 4f30dbf7f94ee5c29984c8915775d08f4e7338233242cb3425c6a51c171af24f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b1a75dc96a10170e6b355af6ee175812672386674cca559bdc65208b0def798c9664b6caca7a73e2932dafc80f4acf8b164aa6ad888ab3240ebf1da694cc07
|
7
|
+
data.tar.gz: 1e53f03734ae25cd4c09b166e4034e451ea656100d57ed1f0576b6dbc7ad06ae6629691e492cb5cb0689d8571900ec83b1e308e6679e8f67e255ed2da88216cc
|
data/README.md
CHANGED
@@ -61,7 +61,7 @@ def my_action
|
|
61
61
|
# ...
|
62
62
|
respond_with(@object, filename: 'my_file.docx', word_template: 'my_template.docx')
|
63
63
|
# Alternatively, if you don't want to create the .docx.erb template you could
|
64
|
-
respond_with(@object, content: '<html><body>
|
64
|
+
respond_with(@object, content: '<html><head></head><body><p>Hello</p></body></html>', filename: 'my_file.docx')
|
65
65
|
end
|
66
66
|
|
67
67
|
def my_action2
|
@@ -70,7 +70,7 @@ def my_action2
|
|
70
70
|
format.docx do
|
71
71
|
render docx: 'my_view', filename: 'my_file.docx'
|
72
72
|
# Alternatively, if you don't want to create the .docx.erb template you could
|
73
|
-
render docx: 'my_file.docx', content: '<html><body>
|
73
|
+
render docx: 'my_file.docx', content: '<html><head></head><body><p>Hello</p></body></html>'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
data/lib/htmltoword/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmltoword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Frandsen, Cristina Matonte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.7.3
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: This simple gem allows you to create MS Word docx documents from simple html
|