liveblog 0.8.1 → 0.8.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/liveblog.rb +7 -7
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be1541c9d152db180eff5c136d6c7671027da863
|
4
|
+
data.tar.gz: 867e2f844fc141685fd8b963d760d4966a77a662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6c2b7759be86330494593bca3ec7309a92d27bfe6585d9230259b592d892013caa1ccbeed06bab465b3c5efadaffb505aa582ae22d4286f90d3550947d1ea50
|
7
|
+
data.tar.gz: 806621711e447cc376032c3bdc47076dde73952c5e0460ec15224a0028b597bfcdcb8cceadb989357b293e1aec92217d6fc2cdba9564629ead850b4c9b4cdecb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/liveblog.rb
CHANGED
@@ -51,7 +51,7 @@ class LiveBlog
|
|
51
51
|
|
52
52
|
when /#\w+$/ then
|
53
53
|
|
54
|
-
entry.gsub!(/(?:^|\s)!t\
|
54
|
+
entry.gsub!(/(?:^|\s)!t\z/, time())
|
55
55
|
add_section_entry entry, hashtag
|
56
56
|
|
57
57
|
else
|
@@ -64,7 +64,7 @@ class LiveBlog
|
|
64
64
|
|
65
65
|
# we reserve 30 characters for the link
|
66
66
|
len = (140 - 30 - hashtag.length)
|
67
|
-
raw_entry.gsub!(/(?:^|\s)!t\
|
67
|
+
raw_entry.gsub!(/(?:^|\s)!t\z/,'')
|
68
68
|
entry = raw_entry.length > len ? "%s... %s" % [raw_entry.slice(0, len), hashtag] : raw_entry
|
69
69
|
message = "%s %s%s" % [entry, static_urlpath(), hashtag]
|
70
70
|
|
@@ -99,7 +99,7 @@ EOF
|
|
99
99
|
t = Time.now
|
100
100
|
# keyword substitions
|
101
101
|
# a !t becomes the Time.now.strftime("%-I:%M%P") #=> 4:27pm
|
102
|
-
s.gsub!(/\B\*started\s+<time>(\d+:\d+[ap]m)<\/time>\*\B\s*!tc/) do |x|
|
102
|
+
s.gsub!(/\B\*started\s+<time>(\d+:\d+[ap]m)<\/time>\*\B\s*!tc\z/) do |x|
|
103
103
|
|
104
104
|
raw_start_time = $1
|
105
105
|
|
@@ -113,9 +113,9 @@ EOF
|
|
113
113
|
"*completed %s; duration: %s*" % [time(t), duration]
|
114
114
|
end
|
115
115
|
|
116
|
-
s.gsub!(
|
117
|
-
s.gsub!(
|
118
|
-
s.gsub!(/(?:^|\s)!t\
|
116
|
+
s.gsub!(/(?:^|\s)ts\z/, "*started #{time(t)}*")
|
117
|
+
s.gsub!(/(?:^|\s)!tc\z/, "*completed #{time(t)}*")
|
118
|
+
s.gsub!(/(?:^|\s)!t\z/, time(t))
|
119
119
|
|
120
120
|
|
121
121
|
FileUtils.mkdir_p File.join(path())
|
@@ -180,7 +180,7 @@ EOF
|
|
180
180
|
|
181
181
|
add summary, 'edit_url', "%s/%s" % [@edit_url, urlpath()]
|
182
182
|
add summary, 'date', @d.strftime("%d-%b-%Y").upcase
|
183
|
-
add summary, 'day',
|
183
|
+
add summary, 'day', @d.strftime("%A")
|
184
184
|
add summary, 'css_url', @css_url
|
185
185
|
add summary, 'published', Time.now.strftime("%d-%m-%Y %H:%M")
|
186
186
|
add summary, 'prev_day', static_urlpath(@d-1)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liveblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
WoOSxvsTN7qoA8F0W4mkDpf+HhHxBOLTPykcHMIlx2gILLnNraaZ1rJlZAqWABGj
|
32
32
|
v8lGgeeqqjd5QA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-03-
|
34
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
����Q!|7�(�~���)è'^��@"��4M��q�v�RFB�+�Y.�/��Q��͈�v��9��֜zD�cՍ�̞X��CK��q�n���] �X�ܡ��������d�ao
|
2
|
+
��OB���{T�&����jb�&���2�,8�����Lca�q�"%���s�f(:�5+�'>v��ҲR��x��L��`W�MK]d�-���7^��V���n{*`�lT�ox�UZ�3|�~%��Y�e�q7�
|
3
|
+
a
|