runeblog 0.0.17 → 0.0.18

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
  SHA1:
3
- metadata.gz: daf51824d3995af799d0e01ce97f9f83726f539b
4
- data.tar.gz: a0bd0c5e7087b80a27f308d318343a8d174e2a8d
3
+ metadata.gz: 6afc0631f94efc48845844f2b77c27b4ab4ca80b
4
+ data.tar.gz: 34697e121079c1e08f62c1d3109681c4301f3853
5
5
  SHA512:
6
- metadata.gz: ff8bb51ac1286a1a6d12501730024d47ac041ee078322d9c64c1f157688d66c7260b935982012c8d20dfac52eaae4febbc25fc1547f9416a3ac2c955e8795907
7
- data.tar.gz: 6cf7e3c4eee1ada91f26439c470bb407f5d324399df5f827fe7fbefeb1b6e432563bb4bb43208b7c405815aa54a465910f3c6ef48342eb27a3664815fb182c36
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.17 2017-05-06 00:00:00 UTC
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.17"
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
@@ -15,8 +15,6 @@ Gem::Specification.new do |s|
15
15
  s.email = 'rubyhacker@gmail.com'
16
16
  s.executables << "blog"
17
17
 
18
- File.write("data/VERSION", "RuneBlog v #{s.version} #{s.date}")
19
-
20
18
  # Files...
21
19
  main = Find.find("bin").to_a +
22
20
  Find.find("lib").to_a +
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton