liveblog 1.2.13 → 1.2.14
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 +4 -2
- metadata +15 -15
- 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: 326aff2e31618de243f1e2e5c7b2a67fadb921da
|
4
|
+
data.tar.gz: 5a219afcb69a1fa7a929e29dba8fe1da2185bb73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad4736a23d890f37fc374e48f2c5189cbac65c1b2eacabd5d547b8db2334b0a838995c5e4f461620209ee22fdb88895ab9cd08bfcb9d07fb024db90ec633909
|
7
|
+
data.tar.gz: bd857980878f48857ce388672e23a503b1c4fa25c7723a5153effd51816b59615c706ccbf5c8a2231c4f59ea35f9bda3279940f3fa54b4fb4d27240b5a6704c7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/liveblog.rb
CHANGED
@@ -14,7 +14,7 @@ class LiveBlog
|
|
14
14
|
|
15
15
|
# the config can either be a hash, a config filepath, or nil
|
16
16
|
#
|
17
|
-
def initialize(x=nil, config: nil,
|
17
|
+
def initialize(x=nil, config: nil, datetoday: Date.today, plugins: {}, logpath: '')
|
18
18
|
|
19
19
|
@log = nil
|
20
20
|
|
@@ -51,7 +51,7 @@ class LiveBlog
|
|
51
51
|
|
52
52
|
Dir.chdir @dir
|
53
53
|
|
54
|
-
@d =
|
54
|
+
@d = datetoday
|
55
55
|
dxfile = File.join(@dir, path(), 'index.xml')
|
56
56
|
|
57
57
|
@plugins = initialize_plugins(plugins || [])
|
@@ -73,6 +73,8 @@ class LiveBlog
|
|
73
73
|
# add a single line entry
|
74
74
|
#
|
75
75
|
def add_entry(raw_entry)
|
76
|
+
|
77
|
+
new_day() if date() != Date.today
|
76
78
|
|
77
79
|
entry, hashtag = raw_entry.split(/\s*#(?=\w+$)/)
|
78
80
|
hashtag.downcase!
|
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.2.
|
4
|
+
version: 1.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
Pa3Oua4kplXh4chiXeKSmDf1kgQML6il1F/Lc7p0dgRDB7gHh+cqR/GSt6/44MoB
|
32
32
|
/PQO/0DfLVBu1A==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dxsectionx
|
@@ -39,20 +39,20 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0.
|
42
|
+
version: '0.2'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
45
|
+
version: 0.2.0
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0.
|
52
|
+
version: '0.2'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.2.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: simple-config
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
version: '0.6'
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.6.
|
65
|
+
version: 0.6.3
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
version: '0.6'
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.6.
|
75
|
+
version: 0.6.3
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: subunit
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: '0.2'
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.2.
|
85
|
+
version: 0.2.7
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -92,27 +92,27 @@ dependencies:
|
|
92
92
|
version: '0.2'
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.2.
|
95
|
+
version: 0.2.7
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: rexle-diff
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
102
|
+
version: '0.6'
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.6.2
|
106
106
|
type: :runtime
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '0.
|
112
|
+
version: '0.6'
|
113
113
|
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 0.
|
115
|
+
version: 0.6.2
|
116
116
|
description:
|
117
117
|
email: james@jamesrobertson.eu
|
118
118
|
executables: []
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.6.
|
146
|
+
rubygems_version: 2.6.13
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Uses the Dynarex gem to create a daily live blog. Convenient for grouping
|
metadata.gz.sig
CHANGED
Binary file
|