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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efbdf0a3bed9ded886ef7d1170937026c97921ba
4
- data.tar.gz: 37e7605734053df525d58d23160f9e610722eb72
3
+ metadata.gz: 3327ef9e83c77e8983afebc84649fa8dbcfa9539
4
+ data.tar.gz: b7197ebaf1daf96979bd0192d6c0fc5f7d0ba95d
5
5
  SHA512:
6
- metadata.gz: 77cef5c0dda07903b845259cd3ee07e72a66f46650a741cf1dd1b5d8a05c25459423bbc8e2dfc5d0ea8df6ba9d30e74c5099aa4de1aa78ba7d59ab5cfec04a8b
7
- data.tar.gz: 0432891707fbdbd1e4e6e1d2737040ffb1bcbec5368a8f80b4d3756544a32222b359d175af1266e4a63b8b8ca2715a3d9d90d03121e9866da63ae8e53206872d
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
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in ensure_it.gemspec
4
4
  gemspec
5
5
 
6
- #gem 'coveralls', require: false
6
+ gem 'coveralls', require: false
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
@@ -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 error_class, error.message, error.backtrace
67
+ raise error, error_msg.message, error_msg.backtrace
68
68
  end
69
69
  raise_smart_error(error_msg, error, **opts)
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module EnsureIt
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler