sarawong 0.0.8 → 0.0.9
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/lib/sarawong/header.rb +3 -7
- data/lib/sarawong.rb +5 -9
- 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: bc885fa8b01071f28862143f717a4b6986b59aed
|
|
4
|
+
data.tar.gz: 9e02effb0a885a1a9eba14241374b5dffefcaacf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0330aa30cfdcc296831b31cdf1141c76e68816c3be3cbefeece15df78208bfc351173a7968928dc0f9df509093649ba587ec519abd4a10d1059870c87066ccd8
|
|
7
|
+
data.tar.gz: d79367bd589b09f701bd5207c1ba668df05dc9ea7496306d275817a67a486a7f4a9c73c8a458ef3c615314b954cdd7938e5cc80fbf2ed76f9cb44046267ac3a1
|
data/lib/sarawong/header.rb
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
def
|
|
3
|
-
|
|
4
|
-
def stuff
|
|
5
|
-
content = '<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>LOOK AT THE TITLE</title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1">'
|
|
6
|
-
puts content
|
|
7
|
-
return content
|
|
1
|
+
module Header
|
|
2
|
+
def stuff(title)
|
|
3
|
+
return '<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>'+title+'</title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1">'
|
|
8
4
|
end
|
|
9
5
|
end
|
data/lib/sarawong.rb
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
require 'sarawong/translator'
|
|
2
2
|
require 'sarawong/header'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
module Sarawong
|
|
5
5
|
def self.hi(language = "english")
|
|
6
|
-
|
|
7
|
-
translator.hi
|
|
6
|
+
Translator.hi(language)
|
|
8
7
|
end
|
|
9
|
-
def self.header
|
|
10
|
-
|
|
11
|
-
result = content.stuff
|
|
12
|
-
puts result
|
|
13
|
-
return result
|
|
8
|
+
def self.header(title = 'title here')
|
|
9
|
+
return Header.stuff(title)
|
|
14
10
|
end
|
|
15
|
-
end
|
|
11
|
+
end
|