Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Merge 1c629b2 into 3225a61
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkalmer committed Dec 10, 2014
2 parents 3225a61 + 1c629b2 commit 7f9abb3
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 12 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: ruby

rvm:
- 2.2
- 2.1
- 2.0
- 1.9.3
- 1.9.2
- rbx-19mode
- jruby-19mode
- 1.8.7

matrix:
allow_failures:
- rvm: 2.2
- rvm: jruby-19mode
- rvm: rbx-19mode
- rvm: 1.8.7

gemfile:
- gemfiles/Gemfile.ci

sudo: false
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ GEM
mocha (0.9.12)
polyglot (0.3.1)
rake (0.8.7)
rcov (0.9.9)
rspec (2.5.0)
rspec-core (~> 2.5.0)
rspec-expectations (~> 2.5.0)
Expand All @@ -40,7 +39,6 @@ DEPENDENCIES
mail
mocha
rake
rcov
rspec (~> 2.5.0)
safely!
toadhopper
Expand Down
24 changes: 15 additions & 9 deletions README.rdoc → README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
= safely
# safely

Safely is a simple exception handling and alerting mechanism extract from the daemon-kit[https://github.com/kennethkalmer/daemon-kit] project.
[![Build Status](https://travis-ci.org/kennethkalmer/safely.png)](https://travis-ci.org/kennethkalmer/safely)
[![Coverage Status](https://coveralls.io/repos/kennethkalmer/safely/badge.png)](https://coveralls.io/r/kennethkalmer/safely)
[![Code Climate](https://codeclimate.com/github/kennethkalmer/safely.png)](https://codeclimate.com/github/kennethkalmer/safely)
[![Gem Version](https://badge.fury.io/rb/safely.png)](http://badge.fury.io/rb/safely)
[![Dependency Status](https://gemnasium.com/kennethkalmer/safely.svg)](https://gemnasium.com/kennethkalmer/safely)

Safely is a simple exception handling and alerting mechanism extract from the [daemon-kit](https://github.com/kennethkalmer/daemon-kit) project.

Safely currently supports error reporting to Hoptoad, or via email. Safely can also log all exceptions to a file when a program exited abnormally, shedding light on what caused the failures.

== Installation and Usage
## Installation and Usage

Please refer to the wiki[https://github.com/kennethkalmer/safely/wiki] for installation and usage information.
Please refer to the [wiki](https://github.com/kennethkalmer/safely/wiki) for installation and usage information.

== TODO
## TODO

* Support for logging exceptions
* Fine-tune strategies
* Support for trapping exceptions on exit

== Contributing to safely
## Contributing to safely

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
Expand All @@ -24,8 +30,8 @@ Please refer to the wiki[https://github.com/kennethkalmer/safely/wiki] for insta
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright
## Copyright

Copyright (c) 2011 Kenneth Kalmer. See LICENSE.txt for
Copyright (c) 2014 Kenneth Kalmer. See LICENSE.txt for
further details.

7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new

begin
require 'coveralls/rake/task'
Coveralls::RakeTask.new
task :default => [ :spec, 'coveralls:push' ]
rescue LoadError
end
8 changes: 8 additions & 0 deletions gemfiles/Gemfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

# Normal gem dependencies
gemspec :path => '../'

group :development do
gem "coveralls", :require => false
end
65 changes: 65 additions & 0 deletions gemfiles/Gemfile.ci.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
PATH
remote: ../
specs:
safely (0.3.2)

GEM
remote: https://rubygems.org/
specs:
activesupport (3.0.6)
coveralls (0.7.2)
multi_json (~> 1.3)
rest-client (= 1.6.7)
simplecov (>= 0.7)
term-ansicolor (= 1.2.2)
thor (= 0.18.1)
diff-lcs (1.1.2)
docile (1.1.5)
i18n (0.5.0)
mail (2.2.15)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mocha (0.9.12)
multi_json (1.10.1)
polyglot (0.3.1)
rake (0.8.7)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.5.0)
rspec-core (~> 2.5.0)
rspec-expectations (~> 2.5.0)
rspec-mocks (~> 2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
simplecov (0.9.1)
docile (~> 1.1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
term-ansicolor (1.2.2)
tins (~> 0.8)
thor (0.18.1)
tins (0.13.2)
toadhopper (2.0)
treetop (1.4.9)
polyglot (>= 0.3.1)
yard (0.6.7)

PLATFORMS
ruby

DEPENDENCIES
bundler
coveralls
mail
mocha
rake
rspec (~> 2.5.0)
safely!
toadhopper
yard (~> 0.6.0)
1 change: 0 additions & 1 deletion safely.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency(%q<mail>, [">= 0"])
gem.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
gem.add_development_dependency(%q<yard>, ["~> 0.6.0"])
gem.add_development_dependency(%q<rcov>, [">= 0"])
gem.add_development_dependency(%q<mocha>, [">= 0"])
end
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
begin
require 'coveralls'
Coveralls.wear_merged!
rescue LoadError
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
Expand Down

0 comments on commit 7f9abb3

Please sign in to comment.