forked from richpeck/exception_handler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception_handler.gemspec
More file actions
80 lines (60 loc) · 2.51 KB
/
exception_handler.gemspec
File metadata and controls
80 lines (60 loc) · 2.51 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Dependencies
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
##############################################################
##############################################################
# => Version
# => https://github.com/rails/rails/blob/master/version.rb
module ExceptionHandler
module VERSION
MAJOR = 0
MINOR = 7
TINY = 6
PRE = 0 # "alpha"
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
end
##############################################################
##############################################################
# => Gem
Gem::Specification.new do |s|
##############################################################
# => General
s.platform = Gem::Platform::RUBY
s.name = "exception_handler"
s.version = ExceptionHandler::VERSION::STRING
# => Author
s.authors = ["Richard Peck"]
s.email = ["rpeck@frontlineutilities.co.uk"]
# => Details
s.summary = %q{Rails gem to show custom error pages in production. Also logs errors in db & sends notification emails}
s.description = %q{Rails gem to create custom error pages. Captures exceptions using "exception_app" callback, routing to "Exception" controller, rendering the view as required.}
s.homepage = "http://github.com/richpeck/exception_handler"
# => License
s.license = "MIT"
##############################################################
# => Files
# => Remove "readme" dir from gem
s.files = `git ls-files -z`.split("\x0")
s.files.reject! { |fn| fn.include? "readme" } #-> https://github.com/gauntlt/gauntlt/blob/master/gauntlt.gemspec#L16
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/}) unless RUBY_VERSION >= "2.2.0" #-> deprecated in Ruby 2.2.0
s.require_paths = ["lib"]
##############################################################
# => Ruby
s.required_ruby_version = ">= 2.1.0"
# => Runtime
s.add_dependency "bundler"
s.add_dependency "rails", ">= 4.2.0"
s.add_dependency "responders"
# => Extras
s.add_development_dependency "autoprefixer-rails"
# => Dev
# => For testing etc
s.add_development_dependency "rake"
s.add_development_dependency "rspec"
s.add_development_dependency "rspec-rails"
s.add_development_dependency "sqlite3", ">= 1.3.10"
##############################################################
##############################################################
end