aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-02-03 18:14:23 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-02-03 18:14:23 +0100
commitb5c05f64896ee1cca1fd2bfd6783379b59dd1aed (patch)
tree07a83cac710b695a2be1eceec8e088d9d8dc3219 /lib
parent7a0ca13e67853d27475e47fce459434de10418f7 (diff)
downloadpostcodes-norway-master.tar.gz
postcodes-norway-master.tar.bz2
postcodes-norway-master.zip
Add license boilerplate to source files.HEADmaster
Diffstat (limited to 'lib')
-rw-r--r--lib/postcodes-norway.rb16
-rw-r--r--lib/postcodes-norway/railtie.rb16
-rw-r--r--lib/tasks/postcodes-norway.rake16
3 files changed, 48 insertions, 0 deletions
diff --git a/lib/postcodes-norway.rb b/lib/postcodes-norway.rb
index 86d0ab4..3726cb8 100644
--- a/lib/postcodes-norway.rb
+++ b/lib/postcodes-norway.rb
@@ -1,3 +1,19 @@
+# postcodes-norway: Access norwegian postcode data from Ruby.
+# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
module PostCodes
require 'postcodes-norway/railtie' if defined?(Rails)
diff --git a/lib/postcodes-norway/railtie.rb b/lib/postcodes-norway/railtie.rb
index 896eff9..e03bbfa 100644
--- a/lib/postcodes-norway/railtie.rb
+++ b/lib/postcodes-norway/railtie.rb
@@ -1,3 +1,19 @@
+# postcodes-norway: Access norwegian postcode data from Ruby.
+# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
require 'postcodes-norway'
require 'rails'
diff --git a/lib/tasks/postcodes-norway.rake b/lib/tasks/postcodes-norway.rake
index 6ec53b7..dab41e2 100644
--- a/lib/tasks/postcodes-norway.rake
+++ b/lib/tasks/postcodes-norway.rake
@@ -1,3 +1,19 @@
+# postcodes-norway: Access norwegian postcode data from Ruby.
+# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
require 'uri'
require 'open-uri'