copyrighter 0.0.1 → 1.0.0

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/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .DS_Store
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
data/README.md CHANGED
@@ -4,7 +4,7 @@ Handy way to print out copyright dates, like in a footer.
4
4
 
5
5
  Assuming it's 2012,
6
6
 
7
- © 2012 will print "2012"
7
+ <%= © 2012 %> will print "2012"
8
8
 
9
9
  Next year it will automatically change to "2012 - 2013"
10
10
 
data/copyrighter.gemspec CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |gem|
5
5
  gem.authors = ["Chris Kalafarski"]
6
6
  gem.email = ["chris@farski.com"]
7
7
  gem.description = %q{Conveniently output copyright date ranges}
8
- gem.summary = %q{}
9
- gem.homepage = ""
8
+ gem.summary = %q{Helper method for printed copyright dates, like "Copyright 1999-2012"}
9
+ gem.homepage = 'https://github.com/farski/copyrighter'
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
12
  gem.files = `git ls-files`.split("\n")
@@ -9,5 +9,6 @@ module Copyrighter
9
9
  else [period, Time.now.year]
10
10
  end.compact.join(joiner)
11
11
  end
12
- end
12
+ alias :copyright :©
13
+ end
13
14
  end
@@ -1,4 +1,4 @@
1
- require './copyrighter/helpers'
1
+ require 'copyrighter/helpers'
2
2
  module Copyrighter
3
3
  class Railtie < Rails::Railtie
4
4
  initializer "copyrighter.helpers" do
@@ -1,3 +1,3 @@
1
1
  module Copyrighter
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/copyrighter.rb CHANGED
@@ -1,15 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require './copyrighter/version'
3
+ require 'copyrighter/version'
4
4
 
5
- require './copyrighter/railtie' if defined?(Rails)
5
+ require 'copyrighter/railtie' if defined?(Rails)
6
6
 
7
7
  module Copyrighter
8
- def ©(period, joiner = " – ")
9
- return case period
10
- when Range then [period.begin, period.end]
11
- when Time.now.year then [period]
12
- else [period, Time.now.year]
13
- end.compact.join(joiner)
14
- end
15
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copyrighter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-25 00:00:00.000000000 Z
12
+ date: 2012-01-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Conveniently output copyright date ranges
15
15
  email:
@@ -28,7 +28,7 @@ files:
28
28
  - lib/copyrighter/helpers.rb
29
29
  - lib/copyrighter/railtie.rb
30
30
  - lib/copyrighter/version.rb
31
- homepage: ''
31
+ homepage: https://github.com/farski/copyrighter
32
32
  licenses: []
33
33
  post_install_message:
34
34
  rdoc_options: []
@@ -51,5 +51,5 @@ rubyforge_project:
51
51
  rubygems_version: 1.8.11
52
52
  signing_key:
53
53
  specification_version: 3
54
- summary: ''
54
+ summary: Helper method for printed copyright dates, like "Copyright 1999-2012"
55
55
  test_files: []