File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- is-enum (0.8.4 )
4+ is-enum (0.8.6 )
55
66GEM
77 remote: https://rubygems.org/
@@ -46,7 +46,7 @@ DEPENDENCIES
4646CHECKSUMS
4747 diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
4848 docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
49- is-enum (0.8.4 )
49+ is-enum (0.8.6 )
5050 rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
5151 redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445
5252 rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
Original file line number Diff line number Diff line change 11Gem ::Specification ::new do |s |
22 s . name = "is-enum"
3- s . version = "0.8.4 "
3+ s . version = "0.8.6 "
44 s . summary = "Enum types for Ruby"
55 s . description = "Enum types for Ruby."
66 s . authors = [ "Ivan Shikhalev" ]
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def from value
6161 when Enumerable
6262 value . map { |v | from ( v ) }
6363 else
64- raise ArgumentError , "Invalid value of #{ self } : #{ value . inspect } " , caller_locations
64+ self [ value ]
6565 end
6666 end
6767
You can’t perform that action at this time.
0 commit comments