liveblog 0.8.1 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 358e69b707fae031126bb00f028d7d82fe313859
4
- data.tar.gz: 014819ed04a17097ef30ecd318a9a9e75b62f7be
3
+ metadata.gz: be1541c9d152db180eff5c136d6c7671027da863
4
+ data.tar.gz: 867e2f844fc141685fd8b963d760d4966a77a662
5
5
  SHA512:
6
- metadata.gz: 71ff00459b818b4648070eb08ef86614cc9a02afbc6002a934673e54bfd8e2a3f975c184d20aab03dda0016f16e2d903fd1cc091f0677e8bbb143f6743880c0d
7
- data.tar.gz: 178137083c31ef0fbf33ca8538aa52c3b73a067529cce11f9e8234526344eccd59ee83512c1b5416a94da91618c151e745126c08b7c248388a9bc1f9b2de96e2
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\b/, time())
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\b/,'')
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!(/\B!ts\b/, "*started #{time(t)}*")
117
- s.gsub!(/\B!tc\b/, "*completed #{time(t)}*")
118
- s.gsub!(/(?:^|\s)!t\b/, time(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', Date::DAYNAMES[@d.cwday]
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.1
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-21 00:00:00.000000000 Z
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
- ��%A�\��-�d��+n�����|Ve26�*�T<>���/����PaTcNlK�Q�\��{���3�<�I�;�[�+�4��`�-Ize��O�@�wF��D��@�a؀,tTv�QpF�ݏ��yM���-��[_"��|�ݰa?������B����AL��G�b�6d_^Si�;�����*k
2
- }LF��,
1
+ ����Q!|7(�~���)è'^��@"��4M��qv�RFB�+�Y.�/��Q��͈�v��9��֜zD�cՍ�̞X��C԰K��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