fancy_irb 0.8.1 → 0.8.2

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: d3f149af6394f757d5d051eb2b27c33e5b08fb3c
4
- data.tar.gz: cb61a5f444c6d2fae9ff38e1d65c6300986343d3
3
+ metadata.gz: be5b9de555ed88589c970b5606a6d5daf72b66f4
4
+ data.tar.gz: e04b08956d0c7d4d8ce79fd6cbd9330d4649bd27
5
5
  SHA512:
6
- metadata.gz: d7e661f420647f23669df4ed334c773529716e1b61b65a3890eb4b68e70d38bd8cfd6ffcef529f2b47014a566ce68933b44fa247f646e77dea0345596c6c102e
7
- data.tar.gz: 70a0fde93478df71b4211644c1be16276af0f3ea1894fb413d2c7c2172888b6a99f42f53510e4f3a596dcb22d6c4a390c11a91e4770d1aa871d2a16fdb4230bc
6
+ metadata.gz: 6e8fb35153eabcb01ef0e52ed65433d0b991ebea8feaf481e544933310122580e23b37c0af8b2607d9d3b2b680f5a852709ed9ec0f70d6e06f4e80a332a96666
7
+ data.tar.gz: 0b69b9d68d850f802ad6ba2309c8d48abad7983bed5f16a1dab7285f34136b1a7b8d9925757ae6067e36d96f6784dbf82ed9daf70ab22e71b3cf8c03e0b76ee9
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.8.2
2
+ * Support objects that don't support #inspect
3
+
1
4
  == 0.8.1
2
5
  * Use io/console correctly, fixes bug on mingw
3
6
 
data/README.rdoc CHANGED
@@ -59,7 +59,11 @@ You can modify how to get and display the input. The <tt>result_proc</tt> is a p
59
59
 
60
60
  DEFAULT_RESULT_PROC = proc{ |context|
61
61
  if context.inspect?
62
- context.last_value.inspect
62
+ if defined?(context.last_value.inspect)
63
+ context.last_value.inspect
64
+ else
65
+ "(Object doesn't support #inspect)"
66
+ end
63
67
  else
64
68
  context.last_value
65
69
  end
@@ -1,3 +1,3 @@
1
1
  module FancyIrb
2
- VERSION = '0.8.1'.freeze
2
+ VERSION = '0.8.2'.freeze
3
3
  end
data/lib/fancy_irb.rb CHANGED
@@ -11,7 +11,11 @@ require_relative 'fancy_irb/implementation'
11
11
  module FancyIrb
12
12
  DEFAULT_RESULT_PROC = proc{ |context|
13
13
  if context.inspect?
14
- context.last_value.inspect
14
+ if defined?(context.last_value.inspect)
15
+ context.last_value.inspect
16
+ else
17
+ "(Object doesn't support #inspect)"
18
+ end
15
19
  else
16
20
  context.last_value
17
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancy_irb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint