ensure_it 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/Gemfile +1 -1
- data/README.md +4 -0
- data/lib/ensure_it/errors.rb +1 -1
- data/lib/ensure_it/version.rb +1 -1
- data/spec/spec_helper.rb +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3327ef9e83c77e8983afebc84649fa8dbcfa9539
|
4
|
+
data.tar.gz: b7197ebaf1daf96979bd0192d6c0fc5f7d0ba95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95223df056bfecb587411ca19861cb87dd7d1c84188e886343be34fb02e597ef716d88d97e1e542d86cb4d4702ec9cc139f464d04b323a25085a665c9cbd9cfa
|
7
|
+
data.tar.gz: ad75c0c7d19b5f58f0d10e58db0179b9a23ec347a8dd66f12e68d059b475692ccc72ecef4b32ccc6a47284e740f1475dd9f30b5eaed111ae2e4dc46d01a61d89
|
data/.travis.yml
CHANGED
@@ -2,6 +2,9 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
4
|
- 2.1.1
|
5
|
+
- ruby-head
|
5
6
|
env:
|
6
|
-
- USE_REFINES=true
|
7
|
-
- USE_REFINES=false
|
7
|
+
- USE_REFINES=true USE_COVERALLS=true
|
8
|
+
- USE_REFINES=true USE_COVERALLS=false
|
9
|
+
- USE_REFINES=false USE_COVERALLS=true
|
10
|
+
- USE_REFINES=false USE_COVERALLS=false
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/ensure_it.png)](http://badge.fury.io/rb/ensure_it)
|
1
2
|
[![Code Climate](https://codeclimate.com/github/cybernetlab/ensure_it.png)](https://codeclimate.com/github/cybernetlab/ensure_it)
|
2
3
|
[![Build Status](https://travis-ci.org/cybernetlab/ensure_it.svg?branch=master)](https://travis-ci.org/cybernetlab/ensure_it)
|
3
4
|
[![Coverage Status](https://coveralls.io/repos/cybernetlab/ensure_it/badge.png?branch=master)](https://coveralls.io/r/cybernetlab/ensure_it?branch=master)
|
@@ -276,6 +277,9 @@ Please read carefully [refinements](http://www.ruby-doc.org/core-2.1.1/doc/synta
|
|
276
277
|
|
277
278
|
## Changelog
|
278
279
|
|
280
|
+
`0.1.1`
|
281
|
+
* fixed: no error_class in standard errors mode
|
282
|
+
|
279
283
|
`0.1.0`
|
280
284
|
* set of methods for beginning:
|
281
285
|
- ensure_symbol
|
data/lib/ensure_it/errors.rb
CHANGED
@@ -64,7 +64,7 @@ module EnsureIt
|
|
64
64
|
error_msg = ErrorMessage.new(method_name, message, caller[1..-1])
|
65
65
|
if opts.key?(:smart) && opts[:smart] != true ||
|
66
66
|
EnsureIt.config.errors != :smart
|
67
|
-
raise
|
67
|
+
raise error, error_msg.message, error_msg.backtrace
|
68
68
|
end
|
69
69
|
raise_smart_error(error_msg, error, **opts)
|
70
70
|
end
|
data/lib/ensure_it/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,23 @@
|
|
1
|
-
#require 'coveralls'
|
2
|
-
#Coveralls.wear!
|
3
|
-
|
4
1
|
if ENV['USE_REFINES'] == 'true'
|
5
2
|
require 'ensure_it_refines'
|
6
3
|
else
|
7
4
|
require 'ensure_it'
|
8
5
|
end
|
9
6
|
|
7
|
+
if ENV['USE_COVERALLS'] == 'true'
|
8
|
+
# coveralls.io gem breaks build with our smart errors due to TracePoint
|
9
|
+
# conflicts, so build it separetly
|
10
|
+
# TODO: find better way to resolve this issue
|
11
|
+
|
12
|
+
EnsureIt.configure do |config|
|
13
|
+
config.errors = :standard
|
14
|
+
end
|
15
|
+
|
16
|
+
require 'coveralls'
|
17
|
+
Coveralls.wear!
|
18
|
+
end
|
19
|
+
|
20
|
+
|
10
21
|
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each do |file|
|
11
22
|
require file
|
12
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ensure_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Ovchinnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|