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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c5adba71d731d2725e18cd3a353a138dccbc8dbe7d82527ef78d959a61237db
4
- data.tar.gz: 2eb25e1030f213ef9c122c812cf17582060f172f1fbc202b4fa0ae390940a384
3
+ metadata.gz: 0d1d227252c4cc504490c93a8bf9f853570819ab559c64b3ed92a9956b17b563
4
+ data.tar.gz: 3804862c04007ad362fe4bac3c42c7f32f6f84434c1a6cdc7951cc23600b92ac
5
5
  SHA512:
6
- metadata.gz: 45bdecb53caa1ff696eb1d1d04c9228a9e2964650055db821dd6af0afb3a795e4e3406b022d75976c1803eb123ca4fa6bbdce584609e499d41fb36b7c9d46351
7
- data.tar.gz: df9ff5ff37f6abac82d3d4d1dc6f4e80921f5cef3aa26d4d364726ad4e174868951a0970b1c96a532d80a74d9c6bdb2cb06a9aaf869c705c692c1527c1992b1b
6
+ metadata.gz: 1b96020b5c0e293ac990ed9b41cd5d6c86d7dc5eedabda1ad9e66f456772762d45443eec0a6dc31f6d66af9a9de9319fcd280667b178815f530345c1dbee468f
7
+ data.tar.gz: cbe00994a14bbf1c3b6a776003e5ca295549214669bb21d1b6448406b5387dabc75afb5a86d486beeb16b8ab1fbf847d5b2534d4e50d6644e98864ee46820c33
Binary file
@@ -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"
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.28"
5
+ VERSION = "0.2.29"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -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 + "/remote").map {|x| "#{vdir}/remote/#{x}" }
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}" }
@@ -46,7 +46,7 @@ end
46
46
 
47
47
  # "Main"...
48
48
 
49
- puts Time.now
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.28
4
+ version: 0.2.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton