the_role_api 3.7 → 3.8

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: d81e985320ed9b2649e9f54a61013728671b4756
4
- data.tar.gz: d2e99172718d8318d91d4951677a67587e86ddb1
3
+ metadata.gz: 057a9e358ecd4bd9b8cae771303a35c6a95c2248
4
+ data.tar.gz: a29a59233b278ad8fe323bc75486f532f38cbfb7
5
5
  SHA512:
6
- metadata.gz: d312b089048570ba30172f810fdbda6116415a9a9aec82e8825d7d49d3cebe36c7d0528d1f59f5f48bd8f388e9599836cdf52e2a808dda9fb463c658b1a33f2e
7
- data.tar.gz: 044828e087e245e9b48c716b15ed85fe9727e0a0d12838928eb9df726507b1b0c0bf56c1156dc503d1e31d9a5a9fae9eb6c063bb34fc54539b8fd619edbb79f6
6
+ metadata.gz: 0c2667414401a7d3462a023ef2b5f3e5e964a264f6f713af34de91be0a4b7d854c391f273a93c2b0c3a204fb6c5b59f11241c8f871f69e378dbb0ffa557dd764
7
+ data.tar.gz: dff98bc998175d50212d31618b1ac616c62c6e27daf692749d8204dba1c0c2bceae5a7cff7a0a9701f5c1e739b90c42e64300e0bb2b6e5e71245f245a411af61
@@ -6,6 +6,7 @@ TheRole.configure do |config|
6
6
 
7
7
  # layout for Management panel
8
8
  # config.layout = :the_role_management_panel
9
+ # config.layout_title = 'The Role Gem'
9
10
 
10
11
  # config.default_user_role = nil
11
12
  # config.first_user_should_be_admin = false
@@ -1,30 +1,32 @@
1
- module TheRole
2
- def self.configure(&block)
3
- yield @config ||= TheRole::Configuration.new
4
- end
5
-
6
- def self.config
7
- @config
8
- end
9
-
10
- # Configuration class
11
- class Configuration
12
- include ActiveSupport::Configurable
13
- config_accessor :layout,
14
- :destroy_strategy,
15
- :default_user_role,
16
- :access_denied_method,
17
- :login_required_method,
18
- :first_user_should_be_admin
19
- end
20
-
21
- configure do |config|
22
- config.layout = :application
23
-
24
- config.default_user_role = nil
25
- config.access_denied_method = nil
26
- config.login_required_method = nil
27
- config.destroy_strategy = nil
28
- config.first_user_should_be_admin = false
29
- end
30
- end
1
+ module TheRole
2
+ def self.configure(&block)
3
+ yield @config ||= TheRole::Configuration.new
4
+ end
5
+
6
+ def self.config
7
+ @config
8
+ end
9
+
10
+ # Configuration class
11
+ class Configuration
12
+ include ActiveSupport::Configurable
13
+ config_accessor :layout,
14
+ :layout_title,
15
+ :destroy_strategy,
16
+ :default_user_role,
17
+ :access_denied_method,
18
+ :login_required_method,
19
+ :first_user_should_be_admin
20
+ end
21
+
22
+ configure do |config|
23
+ config.layout = :application
24
+ config.layout_title = 'The Role Gem'
25
+
26
+ config.default_user_role = nil
27
+ config.access_denied_method = nil
28
+ config.login_required_method = nil
29
+ config.destroy_strategy = nil
30
+ config.first_user_should_be_admin = false
31
+ end
32
+ end
data/the_role_api.gemspec CHANGED
@@ -1,6 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "the_role_api/version"
3
+
4
+ module TheRoleApi
5
+ VERSION = "3.8"
6
+ end
4
7
 
5
8
  Gem::Specification.new do |s|
6
9
  s.name = "the_role_api"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_role_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.7'
4
+ version: '3.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya N. Zykin [the-teacher]
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-04 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -93,7 +93,6 @@ files:
93
93
  - lib/the_role_api/config.rb
94
94
  - lib/the_role_api/hash.rb
95
95
  - lib/the_role_api/trash/the_class_exists.rb
96
- - lib/the_role_api/version.rb
97
96
  - the_role_api.gemspec
98
97
  homepage: https://github.com/TheRole/the_role_api
99
98
  licenses:
@@ -1 +0,0 @@
1
- require_relative '../../gem_version'