pry-state 0.1.6 → 0.1.7

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: 520ba178a70a9cab1929c9368b5ce0664b49fc2f
4
- data.tar.gz: ae440f7fbf8ef7d606d9dff0b165efa0098bd1df
3
+ metadata.gz: 3d9c096643610ea450443b943aeafa6e730800fb
4
+ data.tar.gz: 6c722c16fc8973bf43e74ad7185775a998fe298a
5
5
  SHA512:
6
- metadata.gz: 48f95903fd105d8fa9fb979f35aa6788ae2c6c8a01a922cc8019c5b207ff6eb37431da9cf06adb9ff23aa254a508869defde467c5bd4ddd349fef4f2b8e36db1
7
- data.tar.gz: d71c27d2503db830047624a2fe26871b0bbbe23a3e17477cd515631f793442eb7160cbf8e8b64d4bc3c351269f3e804fb6dd7337386cba966b01f3f25a9ea206
6
+ metadata.gz: c35e182ba770bdde0f3dad0cf8349eeae50c2f0b2f601e54bc5028325375fa1636ba1dfbf98d989d66e80fe3806dfaf10e8ef3bc0ba74f6ac393977d36141dec
7
+ data.tar.gz: 559d8707f6d1a3e913925986767cb782400a276cc8eea6c07bbb9d6cd2e46c962f3f6466db225342b0273232e63870ab3e172e383a9b9e37202bfe542c608fdd
data/README.md CHANGED
@@ -35,7 +35,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
35
35
 
36
36
  ## Roadmap
37
37
 
38
- 1. Indicate the CHANGE in value between pry sessions by different color.
38
+ 1. Indicate the CHANGE in value between pry sessions by different color. [DONE]
39
39
  2. Associate the variables with numbers, and support command to evaluate the variable through these numbers. eg. command 's1' will show the value of first variable and so on.
40
40
 
41
41
  ## Contributing
@@ -19,11 +19,11 @@ class HookAction
19
19
  return
20
20
  end
21
21
 
22
- (binding.eval('instance_variables') - IGNORABLE_INSTANCE_VARS).each do |var|
22
+ (binding.eval('instance_variables').sort - IGNORABLE_INSTANCE_VARS).each do |var|
23
23
  eval_and_print var, var_color: 'green'
24
24
  end
25
25
 
26
- (binding.eval('local_variables') - IGNORABLE_LOCAL_VARS).each do |var|
26
+ (binding.eval('local_variables').sort - IGNORABLE_LOCAL_VARS).each do |var|
27
27
  eval_and_print var, var_color: 'cyan'
28
28
  end
29
29
  end
@@ -28,9 +28,9 @@ module Printer
28
28
  if value.class == String
29
29
  "\"#{value}\""
30
30
  elsif value.class == Array
31
- "len:#{value.count} #{value}"
31
+ "len:#{value.count} #{value.inspect}"
32
32
  else
33
- value.to_s
33
+ value.inspect
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module PryState
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sudhagar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler