runeblog 0.2.66 → 0.2.69

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: 3377a5ba70f92dddd9b045725e85eb7fff8ebbab816574116ec333cbe78b8c8a
4
- data.tar.gz: 1b867812e0f3fa96b74ea4abfa5331fcf1bb9eb263cfd936b7fd1d57b3a6bc6c
3
+ metadata.gz: cac83d9c4f6850081ed2e007400c08c0a45e0515384e1eab36deb24ff8f269f1
4
+ data.tar.gz: 77164031eeee9f02d96d8b966831c4e04544def4973affad48b3f1f43acd702f
5
5
  SHA512:
6
- metadata.gz: e3ddff49dff4ddc7e9af3b2d6f762deca151965630ed85dcc7605f9f5889aabd2c5f48bd33a512e8959c3c6e3742fafac46056c5125758bcc96e81299f8caab8
7
- data.tar.gz: d59bd1c867a21c3210f32283e2818f66f6592a0a872def4715c87ca35df7d572cb96321ac7c50e7b85ec4d1fa178a2d69e75d14c7f9a19fa9e755183fbf5e7e5
6
+ metadata.gz: 292cdd9ee19c4b7c290c0a41a7c2966758f3f89fdd0453ec8e58a827501d95b2761491f9799a0f009ae1a0ef99ac78e489ded615bc496121919ecfd613184737
7
+ data.tar.gz: 4128e54f173bc9edb46dea6ca62abb815bb1c4e50320879517f7e01d8ec1e1579d439431bcbc183d0bfdd6e627a025f7b2b2bd27f7819ca06e7ff725eae1dba1
File without changes
File without changes
File without changes
@@ -0,0 +1,37 @@
1
+
2
+ . "Universal" settings -- new defaults for global.lt3
3
+ . work in progress - defaults for each global.lt3
4
+
5
+ . --------------------------------------------------
6
+ . Global settings are stored here in the form
7
+ . <variable> <value>
8
+ . --------------------------------------------------
9
+
10
+
11
+ . Details
12
+ charset utf-8
13
+ locale en_US
14
+
15
+ . Identity
16
+ author Your name here
17
+ site rubyhacker.com
18
+ host localhost:4000// # populate from site?
19
+ url localhost:4000// # populate from site?
20
+ publish.user root
21
+ publish.server rubyhacker.com # populate from site?
22
+ publish.docroot /var/www/
23
+ publish.path around_austin # populate from view name
24
+ publish.proto http
25
+
26
+ . Style
27
+ font.family verdana
28
+
29
+ post.title.color #010101
30
+ post.title.size 28px
31
+
32
+ post.text.color #0101a1
33
+ post.text.size 22px
34
+
35
+ post.date.color #9a9a9a
36
+ post.date.size 15px
37
+
@@ -0,0 +1,50 @@
1
+ require 'ostruct'
2
+
3
+ class OpenStruct
4
+ def to_s
5
+ "[not a value]"
6
+ end
7
+
8
+ def inspect
9
+ to_s
10
+ end
11
+ end
12
+
13
+ class OpenVar
14
+
15
+ def initialize
16
+ @hash = {}
17
+ @obj = OpenStruct.new
18
+ end
19
+
20
+ def [](var)
21
+ puts "self = #{self.inspect}"
22
+ # @hash[var] = nil
23
+ pieces = var.split(".")
24
+ this = @obj
25
+ pieces.each do |piece|
26
+ puts "piece = #{piece}"
27
+ # this.send(piece.to_s+"=", OpenStruct.new)
28
+ this = this.send(piece)
29
+ puts "this = #{this.inspect}"
30
+ end
31
+ this
32
+ end
33
+
34
+ def method_missing(meth, *args)
35
+ setter = meth.to_s + "="
36
+ meh = @obj.send(setter, OpenStruct.new)
37
+ @obj
38
+ end
39
+
40
+
41
+ end
42
+
43
+ var = OpenVar.new
44
+
45
+ var.foo.bar = 237
46
+
47
+ puts var.foo.inspect
48
+ puts var.foo.bar.inspect
49
+
50
+ puts var["foo.bar"]
@@ -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.66"
5
+ VERSION = "0.2.69"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
data/lib/xlate.rb CHANGED
@@ -16,6 +16,31 @@ def stale?(src, dst, deps, force = false)
16
16
  return false
17
17
  end
18
18
 
19
+ def prerprocess(cwd: Dir.pwd, src:,
20
+ dst: (strip = true; File.basename(src).sub(/.lt3$/,"")),
21
+ deps: [], copy: nil, debug: false, force: false)
22
+ src += LEXT unless src.end_with?(LEXT)
23
+ dst += ".html" unless (dst.end_with?(".html")) # || strip)
24
+ indent = " "*12
25
+ Dir.chdir(cwd) do
26
+ if debug
27
+ puts "#{indent} -- xlate #{src} >#{dst}"
28
+ puts "#{indent} in: #{Dir.pwd}"
29
+ puts "#{indent} from: #{caller[0]}"
30
+ puts "#{indent} copy: #{copy}" if copy
31
+ end
32
+ stale = stale?(src, dst, deps, force)
33
+ if stale
34
+ rc = system("livetext #{src} >#{dst}")
35
+ puts "...completed (shell returned #{rc})" if debug
36
+ system!("cp #{dst} #{copy}") if copy
37
+ else
38
+ puts "#{indent} -- ^ Already up to date!" if debug
39
+ return
40
+ end
41
+ end
42
+ end
43
+
19
44
  def xlate(cwd: Dir.pwd, src:,
20
45
  dst: (strip = true; File.basename(src).sub(/.lt3$/,"")),
21
46
  deps: [], copy: nil, debug: false, force: false)
data/runeblog.gemspec CHANGED
@@ -23,8 +23,7 @@ spec = Gem::Specification.new do |s|
23
23
  s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.95'
24
24
  s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.16'
25
25
 
26
- s.add_runtime_dependency 'minitest'
27
- # ^ technically not runtime dep
26
+ s.add_development_dependency 'minitest', '>= 5.10.0'
28
27
 
29
28
  # Files...
30
29
  main = Find.find("bin").to_a +
@@ -33,7 +32,6 @@ spec = Gem::Specification.new do |s|
33
32
  misc = %w[./README.lt3 ./README.md ./runeblog.gemspec]
34
33
  empty_view = Find.find("empty_view").to_a
35
34
 
36
-
37
35
  s.files = main + misc + test + empty_view
38
36
  s.homepage = 'https://github.com/Hal9000/runeblog'
39
37
  s.license = "Ruby"
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.66
4
+ version: 0.2.69
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-12-03 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -56,14 +56,14 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '0'
60
- type: :runtime
59
+ version: 5.10.0
60
+ type: :development
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: '0'
66
+ version: 5.10.0
67
67
  description: A blog system based on Ruby and Livetext
68
68
  email: rubyhacker@gmail.com
69
69
  executables:
@@ -164,13 +164,15 @@ files:
164
164
  - empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3
165
165
  - empty_view/themes/standard/widgets/tag-cloud/tag-cloud.rb
166
166
  - lib/Javascript.stuff
167
- - lib/callout.js
168
167
  - lib/default.rb
169
168
  - lib/exper/2svg.lt3
169
+ - lib/exper/callout.js
170
+ - lib/exper/fbtw-js
171
+ - lib/exper/fbtw.rb
170
172
  - lib/exper/gen_svg.rb
171
173
  - lib/exper/s2.html
172
- - lib/fbtw-js
173
- - lib/fbtw.rb
174
+ - lib/exper/univ.lt3
175
+ - lib/exper/varmint.rb
174
176
  - lib/global.rb
175
177
  - lib/helpers-blog.rb
176
178
  - lib/helpers-repl.rb