aboutsummaryrefslogtreecommitdiffstats
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
parent7a0ca13e67853d27475e47fce459434de10418f7 (diff)
downloadpostcodes-norway-b5c05f64896ee1cca1fd2bfd6783379b59dd1aed.tar.gz
postcodes-norway-b5c05f64896ee1cca1fd2bfd6783379b59dd1aed.tar.bz2
postcodes-norway-b5c05f64896ee1cca1fd2bfd6783379b59dd1aed.zip
Add license boilerplate to source files.HEADmaster
-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'