runeblog 0.2.28 → 0.2.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/empty_view.tgz +0 -0
- data/lib/publish.rb +3 -3
- data/lib/runeblog_version.rb +1 -1
- data/lib/view.rb +2 -1
- data/test/make_blog.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d1d227252c4cc504490c93a8bf9f853570819ab559c64b3ed92a9956b17b563
|
4
|
+
data.tar.gz: 3804862c04007ad362fe4bac3c42c7f32f6f84434c1a6cdc7951cc23600b92ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b96020b5c0e293ac990ed9b41cd5d6c86d7dc5eedabda1ad9e66f456772762d45443eec0a6dc31f6d66af9a9de9319fcd280667b178815f530345c1dbee468f
|
7
|
+
data.tar.gz: cbe00994a14bbf1c3b6a776003e5ca295549214669bb21d1b6448406b5387dabc75afb5a86d486beeb16b8ab1fbf847d5b2534d4e50d6644e98864ee46820c33
|
data/empty_view.tgz
CHANGED
Binary file
|
data/lib/publish.rb
CHANGED
@@ -39,7 +39,7 @@ class RuneBlog::Publishing
|
|
39
39
|
def url
|
40
40
|
log!(enter: __method__)
|
41
41
|
vname = @blog.view.name # .gsub(/_/, "\\_")
|
42
|
-
url = "#@proto://#@server/#@path/#{vname}"
|
42
|
+
url = "#@proto://#@server/#@path" # /#{vname}"
|
43
43
|
end
|
44
44
|
|
45
45
|
def system!(str)
|
@@ -52,11 +52,11 @@ class RuneBlog::Publishing
|
|
52
52
|
log!(enter: __method__, args: [files, assets])
|
53
53
|
dir = @docroot/@path
|
54
54
|
view_name = @blog.view.name
|
55
|
-
viewpath = dir/view_name
|
55
|
+
viewpath = dir # /view_name
|
56
56
|
# result = system!("ssh #@user@#@server -x mkdir -p #{viewpath}")
|
57
57
|
result = system!("ssh #@user@#@server -x mkdir -p #{viewpath}/assets")
|
58
58
|
files.each do |file|
|
59
|
-
dest = "#@user@#@server:" + dir/view_name
|
59
|
+
dest = "#@user@#@server:" + dir # /view_name
|
60
60
|
file.gsub!(/\/\//, "/") # weird... :-/
|
61
61
|
cmd = "scp -r #{file} #{dest} >/dev/null 2>/tmp/wtf"
|
62
62
|
debug "cmd = #{cmd.inspect} - see /tmp/wtf"
|
data/lib/runeblog_version.rb
CHANGED
data/lib/view.rb
CHANGED
@@ -41,7 +41,8 @@ class RuneBlog::View
|
|
41
41
|
vdir = dir()
|
42
42
|
remote = local_index()
|
43
43
|
files = [remote]
|
44
|
-
others = Dir.entries(vdir
|
44
|
+
others = Dir.entries(vdir/:remote) - %w[. ..]
|
45
|
+
others.map! {|x| "#{vdir}/remote/#{x}" }
|
45
46
|
|
46
47
|
assets = Dir.entries("#{vdir}/assets") - %w[. ..]
|
47
48
|
assets.map! {|x| "#{vdir}/assets/#{x}" }
|
data/test/make_blog.rb
CHANGED
@@ -46,7 +46,7 @@ end
|
|
46
46
|
|
47
47
|
# "Main"...
|
48
48
|
|
49
|
-
puts
|
49
|
+
puts bold("\nGenerating test blog...")
|
50
50
|
|
51
51
|
system("rm -rf .blogs")
|
52
52
|
RuneBlog.create_new_blog_repo(".blogs")
|
@@ -145,5 +145,7 @@ BODY
|
|
145
145
|
debug
|
146
146
|
debug("** generate_view: #{bold('around_austin')}")
|
147
147
|
x.generate_view("around_austin")
|
148
|
+
x.change_view("around_austin")
|
149
|
+
|
150
|
+
puts bold("...finished.\n")
|
148
151
|
|
149
|
-
debug
|