servel 0.10.0 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b04f7ed035910d2308b11a3ca5cde78e3e5464f
4
- data.tar.gz: aa266ba4e42980678226a9aad763ef23fef31f67
3
+ metadata.gz: 68aa3fcde45ef2b5d719a46cdbf40a626791d71f
4
+ data.tar.gz: 682e23bda6b0a4488f27fcf8f9c93606c6aa1665
5
5
  SHA512:
6
- metadata.gz: 61c466680fffedef13a2a2e9d996379a7c1d98d356b0d8eb044e358e89100bcce1baa1105a2d0c2acd5f463fa087e5b85a29e091552c26f0342ad365bda404e9
7
- data.tar.gz: 4fa87e8bcdd2b192517f32d21272da99002e242b29a2e01fcb7f6b05aa59b333b44ba5d3940786722156d03a4e47f82f5652617b7f202c08b808bd99332f35f3
6
+ metadata.gz: 19a8a5e7b912be06b0cc9aa2dbce64272b717656b4fff91f4fe964efcf73dbbe4db48c5edb323e70278e044f7084a0ff7bf1af3fcdb27e8ecef89b29a9212cd8
7
+ data.tar.gz: 3564b088e3b9153d50e7efd73448da11141e0b55049475542900c3ab051c13a2288a1e3792654e19ed7f9453a7288b4621be1a27f90ef195d18ee6d8a9f112ad
data/bin/servel CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ puts "ARGV: #{ARGV.inspect}"
2
3
 
3
4
  require "servel"
4
5
 
@@ -4,6 +4,16 @@ class Servel::EntryFactory
4
4
  AUDIO_EXTS = %w(.mp3 .m4a .wav)
5
5
  TEXT_EXTS = %w(.txt)
6
6
 
7
+ def self.home(href)
8
+ Servel::Entry.new(
9
+ type: "Dir",
10
+ listing_classes: "home directory",
11
+ icon: "🏠",
12
+ href: href,
13
+ name: "Listings Home"
14
+ )
15
+ end
16
+
7
17
  def self.top(href)
8
18
  Servel::Entry.new(
9
19
  type: "Dir",
@@ -27,6 +27,8 @@ class Servel::Index
27
27
  list.unshift(Servel::EntryFactory.top(@url_root == "" ? "/" : @url_root))
28
28
  end
29
29
 
30
+ list.unshift(Servel::EntryFactory.home("/")) if @url_root != ""
31
+
30
32
  list
31
33
  end
32
34
 
@@ -9,6 +9,10 @@
9
9
  margin: 0 auto 0 auto;
10
10
  }
11
11
 
12
+ #video:focus, #audio:focus {
13
+ outline: none;
14
+ }
15
+
12
16
  #audio {
13
17
  width: 100%;
14
18
  }
@@ -50,6 +50,6 @@ span.icon {
50
50
  text-align: center;
51
51
  }
52
52
 
53
- a.default.top, a.default.parent {
53
+ a.default.home, a.default.top, a.default.parent {
54
54
  font-style: oblique;
55
55
  }
@@ -1,3 +1,3 @@
1
1
  module Servel
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brenton "B-Train" Fletcher