thecore_ftp_helpers 1.1.27 → 2.0.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56ac25275f502a29e707b7b5b61ae04c08cd1ca2c9a2381b36cef86e3425ef8
|
4
|
+
data.tar.gz: fc2ac8cbaf047d70b4688420c44807b659d6b9fba04421abffc0f71535ff4657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627294d678c45e82694d4ff4aa68224bc03dca8088681abc1e9df73577ed1bfc1cf2a6acac35b9219387760430769acfba61fdad51084bddcddc6e6b3d24a605
|
7
|
+
data.tar.gz: ba44f7334d3720214c3186e6747958553f68ee44bfb2746cab5900c2cb653d27e31532ba79b59205781feb6a6237f168c6fb7eafba1721a23f1ee56e6b50963e
|
data/lib/thecore_ftp_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ftp_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: thecore_backend_commons
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.3'
|
27
27
|
description: Thecorized thecore_ftp_helpers full description.
|
28
28
|
email:
|
29
29
|
- gabriele.tassoni@gmail.com
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- app/assets/config/thecore_ftp_helpers_manifest.js
|
38
38
|
- config/initializers/thecore_ftp_helpers_after_initialize.rb
|
39
39
|
- config/routes.rb
|
40
|
-
- lib/abilities_thecore_ftp_helpers_concern.rb
|
41
40
|
- lib/tasks/thecore_ftp_helpers_tasks.rake
|
42
41
|
- lib/thecore_ftp_helpers.rb
|
43
42
|
- lib/thecore_ftp_helpers/engine.rb
|
@@ -61,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '0'
|
63
62
|
requirements: []
|
64
|
-
rubygems_version: 3.0.
|
63
|
+
rubygems_version: 3.0.3
|
65
64
|
signing_key:
|
66
65
|
specification_version: 4
|
67
66
|
summary: Thecorized thecore_ftp_helpers
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'active_support/concern'
|
3
|
-
|
4
|
-
module ThecoreFtpHelperAbilitiesConcern
|
5
|
-
extend ActiveSupport::Concern
|
6
|
-
included do
|
7
|
-
def thecore_ftp_helpers_abilities user
|
8
|
-
if user
|
9
|
-
# if the user is logged in, it can do certain tasks regardless his role
|
10
|
-
if user.admin?
|
11
|
-
# if the user is an admin, it can do a lot of things, usually
|
12
|
-
end
|
13
|
-
|
14
|
-
if user.has_role? :role
|
15
|
-
# a specific role, brings specific powers
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# include the extension
|
23
|
-
TheCoreAbilities.send(:include, ThecoreFtpHelperAbilitiesConcern)
|