liveblog 1.0.3 → 1.0.4
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 +8 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9163bbe970094e38ddb40af515abdd8a9daf6a60
|
|
4
|
+
data.tar.gz: b996abf14fd4b18ad55b206a384f261af7ce97c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8097f7d97ffa18d1426cf1884b0011b3ea3762514e561c70cb56ca231ef0cd1fb2ab7a976b930b2e73aaa0bb3109fd935b1cade86ae06ad6c7516be739fbcc6e
|
|
7
|
+
data.tar.gz: 57eded9c5203d106dacb07a699861bea67ef16b7af0700d66d50a99bd4651772e22ac49d3d776059c33fe9177bad05f5682a1bf12ed07bd706af704764bd3900
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/liveblog.rb
CHANGED
|
@@ -101,7 +101,8 @@ class LiveBlog
|
|
|
101
101
|
# we reserve 30 characters for the link
|
|
102
102
|
len = (140 - 30 - hashtag.length)
|
|
103
103
|
raw_entry.gsub!(/(?:^|\s)!t\z/,'')
|
|
104
|
-
entry = raw_entry.length > len ? "%s... %s" % [raw_entry.slice(0, len)
|
|
104
|
+
entry = raw_entry.length > len ? "%s... %s" % [raw_entry.slice(0, len),\
|
|
105
|
+
hashtag] : raw_entry
|
|
105
106
|
message = "%s %s#%s" % [entry, static_urlpath(), hashtag]
|
|
106
107
|
|
|
107
108
|
[true, message]
|
|
@@ -269,7 +270,7 @@ EOF
|
|
|
269
270
|
end
|
|
270
271
|
|
|
271
272
|
@dx.create({x: raw_entry.sub(/(#\w+)$/){|x| x.downcase}}, \
|
|
272
|
-
|
|
273
|
+
id: hashtag.downcase, custom_attributes: {uid: uid})
|
|
273
274
|
|
|
274
275
|
@plugins.each do |x|
|
|
275
276
|
x.on_new_section(raw_entry, hashtag) if x.respond_to? :on_new_section
|
|
@@ -422,6 +423,11 @@ EOF
|
|
|
422
423
|
e.prepend element
|
|
423
424
|
|
|
424
425
|
end
|
|
426
|
+
|
|
427
|
+
node.xpath('//h2').each do |h2|
|
|
428
|
+
h2.attributes[:id] = node.attributes[:id] \
|
|
429
|
+
+ Time.parse(h2.attributes[:created]).strftime("%H%M")
|
|
430
|
+
end
|
|
425
431
|
end
|
|
426
432
|
|
|
427
433
|
related_links_filepath = File.join(path(), 'related_links.xml')
|
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: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
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-
|
|
34
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
|
Binary file
|