pettanr_public_domain_v01_licenses 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +27 -0
  4. data/app/assets/javascripts/pettanr_public_domain_v01_licenses/application.js +15 -0
  5. data/app/assets/javascripts/pettanr_public_domain_v01_licenses/attributes.js +2 -0
  6. data/app/assets/stylesheets/pettanr_public_domain_v01_licenses/application.css +13 -0
  7. data/app/assets/stylesheets/pettanr_public_domain_v01_licenses/attributes.css +4 -0
  8. data/app/controllers/pettanr_public_domain_v01_licenses/application_controller.rb +4 -0
  9. data/app/controllers/pettanr_public_domain_v01_licenses/attributes_controller.rb +39 -0
  10. data/app/helpers/pettanr_public_domain_v01_licenses/application_helper.rb +4 -0
  11. data/app/helpers/pettanr_public_domain_v01_licenses/attributes_helper.rb +4 -0
  12. data/app/models/pettanr_public_domain_v01_licenses/attribute.rb +36 -0
  13. data/app/views/layouts/pettanr_public_domain_v01_licenses/application.html.erb +14 -0
  14. data/app/views/pettanr_public_domain_v01_licenses/attributes/_confirm.html.erb +26 -0
  15. data/app/views/pettanr_public_domain_v01_licenses/attributes/_credit.html.erb +25 -0
  16. data/app/views/pettanr_public_domain_v01_licenses/attributes/_form.html.erb +35 -0
  17. data/app/views/pettanr_public_domain_v01_licenses/attributes/new.html.erb +1 -0
  18. data/app/views/pettanr_public_domain_v01_licenses/attributes/new.js.erb +1 -0
  19. data/config/routes.rb +10 -0
  20. data/db/Copyleft.png +0 -0
  21. data/db/PublicDomain.png +0 -0
  22. data/db/migrate/20121008000901_create_pettanr_public_domain_v01_licenses_attributes.rb +12 -0
  23. data/db/pettanr_public_domain_v01_license.json +1 -0
  24. data/db/pettanr_public_domain_v01_license.yml +39 -0
  25. data/lib/pettanr_public_domain_v01_licenses/engine.rb +5 -0
  26. data/lib/pettanr_public_domain_v01_licenses/version.rb +3 -0
  27. data/lib/pettanr_public_domain_v01_licenses.rb +4 -0
  28. data/lib/tasks/pettanr_public_domain_v01_licenses.rake +10 -0
  29. data/lib/tasks/pettanr_public_domain_v01_licenses_tasks.rake +4 -0
  30. metadata +96 -0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 Yasushi Ito
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = PettanrPublicDomainV01Licenses
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'PettanrPublicDomainV01Licenses'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+
24
+
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ class ApplicationController < ::ApplicationController
3
+ end
4
+ end
@@ -0,0 +1,39 @@
1
+ require_dependency "pettanr_public_domain_v01_licenses/application_controller"
2
+
3
+ module PettanrPublicDomainV01Licenses
4
+ class AttributesController < ApplicationController
5
+ layout 'test' if Pettanr::TestLayout
6
+ before_filter :authenticate_user!, :only => [:new, :create]
7
+ before_filter :authenticate_artist, :only => [:new, :create]
8
+
9
+ def new
10
+ @original_picture, @original_picture_license_group, @license_group =
11
+ PettanrPublicDomainV01Licenses::Attribute.remember_params params, @artist
12
+ @public_domain_license = PettanrPublicDomainV01Licenses::Attribute.new
13
+ @public_domain_license.supply_default @artist
14
+
15
+ respond_to do |format|
16
+ format.html # new.html.erb
17
+ # format.js
18
+ end
19
+ end
20
+
21
+ def create
22
+ @original_picture, @original_picture_license_group, @license_group =
23
+ PettanrPublicDomainV01Licenses::Attribute.remember_params params, @artist
24
+ @public_domain_license = PettanrPublicDomainV01Licenses::Attribute.new params[:public_domain_license]
25
+ @license = License.show @public_domain_license.license_id
26
+ @resource_picture = @original_picture.resource_picture || ResourcePicture.new
27
+ @resource_picture.attributes = @public_domain_license.resource_picture_attributes @original_picture
28
+ respond_to do |format|
29
+ if @public_domain_license.valid?
30
+ format.html { render main_app.new_resource_picture_path }
31
+ # format.js { render :template => "resource_pictures/new" }
32
+ else
33
+ format.html { render action: "new" }
34
+ # format.js { render action: "new" }
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,4 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ module AttributesHelper
3
+ end
4
+ end
@@ -0,0 +1,36 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ class Attribute < ActiveRecord::Base
3
+ belongs_to :license
4
+
5
+ validates :license_id, :presence => true, :numericality => true, :existence => true
6
+ validates :artist_name, :presence => true
7
+
8
+ def supply_default ar
9
+ self.artist_name = ar.name
10
+ end
11
+
12
+ def resource_picture_attributes op
13
+ {
14
+ :original_picture_id => op.id, :license_id => self.license.id,
15
+ :artist_name => self.artist_name, :classname => self.license.license_group.classname,
16
+ :credit => self.credit, :settings => self.license.settings
17
+ }
18
+ end
19
+
20
+ def self.remember_params params, ar
21
+ op = OriginalPicture.show params[:original_picture_id], ar
22
+ oplg = OriginalPictureLicenseGroup.new(params[:original_picture_license_group])
23
+ lg = LicenseGroup.show oplg.license_group_id
24
+ [op, oplg, lg]
25
+ end
26
+
27
+ def credit
28
+ {
29
+ :system_picture_id => self.license.system_picture_id,
30
+ :source_url => self.source_url,
31
+ :note => self.note
32
+ }.to_json.to_s
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>PettanrPublicDomainV01Licenses</title>
5
+ <%= stylesheet_link_tag "pettanr_public_domain_v01_licenses/application", :media => "all" %>
6
+ <%= javascript_include_tag "pettanr_public_domain_v01_licenses/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,26 @@
1
+ <div>
2
+ <% @sp = SystemPicture.find(@resource_picture.credit_data["system_picture_id"]) %>
3
+ <%= content_tag(:a,
4
+ tag(:img, :src => @sp.url, :alt => h(@license_group.caption.to_s + '[' + @license.caption.to_s + ']')),
5
+ :href => @license.url )
6
+ %>
7
+ </div>
8
+ <%= h @resource_picture.credit_data['caption'] %>
9
+ by
10
+ <%= link_to_unless @resource_picture.credit_data['artist_url'].blank?, h(@resource_picture.artist_name), @resource_picture.credit_data['artist_url'] %>
11
+ is licensed under a
12
+ <%= link_to h(@license_group.caption), @license_group.url %>
13
+ <%= link_to h(@license.caption), @license.url %>
14
+ <% unless @resource_picture.credit_data['source_url'].blank? %>
15
+ <div>
16
+ <%= link_to 'base', @resource_picture.credit_data['source_url'] %>
17
+ </div>
18
+ <% end %>
19
+ <% unless @resource_picture.credit_data['note'].blank? %>
20
+ <div>
21
+ note:<%= h @resource_picture.credit_data['note'] %>
22
+ </div>
23
+ <% end %>
24
+ <div>
25
+ MD5:<%= @resource_picture.original_picture.md5 %>
26
+ </div>
@@ -0,0 +1,25 @@
1
+ <div>
2
+ <%= content_tag(:a,
3
+ tag(:img, :src => picture.license.system_picture.url, :alt => h(picture.license.license_group.caption.to_s + '[' + picture.license.caption.to_s + ']')),
4
+ :href => picture.license.url )
5
+ %>
6
+ </div>
7
+ <%= h picture.credit_data['caption'] %>
8
+ by
9
+ <%= link_to_unless picture.credit_data['artist_url'].blank?, h(picture.artist_name), picture.credit_data['artist_url'] %>
10
+ is licensed under a
11
+ <%= link_to h(picture.license.license_group.caption), picture.license.license_group.url %>
12
+ <%= link_to h(picture.license.caption), picture.license.url %>
13
+ <% unless picture.credit_data['source_url'].blank? %>
14
+ <div>
15
+ <%= link_to 'base', picture.credit_data['source_url'] %>
16
+ </div>
17
+ <% end %>
18
+ <% unless picture.credit_data['note'].blank? %>
19
+ <div>
20
+ note:<%= h picture.credit_data['note'] %>
21
+ </div>
22
+ <% end %>
23
+ <div>
24
+ <%= picture.md5 %>
25
+ </div>
@@ -0,0 +1,35 @@
1
+ <%
2
+ unless @public_domain_license
3
+ @public_domain_license = PettanrPublicDomainV01Licenses::Attribute.new
4
+ @public_domain_license.supply_default @artist
5
+ end
6
+ %>
7
+ <%= form_tag('/pettanr_public_domain_v01_licenses/attributes') do %>
8
+ <% if @public_domain_license.errors.any? %>
9
+ <div id="error_explanation">
10
+ <h2><%= pluralize(@public_domain_license.errors.count, "error") %> prohibited this comic from being saved:</h2>
11
+
12
+ <ul>
13
+ <% @public_domain_license.errors.full_messages.each do |msg| %>
14
+ <li><%= msg %></li>
15
+ <% end %>
16
+ </ul>
17
+ </div>
18
+ <% end %>
19
+
20
+ <div class="field">
21
+ <%= collection_select :public_domain_license, :license_id, @license_group.licenses.map {|l| [l.caption, l.id] }, :last, :first %>
22
+ <%= text_field_tag 'public_domain_license[artist_name]', @public_domain_license.artist_name %>
23
+ <p>source picture's url</p>
24
+ <%= text_field_tag 'public_domain_license[source_url]', @public_domain_license.source_url %>
25
+ <p>note</p>
26
+ <%= text_field_tag 'public_domain_license[note]', @public_domain_license.note %>
27
+ </div>
28
+ <%= hidden_field_tag :original_picture_id, @original_picture.id %>
29
+ <%= hidden_field_tag 'original_picture_license_group[original_picture_id]', @original_picture_license_group.original_picture_id %>
30
+ <%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %>
31
+
32
+ <div class="actions">
33
+ <%= submit_tag %>
34
+ </div>
35
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'pettanr_public_domain_v01_licenses/attributes/form' %>
@@ -0,0 +1 @@
1
+ $("#oplg").html("<%= escape_javascript(render('form')) -%>");
data/config/routes.rb ADDED
@@ -0,0 +1,10 @@
1
+ PettanrPublicDomainV01Licenses::Engine.routes.draw do
2
+ resources :attributes do
3
+ new do
4
+ end
5
+ collection do
6
+ get :new
7
+ post :create
8
+ end
9
+ end
10
+ end
data/db/Copyleft.png ADDED
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ class CreatePettanrPublicDomainV01LicensesAttributes < ActiveRecord::Migration
2
+ def change
3
+ create_table :pettanr_public_domain_v01_licenses_attributes do |t|
4
+ t.column :license_id, :integer, :null => false, :default => 0
5
+ t.column :artist_name, :string, :null => false, :default => 'unknown'
6
+ t.column :source_url, :string
7
+ t.column :note, :string
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ {"PublicDomainV01License@pettanr":{"classname":"PettanrPublicDomainV01License","caption":"Public Domain 0.1","url":"http://sourceforge.jp/projects/pettanr/wiki/PublicDomain","licenses_attributes":{"PublicDomainV01License:PD@pettanr":{"caption":"Public Domain","url":"http://sourceforge.jp/projects/pettanr/wiki/PublicDomainLicensePdV01","settings":"{\"open\":0,\"commercial\":1,\"official\":0,\"attribution\":0,\"derive\":1,\"thumbnail\":1,\"gif_convert\":1,\"reverse\":1,\"resize\":1,\"sync_vh\":1,\"overlap\":1,\"trackback\":0}","system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m+LD8BEjcGDfXnipvRsUhFPTBsBHTNbJEpb+k31cq2zauLGD0MqykNddlJqlpqbE2Ik45gYCeqTNy8slMIOSLTCbvV4fUlLsaKV8OCcnW2SAywepDP/OwYRZxDTp6uxCj6cHebm5sow5teKy/HF1u6ETKUxstREYKeSkiAOobkdHh/TL/XPKGKa0kOXKTvrKxv1kZqSztwh4fR7M+Pb2Duk7OzuLsga3yAiP2eFIk28rEYkljufSSfUySdt5DP92EyI5t6bdskSXCTfKgCj9wI0yzEIDyY0AoyoR6aAPT5Dr8DP+5vxWctFIG5weRXdxDoeD7tNklxbNW4W9HGBpwvFrnYkVLcMO4KAmZKNnNmJn0KSXkUBJz7kfeRy+PQ+2dGK99C/OsEvf/JzNarPKM86ZGRAHtYEEgHtHiVAk6b670MtkIxOOzxOj12arqW/Z+IwjYvGyE2/cxj/lnqY7OJ1X3N2ex8/DGhe8omWim4novfzngUA1qWpyg5xhxmmaAbBhBsD3FmDFeCcieTkwB85eym+1e3Au+n8zxpSxtZytr6/ld9P4IMV4Ny1x4LIxtpZ9O7+ZT3mgvF1JibrxdmUCLHz77cr5fwkwAB3Gpa0uuoywAAAAAElFTkSuQmCC"},"PublicDomainV01License:CL@pettanr":{"caption":"Copyleft","url":"http://sourceforge.jp/projects/pettanr/wiki/PublicDomainLicenseClV01","settings":"{\"open\":0,\"commercial\":1,\"official\":0,\"attribution\":0,\"derive\":1,\"thumbnail\":1,\"gif_convert\":1,\"reverse\":1,\"resize\":1,\"sync_vh\":1,\"overlap\":1,\"trackback\":0}","system_picture":"iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAleSURBVHja7FoJVFTnFf6YeTPsKLKLIhKNCgwIuKG4pYqpS9VoiFqNuCfaqvEkbdos5xipNi61bokbjdSqRJFUjUbRiCJKBEQBFaIGUJEgKBp2Zu29PzCBuMUj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quAwcNxuGjx7Dxs/9g2qw3EEaaFrdzO/7w1iKRqp3PzjFyIjQkEDHbd8DBoTWiN/wTp1Mz4O3jjYDuIRRwOJLrMXX6DGzftg1R770rWM0uPWH6bLi7uWHc5KmI2bge3fv0w9VL2Rg4bAQ8PdsKQC9nnoea5OYKabBfSC+6hj1sbW1FcHNo5UigtjICzPoa1n8AafBSlN29ixuUNbzQzRfDhr0s2MzGa5SpmK2bMWX6TICk0BQyYbF1y5Yy0kvHRsFXUpXGlVz8vgOikjt2/Djaef1YyWWcSxduGzagvpLjm048ckhUcjUUIBe9taBZJccMlOQyoZOc7jnY2wsX5Xms8WzUEmJxKwLQjvfRthVRizF24mRKDT1RQYGSO3ecsvE9Rm/aiIDgEGJzT5Gl1NbUivNJ5CEMZklpqdDr1sRqHpwj29nZCUaoKSbcIQOwhIGbWc8xyIlsR6+/94AJGZjR415FYdEtUS736tPb2It4fdZcWh7ei9AQWyPGjUVwr9BmvQgF6a7QUktLYRgBRkN0598GYpGbq2t9D4TAZeD1dC4yAQwEiqOjowiIvC05KQm3qdIMiJxm1FOJshaWVIk0nnNfVxdXo8Ry6slg8wYGkyXQjTKd5w3uYxnctJsWs+1fT+ymlZTehURzW6KbxvMYtGvf5cGDWMbRno3BwKkpUKanpUEVGEhsb0UY/X+/5mpk8EMBNvaDKWfNSD+LrxIScOVyrkn6wQbhRWphZCPTG25YvD0hA/wSXtA+UiKa1vF6kgvW0yBK+J/0RqOlWpTMS2VDkdN0yE3o1iZ9ZaRtCFau7p7w8PR64J2chnJW83gGgI2MFi84tWbEnrbQsDB/E/H8MghOR7l3oDdRZ+nXNOp70RpIl3NyLvK3aZzIm79NazlweTC20pd7ds2kgCW+rqQUyfxxQwsMw49fV878nwADAB50s2JVxyC5AAAAAElFTkSuQmCC"}}}}
@@ -0,0 +1,39 @@
1
+ PublicDomainV01License@pettanr:
2
+ classname: PettanrPublicDomainV01License
3
+ caption: Public Domain 0.1
4
+ url: http://sourceforge.jp/projects/pettanr/wiki/PublicDomain
5
+ licenses_attributes:
6
+ PublicDomainV01License:PD@pettanr:
7
+ caption: Public Domain
8
+ url: http://sourceforge.jp/projects/pettanr/wiki/PublicDomainLicensePdV01
9
+ system_picture_file: ./PublicDomain.png
10
+ settings:
11
+ open: 0
12
+ commercial: 1
13
+ official: 0
14
+ attribution: 0
15
+ derive: 1
16
+ thumbnail: 1
17
+ gif_convert: 1
18
+ reverse: 1
19
+ resize: 1
20
+ sync_vh: 1
21
+ overlap: 1
22
+ trackback: 0
23
+ PublicDomainV01License:CL@pettanr:
24
+ caption: Copyleft
25
+ url: http://sourceforge.jp/projects/pettanr/wiki/PublicDomainLicenseClV01
26
+ system_picture_file: ./Copyleft.png
27
+ settings:
28
+ open: 0
29
+ commercial: 1
30
+ official: 0
31
+ attribution: 0
32
+ derive: 1
33
+ thumbnail: 1
34
+ gif_convert: 1
35
+ reverse: 1
36
+ resize: 1
37
+ sync_vh: 1
38
+ overlap: 1
39
+ trackback: 0
@@ -0,0 +1,5 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace PettanrPublicDomainV01Licenses
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module PettanrPublicDomainV01Licenses
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "pettanr_public_domain_v01_licenses/engine"
2
+
3
+ module PettanrPublicDomainV01Licenses
4
+ end
@@ -0,0 +1,10 @@
1
+ namespace :pettanr_public_domain_v01_licenses do
2
+ desc "Import json format license data"
3
+ task :import => :environment do
4
+ json = File.expand_path('../../../', __FILE__) + '/db/pettanr_public_domain_v01_license.json'
5
+ puts 'Importing ' + json + "\n"
6
+ r = LicenseGroup.import json
7
+ LicenseGroup.disp_import_error r
8
+ end
9
+
10
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :pettanr_public_domain_v01_licenses do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pettanr_public_domain_v01_licenses
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - yasushiito
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &19999992 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *19999992
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &19997712 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *19997712
36
+ description: This software is a license plugin for PettanR
37
+ email:
38
+ - yasusiito@gmail.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - app/assets/javascripts/pettanr_public_domain_v01_licenses/application.js
44
+ - app/assets/javascripts/pettanr_public_domain_v01_licenses/attributes.js
45
+ - app/assets/stylesheets/pettanr_public_domain_v01_licenses/application.css
46
+ - app/assets/stylesheets/pettanr_public_domain_v01_licenses/attributes.css
47
+ - app/controllers/pettanr_public_domain_v01_licenses/application_controller.rb
48
+ - app/controllers/pettanr_public_domain_v01_licenses/attributes_controller.rb
49
+ - app/helpers/pettanr_public_domain_v01_licenses/application_helper.rb
50
+ - app/helpers/pettanr_public_domain_v01_licenses/attributes_helper.rb
51
+ - app/models/pettanr_public_domain_v01_licenses/attribute.rb
52
+ - app/views/layouts/pettanr_public_domain_v01_licenses/application.html.erb
53
+ - app/views/pettanr_public_domain_v01_licenses/attributes/new.html.erb
54
+ - app/views/pettanr_public_domain_v01_licenses/attributes/new.js.erb
55
+ - app/views/pettanr_public_domain_v01_licenses/attributes/_confirm.html.erb
56
+ - app/views/pettanr_public_domain_v01_licenses/attributes/_credit.html.erb
57
+ - app/views/pettanr_public_domain_v01_licenses/attributes/_form.html.erb
58
+ - config/routes.rb
59
+ - db/Copyleft.png
60
+ - db/migrate/20121008000901_create_pettanr_public_domain_v01_licenses_attributes.rb
61
+ - db/pettanr_public_domain_v01_license.json
62
+ - db/pettanr_public_domain_v01_license.yml
63
+ - db/PublicDomain.png
64
+ - lib/pettanr_public_domain_v01_licenses/engine.rb
65
+ - lib/pettanr_public_domain_v01_licenses/version.rb
66
+ - lib/pettanr_public_domain_v01_licenses.rb
67
+ - lib/tasks/pettanr_public_domain_v01_licenses.rake
68
+ - lib/tasks/pettanr_public_domain_v01_licenses_tasks.rake
69
+ - MIT-LICENSE
70
+ - Rakefile
71
+ - README.rdoc
72
+ homepage: https://github.com/yasushiito/pettanr_pd_v01_licenses/wiki
73
+ licenses: []
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project:
92
+ rubygems_version: 1.8.16
93
+ signing_key:
94
+ specification_version: 3
95
+ summary: Public Domain License for PettanR
96
+ test_files: []