constrain 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: bc16332a51e4f45dabe31a86b2e21bfeed6f54f11310c026609184c0cd28b577
4
- data.tar.gz: 3f88e7f7c97fb7dd925191274d89366729e53b4e5fba2f2628b197f4f7bb6664
3
+ metadata.gz: c176bf713350005e558d37a3b88b08f2a5f0ba37f0d2a829aa1d4b5dd1e8b0b4
4
+ data.tar.gz: 02f69468f0130af3c702159b3cff2def10f1755916bc774e903f3d6cb8136fba
5
5
  SHA512:
6
- metadata.gz: 06fb09ab023fe14278efd1adda85af85c4b1649cc78923d56ffbd0e5634c9508931e22b762c8a305b369ef0d0de56d04223b6fbada6649a19e7558002c313090
7
- data.tar.gz: 156bed0099e954c53c4cad966c2a55731b49639058748bda9de01fbf1ff8348a6c7a0b0b2723e569e2d578319bb6fd0b6ad1aa5b23afa7334f609410b55cdb4f
6
+ metadata.gz: 5117883c01aa7658dd4adefcabb8af14c761090abb407d4141fd6f9321828d8f386f6dccba634d8e08af09bd893d8457d05495cbeba2a91f66d52af92e5c1b4e
7
+ data.tar.gz: 5dc0238f65e4a6771b9a2bca452ab9eabb160c17ca32cec143a835bceb2296a317a661b7faa613a2c0148b3a3e236aef82e64351064a66b250ba146a8b9b5d36
data/lib/constrain.rb CHANGED
@@ -65,7 +65,7 @@ module Constrain
65
65
  #
66
66
  def self.fmt_expr(expr)
67
67
  case expr
68
- when Class; expr.to_s
68
+ when Class, Module; expr.to_s
69
69
  when Array; "[" + expr.map { |expr| fmt_expr(expr) }.join(", ") + "]"
70
70
  when Hash; "{" + expr.map { |k,v| "#{fmt_expr(k)} => #{fmt_expr(v)}" }.join(", ") + "}"
71
71
  when Proc; "Proc@#{expr.source_location.first}:#{expr.source_location.last}"
@@ -1,3 +1,3 @@
1
1
  module Constrain
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen