quicklog 0.1.2 → 0.2.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: d4797647cd69ef908dd663428cc3a8440f2bfd6b
4
- data.tar.gz: 5aea3b4e4573a9a463a2e35750dc9bffff287249
3
+ metadata.gz: b027e882d2438b04daf5cac39ff737f061ab2bcf
4
+ data.tar.gz: bfa7119ed85b7287b20d2cc426edafd7a9ed4af5
5
5
  SHA512:
6
- metadata.gz: 9dab9913c91e569987931adc7476618148a1160ebcef0cfb83ddb5911f10fe03d5771d5fad7d34b017252b0f09ef5c07a4a026db9d91cb5e4ae2b8f6d37e76a3
7
- data.tar.gz: d5ffe22641238dafb0af6bc1780da7bfa3e5a902930286de04a501cbd9d3abc9fc7fbfe293ac35e4ed1296b924c4c351e6362025b2efc75309504597562e39f4
6
+ metadata.gz: 6cac24bda755fe23b88c945fb0b794dbb7e12b2f5656ed13a426584d477688f131d194c0fab6d8aa11a9d27410dff43f38a395cbb077d20d30e7374e5720da79
7
+ data.tar.gz: 29cd3643a6a2163383ea04aeca1e7ec8c95015fefb52554c6bdfc9f715bd047bc0861aaee4a2d113ff72717e414963b0342be99e1c5880f3322eaf86c4658cae
data/README.md CHANGED
@@ -52,8 +52,5 @@ I found the solution I needed in this [stackoverflow answer](http://stackoverflo
52
52
 
53
53
  ## TODO
54
54
 
55
- * use inspect to output the expression
56
55
  * use Awesome Print if available
57
- * allow logging of string + variable: `ql "hi!", :my_var`
58
- * allow logging of several variables: `ql :my_var1, :my_var2, :my_var3`
59
56
  * logs through Rails.logger if available
@@ -12,7 +12,7 @@ module Quicklog
12
12
  def self.label_and_value_as_string symbol
13
13
  RubyVM::DebugInspector.open do |inspector|
14
14
  value = eval symbol.to_s, inspector.frame_binding(4)
15
- "#{symbol} = #{value}"
15
+ "#{symbol} = #{value.inspect}"
16
16
  end
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Quicklog
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -21,7 +21,7 @@ class QuicklogTest < Minitest::Test
21
21
 
22
22
  def test_log_object_attribute
23
23
  person = Struct.new(:name).new "David"
24
- expected = in_reverse_video "person.name = David"
24
+ expected = in_reverse_video 'person.name = "David"'
25
25
 
26
26
  expect $stdout, :puts, with: [expected], returns: nil do
27
27
  ql :"person.name"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quicklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florent Guilleux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2013-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug_inspector
@@ -122,3 +122,4 @@ specification_version: 4
122
122
  summary: easy logging of a variable value with its label
123
123
  test_files:
124
124
  - test/test_quicklog.rb
125
+ has_rdoc: