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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7034d51bc5f9b9251aec22334f9ee4427bc3d520
4
- data.tar.gz: b5925e2169eca6f9de534788a2f62850da43ac4d
2
+ SHA256:
3
+ metadata.gz: 3826f44c3db796f2386882c38ee4ff6f8f809fe1fc83e75dfa8b36ad6f9f0fa1
4
+ data.tar.gz: 4f30dbf7f94ee5c29984c8915775d08f4e7338233242cb3425c6a51c171af24f
5
5
  SHA512:
6
- metadata.gz: c5ac9f6e7c6f26acbb06ee4c85a042cce12318802aabb08a836df3db136b408f6622b34366e0993ec4b8de7b2183b7f4e83c639c858342b5aa2586b264c2ed89
7
- data.tar.gz: 6747b7abea40e7b43d52322ebe4283e4edc5f97c95487cb3de57e0f66bcfd209f379012572a88a96b4f95fe95651984eaeaf2b4cfb7b9410e648a80a0b7a3426
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>some html</body></html>', filename: 'my_file.docx')
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>some html</body></html>'
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
@@ -1,3 +1,3 @@
1
1
  module Htmltoword
2
- VERSION = '0.7.0'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -27,9 +27,7 @@
27
27
  <w:color w:val="000080"/>
28
28
  <w:u w:val="single"/>
29
29
  </w:rPr>
30
- <w:t xml:space="preserve">
31
- <xsl:value-of select="."/>
32
- </w:t>
30
+ <w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
33
31
  </w:r>
34
32
  </w:hyperlink>
35
33
  </xsl:template>
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.7.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: 2017-11-16 00:00:00.000000000 Z
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.6.14
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