emoticons_helper 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/emoticons_helper.gemspec +2 -2
- data/lib/generators/smile_generator.rb +1 -1
- data/lib/generators/templates/smilies.css +16 -39
- data/lib/generators/templates/smilies.yml +22 -8
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/emoticons_helper.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{emoticons_helper}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["gravindra"]
|
12
|
-
s.date = %q{2013-
|
12
|
+
s.date = %q{2013-04-01}
|
13
13
|
s.description = %q{Gives face to your text.}
|
14
14
|
s.email = %q{ravighare26@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -8,7 +8,7 @@ module SmileyHelpers
|
|
8
8
|
smilies = YAML.load_file("\#{Rails.root}/config/smilies.yml")
|
9
9
|
smilies.each_pair do |k, v|
|
10
10
|
new_str = "<span class=\\'smilies "+k+"\\'> </span>"
|
11
|
-
str = str.gsub(
|
11
|
+
v.each{|val| str = str.gsub(val, new_str)}
|
12
12
|
end
|
13
13
|
str.html_safe
|
14
14
|
end
|
@@ -1,39 +1,16 @@
|
|
1
|
-
.smilies{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}
|
7
|
-
|
8
|
-
.
|
9
|
-
|
10
|
-
}
|
11
|
-
|
12
|
-
.
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
.
|
17
|
-
background:url(smilies-sprite.png) -20px -20px;
|
18
|
-
}
|
19
|
-
|
20
|
-
.smart{
|
21
|
-
background:url(smilies-sprite.png) -40px 0;
|
22
|
-
}
|
23
|
-
|
24
|
-
.sad{
|
25
|
-
background:url(smilies-sprite.png) -60px -60px;
|
26
|
-
}
|
27
|
-
|
28
|
-
.wink{
|
29
|
-
background:url(smilies-sprite.png) -60px -20px;
|
30
|
-
}
|
31
|
-
|
32
|
-
.angry{
|
33
|
-
background:url(smilies-sprite.png) -60px 0;
|
34
|
-
}
|
35
|
-
|
36
|
-
.louds{
|
37
|
-
background:url(smilies-sprite.png) -60px -60px;
|
38
|
-
}
|
39
|
-
|
1
|
+
.smilies{width:20px; height:20px; display: inline-block;}
|
2
|
+
.smile{background:url(smilies-sprite.png) 0 0;}
|
3
|
+
.laugh{background:url(smilies-sprite.png) -20px 0;}
|
4
|
+
.tongue{background:url(smilies-sprite.png) -20px -20px;}
|
5
|
+
.smart{background:url(smilies-sprite.png) -40px 0;}
|
6
|
+
.sad{background:url(smilies-sprite.png) -60px -60px;}
|
7
|
+
.wink{background:url(smilies-sprite.png) -60px -20px;}
|
8
|
+
.angry{background:url(smilies-sprite.png) -60px 0;}
|
9
|
+
.louds{background:url(smilies-sprite.png) -60px -60px;}
|
10
|
+
.evil{background:url(smilies-sprite.png) -80px -104px;}
|
11
|
+
.skeptical{background:url(smilies-sprite.png) -80px -40px;}
|
12
|
+
.confused{background:url(smilies-sprite.png) -40px -20px;}
|
13
|
+
.sleeping{background:url(smilies-sprite.png) -20px -60px;}
|
14
|
+
.like{background:url(smilies-sprite.png) 0 -104px;}
|
15
|
+
.dislike{background:url(smilies-sprite.png) -20px -104px;}
|
16
|
+
.rofl{background:url(smilies-sprite.png) -60px -40px;}
|
@@ -1,16 +1,30 @@
|
|
1
|
+
skeptical:
|
2
|
+
[">:\\", ">:/", ":-/", ":-.", ":/", ":\\", "=/", "=\\", ":L", "=L", ":S", ">.<"]
|
3
|
+
evil:
|
4
|
+
[">:)", ">;)", ">:-)"]
|
1
5
|
smile:
|
2
|
-
":)"
|
6
|
+
[":-)", ":)", ":]", ":3", ":c)", ":>", "=]", "8)", "=)", ":^)"]
|
3
7
|
laugh:
|
4
|
-
":D"
|
8
|
+
[":D", "8-D", "8D", "x-D", "xD", "X-D", "XD"]
|
5
9
|
tongue:
|
6
|
-
":p"
|
10
|
+
[":p", ">:P", ":-P", ":P", "X-P", "x-p", "xp", "XP", ":-p", ":p", "=p", ":-b", ":b"]
|
7
11
|
smart:
|
8
|
-
"B)"
|
12
|
+
["B)"]
|
9
13
|
angry:
|
10
|
-
"X("
|
14
|
+
["X(", ":-||", ":@"]
|
11
15
|
sad:
|
12
|
-
":("
|
16
|
+
[":("]
|
13
17
|
wink:
|
14
|
-
";)"
|
18
|
+
[";)"]
|
15
19
|
louds:
|
16
|
-
":-D"
|
20
|
+
[":-D", "=-D", "=D", "=-3", "=3", "B^D"]
|
21
|
+
confused:
|
22
|
+
["%-)", "%)"]
|
23
|
+
sleeping:
|
24
|
+
["(-_-)zzz"]
|
25
|
+
like:
|
26
|
+
["(y)", "(yes)", "(like)"]
|
27
|
+
dislike:
|
28
|
+
["(n)", "(no)", "(dislike)"]
|
29
|
+
rofl:
|
30
|
+
["(rofl)"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- gravindra
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2013-
|
17
|
+
date: 2013-04-01 00:00:00 +05:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|