-
Notifications
You must be signed in to change notification settings - Fork 6
/
has_safe_dates.gemspec
54 lines (48 loc) · 1.97 KB
/
has_safe_dates.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "has_safe_dates/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "has_safe_dates"
s.version = HasSafeDates::VERSION
s.authors = ["kylejginavan"]
s.date = "2012-02-24"
s.description = "Uses Chronic to parse incoming dates and does not raise errors on invalid multi parameter settings"
s.email = "[email protected]"
s.extra_rdoc_files = [
"MIT-LICENSE.txt",
"README.md"
]
s.files = `git ls-files`.split("\n")
s.homepage = "https://github.com/kylejginavan/has_safe_dates"
s.require_paths = ["lib"]
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.summary = "Chronic based date setting for ActiveRecord models"
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new("1.2.0") then
s.add_development_dependency("activerecord", ["~> 6.0"])
s.add_development_dependency("bundler", ["~> 2.0"])
s.add_dependency("chronic")
s.add_development_dependency("database_cleaner")
s.add_development_dependency("rdoc", ["~> 3.12"])
s.add_development_dependency("rspec", [">= 0", "< 3"])
s.add_development_dependency("rspec_junit_formatter", ["~> 0.3", ">= 0.3.0"])
s.add_development_dependency("sqlite3")
else
s.add_dependency("activerecord", [">= 3.1.0"])
s.add_dependency("bundler", ["~> 2.0"])
s.add_dependency("chronic")
s.add_dependency("rdoc", ["~> 3.12"])
s.add_dependency("rspec", [">= 0"])
end
else
s.add_dependency("activerecord", [">= 3.1.0"])
s.add_dependency("bundler", ["~> 2.0"])
s.add_dependency("chronic")
s.add_dependency("rdoc", ["~> 3.12"])
s.add_dependency("rspec", [">= 0"])
end
end