veycrece 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/veycrece/version.rb +1 -1
- data/lib/veycrece/veycrece.rb +9 -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: dfffcf8d6a80da31534ce0d449ab263cd4c51e6d
|
4
|
+
data.tar.gz: 7be4e6e856a0cee8e0e6e4a9d5085b060e0c91aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc2bc18e0c3d95676cc5e6a3e61417feabf8b682c30fa55c0fbb0898c4ee18a62eec2d972ba491fad696097b49a963f1a5e8f962a5e99fb7427263e39600963
|
7
|
+
data.tar.gz: dc737d51c207005e4ed730c904c71b59d1713ab6f6fa5151be1bc599a5d225f816e9e08ee6ebd7114a9438b34ea507bb46a938c2aac2c7b160c573d62f3dcfb7
|
data/lib/veycrece/version.rb
CHANGED
data/lib/veycrece/veycrece.rb
CHANGED
@@ -2,13 +2,13 @@ module VEYCRECE
|
|
2
2
|
module Question
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
def load_tags(tags)
|
6
|
+
@tags = tags
|
7
|
+
end
|
8
8
|
|
9
|
-
|
10
|
-
@tag = tag
|
11
|
-
|
9
|
+
def load_tag(tag)
|
10
|
+
@tag = tag
|
11
|
+
end
|
12
12
|
|
13
13
|
def question(question)
|
14
14
|
@question = question
|
@@ -40,10 +40,10 @@ module VEYCRECE
|
|
40
40
|
#fix ( Regex
|
41
41
|
string.gsub!(")","[)]+")
|
42
42
|
#load single tag
|
43
|
-
string.gsub!(Regexp.new(@tag[:tag]),@tag[:to]) if @tag.class
|
43
|
+
string.gsub!(Regexp.new(@tag[:tag]),@tag[:to]) if @tag.class
|
44
44
|
|
45
45
|
#load multiple tags
|
46
|
-
if @tags
|
46
|
+
if @tags
|
47
47
|
@tags.each do |hash|
|
48
48
|
string.gsub!(Regexp.new(hash[:tag]),hash[:to])
|
49
49
|
end
|
@@ -64,4 +64,4 @@ module VEYCRECE
|
|
64
64
|
end
|
65
65
|
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|