scrolls 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/scrolls/parser.rb +1 -1
- data/lib/scrolls/version.rb +1 -1
- data/test/test_parser.rb +1 -1
- data/test/test_scrolls.rb +1 -1
- metadata +2 -2
data/lib/scrolls/parser.rb
CHANGED
data/lib/scrolls/version.rb
CHANGED
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
|
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
|
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
|
+
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-
|
12
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Logging, easier, more consistent.
|
15
15
|
email:
|