radiant-if_date_tags-extension 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,7 @@ module IfDateTags::TagExtensions
|
|
46
46
|
|
47
47
|
def than_and_date_from_attrs(tag)
|
48
48
|
raise TagError.new("`#{tag.name}' tag must contain a than attribute.") unless tag.attr['than']
|
49
|
-
than = tag.attr
|
49
|
+
than = tag.attr['than']
|
50
50
|
date_attr = tag.attr['date']
|
51
51
|
date = if date_attr
|
52
52
|
case
|
@@ -62,4 +62,4 @@ module IfDateTags::TagExtensions
|
|
62
62
|
than = DateTime.parse(than)
|
63
63
|
return [ than.to_date, date.to_date ]
|
64
64
|
end
|
65
|
-
end
|
65
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-if_date_tags-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -25,6 +25,7 @@ files:
|
|
25
25
|
- lib/if_date_tags/tag_extensions.rb
|
26
26
|
- lib/radiant-if_date_tags-extension.rb
|
27
27
|
- lib/tasks/if_date_tags_extension_tasks.rake
|
28
|
+
- radiant-if_date_tags-extension-1.0.0.gem
|
28
29
|
- radiant-if_date_tags-extension.gemspec
|
29
30
|
- Rakefile
|
30
31
|
- README.md
|