runeblog 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88eb977188fc29149692d23a5a8b08bdad83da5c9c105c39f1f0fc4bbf4a7483
4
- data.tar.gz: 4f3423490452d300b229c775632e5f10c09781e5e0bbb7dbcbd2183467e7ae54
3
+ metadata.gz: bdab9850e7d3b37635a64ae5467b5e228f6cce4c60f26e6a74453ac9b14a861e
4
+ data.tar.gz: d858b5a90eb834d2cb9d057c5aaaf920d75867f869b2de0b632fb3c98e2e6e7b
5
5
  SHA512:
6
- metadata.gz: e446863886eed1c348fe9bbf5bdfa473d8154ccdec09fb6eca03f07d6cd4a453f8aad9f797dd2c453904c5e1edec8f8a37bbe6c4daca731faed29a7150efe32d
7
- data.tar.gz: 50c8b29750e8844771ff218f7ce063c2cc282dff65e555e9e850cdee8de1c8bd85e4d5e46787a67822e9b5a3156a06a08362cf63aa27b121e90941c03358658a
6
+ metadata.gz: a4bd722b8643c614047ccbdaa4d2e1ba63a4a5c9c6f4169f50e311fa340601b8c1c0f937f21a3caa6afa251aa8fc1c3b8b3d456e63adadb336177941bd0ea42a
7
+ data.tar.gz: c69da06c60cf1da59dedd4fb94cfc99ae159a9c259b52b87785693d606f6d4e7b2e7dfaddcaf12b4fdbaad9e2ea258654b5dee3c57c01e6eb3bb568014b55c33
Binary file
@@ -1,6 +1,6 @@
1
1
  unless self.respond_to?("log!")
2
2
  $logging = true
3
- $log = File.new("/tmp/runeblog}.log","w")
3
+ $log = File.new("/tmp/runeblog.log","w")
4
4
 
5
5
  def log!(str: "", enter: nil, args: [], pwd: false, dir: false)
6
6
  return unless $logging
@@ -31,28 +31,28 @@ unless self.respond_to?("log!")
31
31
  $log = File.new("/tmp/runeblog.log","a")
32
32
  end
33
33
 
34
- def log(str: "", enter: nil, args: [], pwd: false, dir: false)
35
- return unless $logging
36
- time = Time.now.strftime("%H:%M:%S")
37
- meth = ""
38
- meth = "#{enter}" if enter
39
- para = " args: #{args.inspect[1..-2]}"
40
- source = caller[0].sub(/.*\//, " in ").sub(/:/, " line ").sub(/:.*/, "")
41
- source = " in #{source} (probably liveblog.rb)" if source.include? "(eval)"
42
- str = " ... #{str}" unless str.empty?
43
- indent = " "*12
44
- STDERR.puts "#{time} #{str} #{meth}"
45
- STDERR.puts "#{indent} #{source}"
46
- STDERR.puts "#{indent} pwd = #{Dir.pwd} " if pwd
47
- if dir
48
- files = (Dir.entries('.') - %w[. ..]).join(" ")
49
- STDERR.puts "#{indent} dir/* = #{files}"
50
- end
51
- STDERR.puts "#{indent} #{para} " unless args.empty?
52
- # STDERR.puts "#{indent} livetext params = #{livedata.inpect} " unless livedata.nil?
53
- STDERR.puts
54
- # $log.close
55
- # $log = File.new("/tmp/runeblog.log","a")
56
- end
34
+ # def log(str: "", enter: nil, args: [], pwd: false, dir: false)
35
+ # return unless $logging
36
+ # time = Time.now.strftime("%H:%M:%S")
37
+ # meth = ""
38
+ # meth = "#{enter}" if enter
39
+ # para = " args: #{args.inspect[1..-2]}"
40
+ # source = caller[0].sub(/.*\//, " in ").sub(/:/, " line ").sub(/:.*/, "")
41
+ # source = " in #{source} (probably liveblog.rb)" if source.include? "(eval)"
42
+ # str = " ... #{str}" unless str.empty?
43
+ # indent = " "*12
44
+ # STDERR.puts "#{time} #{str} #{meth}"
45
+ # STDERR.puts "#{indent} #{source}"
46
+ # STDERR.puts "#{indent} pwd = #{Dir.pwd} " if pwd
47
+ # if dir
48
+ # files = (Dir.entries('.') - %w[. ..]).join(" ")
49
+ # STDERR.puts "#{indent} dir/* = #{files}"
50
+ # end
51
+ # STDERR.puts "#{indent} #{para} " unless args.empty?
52
+ # # STDERR.puts "#{indent} livetext params = #{livedata.inpect} " unless livedata.nil?
53
+ # STDERR.puts
54
+ # # $log.close
55
+ # # $log = File.new("/tmp/runeblog.log","a")
56
+ # end
57
57
  end
58
58
 
@@ -198,12 +198,12 @@ class RuneBlog
198
198
  vdir = arg.dup
199
199
  raise DirAlreadyExists(vdir) if Dir.exist?(vdir)
200
200
 
201
- Dir.chdir(@root) do
202
- cmd1 = "tar zxvf empty_view.tgz >/dev/null 2>&1"
203
- cmd2 = "cp -r empty_view views/#{arg}"
204
- system(cmd1)
205
- system(cmd2)
206
- end
201
+ Dir.chdir(@root) do
202
+ cmd1 = "tar zxvf empty_view.tgz >/dev/null 2>&1"
203
+ cmd2 = "cp -r empty_view views/#{arg}"
204
+ system(cmd1)
205
+ system(cmd2)
206
+ end
207
207
 
208
208
  Dir.chdir("#@root/views/#{vdir}") do
209
209
  livetext "themes/standard/blog/generate", "remote/index"
@@ -358,7 +358,7 @@ class RuneBlog
358
358
 
359
359
  def generate_view(view) # huh?
360
360
  log!(enter: __method__, args: [view])
361
- generate_index(view)
361
+ generate_index(view) # recent posts (recent.html)
362
362
  Dir.chdir(@root + "/views/#{view}/themes/standard") do
363
363
  livetext "blog/generate.lt3", "../../remote/index.html"
364
364
  end
@@ -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.6"
5
+ VERSION = "0.2.7"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -30,6 +30,8 @@ spec = Gem::Specification.new do |s|
30
30
  test = Find.find("test").to_a
31
31
  misc = %w[./README.lt3 ./README.md ./runeblog.gemspec]
32
32
 
33
+ system("tar zcvf empty_view.tgz empty_view")
34
+
33
35
  s.files = main + misc + test + ["empty_view.tgz"]
34
36
  s.homepage = 'https://github.com/Hal9000/runeblog'
35
37
  s.license = "Ruby"
@@ -21,7 +21,7 @@ end
21
21
  def make_post(x, title, teaser, body, views=[])
22
22
  # STDERR.puts "\n========= make_post '#{title}'"
23
23
  print "."
24
- num = x.create_new_post(title, true, teaser: teaser, body: body, other_views: views)
24
+ x.create_new_post(title, true, teaser: teaser, body: body, other_views: views)
25
25
  views.each {|view| x.generate_index(view) } # recent.html
26
26
  end
27
27
 
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.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton