draw_uml 0.1.1 → 0.1.2

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: 84d21cba27e20484e4c5bd57181d5d63298df815
4
- data.tar.gz: 589e03563c47322ebdfcef9cfe5903bb11c5f459
3
+ metadata.gz: dd1697c861dc6734e7fbd8b7b14df436aa95cd0a
4
+ data.tar.gz: c91f7ba11cb7e53a10ef2b393c879b8c583d57c5
5
5
  SHA512:
6
- metadata.gz: a8d93af670205ea2de983c87158642680c1619b4fcfd53012b9fd3fa8f59cb54c04a4bb04488690f5ab82bf1d3977449c9c6c3c29fb6cfdc5980add44111011f
7
- data.tar.gz: 4eb2e671842556f9f0e37a2124fed0a5a41e1030be63377454b4da5d7237a1da09bcdcbb9c61ff419c65e31998d8ed3ba2b9e49ebde251aa6a09e0308b0d3b34
6
+ metadata.gz: 445229e093a9f9dbcfd247ba95377b0765947311838c989eb9b56ddc347630ba03fc583c93350d2bbb911994a1962d4d7c1419a36185e133e9b5abf62c3ed0ab
7
+ data.tar.gz: 14d5d7c2a71b2c16388908a261a7fcae58f946d40118a580589f384edade7ba4c36d0dcf131f087cf5ac488e585aa6c2ffe551c9e313b82834b7891aa9e13f50
@@ -3,7 +3,7 @@ module DrawUml
3
3
  DIAGRAM_EXTENSION = 'uml'.freeze
4
4
  DIAGRAM_PATH = 'doc/diagrams'.freeze
5
5
  STATIC_PATH = 'public'.freeze
6
- IMAGE_PATH = '/images/draw_uml'.freeze
6
+ IMAGE_PATH = '/images/draw-uml'.freeze
7
7
 
8
8
  class << self
9
9
  def options
@@ -57,7 +57,9 @@ module DrawUml
57
57
  end
58
58
  end
59
59
  raw += "<ul>" + arr.map do |entry|
60
- "<li><a href=#{request.script_name}#{entry.id}>#{entry.name}</a></li>"
60
+ raw = "<li"
61
+ raw += " class='active'"if entry.id == request.path_info
62
+ raw += "><a href=#{request.script_name}#{entry.id}>#{entry.name}</a></li>"
61
63
  end.join("\n")
62
64
  raw += "</ul></div></div>\n"
63
65
  raw
@@ -1,3 +1,3 @@
1
1
  module DrawUml
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -18,16 +18,25 @@
18
18
  white-space: pre-wrap;
19
19
  }
20
20
 
21
- a { color: #000; }
22
- a:visited { color: #666; }
23
- a:hover { color: #fff; background-color:#000; }
21
+ a {
22
+ color: #000;
23
+ text-decoration: none;
24
+ padding-left: 4px;
25
+ padding-right: 10px;
26
+ }
27
+ a:visited { color: #000; }
28
+ a:hover { color: #000; background-color:#fff; }
24
29
 
25
30
  h2 { padding-left: 10px; }
26
31
  h3 { padding-left: 10px; }
27
32
 
33
+ li.active { background-color: #666; }
34
+ li.active > a { color: #fff; }
35
+ li.active > a:hover { color: #fff; background-color:#666; }
36
+
28
37
  div.diagrams {
29
38
  float:left;
30
- padding-right: 30px;
39
+ padding-right: 10px;
31
40
  padding-bottom: 10px;
32
41
  border-right: solid #eee;
33
42
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draw_uml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ogom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-16 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack