开发者

Give copyright in Ruby on Rails files

开发者 https://www.devze.com 2023-02-15 13:49 出处:网络
I want provide to copyright notice at start of files in my Ruby on Rails project. Can I give copyright notice in all Ruby on Rails files including auto generated files like app开发者_C百科lication.rb,

I want provide to copyright notice at start of files in my Ruby on Rails project. Can I give copyright notice in all Ruby on Rails files including auto generated files like app开发者_C百科lication.rb, routes.rb. ?


I have seen this in some ruby files available online such ashttps://github.com/diaspora/diaspora/blob/develop/app/models/account_deletion.rb

I needed to do the same, but I needed a tool to automate adding it to all .rb files.

I have written the following script for this reason

https://gist.github.com/modsaid/5435473


You would need to review the MIT-license for that: http://www.opensource.org/licenses/mit-license.php

but if my understanding is correct, yes you can put a copyright notice on your files.

0

精彩评论

暂无评论...
验证码 换一张
取 消