-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstrftime.gemspec
39 lines (32 loc) · 1.52 KB
/
strftime.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "strftime/version"
Gem::Specification.new do |spec|
spec.name = "strftime"
spec.version = Strftime::VERSION
spec.authors = ["Jim Gay"]
spec.email = ["[email protected]"]
spec.summary = %q{Convenient list of strftime format directives}
spec.homepage = "https://github.com/saturnflyer/strftime"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.post_install_message = %{
Thanks for installing strftime. You can use these methods to
better understand the formats used in Date and Time strftime
Strftime::Directive.all #=> a full array of directives
Strftime::Directive['%y'] #=> a Strftime::Directive with
# a key of the given argument
Strftime::Directive.default_collection #=> standard directives
# unchanged by your code
strfd #=> shorthand to get directives
strfd('%y') #=> shorthand to get details
strfd('April 29 2011') #=> a list of options for
# directives to match that date
}
end