copyright の表示を行う
Add this line to your application's Gemfile:
gem 'ans-copyright'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ans-copyright
module ApplicationHelper
include Ans::Copyright
end
# now: 2013
<%= show_copyright "© Answer" %> # => © Answer
<%= show_copyright "© Answer", now: 2012 %> # => © Answer 2012
<%= show_copyright "© Answer", since: 2012 %> # => © Answer 2012 - 2013
<%= show_copyright "© Answer", since: 2012, now: 2014 %> # => © Answer 2012 - 2014
<%= show_copyright "© Answer", since: 2012, now: 2014, padding: " = ", separator: " < " %>
# => © Answer = 2012 < 2014
<%= show_copyright "© Answer", file: "path/to/now" %>
# => file で指定したファイルの mtime から now を指定する
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
- bundle install --path=path/to/bundle
- add feature
- run spec (
bundle exec rspec)