runeblog 0.1.35 → 0.1.36

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: ce2dfdba3ed109bfa4e235a52e6992e28ea7f34859295a20aab25742522093eb
4
- data.tar.gz: 41311a3d247b24a3e354ddadac3663b928c1a8f0daeb9cfd725b5bfc37302ddc
3
+ metadata.gz: aa66020851fb773a6764093fad7e20cd9dbfbe9ec851943a987a0d86181299ad
4
+ data.tar.gz: ea4616bbd6c9888e4f8e3901b3a6b6b42f26d25758162f0e9db657204e4fe537
5
5
  SHA512:
6
- metadata.gz: 78bf0a325f4c6ebce9dfddd2ae4b1a78a6cf670dfaccddf277148bd803445ea942bd3754d6962fad56eca17140fc8ace1e8ea0a0da2d20794b6745c6a8f7bc1d
7
- data.tar.gz: c63b25bd1d5f8048b1ad61e1c78025451e7fb25388aa837791ec1128ab06e267941426bb98f2d339e77f2bcd8c405b41983385e3ce0175d85a9172cc6ff923c6
6
+ metadata.gz: 01e7204506d8dba5fed0a34fc50e2b35818d17ed51d4161323ba784129ed51ecd7680f60842121ee2be8d3a7767210577d11f67c8a4e32d17ed43cf03abcab63
7
+ data.tar.gz: bba39977de72401929cd24e83c8dc97919b6da2f290739c399bb116733a1e4b2fb3091ee871d8e1667fb2d7611b25ba04bc9c861f64866379b1ce28259e96a4b
data/lib/helpers-repl.rb CHANGED
@@ -38,6 +38,9 @@ module RuneBlog::REPL
38
38
  "list drafts" => :cmd_list_drafts,
39
39
  "lsd" => :cmd_list_drafts,
40
40
 
41
+ "list assets" => :cmd_list_assets,
42
+ "lsa" => :cmd_list_assets,
43
+
41
44
  "rm $postid" => :cmd_remove_post,
42
45
  "undel $postid" => :cmd_undelete_post,
43
46
 
data/lib/repl.rb CHANGED
@@ -301,6 +301,27 @@ module RuneBlog::REPL
301
301
  [true, @out]
302
302
  end
303
303
 
304
+ def cmd_list_assets(arg, testing = false)
305
+ reset_output
306
+ check_empty(arg)
307
+ dir = @blog.view.dir + "/assets"
308
+ assets = Dir[dir + "/*"]
309
+ if assets.empty?
310
+ output! "No assets"
311
+ puts " No assets" unless testing
312
+ return [false, @out]
313
+ else
314
+ puts unless testing
315
+ assets.each do |name|
316
+ asset = File.basename(name)
317
+ outstr asset
318
+ puts " ", fx(asset, Blue) unless testing
319
+ end
320
+ end
321
+ puts unless testing
322
+ [true, @out]
323
+ end
324
+
304
325
  def cmd_ssh(arg, testing = false)
305
326
  pub = @blog.view.publisher
306
327
  system("ssh #{pub.user}@#{pub.server}")
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.35"
3
+ VERSION = "0.1.36"
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.35
4
+ version: 0.1.36
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-02-03 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext