radiant-if_param_tags-extension 1.0.0 → 1.0.1
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.
- data/lib/if_param_tags.rb +2 -2
- data/lib/radiant-if_param_tags-extension.rb +1 -1
- metadata +7 -8
data/lib/if_param_tags.rb
CHANGED
@@ -15,7 +15,7 @@ module IfParamTags
|
|
15
15
|
raise TagError "A name attribute must be specified for if_param!" if name.blank?
|
16
16
|
if params[name]
|
17
17
|
regexp = build_regexp_for(tag, "matches") if tag.attr["matches"]
|
18
|
-
tag.expand if ( tag.attr["matches"].nil? || params[name].
|
18
|
+
tag.expand if ( tag.attr["matches"].nil? || params[name].match(regexp) )
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -32,7 +32,7 @@ module IfParamTags
|
|
32
32
|
raise TagError "A name attribute must be specified for unless_param!" if name.blank?
|
33
33
|
if params[name]
|
34
34
|
regexp = build_regexp_for(tag, "matches") if tag.attr["matches"]
|
35
|
-
tag.expand unless ( tag.attr["matches"].nil? || params[name].
|
35
|
+
tag.expand unless ( tag.attr["matches"].nil? || params[name].match(regexp) )
|
36
36
|
else
|
37
37
|
tag.expand
|
38
38
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-if_param_tags-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benny Degezelle
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-06-20 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: Adds two Radius tags that help you in responding to params.
|
@@ -36,7 +35,6 @@ files:
|
|
36
35
|
- radiant-if_param_tags-extension.gemspec
|
37
36
|
- Rakefile
|
38
37
|
- README.md
|
39
|
-
has_rdoc: true
|
40
38
|
homepage: http://github.com/jomz/radiant-if_param_tags-extension
|
41
39
|
licenses: []
|
42
40
|
|
@@ -66,9 +64,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
64
|
requirements: []
|
67
65
|
|
68
66
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.8.23
|
70
68
|
signing_key:
|
71
69
|
specification_version: 3
|
72
70
|
summary: If_param tags for Radiant CMS
|
73
71
|
test_files: []
|
74
72
|
|
73
|
+
has_rdoc:
|