runeblog 0.2.32 → 0.2.33

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: 1504fe8e39cd4ed6b42b0b6a9a8b1189d6a67b8b78c5e7a62031027f6ab10259
4
- data.tar.gz: cfc166148ecf09d303e355fa2770b07f8affe79743fa5ad2d554f8d3411063d5
3
+ metadata.gz: c75004d0736a0ca8b5f5b966ef4d0d3fc7933bea56aea2e88e3d4394b2d4b8e2
4
+ data.tar.gz: 35dbe2cb026e4f00113557725d2e7ab9dea3b368815963dd01ebf2ef4bd09e03
5
5
  SHA512:
6
- metadata.gz: 9f3a7d4e429cd06e79bb213ed7fe79062117ba52d1a2238e55f2ed68ae88d23b0781190a7e27b7e3894650bbb1a79ebae33598f87ecd76368d4071fcd656296a
7
- data.tar.gz: 4550b4d5f419d096b0ebf98574d7c6f8277bad4821730df88dbb8b404132f13fcf5bccb6b56e3cb7430c1ca19fe6c5562b6285470d6674f3c8bd7c65370d3ff3
6
+ metadata.gz: 2691134fb525279a2a89a5b45c2e802106ec6c43418ff3985d5c99c3b9d068a4128c37be251de9e46e34670b4a7096418663cb14f40731158b0f863f8e320b83
7
+ data.tar.gz: e08bc25caf4db3ba85785fe59bd3d715dd8f7fcc002268e5784fa20e9cf695c7353a73b8f1ec988be0ef5368db4c4a3db3ae4bbb732cf7c762dcb310963da6c3
Binary file
@@ -118,8 +118,7 @@ def make_main_links
118
118
  log!(str: "Reading #{input}", pwd: true)
119
119
  pairs = File.readlines(input).map {|line| line.chomp.split(/, */, 2) }
120
120
  _write_main(mainfile, pairs, card_title, tag)
121
- widget_relative = false # (tag != "news") # FIXME kludge!!!
122
- _write_card(cardfile, mainfile, pairs, card_title, tag, relative: widget_relative)
121
+ _write_card(cardfile, mainfile, pairs, card_title, tag)
123
122
  log!(str: "...returning from method", pwd: true)
124
123
  end
125
124
 
@@ -543,7 +542,7 @@ def _html_body(file, css = nil)
543
542
  file.puts " </body>\n</html>"
544
543
  end
545
544
 
546
- def _write_card(cardfile, mainfile, pairs, card_title, tag, relative: true)
545
+ def _write_card(cardfile, mainfile, pairs, card_title, tag)
547
546
  log!(str: "Creating #{cardfile}.html", pwd: true)
548
547
  url = mainfile
549
548
  url = :widgets/tag/mainfile + ".html"
@@ -565,7 +564,7 @@ def _write_card(cardfile, mainfile, pairs, card_title, tag, relative: true)
565
564
  url = file
566
565
  type, title = page_type(tag, title)
567
566
  case type
568
- when :local; url_ref = _widget_main(file, tag) # local always frameable
567
+ when :local; url_ref = _widget_card(file, tag) # local always frameable
569
568
  when :frame; url_ref = _main(file) # remote, frameable
570
569
  when :noframe; url_ref = _blank(file) # remote, not frameable
571
570
  end
@@ -708,6 +707,6 @@ end
708
707
 
709
708
  def _widget_card(url, tag)
710
709
  url2 = :widgets/tag/url
711
- %[href="#{url2}"]
710
+ %[href="javascript: void(0)" onclick="javascript:open_main('#{url2}')"]
712
711
  end
713
712
 
@@ -2,7 +2,7 @@ module PathSep
2
2
  def /(right)
3
3
  s1 = self.to_s.dup
4
4
  s2 = right.to_s.dup
5
- s1 << "/" unless s2.end_with?("/") || s2.start_with?("/")
5
+ s1 << "/" unless s1.end_with?("/") || s2.start_with?("/")
6
6
  path = s1 + s2
7
7
  path.gsub!("//", "/")
8
8
  path
@@ -176,6 +176,7 @@ module RuneBlog::REPL
176
176
  def cmd_new_view(arg, testing = false)
177
177
  reset_output
178
178
  @blog.create_view(arg)
179
+ edit_file(@blog.view.dir/"themes/standard/global.lt3")
179
180
  @blog.change_view(arg)
180
181
  @out
181
182
  rescue ViewAlreadyExists
@@ -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.32"
5
+ VERSION = "0.2.33"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
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.32
4
+ version: 0.2.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton