runeblog 0.1.51 → 0.1.52

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: 50f7ec006bf55e6edc6f592b3241bf0ec3e05193042bc46dcf0ef37d1dd76079
4
- data.tar.gz: 84461bf20ebfbe21a070574c7caad6d4484da77be2ba6857026f7112f4179ea3
3
+ metadata.gz: 68431b4dabdcbd923cc32a39ae2af7b37aa3edecdf504833b7dc1e158e85461a
4
+ data.tar.gz: c94f6b7b46705d2d62e65bc878c678d5458a026ada06a5e4bcfdc5d7dfbc91f6
5
5
  SHA512:
6
- metadata.gz: 0a9003c7906cffacac6008ea88b348182e114d69dce56afec64f3ae00766026161ecf276d7ab6dd9685c0a0d2c8c9aa74ffb7be6d9e3e5ec222ae75cd56f28a8
7
- data.tar.gz: 70933c641445556ff040cb2be39d767a1329bc94d9049e62a0e740acaae2914aa43f50da38abfabccb10418f3c92b4c1213a574a1902b1c81ee9f43789e82179
6
+ metadata.gz: 30b76cf75e197692895c5d4a81de067cb60b78014ea690c80f38a224e229f0c231faca20432ac4d49b64319f233559932600e3db64311f133715234f1947fe26
7
+ data.tar.gz: 2d899faa807453ae54097d786f21b54dc138140f8587a0054816867d892074016b35f70b1eaf4f5e2357045542557941a7be5b9b5dd35fc34a2bf21b186dcf5c
data/bin/blog CHANGED
@@ -9,6 +9,17 @@ require 'repl'
9
9
 
10
10
  include RuneBlog::REPL
11
11
 
12
+ def get_started
13
+ puts
14
+ puts fx(<<-TEXT, :bold)
15
+ Blog successfully created.
16
+ You can create views with the command: new view
17
+ Create a post within the current view: new post
18
+ You can't publish until you set up the publish file
19
+ via the config command.
20
+ TEXT
21
+ end
22
+
12
23
  def mainloop
13
24
  print fx("blog> ", Red, :bold)
14
25
  cmd = STDSCR.gets(history: @cmdhist, tab: @tabcom)
@@ -29,7 +40,7 @@ abort "Need Ruby 2.4 or greater" unless ver >= 24
29
40
 
30
41
  include RuneBlog::Helpers # for try_read_config
31
42
 
32
- # read a .rubytext file here??
43
+ # read a .rubytext file here?? Call it something else?
33
44
  home = ENV['HOME']
34
45
  @fg, @bg = try_read_config("#{home}/.rubytext", fg: Blue, bg: White)
35
46
  @fg = @fg.downcase.to_sym
@@ -39,10 +50,11 @@ RubyText.start(:_echo, :keypad, scroll: true, log: "binblog.txt",
39
50
  fg: @fg, bg: @bg)
40
51
 
41
52
  if ! RuneBlog.exist?
42
- print "No blog found. Create new one? (y/n) "
53
+ print fx("\n No blog found. Create new one? (y/n) ", :bold)
43
54
  resp = gets.chomp
44
- if resp == "y"
55
+ if resp.downcase == "y"
45
56
  RuneBlog.create_new_blog
57
+ get_started
46
58
  else
47
59
  exit
48
60
  end
@@ -51,11 +63,14 @@ end
51
63
  @blog = RuneBlog.new
52
64
 
53
65
  puts fx("\n RuneBlog", :bold), fx(" v #{RuneBlog::VERSION}\n", Red)
66
+
54
67
  @cmdhist = []
55
68
  @tabcom = RuneBlog::REPL::Patterns.keys
56
69
  @tabcom.map! {|x| x.sub(/ \$.*/, " ") }
70
+
57
71
  loop { mainloop }
58
- sleep 0.2
59
- system("tput clear")
72
+
73
+ # sleep 0.2
74
+ # system("tput clear")
60
75
  puts
61
76
 
data/lib/repl.rb CHANGED
@@ -349,7 +349,8 @@ module RuneBlog::REPL
349
349
  list views List all views available
350
350
  lsv Same as: list views
351
351
 
352
- customize Change set of tags, extra views
352
+ config Edit the publish file or the templates
353
+ customize (BUGGY) Change set of tags, extra views
353
354
 
354
355
  p, post Create a new post
355
356
  new post Same as post (create a post)
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.51"
3
+ VERSION = "0.1.52"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
data/runeblog.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.authors = ["Hal Fulton"]
16
16
  s.email = 'rubyhacker@gmail.com'
17
17
  s.executables << "blog"
18
- s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.58'
18
+ s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.64'
19
19
  s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.14'
20
20
 
21
21
  # Files...
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.51
4
+ version: 0.1.52
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-03-24 00:00:00.000000000 Z
11
+ date: 2019-03-25 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.58
22
+ version: 0.8.64
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.58
32
+ version: 0.8.64
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubytext
35
35
  requirement: !ruby/object:Gem::Requirement