Commit 369f984e authored by Enrique García Cota's avatar Enrique García Cota

added long names to tasks/licenses

parent a2d260ee
def create_license(name, identifier, url, version_identifier, date, version_url) def create_license(short_name, name, identifier, url, version_identifier, date, version_url)
license = License.new(:name => name, :identifier => identifier, :url => url) license = License.new(:short_name => short_name, :name => name, :identifier => identifier, :url => url)
version = license.versions.build(:identifier => version_identifier, :date => date, :url => version_url) version = license.versions.build(:identifier => version_identifier, :date => date, :url => version_url)
...@@ -25,10 +25,10 @@ namespace :licenses do ...@@ -25,10 +25,10 @@ namespace :licenses do
desc "creates default licenses" desc "creates default licenses"
task :create => :environment do task :create => :environment do
create_license("GPL", "gpl", "http://www.gnu.org/copyleft/gpl.html", "v2.0", Date.new(1991,6,1), "http://www.gnu.org/licenses/gpl-2.0.html") create_license("GPL", "GNU General Public License", "gpl", "http://www.gnu.org/copyleft/gpl.html", "v2.0", Date.new(1991,6,1), "http://www.gnu.org/licenses/gpl-2.0.html")
create_license("LGPL", "lgpl", "http://www.gnu.org/licenses/lgpl.html", "v2.0", Date.new(1991,6,1), "http://www.gnu.org/licenses/lgpl-2.0.html") create_license("LGPL", "GNU Library General Public License", "lgpl", "http://www.gnu.org/licenses/lgpl.html", "v2.0", Date.new(1991,6,1), "http://www.gnu.org/licenses/lgpl-2.0.html")
create_license("TAPR OHL", "tapr-ohl", "http://www.tapr.org/OHL", "v1.0", Date.new(2007, 5, 25), "http://www.tapr.org/TAPR_Open_Hardware_License_v1.0.txt") create_license("TAPR OHL", "TAPR Open Hardware License", "tapr-ohl", "http://www.tapr.org/OHL", "v1.0", Date.new(2007, 5, 25), "http://www.tapr.org/TAPR_Open_Hardware_License_v1.0.txt")
create_license("CERN OHL", "cern-ohl", nil, "v1.1", Date.new(2011,7,8), nil) create_license("CERN OHL", "CERN Open Hardware License", "cern-ohl", nil, "v1.1", Date.new(2011,7,8), nil)
end end
desc "associates projects to the licenses they belong to" desc "associates projects to the licenses they belong to"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment