runeblog 0.0.17 → 0.0.18
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 +4 -4
- data/bin/blog +4 -2
- data/data/VERSION +1 -1
- data/lib/runeblog.rb +7 -30
- data/runeblog.gemspec +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6afc0631f94efc48845844f2b77c27b4ab4ca80b
|
4
|
+
data.tar.gz: 34697e121079c1e08f62c1d3109681c4301f3853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cec5abaa4ac6d55dd88bb3ade7b8c77b1570ea939614197308b3066e0c4e9e0865ffad610b0ec007f7921fa077272da325d771561a1ce583127b3b8c99ea01b
|
7
|
+
data.tar.gz: c04585d4b5ec9df5f058b8eb8f6603bf71f5e43bc39f11a759429e8efd7854d31b5054dfc1e6cd9e2a38e48093aeefa48f672a01f5bdf62ec60d68faad0c459b
|
data/bin/blog
CHANGED
@@ -161,8 +161,11 @@ STDOUT.sync = true
|
|
161
161
|
|
162
162
|
@cmd = get_argv
|
163
163
|
|
164
|
+
read_config
|
165
|
+
|
166
|
+
puts red("\n RuneBlog v #{RuneBlog::VERSION}")
|
167
|
+
|
164
168
|
if @cmd.nil? # REPL
|
165
|
-
read_config
|
166
169
|
puts
|
167
170
|
loop do
|
168
171
|
print red("blog> ")
|
@@ -175,7 +178,6 @@ if @cmd.nil? # REPL
|
|
175
178
|
execute_command
|
176
179
|
end
|
177
180
|
else # one command
|
178
|
-
read_config
|
179
181
|
file = File.open("/dev/tty")
|
180
182
|
STDIN.reopen(file) # avoid ARGF dumbness
|
181
183
|
execute_command
|
data/data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
RuneBlog v 0.0.
|
1
|
+
RuneBlog v 0.0.18 2017-05-06
|
data/lib/runeblog.rb
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
require 'find'
|
2
|
-
require 'yaml'
|
3
|
-
|
4
|
-
|
5
1
|
class RuneBlog
|
6
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.18"
|
7
3
|
|
8
4
|
Path = File.expand_path(File.join(File.dirname(__FILE__)))
|
9
5
|
DefaultData = Path + "/../data"
|
@@ -14,6 +10,12 @@ class RuneBlog
|
|
14
10
|
PostTrailer = File.read(DefaultData + "/post_trailer.html") rescue "not found"
|
15
11
|
end
|
16
12
|
|
13
|
+
require 'find'
|
14
|
+
require 'yaml'
|
15
|
+
require 'rubygems'
|
16
|
+
require 'ostruct'
|
17
|
+
require 'livetext'
|
18
|
+
|
17
19
|
def clear
|
18
20
|
puts "\e[H\e[2J" # clear screen
|
19
21
|
end
|
@@ -31,31 +33,6 @@ def bold(str)
|
|
31
33
|
end
|
32
34
|
|
33
35
|
|
34
|
-
# FIXME lots of structure changes
|
35
|
-
|
36
|
-
=begin
|
37
|
-
|
38
|
-
Post
|
39
|
-
----
|
40
|
-
Create a blog post
|
41
|
-
Process it
|
42
|
-
Link it
|
43
|
-
Upload to server
|
44
|
-
|
45
|
-
|
46
|
-
data
|
47
|
-
views
|
48
|
-
computing
|
49
|
-
compiled
|
50
|
-
custom
|
51
|
-
deployment
|
52
|
-
|
53
|
-
=end
|
54
|
-
|
55
|
-
require 'rubygems'
|
56
|
-
require 'ostruct'
|
57
|
-
require 'livetext'
|
58
|
-
|
59
36
|
|
60
37
|
### ask
|
61
38
|
|
data/runeblog.gemspec
CHANGED