runeblog 0.2.27 → 0.2.28

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: 631b81f8592a8997e7d8c6fee1fc2f71a03e97e42d33e64e221e9971d08319ec
4
- data.tar.gz: 64b2c372f7d4f4c1d3cfa7fdd19c178087e0444f712773cb523e990ec220cf5b
3
+ metadata.gz: 0c5adba71d731d2725e18cd3a353a138dccbc8dbe7d82527ef78d959a61237db
4
+ data.tar.gz: 2eb25e1030f213ef9c122c812cf17582060f172f1fbc202b4fa0ae390940a384
5
5
  SHA512:
6
- metadata.gz: a27f9f6fd7c8859bacfd7ad112918bfebd416e436b4852523b41f449311ae63cab5d085830947022f87fa1a3c2d70b639e0e5d672176e3fcdbc2ff461cc3effa
7
- data.tar.gz: 16eebca900c51bbadbb9ebaa14832b5a91375f726db789c50e9aad188be2f853859bc7dbf8a31798ec79735bae150eccf2a9cbf97c68cff5656af686acc26f26
6
+ metadata.gz: 45bdecb53caa1ff696eb1d1d04c9228a9e2964650055db821dd6af0afb3a795e4e3406b022d75976c1803eb123ca4fa6bbdce584609e499d41fb36b7c9d46351
7
+ data.tar.gz: df9ff5ff37f6abac82d3d4d1dc6f4e80921f5cef3aa26d4d364726ad4e174868951a0970b1c96a532d80a74d9c6bdb2cb06a9aaf869c705c692c1527c1992b1b
data/empty_view.tgz CHANGED
Binary file
data/lib/repl.rb CHANGED
@@ -91,26 +91,18 @@ module RuneBlog::REPL
91
91
 
92
92
  def cmd_publish(arg, testing = false)
93
93
  # Future Hal says please refactor this
94
- STDERR.puts :CP1
95
94
  puts unless testing
96
- STDERR.puts :CP2
97
95
  reset_output
98
- STDERR.puts :CP3
99
96
  check_empty(arg)
100
- STDERR.puts :CP4
101
97
  unless @blog.view.can_publish?
102
- STDERR.puts :CP5
103
98
  msg = "Can't publish... see globals.lt3"
104
99
  puts msg unless testing
105
100
  output! msg
106
101
  return @out
107
102
  end
108
103
 
109
- STDERR.puts :CP6
110
104
  # Need to check dirty/clean status first
111
105
  dirty, all, assets = @blog.view.publishable_files
112
- STDERR.puts [dirty, all, assets].inspect
113
- sleep 8
114
106
  files = dirty
115
107
  if dirty.empty?
116
108
  puts fx("\n No files are out of date." + " "*20, :bold)
data/lib/runeblog.rb CHANGED
@@ -118,7 +118,7 @@ class RuneBlog
118
118
  result = nil # not found
119
119
  when 1
120
120
  front = "#{key}: "
121
- n = front.size + 1
121
+ n = front.size
122
122
  str = lines.first.chomp[n..-1]
123
123
  case key
124
124
  when "views", "tags" # plurals
@@ -297,7 +297,7 @@ class RuneBlog
297
297
  id = slug.to_i
298
298
  text = nil
299
299
  post_entry_name = @theme/"blog/post_entry.lt3"
300
- xlate src: post_entry_name, dst: "/tmp/post_entry.html", debug: true
300
+ xlate src: post_entry_name, dst: "/tmp/post_entry.html" # , debug: true
301
301
  @_post_entry ||= File.read("/tmp/post_entry.html")
302
302
  vp = post_lookup(id)
303
303
  nslug, aslug, title, date, teaser_text =
@@ -339,7 +339,6 @@ class RuneBlog
339
339
  def create_new_post(title, testing = false, teaser: nil, body: nil, other_views: [])
340
340
  log!(enter: __method__, args: [title, testing, teaser, body, other_views])
341
341
  meta = nil
342
- STDERR.puts other_views.inspect
343
342
  Dir.chdir(@root/:posts) do
344
343
  post = Post.create(title: title, teaser: teaser, body: body, other_views: other_views)
345
344
  post.edit unless testing
@@ -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.27"
5
+ VERSION = "0.2.28"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
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.2.27
4
+ version: 0.2.28
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-10-11 00:00:00.000000000 Z
11
+ date: 2019-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext