scrolls 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module Scrolls
15
15
  elsif v.nil?
16
16
  "#{k}=nil"
17
17
  elsif v.is_a?(Time)
18
- "#{k}=#{v.iso8601}"
18
+ "#{k}=\"#{v.iso8601}\""
19
19
  else
20
20
  v = v.to_s
21
21
  has_single_quote = v.index("'")
@@ -1,3 +1,3 @@
1
1
  module Scrolls
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
data/test/test_parser.rb CHANGED
@@ -76,7 +76,7 @@ class TestScrollsParser < Test::Unit::TestCase
76
76
  def test_unparse_time
77
77
  time = Time.new(2012, 06, 19, 16, 02, 35, "+01:00")
78
78
  data = { t: time }
79
- assert_equal "t=2012-06-19T16:02:35+01:00", unparse(data)
79
+ assert_equal 't="2012-06-19T16:02:35+01:00"', unparse(data)
80
80
  end
81
81
 
82
82
  def test_parse_time
data/test/test_scrolls.rb CHANGED
@@ -158,7 +158,7 @@ class TestScrolls < Test::Unit::TestCase
158
158
  Scrolls.add_timestamp = true
159
159
  Scrolls.log(:test => "foo")
160
160
  iso8601_regexp = "(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?"
161
- assert_match(/^now=#{iso8601_regexp} test=foo$/, @out.string)
161
+ assert_match(/^now="#{iso8601_regexp}" test=foo$/, @out.string)
162
162
  end
163
163
 
164
164
  def test_logging_strings
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrolls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-14 00:00:00.000000000 Z
12
+ date: 2014-01-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Logging, easier, more consistent.
15
15
  email: