summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 00:31:48 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 00:31:48 -0500
commitc70e32b7d43282e0cb4b4d36ca4956bd5e1b9ed6 (patch)
treee7955e63447660e31485f81d15e769c76e3f7618
parentc2883d8e6d3d4f85980e4e17390db917205fd039 (diff)
config: fix typo, prevent it from happening again
-rw-r--r--config.yaml2
-rw-r--r--lib/config.rb6
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