From b5c05f64896ee1cca1fd2bfd6783379b59dd1aed Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 3 Feb 2015 18:14:23 +0100 Subject: Add license boilerplate to source files. --- Gemfile | 18 ++++++++++++++++-- Rakefile | 16 ++++++++++++++++ lib/postcodes-norway.rb | 16 ++++++++++++++++ lib/postcodes-norway/railtie.rb | 16 ++++++++++++++++ lib/tasks/postcodes-norway.rake | 16 ++++++++++++++++ postcodes-norway.gemspec | 16 ++++++++++++++++ test/test_postcodes.rb | 16 ++++++++++++++++ 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 +# +# 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 . +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 +# +# 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 . + 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 +# +# 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 . + 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 +# +# 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 . + 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 +# +# 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 . + 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 +# +# 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 . + 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 +# +# 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 . + require 'minitest/autorun' require_relative '../lib/norwegian-postcodes' -- cgit v1.2.3