runeblog 0.1.70 → 0.1.71

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: d56c583d5c56cb0677103fb74bfa9a88b5bba7a20ecee2ac759ae2eac2eaae2d
4
- data.tar.gz: 8a13ccf8eb72166107b7432cf6f738110310f6dfddfc0a3303bc88c7d5362fd6
3
+ metadata.gz: 952d50f4c764c40e1e0c51efb8cac9caa7c43ed3ec7a36975b78e2964d9d596c
4
+ data.tar.gz: 7020ee4f9aca03cda854453c2d9279700e6cbb872585c352b99c83477494cd8c
5
5
  SHA512:
6
- metadata.gz: 5ef2c59f399c79478050fcf181e18dfce27d46c546ec0510b674416e9f103f2a67b104c20ac64870aff1e79131d472ebadb6a64aa29fa4c0c004ea3ba3728872
7
- data.tar.gz: 7ba1d1ae569d9075e44b1dbec69e53ef29ca6a42971e3b16f560f2563f012f1ecdb9686ebeb343b1f5212e61392f3a1ca34eec863487e0b6eb0dc2735650a56a
6
+ metadata.gz: '08d22ba02517f587ee5e575326b5d889b0c34f8ea1502e3ab8c9d96225fc2cebf72c024698f7b800afc50ae54620ca685c25a466baa06c87b2b47e68c5dc993c'
7
+ data.tar.gz: d3ec19c4858983a6878b8ac124128c0c79eecb41512a782e07244d7b75594dbf89d0ebfb6dc12ca0977f8d5ea39e6ffcc08ce3927690d34c73777f564c686155
data/lib/helpers-repl.rb CHANGED
@@ -102,7 +102,6 @@ module RuneBlog::REPL
102
102
  Regexes.each_pair do |rx, meth|
103
103
  m = cmd.match(rx)
104
104
  result = m ? m.to_a : nil
105
- p [result, rx, meth]
106
105
  next unless result
107
106
  found = meth
108
107
  params = m[1]
data/lib/liveblog.rb CHANGED
@@ -218,6 +218,7 @@ rescue => err
218
218
  end
219
219
 
220
220
  def teaser
221
+ STDERR.puts "--- teaser: pwd = #{Dir.pwd}"
221
222
  @meta.teaser = _body_text
222
223
  _out @meta.teaser + "\n"
223
224
  # FIXME
data/lib/publish.rb CHANGED
@@ -37,6 +37,10 @@ debug "Failed!\n " if ! rc
37
37
  rc
38
38
  end
39
39
 
40
+ # Could not copy
41
+ # /Users/Hal/Dropbox/files/runeblog/.blogs/data/views/alpha_view/index.html to
42
+ # root@rubyhacker.com:/var/www/testblog/alpha_view
43
+
40
44
  def publish(files, assets=[])
41
45
  dir = "#@docroot/#@path"
42
46
  view_name = @blog.view.name
data/lib/repl.rb CHANGED
@@ -84,7 +84,7 @@ module RuneBlog::REPL
84
84
  def cmd_preview(arg, testing = false)
85
85
  reset_output
86
86
  check_empty(arg)
87
- local = @blog.view.index
87
+ local = @blog.view.local_index
88
88
  result = system("open #{local}")
89
89
  raise CantOpen(local) unless result
90
90
  @out
@@ -111,6 +111,7 @@ module RuneBlog::REPL
111
111
  return @out if files.empty?
112
112
 
113
113
  ret = RubyText.spinner(label: " Publishing... ") do
114
+ STDERR.puts files.inspect
114
115
  @blog.view.publisher.publish(files, assets) # FIXME weird?
115
116
  end
116
117
  return @out unless ret
data/lib/runeblog.rb CHANGED
@@ -178,8 +178,10 @@ class RuneBlog
178
178
 
179
179
  view = RuneBlog::View.new(arg)
180
180
  self.view = view
181
- p "---- pwd = #{Dir.pwd}"
182
- system("livetext themes/standard/generate.lt3 >generated/blog/index.html 2>generated/blog/index.err")
181
+ vdir = self.view.dir
182
+ dir0 = "#{vdir}/themes/standard/blog"
183
+ dir1 = "#{vdir}/generated/blog"
184
+ system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
183
185
  dump("Initial creation", "last_published")
184
186
  Dir.chdir(up)
185
187
  @views << view
@@ -269,17 +271,13 @@ p "---- pwd = #{Dir.pwd}"
269
271
  end
270
272
 
271
273
  def generate_index(view)
272
- # FIXME This is currently very wrong.
273
-
274
- # puts " generate_index view = #{view.to_s}"
275
274
  debug "=== generate_index view = #{view.to_s}"
276
275
  raise ArgumentError unless view.is_a?(String) || view.is_a?(RuneBlog::View)
277
276
 
278
277
  vdir = self.view.dir
279
- up = Dir.pwd
280
- Dir.chdir(vdir)
281
-
282
- system("livetext themes/standard/generate.lt3 >generated/blog/index.html 2>generated/blog/index.err")
278
+ dir0 = "#{vdir}/themes/standard/blog"
279
+ dir1 = "#{vdir}/generated/blog"
280
+ system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
283
281
  rescue => err
284
282
  error(err)
285
283
  exit
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.70"
3
+ VERSION = "0.1.71"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
data/lib/view.rb CHANGED
@@ -23,6 +23,10 @@ class RuneBlog::View
23
23
  @blog.root + "/views/#@name/"
24
24
  end
25
25
 
26
+ def local_index
27
+ dir + "/generated/blog/index.html"
28
+ end
29
+
26
30
  def index
27
31
  dir + "index.html"
28
32
  end
@@ -33,7 +37,7 @@ class RuneBlog::View
33
37
 
34
38
  def publishable_files
35
39
  vdir = dir()
36
- files = [index()]
40
+ files = [local_index()]
37
41
  others = Dir.entries(vdir).grep(/^\d\d\d\d/).map {|x| "#{vdir}/#{x}" }
38
42
  assets = Dir.entries("#{vdir}/assets") - %w[. ..]
39
43
  assets.map! {|x| "#{vdir}/assets/#{x}" }
data/runeblog.gemspec CHANGED
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
20
20
  s.authors = ["Hal Fulton"]
21
21
  s.email = 'rubyhacker@gmail.com'
22
22
  s.executables << "blog"
23
- s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.85'
23
+ s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.86'
24
24
  s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.16'
25
25
 
26
26
  # Files...
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.70
4
+ version: 0.1.71
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-05-24 00:00:00.000000000 Z
11
+ date: 2019-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.8'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.8.85
22
+ version: 0.8.86
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.8'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.85
32
+ version: 0.8.86
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubytext
35
35
  requirement: !ruby/object:Gem::Requirement