runeblog 0.2.38 → 0.2.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mkwidget +209 -0
  3. data/empty_view/themes/standard/blog/index.lt3 +0 -1
  4. data/empty_view/themes/standard/etc/blog.css.lt3 +0 -1
  5. data/empty_view/themes/standard/post/generate.lt3 +9 -4
  6. data/empty_view/themes/standard/widgets/bydates/README +2 -0
  7. data/empty_view/themes/standard/widgets/bydates/bydates.lt3 +2 -0
  8. data/empty_view/themes/standard/widgets/bydates/bydates.rb +14 -0
  9. data/empty_view/themes/standard/widgets/bydates/card.css +1 -0
  10. data/empty_view/themes/standard/widgets/bydates/custom.rb +1 -0
  11. data/empty_view/themes/standard/widgets/bydates/local-vars.lt3 +12 -0
  12. data/empty_view/themes/standard/widgets/bydates/main.css +2 -0
  13. data/empty_view/themes/standard/widgets/bydates/pieces/card-head.lt3 +8 -0
  14. data/empty_view/themes/standard/widgets/bydates/pieces/card-tail.lt3 +4 -0
  15. data/empty_view/themes/standard/widgets/bydates/pieces/main-head.lt3 +10 -0
  16. data/empty_view/themes/standard/widgets/bydates/pieces/main-tail.lt3 +4 -0
  17. data/empty_view/themes/standard/widgets/links/README +2 -0
  18. data/empty_view/themes/standard/widgets/links/card.css +1 -0
  19. data/empty_view/themes/standard/widgets/links/custom.rb +1 -0
  20. data/empty_view/themes/standard/widgets/links/links.lt3 +1 -1
  21. data/empty_view/themes/standard/widgets/links/links.rb +14 -0
  22. data/empty_view/themes/standard/widgets/links/local-vars.lt3 +12 -0
  23. data/empty_view/themes/standard/widgets/links/main.css +2 -0
  24. data/empty_view/themes/standard/widgets/links/pieces/card-head.lt3 +8 -0
  25. data/empty_view/themes/standard/widgets/links/pieces/card-tail.lt3 +4 -0
  26. data/empty_view/themes/standard/widgets/links/pieces/main-head.lt3 +10 -0
  27. data/empty_view/themes/standard/widgets/links/pieces/main-tail.lt3 +4 -0
  28. data/empty_view/themes/standard/widgets/news/README +2 -0
  29. data/empty_view/themes/standard/widgets/news/card.css +1 -0
  30. data/empty_view/themes/standard/widgets/news/custom.rb +1 -0
  31. data/empty_view/themes/standard/widgets/news/local-vars.lt3 +12 -0
  32. data/empty_view/themes/standard/widgets/news/main.css +2 -0
  33. data/empty_view/themes/standard/widgets/news/news.rb +14 -0
  34. data/empty_view/themes/standard/widgets/news/pieces/card-head.lt3 +8 -0
  35. data/empty_view/themes/standard/widgets/news/pieces/card-tail.lt3 +4 -0
  36. data/empty_view/themes/standard/widgets/news/pieces/main-head.lt3 +10 -0
  37. data/empty_view/themes/standard/widgets/news/pieces/main-tail.lt3 +4 -0
  38. data/empty_view/themes/standard/widgets/pages/card.css +1 -0
  39. data/empty_view/themes/standard/widgets/pages/custom.rb +1 -0
  40. data/empty_view/themes/standard/widgets/pages/local-vars.lt3 +12 -0
  41. data/empty_view/themes/standard/widgets/pages/local.rb +0 -8
  42. data/empty_view/themes/standard/widgets/pages/main.css +2 -0
  43. data/empty_view/themes/standard/widgets/pages/pages.rb +21 -0
  44. data/empty_view/themes/standard/widgets/pages/pieces/card-head.lt3 +1 -0
  45. data/empty_view/themes/standard/widgets/pages/pieces/card-tail.lt3 +1 -0
  46. data/empty_view/themes/standard/widgets/pages/pieces/main-head.lt3 +10 -0
  47. data/empty_view/themes/standard/widgets/pages/pieces/main-tail.lt3 +2 -0
  48. data/empty_view/themes/standard/widgets/pinned/README +2 -0
  49. data/empty_view/themes/standard/widgets/pinned/card.css +1 -0
  50. data/empty_view/themes/standard/widgets/pinned/custom.rb +1 -0
  51. data/empty_view/themes/standard/widgets/pinned/local-vars.lt3 +12 -0
  52. data/empty_view/themes/standard/widgets/pinned/main.css +2 -0
  53. data/empty_view/themes/standard/widgets/pinned/pieces/card-head.lt3 +8 -0
  54. data/empty_view/themes/standard/widgets/pinned/pieces/card-tail.lt3 +4 -0
  55. data/empty_view/themes/standard/widgets/pinned/pieces/main-head.lt3 +10 -0
  56. data/empty_view/themes/standard/widgets/pinned/pieces/main-tail.lt3 +4 -0
  57. data/empty_view/themes/standard/widgets/pinned/pinned.lt3 +2 -0
  58. data/empty_view/themes/standard/widgets/pinned/pinned.rb +14 -0
  59. data/empty_view/themes/standard/widgets/search/README +2 -0
  60. data/empty_view/themes/standard/widgets/search/card.css +1 -0
  61. data/empty_view/themes/standard/widgets/search/custom.rb +1 -0
  62. data/empty_view/themes/standard/widgets/search/local-vars.lt3 +12 -0
  63. data/empty_view/themes/standard/widgets/search/main.css +2 -0
  64. data/empty_view/themes/standard/widgets/search/pieces/card-head.lt3 +8 -0
  65. data/empty_view/themes/standard/widgets/search/pieces/card-tail.lt3 +4 -0
  66. data/empty_view/themes/standard/widgets/search/pieces/main-head.lt3 +10 -0
  67. data/empty_view/themes/standard/widgets/search/pieces/main-tail.lt3 +4 -0
  68. data/empty_view/themes/standard/widgets/search/search.lt3 +2 -0
  69. data/empty_view/themes/standard/widgets/search/search.rb +14 -0
  70. data/empty_view/themes/standard/widgets/sitemap/README +2 -0
  71. data/empty_view/themes/standard/widgets/sitemap/card.css +1 -0
  72. data/empty_view/themes/standard/widgets/sitemap/custom.rb +1 -0
  73. data/empty_view/themes/standard/widgets/sitemap/local-vars.lt3 +12 -0
  74. data/empty_view/themes/standard/widgets/sitemap/main.css +2 -0
  75. data/empty_view/themes/standard/widgets/sitemap/pieces/card-head.lt3 +8 -0
  76. data/empty_view/themes/standard/widgets/sitemap/pieces/card-tail.lt3 +4 -0
  77. data/empty_view/themes/standard/widgets/sitemap/pieces/main-head.lt3 +10 -0
  78. data/empty_view/themes/standard/widgets/sitemap/pieces/main-tail.lt3 +4 -0
  79. data/empty_view/themes/standard/widgets/sitemap/sitemap.lt3 +2 -0
  80. data/empty_view/themes/standard/widgets/sitemap/sitemap.rb +14 -0
  81. data/empty_view/themes/standard/widgets/tag-cloud/OLD-example.lt3 +12 -0
  82. data/empty_view/themes/standard/widgets/tag-cloud/README +2 -0
  83. data/empty_view/themes/standard/widgets/tag-cloud/card.css +1 -0
  84. data/empty_view/themes/standard/widgets/tag-cloud/custom.rb +1 -0
  85. data/empty_view/themes/standard/widgets/tag-cloud/local-vars.lt3 +12 -0
  86. data/empty_view/themes/standard/widgets/tag-cloud/main.css +2 -0
  87. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-head.lt3 +8 -0
  88. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-tail.lt3 +4 -0
  89. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-head.lt3 +10 -0
  90. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-tail.lt3 +4 -0
  91. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3 +1 -10
  92. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.rb +14 -0
  93. data/lib/default.rb +0 -3
  94. data/lib/liveblog.rb +75 -10
  95. data/lib/runeblog.rb +37 -10
  96. data/lib/runeblog_version.rb +1 -1
  97. data/lib/xlate.rb +5 -0
  98. data/test/austin.rb +150 -0
  99. data/test/make_blog.rb +23 -2
  100. metadata +88 -4
  101. data/empty_view/remote/widgets/pages/SUBFILES +0 -1
  102. data/empty_view/themes/standard/widgets/calendar/calendar.lt3 +0 -6
@@ -22,9 +22,9 @@ def debug(str = "")
22
22
  t = Time.now
23
23
  time = t.to_f.to_s
24
24
  n = time.index(".")
25
- msec = time[n..-1]
25
+ msec = time[n..(n+2)]
26
26
  time = t.strftime("%H:%M:%S") + msec
27
- STDERR.puts "#{'%-16s' % time} #{str}"
27
+ STDERR.puts "#{'%-11s' % time} #{str}"
28
28
  end
29
29
 
30
30
  def make_post(x, title, teaser, body, views=[])
@@ -46,6 +46,8 @@ end
46
46
 
47
47
  # "Main"...
48
48
 
49
+ t0 = Time.now
50
+
49
51
  puts bold("\nGenerating test blog...")
50
52
 
51
53
  system("rm -rf .blogs")
@@ -55,6 +57,19 @@ x = RuneBlog.new(".blogs")
55
57
  debug("create_view: #{bold('around_austin')}")
56
58
  x.create_view("around_austin") # FIXME remember view title!
57
59
 
60
+ #### FIXME later!!
61
+ vars = <<-VARS
62
+
63
+ .variables
64
+ blog Around Austin
65
+ blog.desc The view from downtown...
66
+ .end
67
+ VARS
68
+ File.open(".blogs/views/around_austin/themes/standard/global.lt3", "a") do |f|
69
+ f.puts vars
70
+ end
71
+ ####
72
+
58
73
  debug("create_view: #{bold('computing')}")
59
74
  x.create_view("computing")
60
75
 
@@ -170,6 +185,12 @@ debug
170
185
  debug("** generate_view: #{bold('around_austin')}")
171
186
  x.generate_view("around_austin")
172
187
  x.change_view("around_austin")
188
+ debug
173
189
 
174
190
  puts bold("...finished.\n")
175
191
 
192
+ t1 = Time.now
193
+
194
+ elapsed = t1 - t0
195
+ puts "\nElapsed: #{'%3.2f' % elapsed} secs\n "
196
+
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.38
4
+ version: 0.2.43
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-10-13 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -61,6 +61,7 @@ files:
61
61
  - "./README.md"
62
62
  - "./runeblog.gemspec"
63
63
  - bin/blog
64
+ - bin/mkwidget
64
65
  - empty_view/assets/sky2.jpg
65
66
  - empty_view/remote/assets/GIT_IS_DUMB
66
67
  - empty_view/remote/etc/GIT_IS_DUMB
@@ -68,7 +69,6 @@ files:
68
69
  - empty_view/remote/permalink/GIT_IS_DUMB
69
70
  - empty_view/remote/widgets/links/list.data
70
71
  - empty_view/remote/widgets/news/list.data
71
- - empty_view/remote/widgets/pages/SUBFILES
72
72
  - empty_view/remote/widgets/pages/list.data
73
73
  - empty_view/themes/standard/README
74
74
  - empty_view/themes/standard/blog/generate.lt3
@@ -89,20 +89,103 @@ files:
89
89
  - empty_view/themes/standard/post/permalink.lt3
90
90
  - empty_view/themes/standard/widgets/README
91
91
  - empty_view/themes/standard/widgets/ad/ad.lt3
92
- - empty_view/themes/standard/widgets/calendar/calendar.lt3
92
+ - empty_view/themes/standard/widgets/bydates/README
93
+ - empty_view/themes/standard/widgets/bydates/bydates.lt3
94
+ - empty_view/themes/standard/widgets/bydates/bydates.rb
95
+ - empty_view/themes/standard/widgets/bydates/card.css
96
+ - empty_view/themes/standard/widgets/bydates/custom.rb
97
+ - empty_view/themes/standard/widgets/bydates/local-vars.lt3
98
+ - empty_view/themes/standard/widgets/bydates/main.css
99
+ - empty_view/themes/standard/widgets/bydates/pieces/card-head.lt3
100
+ - empty_view/themes/standard/widgets/bydates/pieces/card-tail.lt3
101
+ - empty_view/themes/standard/widgets/bydates/pieces/main-head.lt3
102
+ - empty_view/themes/standard/widgets/bydates/pieces/main-tail.lt3
103
+ - empty_view/themes/standard/widgets/links/README
104
+ - empty_view/themes/standard/widgets/links/card.css
105
+ - empty_view/themes/standard/widgets/links/custom.rb
93
106
  - empty_view/themes/standard/widgets/links/links.lt3
107
+ - empty_view/themes/standard/widgets/links/links.rb
94
108
  - empty_view/themes/standard/widgets/links/list.data
109
+ - empty_view/themes/standard/widgets/links/local-vars.lt3
110
+ - empty_view/themes/standard/widgets/links/main.css
111
+ - empty_view/themes/standard/widgets/links/pieces/card-head.lt3
112
+ - empty_view/themes/standard/widgets/links/pieces/card-tail.lt3
113
+ - empty_view/themes/standard/widgets/links/pieces/main-head.lt3
114
+ - empty_view/themes/standard/widgets/links/pieces/main-tail.lt3
115
+ - empty_view/themes/standard/widgets/news/README
116
+ - empty_view/themes/standard/widgets/news/card.css
117
+ - empty_view/themes/standard/widgets/news/custom.rb
95
118
  - empty_view/themes/standard/widgets/news/list.data
119
+ - empty_view/themes/standard/widgets/news/local-vars.lt3
120
+ - empty_view/themes/standard/widgets/news/main.css
96
121
  - empty_view/themes/standard/widgets/news/news.lt3
122
+ - empty_view/themes/standard/widgets/news/news.rb
123
+ - empty_view/themes/standard/widgets/news/pieces/card-head.lt3
124
+ - empty_view/themes/standard/widgets/news/pieces/card-tail.lt3
125
+ - empty_view/themes/standard/widgets/news/pieces/main-head.lt3
126
+ - empty_view/themes/standard/widgets/news/pieces/main-tail.lt3
97
127
  - empty_view/themes/standard/widgets/pages/README
128
+ - empty_view/themes/standard/widgets/pages/card.css
129
+ - empty_view/themes/standard/widgets/pages/custom.rb
98
130
  - empty_view/themes/standard/widgets/pages/disclaim.lt3
99
131
  - empty_view/themes/standard/widgets/pages/faq.lt3
100
132
  - empty_view/themes/standard/widgets/pages/like-dislike.lt3
101
133
  - empty_view/themes/standard/widgets/pages/list.data
134
+ - empty_view/themes/standard/widgets/pages/local-vars.lt3
102
135
  - empty_view/themes/standard/widgets/pages/local.rb
136
+ - empty_view/themes/standard/widgets/pages/main.css
103
137
  - empty_view/themes/standard/widgets/pages/other-stuff.lt3
104
138
  - empty_view/themes/standard/widgets/pages/pages.lt3
139
+ - empty_view/themes/standard/widgets/pages/pages.rb
140
+ - empty_view/themes/standard/widgets/pages/pieces/card-head.lt3
141
+ - empty_view/themes/standard/widgets/pages/pieces/card-tail.lt3
142
+ - empty_view/themes/standard/widgets/pages/pieces/main-head.lt3
143
+ - empty_view/themes/standard/widgets/pages/pieces/main-tail.lt3
144
+ - empty_view/themes/standard/widgets/pinned/README
145
+ - empty_view/themes/standard/widgets/pinned/card.css
146
+ - empty_view/themes/standard/widgets/pinned/custom.rb
147
+ - empty_view/themes/standard/widgets/pinned/local-vars.lt3
148
+ - empty_view/themes/standard/widgets/pinned/main.css
149
+ - empty_view/themes/standard/widgets/pinned/pieces/card-head.lt3
150
+ - empty_view/themes/standard/widgets/pinned/pieces/card-tail.lt3
151
+ - empty_view/themes/standard/widgets/pinned/pieces/main-head.lt3
152
+ - empty_view/themes/standard/widgets/pinned/pieces/main-tail.lt3
153
+ - empty_view/themes/standard/widgets/pinned/pinned.lt3
154
+ - empty_view/themes/standard/widgets/pinned/pinned.rb
155
+ - empty_view/themes/standard/widgets/search/README
156
+ - empty_view/themes/standard/widgets/search/card.css
157
+ - empty_view/themes/standard/widgets/search/custom.rb
158
+ - empty_view/themes/standard/widgets/search/local-vars.lt3
159
+ - empty_view/themes/standard/widgets/search/main.css
160
+ - empty_view/themes/standard/widgets/search/pieces/card-head.lt3
161
+ - empty_view/themes/standard/widgets/search/pieces/card-tail.lt3
162
+ - empty_view/themes/standard/widgets/search/pieces/main-head.lt3
163
+ - empty_view/themes/standard/widgets/search/pieces/main-tail.lt3
164
+ - empty_view/themes/standard/widgets/search/search.lt3
165
+ - empty_view/themes/standard/widgets/search/search.rb
166
+ - empty_view/themes/standard/widgets/sitemap/README
167
+ - empty_view/themes/standard/widgets/sitemap/card.css
168
+ - empty_view/themes/standard/widgets/sitemap/custom.rb
169
+ - empty_view/themes/standard/widgets/sitemap/local-vars.lt3
170
+ - empty_view/themes/standard/widgets/sitemap/main.css
171
+ - empty_view/themes/standard/widgets/sitemap/pieces/card-head.lt3
172
+ - empty_view/themes/standard/widgets/sitemap/pieces/card-tail.lt3
173
+ - empty_view/themes/standard/widgets/sitemap/pieces/main-head.lt3
174
+ - empty_view/themes/standard/widgets/sitemap/pieces/main-tail.lt3
175
+ - empty_view/themes/standard/widgets/sitemap/sitemap.lt3
176
+ - empty_view/themes/standard/widgets/sitemap/sitemap.rb
177
+ - empty_view/themes/standard/widgets/tag-cloud/OLD-example.lt3
178
+ - empty_view/themes/standard/widgets/tag-cloud/README
179
+ - empty_view/themes/standard/widgets/tag-cloud/card.css
180
+ - empty_view/themes/standard/widgets/tag-cloud/custom.rb
181
+ - empty_view/themes/standard/widgets/tag-cloud/local-vars.lt3
182
+ - empty_view/themes/standard/widgets/tag-cloud/main.css
183
+ - empty_view/themes/standard/widgets/tag-cloud/pieces/card-head.lt3
184
+ - empty_view/themes/standard/widgets/tag-cloud/pieces/card-tail.lt3
185
+ - empty_view/themes/standard/widgets/tag-cloud/pieces/main-head.lt3
186
+ - empty_view/themes/standard/widgets/tag-cloud/pieces/main-tail.lt3
105
187
  - empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3
188
+ - empty_view/themes/standard/widgets/tag-cloud/tag-cloud.rb
106
189
  - lib/Javascript.stuff
107
190
  - lib/default.rb
108
191
  - lib/global.rb
@@ -118,6 +201,7 @@ files:
118
201
  - lib/runeblog_version.rb
119
202
  - lib/view.rb
120
203
  - lib/xlate.rb
204
+ - test/austin.rb
121
205
  - test/fakeimage.jpg
122
206
  - test/general_test.rb
123
207
  - test/make_blog.rb
@@ -1 +0,0 @@
1
- Causes other *.lt3 files to be generated
@@ -1,6 +0,0 @@
1
-
2
- .card_iframe Calendar
3
- https://calendar.google.com/calendar/embed?src=en-gb.indian%23holiday%40group.v.calendar.google.com&ctz=Asia%2FKolkata
4
- height="350"
5
- .end
6
-