wordjelly-auth 1.4.2 → 1.4.3
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 +4 -4
- data/app/controllers/auth/authenticated_controller.rb +6 -6
- data/app/controllers/auth/shopping/cart_items_controller.rb +2 -2
- data/app/controllers/auth/shopping/carts_controller.rb +2 -2
- data/app/controllers/auth/shopping/discounts_controller.rb +2 -2
- data/app/controllers/auth/shopping/payments_controller.rb +2 -2
- data/app/controllers/auth/shopping/products_controller.rb +3 -3
- data/app/controllers/auth/workflow/workflow_controller.rb +1 -1
- data/lib/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48ee6800d9e4b3fe0c287d125f7808c071a8df66b456873c52f3254d708d59f7
|
|
4
|
+
data.tar.gz: ebe4dc0b1ef3c4bc31b79c4d1cf5c24960a4b47bc5036b09210ed53135774442
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2f9992d590b02b8f2fc486b50ccb6b83959c10d0757bc9e5f65fedd513753899efeba2de588f67f539b29f5c933ebf7f5e38a76428967414f6a2a5157140757
|
|
7
|
+
data.tar.gz: 8c5826ae2030b694e190bd25596c3ca4fc1db4ff3d67d81ad0cf66e3ead338376d8c2f6468c6370e8a7096e1163a2297d8036d1bce8e06488000d649b055fa54
|
|
@@ -7,13 +7,13 @@ class Auth::AuthenticatedController < Auth::ApplicationController
|
|
|
7
7
|
|
|
8
8
|
CONDITIONS_FOR_TOKEN_AUTH = [:create,:update,:destroy,:edit,:new,:index]
|
|
9
9
|
TCONDITIONS = {:only => CONDITIONS_FOR_TOKEN_AUTH}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
before_action :do_before_request , TCONDITIONS
|
|
11
|
+
before_action :instantiate_classes
|
|
12
|
+
before_action :build_model_from_params
|
|
13
13
|
## add the filters for check_for_create, check_for_update and check_for_destroy
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
before_action(:only => [:create]){|c| check_for_create(@model)}
|
|
15
|
+
before_action(:only => [:update]){|c| check_for_update(@model)}
|
|
16
|
+
before_action(:only => [:destroy]){|c| check_for_destroy(@model)}
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -3,6 +3,6 @@ class Auth::Shopping::CartItemsController < Auth::Shopping::ShoppingController
|
|
|
3
3
|
TCONDITIONS = {:only => Auth.configuration.cart_item_controller_token_auth_actions}
|
|
4
4
|
include Auth::Concerns::DeviseConcern
|
|
5
5
|
include Auth::Concerns::TokenConcern
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
before_action :do_before_request , TCONDITIONS
|
|
7
|
+
before_action :initialize_vars , TCONDITIONS
|
|
8
8
|
end
|
|
@@ -4,6 +4,6 @@ class Auth::Shopping::CartsController < Auth::Shopping::ShoppingController
|
|
|
4
4
|
##this ensures api access to this controller.
|
|
5
5
|
include Auth::Concerns::DeviseConcern
|
|
6
6
|
include Auth::Concerns::TokenConcern
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
before_action :do_before_request , TCONDITIONS
|
|
8
|
+
before_action :initialize_vars , TCONDITIONS
|
|
9
9
|
end
|
|
@@ -9,8 +9,8 @@ class Auth::Shopping::DiscountsController < Auth::Shopping::ShoppingController
|
|
|
9
9
|
##this ensures api access to this controller.
|
|
10
10
|
include Auth::Concerns::DeviseConcern
|
|
11
11
|
include Auth::Concerns::TokenConcern
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
before_action :do_before_request , TCONDITIONS
|
|
13
|
+
before_action :initialize_vars , TCONDITIONS
|
|
14
14
|
|
|
15
15
|
## remember to add the before_filter is_admin as well.
|
|
16
16
|
|
|
@@ -8,6 +8,6 @@ class Auth::Shopping::PaymentsController < Auth::Shopping::ShoppingController
|
|
|
8
8
|
##this ensures api access to this controller.
|
|
9
9
|
include Auth::Concerns::DeviseConcern
|
|
10
10
|
include Auth::Concerns::TokenConcern
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
before_action :do_before_request , TCONDITIONS
|
|
12
|
+
before_action :initialize_vars , TCONDITIONS
|
|
13
13
|
end
|
|
@@ -10,8 +10,8 @@ class Auth::Shopping::ProductsController < Auth::Shopping::ShoppingController
|
|
|
10
10
|
##this ensures api access to this controller.
|
|
11
11
|
include Auth::Concerns::DeviseConcern
|
|
12
12
|
include Auth::Concerns::TokenConcern
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
before_action :do_before_request , TCONDITIONS
|
|
14
|
+
before_action :initialize_vars , TCONDITIONS
|
|
15
|
+
before_action :is_admin_user , :only => [:create,:update,:destroy,:edit]
|
|
16
16
|
|
|
17
17
|
end
|
data/lib/auth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wordjelly-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bhargav
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-04-
|
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|