grant-front 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grant-front.gemspec +2 -0
- data/lib/grant-front.rb +0 -1
- data/lib/grant-front/diagram.rb +1 -1
- data/lib/grant-front/version.rb +1 -1
- data/lib/templates/layouts/application.html.erb +13 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287c0d37f86c2db8a7fa5e4db99ad01913b6a8d8
|
4
|
+
data.tar.gz: 0f79b9211eda863ebc45b00aba19db9d8b5e8bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea2c1e0274c28c372b82d4325245bf8b078683f7a770cfb2f8d90943c563c4f00fb677e9eb270443fdd6d026204b0503b9d5559782492d593b72667a66c1a7e6
|
7
|
+
data.tar.gz: ca5a3d0eb8fdc20d27bed631b3b06d3d3c7181342d8fe47227bacdc8c25e4b44a04c01c309bb0074103b43df79b446d2757b301e342bbcc0708e8c79f27e5a56
|
data/grant-front.gemspec
CHANGED
data/lib/grant-front.rb
CHANGED
data/lib/grant-front/diagram.rb
CHANGED
@@ -21,7 +21,7 @@ module GrantFront
|
|
21
21
|
text += "\n### #{policy.to_s.gsub(/Policy$/, '')} \n\n"
|
22
22
|
if policies[policy][:roles].count > 0
|
23
23
|
text += "||#{policies[policy][:roles].join('|')}|\n"
|
24
|
-
text += "
|
24
|
+
text += "|:-|#{policies[policy][:roles].map{':-:'}.join('|')}|\n"
|
25
25
|
policies[policy][:methods].keys.each do |method|
|
26
26
|
raw = "|#{method}|"
|
27
27
|
policies[policy][:roles].each do |role|
|
data/lib/grant-front/version.rb
CHANGED
@@ -17,10 +17,23 @@
|
|
17
17
|
white-space: pre-wrap;
|
18
18
|
}
|
19
19
|
|
20
|
+
h2 { padding-left: 10px; }
|
21
|
+
|
20
22
|
div.policy {
|
21
23
|
padding-top: 8px;
|
22
24
|
padding-left: 80px;
|
23
25
|
}
|
26
|
+
|
27
|
+
div.policy th,
|
28
|
+
div.policy td {
|
29
|
+
border: solid 1px #999;
|
30
|
+
padding: 2px 4px;
|
31
|
+
}
|
32
|
+
|
33
|
+
div.policy th {
|
34
|
+
background: #E6E6E6;
|
35
|
+
color: #666;
|
36
|
+
}
|
24
37
|
</style>
|
25
38
|
|
26
39
|
<script type="text/ecmascript">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grant-front
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|