runeblog 0.1.76 → 0.1.78

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
 
2
+ if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
+
2
4
  class RuneBlog
3
- VERSION = "0.1.76"
5
+ VERSION = "0.1.78"
4
6
 
5
7
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
8
  end
9
+
10
+ end
@@ -1,4 +1,4 @@
1
- require 'helpers-blog'
1
+ # require 'helpers-blog'
2
2
  # require 'runeblog'
3
3
  require 'global'
4
4
 
@@ -14,7 +14,7 @@ class RuneBlog::View
14
14
  @name = name
15
15
  @can_publish = false
16
16
  pub_file = @blog.root + "/views/#@name/publish"
17
- unless File.size(pub_file) == 0
17
+ if File.exist?(pub_file) && File.size(pub_file) != 0
18
18
  @publisher = RuneBlog::Publishing.new(read_config(pub_file))
19
19
  @can_publish = true
20
20
  end
@@ -40,6 +40,7 @@ class RuneBlog::View
40
40
  vdir = dir()
41
41
  files = [local_index()]
42
42
  others = Dir.entries(vdir + "/generated").grep(/^\d\d\d\d/).map {|x| "#{vdir}/generated/#{x}" }
43
+ abort "FIXME... publishable_files"
43
44
  deep_assets = Dir["#{vdir}/themes/standard/assets/*"]
44
45
  deep_assets.each do |file| # Do this at view creation
45
46
  cmd = "cp #{file} #{vdir}/assets"
@@ -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.86'
23
+ s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.87'
24
24
  s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.16'
25
25
 
26
26
  # Files...
@@ -4,6 +4,8 @@ major, minor = RUBY_VERSION.split(".").values_at(0,1)
4
4
  ver = major.to_i*10 + minor.to_i
5
5
  abort "Need Ruby 2.4 or greater" unless ver >= 24
6
6
 
7
+ Home = Dir.pwd
8
+
7
9
  require 'global'
8
10
  require 'runeblog'
9
11
  require 'repl'
@@ -16,10 +18,10 @@ def debug(str)
16
18
  # STDERR.puts str
17
19
  end
18
20
 
19
- def make_post(x, title, teaser, body)
20
- # STDERR.puts "-- make_post: teaser = #{teaser.inspect} body = #{body.inspect}"
21
+ def make_post(x, title, teaser, body, views=[])
22
+ STDERR.puts "\n========= make_post '#{title}'"
21
23
  meta = OpenStruct.new
22
- num = x.create_new_post(title, true, teaser: teaser, body: body)
24
+ num = x.create_new_post(title, true, teaser: teaser, body: body, other_views: views)
23
25
  num
24
26
  end
25
27
 
@@ -47,7 +49,7 @@ x.create_view("music")
47
49
 
48
50
  x.change_view("around_austin") # 1 2 7 8 9
49
51
 
50
- make_post(x, "What's at Stubbs...", <<-EXCERPT, <<-BODY)
52
+ make_post(x, "What's at Stubbs...", <<-EXCERPT, <<-BODY, ["music"])
51
53
  Stubbs has been around for longer than civilization.
52
54
  EXCERPT
53
55
  That's a good thing. But their music isn't always the greatest.
@@ -59,36 +61,36 @@ EXCERPT
59
61
  Now, depending on what you consider "major," blah blah blah...
60
62
  BODY
61
63
 
62
- x.change_view("computing") # 3 5 6
63
-
64
- make_post(x, "Elixir Conf coming up...", <<-EXCERPT, <<-BODY)
65
- The next Elixir Conf is always coming up.
66
- EXCERPT
67
- I mean, unless the previous one was the last one ever, which I don't expect to
68
- happen for a couple of decades.
69
- BODY
70
-
71
- x.change_view("music") # 4 10
72
-
73
- make_post(x, "Does indie still matter?", <<-EXCERPT, <<-BODY)
74
- Indie msic blah blah blah blah....
75
- EXCERPT
76
- And more about indie music.
77
- BODY
78
-
79
- x.change_view("computing")
80
-
81
- make_post(x, "The genius of Scenic", <<-EXCERPT, <<-BODY)
82
- Boyd Multerer is a genius.
83
- EXCERPT
84
- And so is Scenic.
85
- BODY
86
-
87
- make_post(x, "The future of coding", <<-EXCERPT, <<-BODY)
88
- Someday you can forget your text editor entirely.
89
- EXCERPT
90
- But that day hasn't come yet.
91
- BODY
64
+ # x.change_view("computing") # 3 5 6
65
+ #
66
+ # make_post(x, "Elixir Conf coming up...", <<-EXCERPT, <<-BODY)
67
+ # The next Elixir Conf is always coming up.
68
+ # EXCERPT
69
+ # I mean, unless the previous one was the last one ever, which I don't expect to
70
+ # happen for a couple of decades.
71
+ # BODY
72
+ #
73
+ # x.change_view("music") # 4 10
74
+ #
75
+ # make_post(x, "Does indie still matter?", <<-EXCERPT, <<-BODY)
76
+ # Indie msic blah blah blah blah....
77
+ # EXCERPT
78
+ # And more about indie music.
79
+ # BODY
80
+ #
81
+ # x.change_view("computing")
82
+ #
83
+ # make_post(x, "The genius of Scenic", <<-EXCERPT, <<-BODY)
84
+ # Boyd Multerer is a genius.
85
+ # EXCERPT
86
+ # And so is Scenic.
87
+ # BODY
88
+ #
89
+ # make_post(x, "The future of coding", <<-EXCERPT, <<-BODY)
90
+ # Someday you can forget your text editor entirely.
91
+ # EXCERPT
92
+ # But that day hasn't come yet.
93
+ # BODY
92
94
 
93
95
  x.change_view("around_austin")
94
96
 
@@ -113,7 +115,7 @@ BODY
113
115
 
114
116
  x.change_view("music")
115
117
 
116
- make_post(x, "Remember Modest Mouse?", <<-EXCERPT, <<-BODY)
118
+ make_post(x, "Remember Modest Mouse?", <<-EXCERPT, <<-BODY, ["around_austin"])
117
119
  They date to the 90s or before.
118
120
  EXCERPT
119
121
  But I first heard of them
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.76
4
+ version: 0.1.78
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-06-01 00:00:00.000000000 Z
11
+ date: 2019-08-06 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.86
22
+ version: 0.8.87
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.86
32
+ version: 0.8.87
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubytext
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.7.7
100
+ rubygems_version: 3.0.4
102
101
  signing_key:
103
102
  specification_version: 4
104
103
  summary: A command-line blogging system