action_policy 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 4cee4345414e65d8224087f9cdd157720ddfa03c06da07c361b547a06ea95b81
4
- data.tar.gz: 9a6ea5a23cf96b4332a7de1478832598f0d33f7fb579f4310ddcad17d4f327ec
3
+ metadata.gz: c78a946e78ef3409dd89d58e7baebaf387140ebfe2cfe8c03d761109ab08dc57
4
+ data.tar.gz: 698fe734b71568ad5ea96e1eda2606459cbaee029aace9082f49baa38608cb2d
5
5
  SHA512:
6
- metadata.gz: 310ec84828c56077f36833cdb019ef3f75d95565f3bf5aee2017287b3982c9b839d478735046b5bc9881d6ecdd64ffee4de55c94779845e98ce41ac776d0f7b2
7
- data.tar.gz: bc02f267ee84f973b4e4253f078f3d2a09663a5fa8a863aa6ba98775f653f13c03d33568331149ea0f9365cf35cf67b06d89315bde4f70790893c841af309548
6
+ metadata.gz: 8732afad711b12fad60018e4bb959dddf4ee881d5a6e673d37054928312d1baf0bc1abd80c7b3fc9b354f1ea4eda705dd95779890cf6ba3a0ffe5dd4129bc9c8
7
+ data.tar.gz: d4b0f1ee328c97b01a22a039e39c34800fc07d0d8be49dd68aec7925cb90e0bf359c209216410446d4cf5207c59495f9568e7e163c7c753c57a936d980db0058
@@ -1,6 +1,10 @@
1
1
  ## master
2
2
 
3
- ## 0.1.0 (2018-04-21)
3
+ ## 0.1.2 (2018-05-09)
4
+
5
+ - [Fix [#6](https://github.com/palkan/action_policy/issues/6)] Fix controller concern to work with API/Metal controllers. ([@palkan][])
6
+
7
+ ## 0.1.1 (2018-04-21)
4
8
 
5
9
  - [Fix [#2](https://github.com/palkan/action_policy/issues/2)] Fix namespace lookup when Rails autoloading is involved. ([@palkan][])
6
10
 
@@ -2,13 +2,13 @@
2
2
  font-weight: 400;
3
3
  font-style: normal;
4
4
  font-family: "Stem Text";
5
- src: url("http://cdn.evilmartians.com/front/fonts/subset-StemText-Regular.woff") format("woff");
5
+ src: url("//cdn.evilmartians.com/front/fonts/subset-StemText-Regular.woff") format("woff");
6
6
  }
7
7
  @font-face {
8
8
  font-weight: 700;
9
9
  font-style: normal;
10
10
  font-family: "Stem Text";
11
- src: url("http://cdn.evilmartians.com/front/fonts/subset-StemText-Bold.woff") format("woff");
11
+ src: url("//cdn.evilmartians.com/front/fonts/subset-StemText-Bold.woff") format("woff");
12
12
  }
13
13
 
14
14
  @font-face {
@@ -4,8 +4,20 @@
4
4
  <meta charset="UTF-8">
5
5
  <title>Action Policy: authorization framework for Ruby/Rails applications</title>
6
6
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
- <meta name="description" content="Description">
8
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
8
+ <meta itemprop="name" content="Action Policy" />
9
+ <meta property="og:title" content="Action Policy" />
10
+ <meta name="description" content="Athorization framework for Ruby/Rails application" />
11
+ <meta itemprop="description" content="Authorization framework for Ruby/Rails application" />
12
+ <meta property="og:description" content="Authorization framework for Ruby/Rails application" />
13
+ <meta itemprop="image" content="http://actionpolicy.evilmartians.io/assets/images/banner.png" />
14
+ <meta property="og:image" content="http://actionpolicy.evilmartians.io/assets/images/banner.png" />
15
+ <meta name="twitter:card" content="summary_large_image" />
16
+ <meta name="twitter:site" content="@palkan_tula" />
17
+ <meta name="twitter:creator" content="@palkan_tula" />
18
+ <meta property="og:site_name" content="Action Policy" />
19
+ <meta name="keywords" content="ruby, rails, authorization, open-source" />
20
+ <meta name="theme-color" content="#CB2028" />
9
21
  <link rel="stylesheet" href="assets/vue.min.css">
10
22
  <link rel="stylesheet" href="assets/styles.css">
11
23
  </head>
@@ -23,7 +23,7 @@ module ActionPolicy
23
23
  include ActionPolicy::Behaviours::Namespaced
24
24
 
25
25
  included do
26
- helper_method :allowed_to?
26
+ helper_method :allowed_to? if respond_to?(:helper_method)
27
27
 
28
28
  attr_writer :authorize_count
29
29
 
@@ -83,7 +83,7 @@ module ActionPolicy
83
83
 
84
84
  # Skips verify_authorized after_action callback.
85
85
  def skip_verify_authorized(**options)
86
- skip_after_action :verify_authorized, **options\
86
+ skip_after_action :verify_authorized, **options
87
87
  end
88
88
  end
89
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionPolicy
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_policy
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
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-22 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,6 +123,7 @@ files:
123
123
  - docs/assets/docsify.min.js
124
124
  - docs/assets/fonts/FiraCode-Medium.woff
125
125
  - docs/assets/fonts/FiraCode-Regular.woff
126
+ - docs/assets/images/banner.png
126
127
  - docs/assets/images/cache.png
127
128
  - docs/assets/images/cache.svg
128
129
  - docs/assets/images/layer.png