easy_login 1.1.2 → 1.2.1

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: e00cd84fb0550b1f959fd94e89b221d5b8ae86bd
4
- data.tar.gz: c570dcae15f361d3c20809352f027d614f2395f3
3
+ metadata.gz: 6194aa3fc4827e994170926d3ec41f3fea890f62
4
+ data.tar.gz: ef6dcb4c78ca7d217ae52bb38e1443cba0f50b74
5
5
  SHA512:
6
- metadata.gz: 85626c496515785223794660e051b19e58a1c1a97e3b630683fd1054df7a4e2396cf1c2835ffaf57a2de7025cf210225d64b2fbfb60c193870efcd04218ed57a
7
- data.tar.gz: 03f6b8b3ac5394d18157d59e106e0167a1d39c9938acbecf8a2e1e9375bba2e7afc90e6adbcad665440f8149788e70c8fd3670df98b59eea323fae8f0a024f83
6
+ metadata.gz: 8682402e0e9f95557dfeec1dd190e38d6e1a21a010c32e51929dc60af8c5f8c1283eb3093f676438785ed6d8b733a8b7cbd277c72f58a5047be78c0cc98b427f
7
+ data.tar.gz: 6270c1922ba160529ea67b5a5729080b16d06a1bedd96ebd8fee04737a46751e1e7e700ed40f4cce8c8d7e75d85f87106867e4197c81774598f94e8dbd8783a0
data/README.md CHANGED
@@ -43,7 +43,7 @@ And then abosultely use all methods above in controller and view
43
43
 
44
44
  Also you can declare a redirect schema for differenct user accessing differect
45
45
  controller and action
46
- Add a config file to `config/redirect_to.yml` as following
46
+ Add a config file to `config/http_permissions.yml` as following
47
47
 
48
48
  ```yaml
49
49
  default:
@@ -73,9 +73,8 @@ controller:
73
73
  user_role3: raise->{message}
74
74
  ```
75
75
 
76
- The `user_role` if the role attribute of your user model configed in
77
- `config/application.rb` or `config/environments/*.rb`
78
- `action` has 3 types
76
+ The `user_role` if the role attribute of your user model configed in `config/application.rb` or `config/environments/*.rb`
77
+ The `action` has 3 types
79
78
 
80
79
  ```
81
80
  pass --> run the logic in action normally
@@ -15,7 +15,7 @@ module EasyLogin
15
15
 
16
16
  private
17
17
  def self.parse(controller_ins)
18
- per = YAML.load_file Rails.root.join "config", "easy_login_permission.yml"
18
+ per = YAML.load_file Rails.root.join "config", "http_permissions.yml"
19
19
  controller = controller_ins.params[:controller]
20
20
  action = controller_ins.params[:action]
21
21
 
@@ -1,3 +1,3 @@
1
1
  module EasyLogin
2
- VERSION = "1.1.2"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - goshan