copyright_helper 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +0 -4
- data/README.md +14 -22
- data/copyright_helper.gemspec +1 -1
- data/lib/copyright_helper/version.rb +1 -1
- data/lib/copyright_helper.rb +3 -5
- metadata +3 -3
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,27 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
## Usage
|
16
|
-
|
17
|
-
copyright(2011,'blp-cover-arts.heroku.com','blp1526')
|
18
|
-
|
19
|
-
# => Copyright © 2011-2012 blp-cover-arts.heroku.com All Rights Reserved. Created By @blp1526.
|
20
|
-
|
21
|
-
## Contributing
|
1
|
+
copyright_helper
|
2
|
+
====
|
3
|
+
copyright generator
|
4
|
+
Install
|
5
|
+
-------
|
6
|
+
gem install copyright_helper
|
7
|
+
|
8
|
+
Usage
|
9
|
+
-----
|
10
|
+
CopyrightHelper.create(2011,'blp-cover-arts.heroku.com')
|
11
|
+
# => "Copyright © 2011-2012 http://blp-cover-arts.heroku.com blp-cover-arts.heroku.com All Rights Reserved."
|
12
|
+
Contributing
|
13
|
+
--------------------
|
22
14
|
|
23
15
|
1. Fork it
|
24
16
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
25
17
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
26
18
|
4. Push to the branch (`git push origin my-new-feature`)
|
27
|
-
5. Create new Pull Request
|
19
|
+
5. Create new Pull Request
|
data/copyright_helper.gemspec
CHANGED
@@ -4,7 +4,7 @@ require File.expand_path('../lib/copyright_helper/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["blp1526"]
|
6
6
|
gem.email = ["blp1526@gmail.com"]
|
7
|
-
gem.description = %q{generates copyright
|
7
|
+
gem.description = %q{generates a copyright.}
|
8
8
|
gem.summary = %q{copyright generator}
|
9
9
|
gem.homepage = "https://github.com/blp1526/copyright_helper"
|
10
10
|
|
data/lib/copyright_helper.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
require "copyright_helper/version"
|
2
1
|
module CopyrightHelper
|
3
|
-
def
|
2
|
+
def self.create(start_year,url)
|
4
3
|
current_year = "-#{Time.now.year}" if Time.now.year > start_year
|
5
4
|
year = "#{start_year}#{current_year}"
|
6
|
-
url =
|
7
|
-
|
8
|
-
raw("Copyright © #{year} #{url} All Rights Reserved. Created By #{creator}.")
|
5
|
+
url = "http://#{url}"
|
6
|
+
"Copyright © #{year} #{url} All Rights Reserved."
|
9
7
|
end
|
10
8
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copyright_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: generates copyright
|
14
|
+
description: generates a copyright.
|
15
15
|
email:
|
16
16
|
- blp1526@gmail.com
|
17
17
|
executables: []
|