fear 0.6.0 → 0.7.0

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: 6ed9cfc50bd85c7975607f880037044e5bba3aad
4
- data.tar.gz: 908994c021e427c5ec6724581f7355a7cf754f39
3
+ metadata.gz: 3c95e49346ba535f1064e28cfd13d362b4d90e93
4
+ data.tar.gz: 59a2da6b6f7bdc0f5ceea902d5b9a4ca5f299a5f
5
5
  SHA512:
6
- metadata.gz: e7d901c611b11fc3f90c9c6cd252cb1cb62a1e36bdd1ff825d4412fa5aecd7054de4c3c562bb56b8692130f436c85ab88e81b7247a7ec691895b656de27b4a24
7
- data.tar.gz: 1d5b23551ce259c08834b62e1cc0956bf09c7fc31c4d5af56e80b625efe56f079f9f9311216b5c76d5d8cd1dfe64bdf87090c9d393f9e5097cf7a479713dd2a0
6
+ metadata.gz: ace23b4375d62413a49c0f57f48bafb2fa69915a08cbac6ed0e021d5a5892c890c4111028e25d4deade4425aee9424ea47695045d1c4253b94cc3ba73a094fdd
7
+ data.tar.gz: d4dfb59841bca2985644dc3f34f550321c48bcb669ac7ad3ac55bb843e483bacce48371529e1223e2d09e89f08f811e4d90d1976c6a45d3a50f3613881e8346a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.0
2
+
3
+ * Better errors for types assertions ([@bolshakov][])
4
+
1
5
  ## 0.6.0
2
6
 
3
7
  * Added `Either#or_else` and `Option#or_else`. `Try#or_else` may accept only block ([@bolshakov][])
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 TODO: Write your name
1
+ Copyright (c) 2015-2017 Tema Bolshakov
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Fear
2
2
  [![Build Status](https://travis-ci.org/bolshakov/fear.svg?branch=master)](https://travis-ci.org/bolshakov/fear)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/dbdcfb770918c425e5e4/maintainability)](https://codeclimate.com/github/bolshakov/functional/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/dbdcfb770918c425e5e4/test_coverage)](https://codeclimate.com/github/bolshakov/functional/test_coverage)
3
5
  [![Gem Version](https://badge.fury.io/rb/fear.svg)](https://badge.fury.io/rb/fear)
4
6
 
5
7
  This gem provides `Option`, `Either`, and `Try` monads implemented an idiomatic way.
data/lib/fear/utils.rb CHANGED
@@ -11,7 +11,7 @@ module Fear
11
11
 
12
12
  def assert_type!(value, *types)
13
13
  if types.none? { |type| value.is_a?(type) }
14
- fail TypeError, "expected `#{value}` to be of #{types.join(', ')} class"
14
+ fail TypeError, "expected `#{value.inspect}` to be of #{types.join(', ')} class"
15
15
  end
16
16
  end
17
17
 
data/lib/fear/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fear
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fear
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tema Bolshakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2018-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-equalizer
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.6.10
190
+ rubygems_version: 2.5.2.1
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: "%q{Ruby port of some Scala's monads.}"