forked from ageweke/fortitude
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fortitude.gemspec
66 lines (56 loc) · 2.15 KB
/
fortitude.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
55
56
57
58
59
60
61
62
63
64
65
66
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'fortitude/version'
Gem::Specification.new do |s|
s.name = "fortitude"
s.version = Fortitude::VERSION
s.authors = ["Andrew Geweke"]
s.email = ["[email protected]"]
s.summary = %q{Views Are Code: use all the power of Ruby to build views in your own language.}
s.description = %q{Views Are Code: use all the power of Ruby to build views in your own language.}
s.homepage = "https://github.com/ageweke/fortitude"
s.license = "MIT"
s.files = `git ls-files`.split($/)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ["lib"]
if RUBY_PLATFORM =~ /java/
s.platform = 'java'
else
s.platform = Gem::Platform::RUBY
s.extensions << "ext/fortitude_native_ext/extconf.rb"
end
activesupport_spec = [ ">= 3.0" ]
ref_spec = [ ">= 1.0.5" ]
rake_spec = [ ">= 1.0" ]
json_spec = [ ">= 1.0" ]
if RUBY_VERSION =~ /^1\.8\./
activesupport_spec << "< 4.0"
ref_spec << "< 2.0.0"
rake_spec << "< 11.0.0"
json_spec << "< 2.0.0"
elsif RUBY_VERSION =~ /^1\.9\./
activesupport_spec << "< 5.0"
json_spec << "< 2.0.0"
elsif RUBY_VERSION =~ /^2\.[01]\./
activesupport_spec << "< 5.0"
end
s.add_dependency "activesupport", *activesupport_spec
s.add_dependency "ref", *ref_spec
s.add_development_dependency "rake", *rake_spec
s.add_development_dependency "json", *json_spec
s.add_development_dependency "bundler", ">= 1.5"
s.add_development_dependency "rspec", "~> 2.99"
s.add_development_dependency "rake-compiler"
s.add_development_dependency "tilt", "~> 2.0"
s.add_development_dependency "oop_rails_server", ">= 0.0.24"
# This is because i18n >= 0.7 is incompatible with Ruby 1.8.x.
if RUBY_VERSION =~ /^1\.8\./
s.add_development_dependency "i18n", "~> 0.6.0", "< 0.7.0"
end
# This is because 'tins' >= 1.7.0 is incompatible with Ruby < 2.0.0.
if RUBY_VERSION =~ /^1\./
s.add_development_dependency "tins", "< 1.7.0"
end
end