livetext 0.8.37 → 0.8.38

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/dsl/liveblog.rb +4 -4
  3. data/lib/livetext.rb +3 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88a730499ca048de3cb98e463346865be49ff32e
4
- data.tar.gz: fa109bc7cd4d564d151f27f70c1bbe77b3b6ea6c
3
+ metadata.gz: 9a8d660a657d0a0ee795dabf81acb947628d7c46
4
+ data.tar.gz: 8a9c237d7dc20169a8067d63d8e56b365ff9906d
5
5
  SHA512:
6
- metadata.gz: 56f38a279664cbafd65e2fdbcdfb48bd58344203253501977053f0e33243f57d3c1eb352af033e0f2bbdafb7eb11224c0d61f3ba552e1e53ecbc62e21c4cfff8
7
- data.tar.gz: 878be4547f43373cfea584f4de3fcccc4cede55a60b2c958e4abb62da2d45f68d32c5385cf0fa25ff220e557de8ba698a8aabee523873bca020994b417d1d0eb
6
+ metadata.gz: 26c3f47760c635f382785be9f7c1d3bbe06482b43ca6209475da59de5104b1a0f60f9b42d9f6f3d4dc74e013e05286c4ca313f86137fef83b806bfdb5dd6aed0
7
+ data.tar.gz: 182e0d518ac43a354e6195eb7f8ae9719516a8e3714e0fe1cff7ac3c3e66a47097f9a5778eaf00ceac0a7961abb22af85ae54efb3f85658f90d287561e91b779
data/dsl/liveblog.rb CHANGED
@@ -23,7 +23,7 @@ class ::Livetext::Functions # do this differently??
23
23
  text, name = param.split("|")
24
24
 
25
25
  # FIXME how should this work?
26
- view = ThisConfig.view
26
+ view = ThisBlog.view
27
27
  url = find_asset(name)
28
28
  "<a href='#{url}'>#{text}</a>"
29
29
  end
@@ -35,7 +35,7 @@ begin
35
35
  ThisBlog
36
36
  rescue
37
37
  ThisBlog = RuneBlog.new
38
- ThisConfig = ThisBlog.open_blog
38
+ # ThisConfig = ThisBlog.open_blog
39
39
  end
40
40
 
41
41
  ### find_asset
@@ -65,9 +65,9 @@ end
65
65
 
66
66
  #############
67
67
 
68
- def init_liveblog
68
+ def init_liveblog # FIXME - a lot of this logic sucks
69
69
  @blog = ThisBlog
70
- @config = ThisConfig
70
+ @config = ThisBlog
71
71
  @root = @config.root
72
72
  @teaser = ""
73
73
  @body = ""
data/lib/livetext.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.37"
2
+ VERSION = "0.8.38"
3
3
  end
4
4
 
5
5
  $Livetext = Livetext
@@ -41,11 +41,11 @@ class Livetext
41
41
  :enum_for, :pretty_inspect, :==, :equal?, :!, :!=, :instance_eval,
42
42
  :instance_exec, :__send__, :__id__, :__binding__]
43
43
 
44
- def initialize(parent, output)
44
+ def initialize(parent, output = nil)
45
45
  @parent = parent
46
46
  @_nopass = false
47
47
  @_nopara = false
48
- @output = output
48
+ @output = output || File.open("/dev/null", "w")
49
49
  @sources = []
50
50
  end
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.37
4
+ version: 0.8.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-30 00:00:00.000000000 Z
11
+ date: 2018-09-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com