htmltoooxml 0.1.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 +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +4 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/htmltoooxml.gemspec +34 -0
- data/lib/htmltoooxml/configuration.rb +10 -0
- data/lib/htmltoooxml/document.rb +28 -0
- data/lib/htmltoooxml/helpers/xslt_helper.rb +17 -0
- data/lib/htmltoooxml/version.rb +3 -0
- data/lib/htmltoooxml/xslt/base.xslt +345 -0
- data/lib/htmltoooxml/xslt/cleanup.xslt +71 -0
- data/lib/htmltoooxml/xslt/extras.xslt +26 -0
- data/lib/htmltoooxml/xslt/functions.xslt +34 -0
- data/lib/htmltoooxml/xslt/html_to_ooxml.xslt +307 -0
- data/lib/htmltoooxml/xslt/htmltoooxml.xslt +7 -0
- data/lib/htmltoooxml/xslt/inline_elements.xslt +40 -0
- data/lib/htmltoooxml/xslt/links.xslt +35 -0
- data/lib/htmltoooxml/xslt/tables.xslt +187 -0
- data/lib/htmltoooxml.rb +21 -0
- metadata +109 -0
data/lib/htmltoooxml.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'nokogiri'
|
2
|
+
require 'zip'
|
3
|
+
require_relative 'htmltoooxml/configuration'
|
4
|
+
|
5
|
+
module Htmltoooxml
|
6
|
+
class << self
|
7
|
+
def configure
|
8
|
+
yield configuration
|
9
|
+
end
|
10
|
+
|
11
|
+
def configuration
|
12
|
+
@configuration ||= Configuration.new
|
13
|
+
end
|
14
|
+
|
15
|
+
alias_method :config, :configuration
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
require_relative 'htmltoooxml/version'
|
20
|
+
require_relative 'htmltoooxml/helpers/xslt_helper'
|
21
|
+
require_relative 'htmltoooxml/document'
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: htmltoooxml
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Boynton
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Parse HTML and convert to open office xml for powerpoint
|
56
|
+
email:
|
57
|
+
- justin.boynton@spicerack.co.uk
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- CODE_OF_CONDUCT.md
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/console
|
69
|
+
- bin/setup
|
70
|
+
- htmltoooxml.gemspec
|
71
|
+
- lib/htmltoooxml.rb
|
72
|
+
- lib/htmltoooxml/configuration.rb
|
73
|
+
- lib/htmltoooxml/document.rb
|
74
|
+
- lib/htmltoooxml/helpers/xslt_helper.rb
|
75
|
+
- lib/htmltoooxml/version.rb
|
76
|
+
- lib/htmltoooxml/xslt/base.xslt
|
77
|
+
- lib/htmltoooxml/xslt/cleanup.xslt
|
78
|
+
- lib/htmltoooxml/xslt/extras.xslt
|
79
|
+
- lib/htmltoooxml/xslt/functions.xslt
|
80
|
+
- lib/htmltoooxml/xslt/html_to_ooxml.xslt
|
81
|
+
- lib/htmltoooxml/xslt/htmltoooxml.xslt
|
82
|
+
- lib/htmltoooxml/xslt/inline_elements.xslt
|
83
|
+
- lib/htmltoooxml/xslt/links.xslt
|
84
|
+
- lib/htmltoooxml/xslt/tables.xslt
|
85
|
+
homepage: https://github.com/stylefoundry
|
86
|
+
licenses:
|
87
|
+
- MIT
|
88
|
+
metadata: {}
|
89
|
+
post_install_message:
|
90
|
+
rdoc_options: []
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
requirements: []
|
104
|
+
rubyforge_project:
|
105
|
+
rubygems_version: 2.5.1
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: Parse HTML and convert to open office xml for powerpoint
|
109
|
+
test_files: []
|