cc_licenseable 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +105 -0
- data/Rakefile +29 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc-nd.eu.svg +204 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc-nd.svg +243 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc-sa.eu.svg +202 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc-sa.svg +202 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc.eu.svg +166 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nc.svg +190 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-nd.svg +203 -0
- data/app/assets/images/cc_licenseable/buttons/med/by-sa.svg +199 -0
- data/app/assets/images/cc_licenseable/buttons/med/by.svg +155 -0
- data/app/assets/images/cc_licenseable/buttons/med/cc-zero.svg +98 -0
- data/app/assets/images/cc_licenseable/buttons/med/cc.srr.primary.svg +715 -0
- data/app/assets/images/cc_licenseable/buttons/med/publicdomain.svg +86 -0
- data/app/assets/images/cc_licenseable/buttons/small/by-nc-nd.svg +121 -0
- data/app/assets/images/cc_licenseable/buttons/small/by-nc-sa.svg +121 -0
- data/app/assets/images/cc_licenseable/buttons/small/by-nc.svg +121 -0
- data/app/assets/images/cc_licenseable/buttons/small/by-nd.svg +117 -0
- data/app/assets/images/cc_licenseable/buttons/small/by-sa.svg +121 -0
- data/app/assets/images/cc_licenseable/buttons/small/by.svg +121 -0
- data/app/assets/images/cc_licenseable/buttons/small/cc-zero.svg +72 -0
- data/app/assets/images/cc_licenseable/buttons/small/publicdomain.svg +61 -0
- data/app/assets/images/cc_licenseable/icons/by.svg +20 -0
- data/app/assets/images/cc_licenseable/icons/cc.svg +27 -0
- data/app/assets/images/cc_licenseable/icons/nc-eu.svg +21 -0
- data/app/assets/images/cc_licenseable/icons/nc-jp.svg +18 -0
- data/app/assets/images/cc_licenseable/icons/nc.svg +23 -0
- data/app/assets/images/cc_licenseable/icons/nd.svg +18 -0
- data/app/assets/images/cc_licenseable/icons/pd.svg +24 -0
- data/app/assets/images/cc_licenseable/icons/remix.svg +20 -0
- data/app/assets/images/cc_licenseable/icons/sa.svg +22 -0
- data/app/assets/images/cc_licenseable/icons/sampling.plus.svg +33 -0
- data/app/assets/images/cc_licenseable/icons/sampling.svg +36 -0
- data/app/assets/images/cc_licenseable/icons/share.svg +22 -0
- data/app/assets/images/cc_licenseable/icons/zero.svg +24 -0
- data/app/assets/images/cc_licenseable/logos/cc.logo.svg +594 -0
- data/app/assets/javascripts/cc_licenseable/application.js +15 -0
- data/app/assets/stylesheets/cc_licenseable/application.css +13 -0
- data/app/controllers/cc_licenseable/application_controller.rb +4 -0
- data/app/helpers/cc_licenseable/application_helper.rb +4 -0
- data/app/helpers/cc_licenseable/asset_helper.rb +23 -0
- data/app/helpers/cc_licenseable/form_helper.rb +9 -0
- data/app/models/cc_licenseable/cc_license.rb +51 -0
- data/app/views/layouts/cc_licenseable/application.html.erb +14 -0
- data/config/cucumber.yml +8 -0
- data/config/locales/en.yml +21 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20130327162320_create_cc_licenseable_cc_licenses.rb +10 -0
- data/db/migrate/20130329103248_add_licenses_to_cc_licenseable_cc_licences.rb +15 -0
- data/db/seeds.rb +6 -0
- data/lib/cc_licenseable.rb +15 -0
- data/lib/cc_licenseable/engine.rb +13 -0
- data/lib/cc_licenseable/version.rb +3 -0
- data/lib/tasks/cc_licenseable_tasks.rake +4 -0
- data/lib/tasks/cucumber.rake +65 -0
- metadata +229 -0
@@ -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,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,23 @@
|
|
1
|
+
module CcLicenseable
|
2
|
+
module AssetHelper
|
3
|
+
def cc_logo
|
4
|
+
link_to "http://www.creativecommons.org" do
|
5
|
+
image_tag 'cc_licenseable/logos/cc.logo.svg'
|
6
|
+
end.html_safe
|
7
|
+
end
|
8
|
+
|
9
|
+
def cc_icon(icon)
|
10
|
+
image_tag "cc_licenseable/icons/#{icon}.svg"
|
11
|
+
end
|
12
|
+
|
13
|
+
def cc_icon_chain(abbr, tag_name=:span, options={class: "icon-chain"})
|
14
|
+
inner_html = ""
|
15
|
+
abbr.downcase.split('-').each do |abbr|
|
16
|
+
inner_html += cc_icon(abbr)
|
17
|
+
end
|
18
|
+
content_tag(tag_name, options) do
|
19
|
+
raw inner_html
|
20
|
+
end.html_safe
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module CcLicenseable
|
2
|
+
class CcLicense < ActiveRecord::Base
|
3
|
+
attr_accessible :abbreviation, :version
|
4
|
+
|
5
|
+
validates_presence_of :version, :abbreviation
|
6
|
+
validates :abbreviation, :inclusion => { :in => %w{ BY BY-SA BY-ND BY-NC BY-NC-SA BY-NC-ND } }
|
7
|
+
|
8
|
+
def title
|
9
|
+
I18n.t("cc_licenseable.#{abbr}.title")
|
10
|
+
end
|
11
|
+
|
12
|
+
def form_title
|
13
|
+
"CC #{abbreviation} (#{version})"
|
14
|
+
end
|
15
|
+
|
16
|
+
def desc
|
17
|
+
I18n.t("cc_licenseable.#{abbr}.desc")
|
18
|
+
end
|
19
|
+
|
20
|
+
# leave links containing url as this might change, so don't extract it yet.
|
21
|
+
def summary_link
|
22
|
+
"http://creativecommons.org/licenses/#{abbr}/#{version}/deed.#{locale}"
|
23
|
+
end
|
24
|
+
|
25
|
+
def legal_link
|
26
|
+
"http://creativecommons.org/licenses/#{abbr}/#{version}/legalcode"
|
27
|
+
end
|
28
|
+
|
29
|
+
def med_btn
|
30
|
+
"cc_licenseable/buttons/med/#{abbr}.svg"
|
31
|
+
end
|
32
|
+
|
33
|
+
def small_btn
|
34
|
+
"cc_licenseable/buttons/small/#{abbr}.svg"
|
35
|
+
end
|
36
|
+
|
37
|
+
def to_s
|
38
|
+
form_title
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def locale
|
44
|
+
I18n.locale
|
45
|
+
end
|
46
|
+
|
47
|
+
def abbr
|
48
|
+
abbreviation.downcase
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>CcLicenseable</title>
|
5
|
+
<%= stylesheet_link_tag "cc_licenseable/application", :media => "all" %>
|
6
|
+
<%= javascript_include_tag "cc_licenseable/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/config/cucumber.yml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<%
|
2
|
+
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
|
+
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
4
|
+
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
|
5
|
+
%>
|
6
|
+
default: <%= std_opts %> features
|
7
|
+
wip: --tags @wip:3 --wip features
|
8
|
+
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|
@@ -0,0 +1,21 @@
|
|
1
|
+
en:
|
2
|
+
cc_licenseable:
|
3
|
+
license: "License"
|
4
|
+
by:
|
5
|
+
title: "Attribution"
|
6
|
+
desc: "This license lets others distribute, remix, tweak, and build upon your work, even commercially, as long as they credit you for the original creation. This is the most accommodating of licenses offered. Recommended for maximum dissemination and use of licensed materials."
|
7
|
+
by-sa:
|
8
|
+
title: "Attribution-ShareAlike"
|
9
|
+
desc: "This license lets others remix, tweak, and build upon your work even for commercial purposes, as long as they credit you and license their new creations under the identical terms. This license is often compared to 'copyleft' free and open source software licenses. All new works based on yours will carry the same license, so any derivatives will also allow commercial use. This is the license used by Wikipedia, and is recommended for materials that would benefit from incorporating content from Wikipedia and similarly licensed projects."
|
10
|
+
by-nd:
|
11
|
+
title: "Attribution-NoDerivs"
|
12
|
+
desc: "This license allows for redistribution, commercial and non-commercial, as long as it is passed along unchanged and in whole, with credit to you."
|
13
|
+
by-nc:
|
14
|
+
title: "Attribution-NonCommercial"
|
15
|
+
desc: "This license lets others remix, tweak, and build upon your work non-commercially, and although their new works must also acknowledge you and be non-commercial, they don’t have to license their derivative works on the same terms."
|
16
|
+
by-nc-sa:
|
17
|
+
title: "Attribution-NonCommercial-ShareAlike"
|
18
|
+
desc: "This license lets others remix, tweak, and build upon your work non-commercially, as long as they credit you and license their new creations under the identical terms."
|
19
|
+
by-nc-nd:
|
20
|
+
title: "Attribution-NonCommercial-NoDerivs"
|
21
|
+
desc: "This license is the most restrictive of our six main licenses, only allowing others to download your works and share them with others as long as they credit you, but they can’t change them in any way or use them commercially."
|
data/config/routes.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
class AddLicensesToCcLicenseableCcLicences < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY', version: 3.0 })
|
4
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-SA', version: 3.0 })
|
5
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-ND', version: 3.0 })
|
6
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC', version: 3.0 })
|
7
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC-SA', version: 3.0 })
|
8
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC-ND', version: 3.0 })
|
9
|
+
end
|
10
|
+
|
11
|
+
def down
|
12
|
+
CcLicense::CcLicense.all.each { |l| l.destroy }
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
data/db/seeds.rb
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY', version: 3.0 })
|
2
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-SA', version: 3.0 })
|
3
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-ND', version: 3.0 })
|
4
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC', version: 3.0 })
|
5
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC-SA', version: 3.0 })
|
6
|
+
CcLicenseable::CcLicense.find_or_create_by_abbreviation_and_version({ abbreviation: 'BY-NC-ND', version: 3.0 })
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "cc_licenseable/engine"
|
2
|
+
|
3
|
+
module CcLicenseable
|
4
|
+
def self.included(base)
|
5
|
+
base.extend(ClassMethods)
|
6
|
+
end
|
7
|
+
|
8
|
+
module ClassMethods
|
9
|
+
def cc_licenseable
|
10
|
+
belongs_to :cc_license, class_name: "CcLicenseable::CcLicense"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
ActiveRecord::Base.send(:include, CcLicenseable)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module CcLicenseable
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
isolate_namespace CcLicenseable
|
4
|
+
config.generators do |g|
|
5
|
+
g.test_framework :rspec, :view_specs => false, :helper_specs => false
|
6
|
+
g.integration_tool :rspec
|
7
|
+
end
|
8
|
+
config.to_prepare do
|
9
|
+
ApplicationController.helper(FormHelper)
|
10
|
+
ApplicationController.helper(AssetHelper)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
+
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
+
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
+
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
+
# files.
|
6
|
+
|
7
|
+
|
8
|
+
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
9
|
+
|
10
|
+
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
11
|
+
$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'cucumber/rake/task'
|
15
|
+
|
16
|
+
namespace :cucumber do
|
17
|
+
Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
|
18
|
+
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
19
|
+
t.fork = true # You may get faster startup if you set this to false
|
20
|
+
t.profile = 'default'
|
21
|
+
end
|
22
|
+
|
23
|
+
Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
|
24
|
+
t.binary = vendored_cucumber_bin
|
25
|
+
t.fork = true # You may get faster startup if you set this to false
|
26
|
+
t.profile = 'wip'
|
27
|
+
end
|
28
|
+
|
29
|
+
Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
|
30
|
+
t.binary = vendored_cucumber_bin
|
31
|
+
t.fork = true # You may get faster startup if you set this to false
|
32
|
+
t.profile = 'rerun'
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'Run all features'
|
36
|
+
task :all => [:ok, :wip]
|
37
|
+
|
38
|
+
task :statsetup do
|
39
|
+
require 'rails/code_statistics'
|
40
|
+
::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
|
41
|
+
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
desc 'Alias for cucumber:ok'
|
45
|
+
task :cucumber => 'cucumber:ok'
|
46
|
+
|
47
|
+
task :default => :cucumber
|
48
|
+
|
49
|
+
task :features => :cucumber do
|
50
|
+
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
51
|
+
end
|
52
|
+
|
53
|
+
# In case we don't have the generic Rails test:prepare hook, append a no-op task that we can depend upon.
|
54
|
+
task 'test:prepare' do
|
55
|
+
end
|
56
|
+
|
57
|
+
task :stats => 'cucumber:statsetup'
|
58
|
+
rescue LoadError
|
59
|
+
desc 'cucumber rake task not available (cucumber not installed)'
|
60
|
+
task :cucumber do
|
61
|
+
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
metadata
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cc_licenseable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.8'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Curtis Ekstrom
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.13
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.13
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: cucumber-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: database_cleaner
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: pry
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: better_errors
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: binding_of_caller
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: License your ActiveRecord models under Creative Commons licenses
|
143
|
+
email:
|
144
|
+
- ce@canvus.io
|
145
|
+
executables: []
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files: []
|
148
|
+
files:
|
149
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc-nd.eu.svg
|
150
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc-nd.svg
|
151
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc-sa.eu.svg
|
152
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc-sa.svg
|
153
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc.eu.svg
|
154
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nc.svg
|
155
|
+
- app/assets/images/cc_licenseable/buttons/med/by-nd.svg
|
156
|
+
- app/assets/images/cc_licenseable/buttons/med/by-sa.svg
|
157
|
+
- app/assets/images/cc_licenseable/buttons/med/by.svg
|
158
|
+
- app/assets/images/cc_licenseable/buttons/med/cc-zero.svg
|
159
|
+
- app/assets/images/cc_licenseable/buttons/med/cc.srr.primary.svg
|
160
|
+
- app/assets/images/cc_licenseable/buttons/med/publicdomain.svg
|
161
|
+
- app/assets/images/cc_licenseable/buttons/small/by-nc-nd.svg
|
162
|
+
- app/assets/images/cc_licenseable/buttons/small/by-nc-sa.svg
|
163
|
+
- app/assets/images/cc_licenseable/buttons/small/by-nc.svg
|
164
|
+
- app/assets/images/cc_licenseable/buttons/small/by-nd.svg
|
165
|
+
- app/assets/images/cc_licenseable/buttons/small/by-sa.svg
|
166
|
+
- app/assets/images/cc_licenseable/buttons/small/by.svg
|
167
|
+
- app/assets/images/cc_licenseable/buttons/small/cc-zero.svg
|
168
|
+
- app/assets/images/cc_licenseable/buttons/small/publicdomain.svg
|
169
|
+
- app/assets/images/cc_licenseable/icons/by.svg
|
170
|
+
- app/assets/images/cc_licenseable/icons/cc.svg
|
171
|
+
- app/assets/images/cc_licenseable/icons/nc-eu.svg
|
172
|
+
- app/assets/images/cc_licenseable/icons/nc-jp.svg
|
173
|
+
- app/assets/images/cc_licenseable/icons/nc.svg
|
174
|
+
- app/assets/images/cc_licenseable/icons/nd.svg
|
175
|
+
- app/assets/images/cc_licenseable/icons/pd.svg
|
176
|
+
- app/assets/images/cc_licenseable/icons/remix.svg
|
177
|
+
- app/assets/images/cc_licenseable/icons/sa.svg
|
178
|
+
- app/assets/images/cc_licenseable/icons/sampling.plus.svg
|
179
|
+
- app/assets/images/cc_licenseable/icons/sampling.svg
|
180
|
+
- app/assets/images/cc_licenseable/icons/share.svg
|
181
|
+
- app/assets/images/cc_licenseable/icons/zero.svg
|
182
|
+
- app/assets/images/cc_licenseable/logos/cc.logo.svg
|
183
|
+
- app/assets/javascripts/cc_licenseable/application.js
|
184
|
+
- app/assets/stylesheets/cc_licenseable/application.css
|
185
|
+
- app/controllers/cc_licenseable/application_controller.rb
|
186
|
+
- app/helpers/cc_licenseable/application_helper.rb
|
187
|
+
- app/helpers/cc_licenseable/asset_helper.rb
|
188
|
+
- app/helpers/cc_licenseable/form_helper.rb
|
189
|
+
- app/models/cc_licenseable/cc_license.rb
|
190
|
+
- app/views/layouts/cc_licenseable/application.html.erb
|
191
|
+
- config/cucumber.yml
|
192
|
+
- config/locales/en.yml
|
193
|
+
- config/routes.rb
|
194
|
+
- db/migrate/20130327162320_create_cc_licenseable_cc_licenses.rb
|
195
|
+
- db/migrate/20130329103248_add_licenses_to_cc_licenseable_cc_licences.rb
|
196
|
+
- db/seeds.rb
|
197
|
+
- lib/cc_licenseable/engine.rb
|
198
|
+
- lib/cc_licenseable/version.rb
|
199
|
+
- lib/cc_licenseable.rb
|
200
|
+
- lib/tasks/cc_licenseable_tasks.rake
|
201
|
+
- lib/tasks/cucumber.rake
|
202
|
+
- MIT-LICENSE
|
203
|
+
- Rakefile
|
204
|
+
- README.md
|
205
|
+
homepage: https://github.com/clekstro/cc_licenseable
|
206
|
+
licenses: []
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ! '>='
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
219
|
+
requirements:
|
220
|
+
- - ! '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
requirements: []
|
224
|
+
rubyforge_project:
|
225
|
+
rubygems_version: 1.8.25
|
226
|
+
signing_key:
|
227
|
+
specification_version: 3
|
228
|
+
summary: Rails 3 Engine to license model objects with Creative Commons licenses.
|
229
|
+
test_files: []
|