runeblog 0.1.34 → 0.1.35

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: 41ebfee8dc03d5cb547cb1bf258a1b7a8b10fd58f03c766f998aa17ddf2e8f1b
4
- data.tar.gz: ca34266009e6ab0a267420c1c42fd3330408cfb4d471cc08cd9db3d2b5a6df7c
3
+ metadata.gz: ce2dfdba3ed109bfa4e235a52e6992e28ea7f34859295a20aab25742522093eb
4
+ data.tar.gz: 41311a3d247b24a3e354ddadac3663b928c1a8f0daeb9cfd725b5bfc37302ddc
5
5
  SHA512:
6
- metadata.gz: a2dba185584d41c74ff3cf2bb1ba8f608450918d619a5f764308444bc172c879ab914eeea4ec4495670b46f3118db7d3300a490a3da66f7b9705f67a726d8bb5
7
- data.tar.gz: 7cc0854abd7d231e7afffe9165500dbc02d53b4287d8d142ea8e61ae1ac8af3f8fa4d31e35702aedcd5c468fa447fb40eef595e1ffc8f977726808b1ed7ed1e3
6
+ metadata.gz: 78bf0a325f4c6ebce9dfddd2ae4b1a78a6cf670dfaccddf277148bd803445ea942bd3754d6962fad56eca17140fc8ace1e8ea0a0da2d20794b6745c6a8f7bc1d
7
+ data.tar.gz: c63b25bd1d5f8048b1ad61e1c78025451e7fb25388aa837791ec1128ab06e267941426bb98f2d339e77f2bcd8c405b41983385e3ce0175d85a9172cc6ff923c6
data/lib/helpers-repl.rb CHANGED
@@ -20,6 +20,7 @@ module RuneBlog::REPL
20
20
 
21
21
  "customize" => :cmd_customize,
22
22
  "tags" => :cmd_tags,
23
+ "import" => :cmd_import,
23
24
 
24
25
  "new post" => :cmd_new_post,
25
26
  "p" => :cmd_new_post,
data/lib/repl.rb CHANGED
@@ -65,6 +65,12 @@ module RuneBlog::REPL
65
65
  edit_file("tagpool")
66
66
  end
67
67
 
68
+ def cmd_import(arg, testing = false)
69
+ check_empty(arg)
70
+ files = ask("\n File(s) = ")
71
+ system("cp #{files} #{@blog.root}/views/#{@blog.view.name}/assets/")
72
+ end
73
+
68
74
  def cmd_browse(arg, testing = false)
69
75
  reset_output
70
76
  check_empty(arg)
@@ -332,6 +338,8 @@ module RuneBlog::REPL
332
338
  p, post Create a new post
333
339
  new post Same as post (create a post)
334
340
 
341
+ import ASSETS Import assets (images, etc.)
342
+
335
343
  lsp, list posts List posts in current view
336
344
 
337
345
  lsd, list drafts List all posts regardless of view
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.34"
3
+ VERSION = "0.1.35"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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.34
4
+ version: 0.1.35
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-01-26 00:00:00.000000000 Z
11
+ date: 2019-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext