webify_ruby 0.1.0 → 0.1.1

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
2
  SHA1:
3
- metadata.gz: 3508f82d818a9cd27c1739a92005ba15c17a3fe6
4
- data.tar.gz: 69caea4901abffba0610032e1493c7a7f69a1485
3
+ metadata.gz: df7c60c404d181e5c118aaa2e9bfe1f3310e5a43
4
+ data.tar.gz: 59e2e747a4511c3d85db65f636ed5f8073399b67
5
5
  SHA512:
6
- metadata.gz: 42fdf9121ba47b5c56c4f4574eaef776bb0268136aac680ce44e794aefd53b1d78692a32297d9f796f296065ac9e649e1035d9b21b15dba05c6015f5c040aabf
7
- data.tar.gz: 3b178ef09a97e7c3bc0c97b33e5a9d6c47a77acc20c53c4db964d43ce57f3c4cd7482acc4bb1c7695cc500d3f7108de9501df88d0450e3cc45006288cb365d40
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.0.7'
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
 
@@ -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
- html_doc_default = <<-HTML.gsub /^\s*/, ''
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
@@ -1,4 +1,4 @@
1
1
  module WebifyRuby
2
2
  # Public: WebifyRuby version
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webify_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dachi Natsvlishvili