diff options
-rw-r--r-- | config.yaml | 2 | ||||
-rw-r--r-- | lib/config.rb | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/config.yaml b/config.yaml index c18c019..072ba80 100644 --- a/config.yaml +++ b/config.yaml @@ -2,7 +2,7 @@ url: "https://www.andrewdm.me/" html_suffixes: ["md", "org"] # Licenses -default_license: "CC BS-SA-3.0" +default_license: "CC BY-SA-3.0" license_uris: "CC BY-SA-3.0": "https://creativecommons.org/licenses/by-sa/3.0/" "WTFPL-2": "http://www.wtfpl.net/txt/copying/" diff --git a/lib/config.rb b/lib/config.rb index 57e3b3f..944acc3 100644 --- a/lib/config.rb +++ b/lib/config.rb @@ -21,11 +21,7 @@ class Config return @default_license ||= @data['default_license'] end def license_uri(name) - str = @data['license_uris'][name] - if str.nil? - return nil - end - return URI::parse(str) + return URI::parse(@data['license_uris'][name]) end # People def default_author |