livetext 0.8.55 → 0.8.56
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
- data/lib/livetext.rb +1 -1
- data/plugin/liveblog.rb +12 -26
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6587975b03e2f81708241121b6d5df2dfa8764f94515793f5573df47886b222e
|
4
|
+
data.tar.gz: 2d2e9794ef894fe27714afc97c8a5095d875f13b292f2dc15a2022d2fcca517e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a675f84a54124d0b5d98ddf40b38fec2f6bd1fc71367dcf504518a9795071f7e3ba6187c7d386b8a93d97e4b5bd6893572f6cb17171e91edcc1095b741f9f793
|
7
|
+
data.tar.gz: 670032474ae42a98e0f28abb8362a0389e85944eba48f026cf42009df26dc27702f4ab249a6eb37991b1a6fd2743b9f867aa399f809c935a3f6815640f307b9b
|
data/lib/livetext.rb
CHANGED
data/plugin/liveblog.rb
CHANGED
@@ -31,30 +31,17 @@ class ::Livetext::Functions # do this differently??
|
|
31
31
|
|
32
32
|
end
|
33
33
|
|
34
|
-
###
|
35
|
-
|
36
|
-
def
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
STDERR.puts " Seeking #{path}"
|
44
|
-
return path if File.exist?(path)
|
34
|
+
### copy_asset
|
35
|
+
|
36
|
+
def copy_asset(asset)
|
37
|
+
vdir = @blog.view.dir
|
38
|
+
return if File.exist?(vdir + "/" + asset)
|
39
|
+
top = vdir + "/../../"
|
40
|
+
if File.exist?(top + asset)
|
41
|
+
system("cp #{top}/#{asset} #{vdir}/#{asset}")
|
42
|
+
return
|
45
43
|
end
|
46
|
-
|
47
|
-
dir = @config.viewdir(view) + "/assets/"
|
48
|
-
path = dir + asset
|
49
|
-
STDERR.puts " Seeking #{path}"
|
50
|
-
return path if File.exist?(path)
|
51
|
-
end
|
52
|
-
top = @root + "/assets/"
|
53
|
-
path = top + asset
|
54
|
-
STDERR.puts " Seeking #{path}"
|
55
|
-
return path if File.exist?(path)
|
56
|
-
|
57
|
-
return nil
|
44
|
+
raise "Can't find #{asset.inspect}"
|
58
45
|
end
|
59
46
|
|
60
47
|
#############
|
@@ -146,14 +133,13 @@ end
|
|
146
133
|
def asset
|
147
134
|
@meta.assets ||= {}
|
148
135
|
list = _args
|
149
|
-
|
150
|
-
|
136
|
+
# For now: copies, doesn't keep record
|
137
|
+
list.each {|asset| copy_asset(asset) }
|
151
138
|
end
|
152
139
|
|
153
140
|
def assets
|
154
141
|
@meta.assets ||= []
|
155
142
|
@meta.assets += _body
|
156
|
-
# STDERR.puts red("\n [DEBUG] ") + "Assets: #{_body.inspect}"
|
157
143
|
end
|
158
144
|
|
159
145
|
def write_post(meta)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livetext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|