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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8b9a7732006538788000f0f4bc628b26f0b0d76867ee2d8454b69a06133451a
4
- data.tar.gz: 4f30284e7d804e450394e02da9e3b45e19e594927c4b272f879250e162c87f3e
3
+ metadata.gz: 48ee6800d9e4b3fe0c287d125f7808c071a8df66b456873c52f3254d708d59f7
4
+ data.tar.gz: ebe4dc0b1ef3c4bc31b79c4d1cf5c24960a4b47bc5036b09210ed53135774442
5
5
  SHA512:
6
- metadata.gz: '09d068fd538fc155fd7fda4df5f3ec0ed872b94ebcf2d86f5c2884809ea2816ff1639f60d37b57497f29be33b6fd1640e5668f68657444ac5a9a1707df0c7e75'
7
- data.tar.gz: 7576dfbbd10f34f41dbd5ec685d86d3e3d465d7b9c58b5bba13f8bb2b3d524f3e947b2ac784805095dd1c8e49ceb11a7be1eec07c467c603da83e2cf01183071
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
- before_filter :do_before_request , TCONDITIONS
11
- before_filter :instantiate_classes
12
- before_filter :build_model_from_params
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
- before_filter(:only => [:create]){|c| check_for_create(@model)}
15
- before_filter(:only => [:update]){|c| check_for_update(@model)}
16
- before_filter(:only => [:destroy]){|c| check_for_destroy(@model)}
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
- before_filter :do_before_request , TCONDITIONS
7
- before_filter :initialize_vars , TCONDITIONS
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
- before_filter :do_before_request , TCONDITIONS
8
- before_filter :initialize_vars , TCONDITIONS
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
- before_filter :do_before_request , TCONDITIONS
13
- before_filter :initialize_vars , TCONDITIONS
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
- before_filter :do_before_request , TCONDITIONS
12
- before_filter :initialize_vars , TCONDITIONS
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
- before_filter :do_before_request , TCONDITIONS
14
- before_filter :initialize_vars , TCONDITIONS
15
- before_filter :is_admin_user , :only => [:create,:update,:destroy,:edit]
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
@@ -1,5 +1,5 @@
1
1
  class Auth::Workflow::WorkflowController < Auth::AuthenticatedController
2
2
 
3
- before_filter :is_admin_user , :only => CONDITIONS_FOR_TOKEN_AUTH
3
+ before_action :is_admin_user , :only => CONDITIONS_FOR_TOKEN_AUTH
4
4
 
5
5
  end
data/lib/auth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2019-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk