phcscriptcdnpro 6.0.0 → 6.0.1

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: 5afd0eb74054e6501c72af0d4833a6f30f6a691c
4
- data.tar.gz: 651c7559e5637a63f49b57a3c4b38b9984a2e77f
3
+ metadata.gz: 4105f7eda76431200152826a05e3dbd1f886335d
4
+ data.tar.gz: 7ce22c7874cee4c8593fe22a434b384198b916b6
5
5
  SHA512:
6
- metadata.gz: f03739282d860856efd13ab967e7da9bbc74d0e5919185fba6174d75fb8861ccbedb2bdf381a2833816cef93fc8b63f32a9eb7b2add5c5fa6d67d9df79cdecb7
7
- data.tar.gz: 41a0ec6408a72418dcde3c8f56dac3442a209e01487ed398cd4fcb4ad1f552965a2ea85f558884db80b4adac6fc19cadc6bbe86b2e8c4adc3aba65213c35fb85
6
+ metadata.gz: 6ed301c7137c4019aecc0d0677a477330a04eabfb109890ef136709d0ab4d9ed648c8347a3f2d9b5ac067d1395aa427dfed7a6b5290b1895b95dc19afddf5e33
7
+ data.tar.gz: 21580a4cc37148132c174701bf2fd421dadfa8ae7cee68e8373608fabcf94ecb2f515c4999ba3118568bbaf80c7bacb15ccdb196e9878355f72347c0dcb43a5b
@@ -1,9 +1,12 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Security Filters
5
5
  protect_from_forgery with: :exception
6
6
 
7
+ # Load Helpers for PHCPress Widgets
8
+ before_action :phcpress_recent_posts
9
+
7
10
  # Papertrail Whodunnit Username
8
11
  def user_for_paper_trail
9
12
  # Default is: current_user rescue nil
@@ -16,7 +19,7 @@ module Phcscriptcdnpro
16
19
  end
17
20
 
18
21
  def membership_info
19
- AuthRocket::Membership.all(user_id: current_user.id).first
22
+ AuthRocket::Membership.all(user_id: current_user.id).first
20
23
  end
21
24
 
22
25
  #Authentication
@@ -42,6 +45,15 @@ module Phcscriptcdnpro
42
45
  helper Phctitleseo::Engine.helpers
43
46
  helper Phcnotifi::Engine.helpers
44
47
  helper Phcaccountspro::Engine.helpers
45
-
48
+
49
+ private
50
+
51
+ # PHCPress Widget Helpers
52
+ def phcpress_recent_posts
53
+ @recent_posts = Phcpresspro::Articles::Post.all
54
+ end
55
+
46
56
  end
47
57
  end
58
+
59
+
@@ -18,5 +18,3 @@ module Phcscriptcdnpro
18
18
 
19
19
  end
20
20
  end
21
-
22
-
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "6.0.0"
2
+ VERSION = "6.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -105,6 +105,9 @@ dependencies:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
107
  version: '4.2'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 4.2.1
108
111
  type: :runtime
109
112
  prerelease: false
110
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -112,6 +115,9 @@ dependencies:
112
115
  - - "~>"
113
116
  - !ruby/object:Gem::Version
114
117
  version: '4.2'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 4.2.1
115
121
  - !ruby/object:Gem::Dependency
116
122
  name: phctitleseo
117
123
  requirement: !ruby/object:Gem::Requirement