webify_ruby 0.1.0 → 0.1.1
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 +4 -4
- data/README.rdoc +2 -1
- data/lib/webify_ruby/html.rb +13 -13
- data/lib/webify_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df7c60c404d181e5c118aaa2e9bfe1f3310e5a43
|
|
4
|
+
data.tar.gz: 59e2e747a4511c3d85db65f636ed5f8073399b67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fe0a3023f824e370a5e98ec0588853618a9ee9f8771e027b6eb8e1e33d966ce3871bf6627b4564789bb091acc5b5a3adbecbcf6eb0f3d7a22334a0d3b4e4fa3
|
|
7
|
+
data.tar.gz: 1519bf20766b028a50ba9fa7aa421693e57ea38fbe65e71f73e0becba1793c7e20f2bc1ec35ff7fa94053c6e00e9971a8bba622bb7d74653a37d0ad01ba6df43
|
data/README.rdoc
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
Version 0.0.7 :: Sochi
|
|
17
17
|
Version 0.0.8 :: Poti
|
|
18
18
|
Version 0.1.0 :: Kaspi
|
|
19
|
+
Version 0.1.1 :: Sarpi
|
|
19
20
|
|
|
20
21
|
== Generated HTML preview
|
|
21
22
|
|
|
@@ -34,7 +35,7 @@ https://github.com/dachi-gh/webify/tree/executables
|
|
|
34
35
|
https://github.com/dachi-gh/webify
|
|
35
36
|
|
|
36
37
|
==== Add to your Gemfile
|
|
37
|
-
gem 'webify_ruby', '~> 0.
|
|
38
|
+
gem 'webify_ruby', '~> 0.1.1'
|
|
38
39
|
or git for development version
|
|
39
40
|
gem 'webify_ruby', :git => 'git://github.com/dachi-gh/webify_ruby.git'
|
|
40
41
|
|
data/lib/webify_ruby/html.rb
CHANGED
|
@@ -2,20 +2,9 @@ require 'erb'
|
|
|
2
2
|
require 'fileutils'
|
|
3
3
|
require 'pathname'
|
|
4
4
|
|
|
5
|
-
module WebifyRuby
|
|
6
|
-
# Public: You can set a custom HTML template by using this method.
|
|
7
|
-
def self.html_doc=(str)
|
|
8
|
-
@html_doc = str
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Public: You can get a current HTML template that is used by the module.
|
|
12
|
-
def self.html_doc
|
|
13
|
-
return @html_doc if @html_doc
|
|
14
|
-
@html_doc = WebifyRuby::html_doc_default
|
|
15
|
-
end
|
|
16
|
-
|
|
5
|
+
module WebifyRuby
|
|
17
6
|
# Internal: HTML template that is used in in generated .html file by default.
|
|
18
|
-
|
|
7
|
+
HTML_DOC_DEFAULT = <<-HTML.gsub /^\s*/, ''
|
|
19
8
|
<!DOCTYPE html>
|
|
20
9
|
<html lang="en">
|
|
21
10
|
<head>
|
|
@@ -136,6 +125,17 @@ module WebifyRuby
|
|
|
136
125
|
</html>
|
|
137
126
|
HTML
|
|
138
127
|
|
|
128
|
+
# Public: You can set a custom HTML template by using this method.
|
|
129
|
+
def self.html_doc=(str)
|
|
130
|
+
@html_doc = str
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Public: You can get a current HTML template that is used by the module.
|
|
134
|
+
def self.html_doc
|
|
135
|
+
return @html_doc if @html_doc
|
|
136
|
+
@html_doc = WebifyRuby::HTML_DOC_DEFAULT
|
|
137
|
+
end
|
|
138
|
+
|
|
139
139
|
# Public: Html class of the module which is to generate code,
|
|
140
140
|
# and write to the specified directory's .html file.
|
|
141
141
|
class Html
|
data/lib/webify_ruby/version.rb
CHANGED