copyright_helper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in copyright_helper.gemspec
4
- gemspec
data/README.md CHANGED
@@ -1,27 +1,19 @@
1
- ## Installation
2
-
3
- Add this line to your application's Gemfile:
4
-
5
- gem 'copyright_helper'
6
-
7
- And then execute:
8
-
9
- $ bundle
10
-
11
- Or install it yourself as:
12
-
13
- $ gem install copyright_helper
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
@@ -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 with your twitter account at footer for Ruby on Rails.}
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
 
@@ -1,3 +1,3 @@
1
1
  module CopyrightHelper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,10 +1,8 @@
1
- require "copyright_helper/version"
2
1
  module CopyrightHelper
3
- def copyright(start_year,url,creator)
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 = link_to(url,"http://#{url}")
7
- creator = link_to("@#{creator}","http://twitter.com/#{creator}")
8
- raw("Copyright © #{year} #{url} All Rights Reserved. Created By #{creator}.")
5
+ url = "http://#{url}"
6
+ "Copyright &copy #{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.1
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-06-23 00:00:00.000000000 Z
12
+ date: 2012-07-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: generates copyright with your twitter account at footer for Ruby on Rails.
14
+ description: generates a copyright.
15
15
  email:
16
16
  - blp1526@gmail.com
17
17
  executables: []