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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50cd5a457d00d99eb7da7c81db7dbfee59fc1cb0
4
- data.tar.gz: cf26ef13d98f8a1f6eb2695d64fe5d393c853b02
3
+ metadata.gz: dfffcf8d6a80da31534ce0d449ab263cd4c51e6d
4
+ data.tar.gz: 7be4e6e856a0cee8e0e6e4a9d5085b060e0c91aa
5
5
  SHA512:
6
- metadata.gz: d3a9fb366724aebb5bea0eb0ebfb25e87ebb0f0a6ba14cefe4e5d7788bf3ee9e3fba142167c9e5f4cbb0de700fbb21e040b2070ceb46efb7e265db5174f1a20a
7
- data.tar.gz: 44ef851b8c578e88935062f4678413b723f41e1bc6c9493c078cc73654f41e05a190494ad5a631d7d2ae8c6c6f08ae3d64f9b18709f7abb2d4ff685e73f0525e
6
+ metadata.gz: 6bc2bc18e0c3d95676cc5e6a3e61417feabf8b682c30fa55c0fbb0898c4ee18a62eec2d972ba491fad696097b49a963f1a5e8f962a5e99fb7427263e39600963
7
+ data.tar.gz: dc737d51c207005e4ed730c904c71b59d1713ab6f6fa5151be1bc599a5d225f816e9e08ee6ebd7114a9438b34ea507bb46a938c2aac2c7b160c573d62f3dcfb7
@@ -1,3 +1,3 @@
1
1
  module Veycrece
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -2,13 +2,13 @@ module VEYCRECE
2
2
  module Question
3
3
 
4
4
 
5
- def load_tags(tags)
6
- @tags = tags if tags.class == Array
7
- end
5
+ def load_tags(tags)
6
+ @tags = tags
7
+ end
8
8
 
9
- def load_tag(tag)
10
- @tag = tag if tag.class == Hash
11
- end
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 == Hash
43
+ string.gsub!(Regexp.new(@tag[:tag]),@tag[:to]) if @tag.class
44
44
 
45
45
  #load multiple tags
46
- if @tags.class == Array
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veycrece
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@jdaviderb"