summaryrefslogtreecommitdiff
path: root/lib/rss/dublincore.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-12 02:52:32 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-12 02:52:32 +0000
commit4924197d1ce6c71d6e125a689d69a727fb8ee55d (patch)
treebdba1868bee2448223c466d71646b1ade1cbb251 /lib/rss/dublincore.rb
parent777ad4ee755ceb534e13184a69b3ca82e86e9521 (diff)
* lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightses
-> dc_rights_list. dc_rightses still exists for backward compatibility. [ruby-core:8350] * test/rss/test_maker_dc.rb: added tests for dc_rights_list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/dublincore.rb')
-rw-r--r--lib/rss/dublincore.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rss/dublincore.rb b/lib/rss/dublincore.rb
index af64d19183..79d2ca561c 100644
--- a/lib/rss/dublincore.rb
+++ b/lib/rss/dublincore.rb
@@ -38,6 +38,9 @@ module RSS
klass.module_eval(<<-EOC, *get_file_and_line_from_caller(0))
alias date #{DC_PREFIX}_date
alias date= #{DC_PREFIX}_date=
+
+ # For backward compatibility
+ alias #{DC_PREFIX}_rightses #{DC_PREFIX}_rights_list
EOC
end
end
@@ -61,7 +64,7 @@ module RSS
"language" => nil,
"relation" => nil,
"coverage" => nil,
- "rights" => "rightses" # FIXME
+ "rights" => "rights_list"
}
DATE_ELEMENTS = {