lines 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmZmY2Q5NDdlNWU4MDMzZDQyOGJkMTdjNTZhN2Q1YmYxOWYyYzM4Nw==
4
+ ZDMyYWMxNDMyYjgzY2UwMzQ3NDhlYmI2MmM2ZjBlMWViMjM5MDUwYg==
5
5
  data.tar.gz: !binary |-
6
- NjNlZjRkOWUyN2YyNjFhNjY4YTI1OWU1NDUxODRmMzZhNDllMTg0OQ==
6
+ OTJkNjY2ZGJiMTIwNGIwZThlNDQ4ZTRhYzU0NGY0MjNjYTk3N2M1NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTA1ZTAwNTVhNTc2OWMwMWQ4NDJlMWRkNzg4ODI2ZjYzOThlMzdhZGNiYmI3
10
- NmU1M2ZhNGIwYTJlYmFmYTg4YmM5OWI5ZDFhYzQ4OWI2ZTVlNmIyODYyZmUx
11
- ZjM3YmQ1NjAzMTBhZmQ5NzFhOGU5YmRjOTdmMzdhODVmMTIyYjc=
9
+ ZmU2ZGI1ZDZmN2U2ZTIzMmI5ZDVjZmIyZjk1MGFmNjcxNTYzMzk1ZGEwZWY5
10
+ MzEwNTU1YTc2ZWUxMGI2NDEyMDU4NDBhZTIwMWQ1MWZiNjI5Mzg4N2EzMGJl
11
+ MjUxZTNmMGQ4ZWE0OTQxZTQ4NzMwMzQzY2M3YTllZmViOTVkYTQ=
12
12
  data.tar.gz: !binary |-
13
- OTc0OTZkOTBhMWNkNDFiNDA0NDIyMmNmYWE3NTM4MmY3NjZjMDBkMDdjMDQ5
14
- YTJhN2YxNTU3N2RhY2UwNzA2ZjlhZDNmM2NkZWZmNzA4N2Q0NjgyYzZiZjRm
15
- ZWVlMzBhNmJjZjA2OTQ3MmY1N2Q3NGJjNTgyMWJiYWQzMzI2Yzg=
13
+ MzM5MTI0YzE5NGVlMjEzNTk2OTkwODk0MDViYzRmN2YwMjBmMDc5NGM5ZmNm
14
+ MThiZTQ1NDgxNDJhOTBjNDM4NTAzODZhYjk0MjQ3MjI4YzdiY2FjN2YzMjFm
15
+ NGQzODEzMmRiNzdhMWJkMmZlY2Q2OTMyZGU5ZmMxYzVkM2UyN2Y=
data/README.md CHANGED
@@ -6,17 +6,6 @@ An oppinionated logging library that implement the
6
6
 
7
7
  Status: work in progress
8
8
 
9
- TODO
10
- ====
11
-
12
- Add context to the library
13
-
14
- Check performances
15
-
16
- Exception formatting
17
-
18
- Fix the UniqueID algorithm
19
-
20
9
  See also
21
10
  --------
22
11
 
data/lib/lines.rb CHANGED
@@ -288,7 +288,10 @@ module Lines
288
288
  # TODO: Single-quote espace if possible
289
289
  def strenc(s)
290
290
  s = s.to_s
291
- s = s.inspect unless is_literal?(s)
291
+ unless is_literal?(s)
292
+ s = s.inspect
293
+ s[0] = s[-1] = "'" unless s[1..-2].include?("'")
294
+ end
292
295
  s
293
296
  end
294
297
 
data/lib/lines/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lines
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Pfenniger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-25 00:00:00.000000000 Z
11
+ date: 2013-05-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: structured logs for humans
14
14
  email: jonas@pfenniger.name