lib/wlang.rb in wlang-0.9.2 vs lib/wlang.rb in wlang-0.10.0

- old
+ new

@@ -18,11 +18,11 @@ # to enter the library. # module WLang # Current version of WLang - VERSION = "0.9.2".freeze + VERSION = "0.10.0".freeze ######################################################################## About files and extensions # Regular expression for file extensions FILE_EXTENSION_REGEXP = /^\.[a-zA-Z0-9]+$/ @@ -56,10 +56,10 @@ # Examples: wlang/xhtml/uri, wlang/plain-text, ... QUALIFIED_DIALECT_NAME_REGEXP = /^[-a-z]+([\/][-a-z]+)*$/ # Checks that _name_ is a valid qualified dialect name or raises an ArgumentError def self.check_qualified_dialect_name(name) - raise ArgumentError, "Invalid dialect qualified name #{name} (/^[-a-z]+([\/][-a-z]+)*$/ expected)", caller\ + raise ArgumentError, "Invalid dialect qualified name '#{name}' (/^[-a-z]+([\/][-a-z]+)*$/ expected)", caller\ unless QUALIFIED_DIALECT_NAME_REGEXP =~ name end # # Provides installed {file extension => dialect} mappings. File extensions