phcscriptcdnpro 11.0.1 → 11.0.2

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: c64ead64722d3443d872aa2a3d9c79e7486f98b9
4
- data.tar.gz: e1deb6ef2fdcb04330b43e500cdea81bf095b6c8
3
+ metadata.gz: 546e68a873880454576ce46ad56d1061a6f870d2
4
+ data.tar.gz: a75b144519b8fb6e283d2eb552ba00a0bed44426
5
5
  SHA512:
6
- metadata.gz: fbf1cbab4aae0ae489cff9b6526342d3b54a63191775f873a2f086167205d80d78d0ecc60d731d7561c56039f7591dd8c5831c83eea358c2b8b4735d5c7301c4
7
- data.tar.gz: 7ac9939f89775bc18f25856dbe0c9d5c2ffeaf358674a18bddef1c8437b90a964cd36e57694520e718546b67fe1d5d8e8b4001e06938172705f7342328b5e3fc
6
+ metadata.gz: 0f45c1b4de775128a71ae7d708062f2e27ccb890fcd9b4e5600a3f6792fcdd70200f5e6929972ba13b11ca7e435dc5f81f1a612759e4a0e6c85665e2de1642f3
7
+ data.tar.gz: c546e76facbc910417fb613e0dbc3ab1ad9352b947fc33ae4fdbadc2cf92a3a9d1852f72ad76ae8263daf640f65aa3bc937d4c221773f1f71f899b30ad3f37cd
@@ -5,7 +5,35 @@ module Phcscriptcdnpro
5
5
  protect_from_forgery with: :exception
6
6
 
7
7
  # Load Helpers for PHCPress Widgets
8
- before_action :phcpress_recent_posts
8
+ before_action :phcpress_recent_posts
9
+
10
+ # Load Helpers
11
+ helper Phctitleseo::Engine.helpers
12
+ helper Phcnotifi::Engine.helpers
13
+ helper Phcaccountspro::Engine.helpers
14
+
15
+ # AuthRocket Definitions
16
+ def require_user
17
+ unless current_user
18
+ params.permit!
19
+ session[:last_url] = request.get? ? url_for(params) : url_for
20
+ redirect_to new_login_url
21
+ end
22
+ end
23
+
24
+ def current_user
25
+ @_current_user ||= AuthRocket::Session.from_token(session[:ar_token]).try(:user)
26
+ end
27
+ helper_method :current_user
28
+
29
+ def new_login_url
30
+ ENV['AUTHROCKET_LOGIN_URL']
31
+ end
32
+ helper_method :new_login_url
33
+
34
+ def membership_info
35
+ AuthRocket::Membership.all(user_id: current_user.id).first
36
+ end
9
37
 
10
38
  # Papertrail Whodunnit Username
11
39
  def user_for_paper_trail
@@ -13,17 +41,17 @@ module Phcscriptcdnpro
13
41
  current_user ? current_user.username : 'Public user'
14
42
  end
15
43
 
16
- # Load Helpers
17
- helper Phctitleseo::Engine.helpers
18
- helper Phcnotifi::Engine.helpers
19
- helper Phcaccountspro::Engine.helpers
44
+ # Grab Member Information
45
+ def get_member_profile_info
46
+ @members_profile_info = Member::Profile.find(params[:profile_id])
47
+ end
20
48
 
21
49
  private
22
50
 
23
- # PHCPress Widget Helpers
24
- def phcpress_recent_posts
25
- @recent_posts = Phcpresspro::Articles::Post.all
26
- end
51
+ # PHCPress Widget Helpers
52
+ def phcpress_recent_posts
53
+ @recent_posts = Phcpresspro::Articles::Post.all
54
+ end
27
55
 
28
56
  end
29
57
  end
@@ -4,5 +4,5 @@
4
4
  <% end %>
5
5
  </div>
6
6
  <div>
7
- &copy; 2012-<%= Time.now.year %> - v9.0.0 - RELEASED - MAY-01-<%= Date.today.year %>
7
+ &copy; 2012-<%= Time.now.year %> - v11.0.2 - RELEASED - MAY-11-<%= Date.today.year %>
8
8
  </div>
data/config/routes.rb CHANGED
@@ -7,7 +7,7 @@ Phcscriptcdnpro::Engine.routes.draw do
7
7
 
8
8
  # Script CDN Listing System
9
9
  namespace :script do
10
- # Main Script Module
10
+ # Main Script Module
11
11
  resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
12
12
  resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
13
13
  end
@@ -27,4 +27,7 @@ Phcscriptcdnpro::Engine.routes.draw do
27
27
  end
28
28
  end
29
29
 
30
+ # Mount Account Routes
31
+ mount Phcaccountspro::Engine, :at => '/'
32
+
30
33
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "11.0.1"
2
+ VERSION = "11.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.1
4
+ version: 11.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,6 +65,9 @@ dependencies:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '6.0'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 6.0.2
68
71
  type: :runtime
69
72
  prerelease: false
70
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,6 +75,9 @@ dependencies:
72
75
  - - "~>"
73
76
  - !ruby/object:Gem::Version
74
77
  version: '6.0'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 6.0.2
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: phcpresspro
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +85,9 @@ dependencies:
79
85
  - - "~>"
80
86
  - !ruby/object:Gem::Version
81
87
  version: '12.0'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 12.0.2
82
91
  type: :runtime
83
92
  prerelease: false
84
93
  version_requirements: !ruby/object:Gem::Requirement
@@ -86,6 +95,9 @@ dependencies:
86
95
  - - "~>"
87
96
  - !ruby/object:Gem::Version
88
97
  version: '12.0'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 12.0.2
89
101
  - !ruby/object:Gem::Dependency
90
102
  name: jquery-rails
91
103
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +232,20 @@ dependencies:
220
232
  - - ">="
221
233
  - !ruby/object:Gem::Version
222
234
  version: 3.2.6
235
+ - !ruby/object:Gem::Dependency
236
+ name: webpacker
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "~>"
240
+ - !ruby/object:Gem::Version
241
+ version: '1.2'
242
+ type: :runtime
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - "~>"
247
+ - !ruby/object:Gem::Version
248
+ version: '1.2'
223
249
  - !ruby/object:Gem::Dependency
224
250
  name: tinymce-rails
225
251
  requirement: !ruby/object:Gem::Requirement
@@ -243,7 +269,7 @@ dependencies:
243
269
  version: '3.0'
244
270
  - - ">="
245
271
  - !ruby/object:Gem::Version
246
- version: 3.0.6
272
+ version: 3.0.7
247
273
  type: :runtime
248
274
  prerelease: false
249
275
  version_requirements: !ruby/object:Gem::Requirement
@@ -253,7 +279,7 @@ dependencies:
253
279
  version: '3.0'
254
280
  - - ">="
255
281
  - !ruby/object:Gem::Version
256
- version: 3.0.6
282
+ version: 3.0.7
257
283
  - !ruby/object:Gem::Dependency
258
284
  name: rabl
259
285
  requirement: !ruby/object:Gem::Requirement
@@ -616,8 +642,7 @@ dependencies:
616
642
  - - "~>"
617
643
  - !ruby/object:Gem::Version
618
644
  version: '3.4'
619
- description: PHCScriptCDN(Pro) rails script management engine for website script CDN
620
- listings.
645
+ description: PHCScriptCDN(Pro) Rails 5.1 listings management engine for script CDNs.
621
646
  email:
622
647
  - info@phcnetworks.net
623
648
  executables: []
@@ -725,5 +750,5 @@ rubyforge_project:
725
750
  rubygems_version: 2.6.8
726
751
  signing_key:
727
752
  specification_version: 4
728
- summary: ScriptCDN(Pro) Rails Script Listings Engine
753
+ summary: Rails 5.1 Engine - Script Listings
729
754
  test_files: []