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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d962be2a4ad6dc6601aa2286f7d4de23349605da
4
- data.tar.gz: bda9107afc0721585ff8304c6d7a531eea480d58
3
+ metadata.gz: 287c0d37f86c2db8a7fa5e4db99ad01913b6a8d8
4
+ data.tar.gz: 0f79b9211eda863ebc45b00aba19db9d8b5e8bf3
5
5
  SHA512:
6
- metadata.gz: 310d425f08fec632a0f4c81ca2cf62ea45fb2087bd450aa903fa99b06e90ed778d3eaadc8e905f3861e164739322a368ee3491875b7032b5bf16e7800b8e17b3
7
- data.tar.gz: bda285de8ccd444fb5bfc5419757461f0d909f4467b75a820714c44c1c913f9d01c85cbfd08b7653e66af3d978a75e80fe0524625e610ae5f5b12cefd7cdfbca
6
+ metadata.gz: ea2c1e0274c28c372b82d4325245bf8b078683f7a770cfb2f8d90943c563c4f00fb677e9eb270443fdd6d026204b0503b9d5559782492d593b72667a66c1a7e6
7
+ data.tar.gz: ca5a3d0eb8fdc20d27bed631b3b06d3d3c7181342d8fe47227bacdc8c25e4b44a04c01c309bb0074103b43df79b446d2757b301e342bbcc0708e8c79f27e5a56
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'kramdown'
22
+ spec.add_dependency 'rack'
23
+
22
24
  spec.add_development_dependency 'bundler'
23
25
  spec.add_development_dependency 'rake'
24
26
  end
@@ -15,7 +15,6 @@ module GrantFront
15
15
  end
16
16
 
17
17
  def unmock!
18
- return unless method_defined? :mock_grant
19
18
  alias_method :grant, :keep_grant
20
19
  end
21
20
  end
@@ -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 += "|:-:|#{policies[policy][:roles].map{':-:'}.join('|')}|\n"
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|
@@ -1,3 +1,3 @@
1
1
  module GrantFront
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -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.0
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-04 00:00:00.000000000 Z
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