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 +4 -4
- data/README.md +0 -3
- data/lib/quicklog.rb +1 -1
- data/lib/quicklog/version.rb +1 -1
- data/test/test_quicklog.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b027e882d2438b04daf5cac39ff737f061ab2bcf
|
4
|
+
data.tar.gz: bfa7119ed85b7287b20d2cc426edafd7a9ed4af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/quicklog.rb
CHANGED
data/lib/quicklog/version.rb
CHANGED
data/test/test_quicklog.rb
CHANGED
@@ -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
|
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.
|
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-
|
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:
|