aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile18
-rw-r--r--Rakefile16
-rw-r--r--lib/postcodes-norway.rb16
-rw-r--r--lib/postcodes-norway/railtie.rb16
-rw-r--r--lib/tasks/postcodes-norway.rake16
-rw-r--r--postcodes-norway.gemspec16
-rw-r--r--test/test_postcodes.rb16
7 files changed, 112 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index e9b7337..0b3876a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,18 @@
-# A sample Gemfile
-source "https://rubygems.org"
+# 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/>.
+source "https://rubygems.org"
gem "minitest"
diff --git a/Rakefile b/Rakefile
index 684ec01..cd398ad 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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/>.
+
load 'lib/tasks/norwegian-postcodes.rake'
task :default => %w[test]
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'
diff --git a/postcodes-norway.gemspec b/postcodes-norway.gemspec
index 2ba9d30..fdad541 100644
--- a/postcodes-norway.gemspec
+++ b/postcodes-norway.gemspec
@@ -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/>.
+
Gem::Specification.new do |s|
s.name = 'postcodes-norway'
s.version = '0.1.1'
diff --git a/test/test_postcodes.rb b/test/test_postcodes.rb
index 3b38784..50229bf 100644
--- a/test/test_postcodes.rb
+++ b/test/test_postcodes.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 'minitest/autorun'
require_relative '../lib/norwegian-postcodes'