phcscriptcdnpro 5.3.5 → 5.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +8 -0
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +8 -0
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +8 -0
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +8 -0
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +8 -0
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +11 -3
- data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +3 -9
- data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +2 -2
- data/lib/phcscriptcdnpro/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78102e981cdc72b0f8813c06916d4e160ea8c89e
|
4
|
+
data.tar.gz: d39737a2ead32b921c4bb98dbd44d146aab91b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31724705ae12b8fa7b4e35db5bd3c45396123370ea876320a19ea2ef88e89ae4eb99dc28350dae88fc87232ab48616d8568190f1a3f2e14e94ddff1789a37005
|
7
|
+
data.tar.gz: 1b86d9e1a53aaa534224175ef9bfd0fa29fb9edb5495ad8762fe35bb5f307e2c9e5759632738f765a3dce746250bc37a78e440f08dd0fa5a63346b81b8dd6df2
|
@@ -28,6 +28,10 @@ module Phcscriptcdnpro
|
|
28
28
|
# CREATE - Script Author
|
29
29
|
def create
|
30
30
|
@script_author = Script::Author.new(script_author_params)
|
31
|
+
@script_author.user_id = current_user.id
|
32
|
+
@script_author.user_name = current_user.username
|
33
|
+
@script_author.membership_id = membership_info.id
|
34
|
+
@script_author.oganization_id = membership_info.org_id
|
31
35
|
if @script_author.save
|
32
36
|
redirect_to script_authors_url, notice: 'Author was successfully created.'
|
33
37
|
else
|
@@ -37,6 +41,10 @@ module Phcscriptcdnpro
|
|
37
41
|
|
38
42
|
# PATCH/PUT - Script Author
|
39
43
|
def update
|
44
|
+
@script_author.user_id = current_user.id
|
45
|
+
@script_author.user_name = current_user.username
|
46
|
+
@script_author.membership_id = membership_info.id
|
47
|
+
@script_author.oganization_id = membership_info.org_id
|
40
48
|
if @script_author.update(script_author_params)
|
41
49
|
redirect_to script_authors_url, notice: 'Author was successfully updated.'
|
42
50
|
else
|
@@ -28,6 +28,10 @@ module Phcscriptcdnpro
|
|
28
28
|
# CREATE - Script Extension
|
29
29
|
def create
|
30
30
|
@script_extension = Script::Extension.new(script_extension_params)
|
31
|
+
@script_extension.user_id = current_user.id
|
32
|
+
@script_extension.user_name = current_user.username
|
33
|
+
@script_extension.membership_id = membership_info.id
|
34
|
+
@script_extension.oganization_id = membership_info.org_id
|
31
35
|
if @script_extension.save
|
32
36
|
redirect_to script_extensions_url, notice: 'Extension was successfully created.'
|
33
37
|
else
|
@@ -37,6 +41,10 @@ module Phcscriptcdnpro
|
|
37
41
|
|
38
42
|
# PATCH/PUT - Script Extension
|
39
43
|
def update
|
44
|
+
@script_extension.user_id = current_user.id
|
45
|
+
@script_extension.user_name = current_user.username
|
46
|
+
@script_extension.membership_id = membership_info.id
|
47
|
+
@script_extension.oganization_id = membership_info.org_id
|
40
48
|
if @script_extension.update(script_extension_params)
|
41
49
|
redirect_to script_extensions_url, notice: 'Extension was successfully updated.'
|
42
50
|
else
|
@@ -28,6 +28,10 @@ module Phcscriptcdnpro
|
|
28
28
|
# POST - Script Licences
|
29
29
|
def create
|
30
30
|
@script_licence = Script::Licence.new(script_licence_params)
|
31
|
+
@script_licence.user_id = current_user.id
|
32
|
+
@script_licence.user_name = current_user.username
|
33
|
+
@script_licence.membership_id = membership_info.id
|
34
|
+
@script_licence.oganization_id = membership_info.org_id
|
31
35
|
if @script_licence.save
|
32
36
|
redirect_to script_licences_url, notice: 'Licence was successfully created.'
|
33
37
|
else
|
@@ -37,6 +41,10 @@ module Phcscriptcdnpro
|
|
37
41
|
|
38
42
|
# PATCH/PUT - Script Licences
|
39
43
|
def update
|
44
|
+
@script_licence.user_id = current_user.id
|
45
|
+
@script_licence.user_name = current_user.username
|
46
|
+
@script_licence.membership_id = membership_info.id
|
47
|
+
@script_licence.oganization_id = membership_info.org_id
|
40
48
|
if @script_licence.update(script_licence_params)
|
41
49
|
redirect_to script_licences_url, notice: 'Licence was successfully updated.'
|
42
50
|
else
|
@@ -28,6 +28,10 @@ module Phcscriptcdnpro
|
|
28
28
|
# POST - Script Listings
|
29
29
|
def create
|
30
30
|
@script_listing = Script::Listing.new(script_listing_params)
|
31
|
+
@script_listing.user_id = current_user.id
|
32
|
+
@script_listing.user_name = current_user.username
|
33
|
+
@script_listing.membership_id = membership_info.id
|
34
|
+
@script_listing.oganization_id = membership_info.org_id
|
31
35
|
if @script_listing.save
|
32
36
|
redirect_to script_listings_path, notice: 'Listing was successfully created.'
|
33
37
|
else
|
@@ -37,6 +41,10 @@ module Phcscriptcdnpro
|
|
37
41
|
|
38
42
|
# PATCH/PUT - Script Listings
|
39
43
|
def update
|
44
|
+
@script_listing.user_id = current_user.id
|
45
|
+
@script_listing.user_name = current_user.username
|
46
|
+
@script_listing.membership_id = membership_info.id
|
47
|
+
@script_listing.oganization_id = membership_info.org_id
|
40
48
|
if @script_listing.update(script_listing_params)
|
41
49
|
redirect_to script_listings_path, notice: 'Listing was successfully updated.'
|
42
50
|
else
|
@@ -35,6 +35,10 @@ module Phcscriptcdnpro
|
|
35
35
|
def create
|
36
36
|
@script_listing = Script::Listing.find(params[:listing_id])
|
37
37
|
@script_url = @script_listing.urls.create(script_url_params)
|
38
|
+
@script_url.user_id = current_user.id
|
39
|
+
@script_url.user_name = current_user.username
|
40
|
+
@script_url.membership_id = membership_info.id
|
41
|
+
@script_url.oganization_id = membership_info.org_id
|
38
42
|
if @script_url.save
|
39
43
|
redirect_to script_listing_urls_path, notice: 'Author was successfully created.'
|
40
44
|
else
|
@@ -44,6 +48,10 @@ module Phcscriptcdnpro
|
|
44
48
|
|
45
49
|
# PATCH/PUT - Script Athors
|
46
50
|
def update
|
51
|
+
@script_url.user_id = current_user.id
|
52
|
+
@script_url.user_name = current_user.username
|
53
|
+
@script_url.membership_id = membership_info.id
|
54
|
+
@script_url.oganization_id = membership_info.org_id
|
47
55
|
if @script_url.update(script_url_params)
|
48
56
|
redirect_to script_listing_urls_path, notice: 'Author was successfully updated.'
|
49
57
|
else
|
@@ -28,6 +28,10 @@ module Phcscriptcdnpro
|
|
28
28
|
# POST - Script Versions
|
29
29
|
def create
|
30
30
|
@script_version = Script::Version.new(script_version_params)
|
31
|
+
@script_version.user_id = current_user.id
|
32
|
+
@script_version.user_name = current_user.username
|
33
|
+
@script_version.membership_id = membership_info.id
|
34
|
+
@script_version.oganization_id = membership_info.org_id
|
31
35
|
if @script_version.save
|
32
36
|
redirect_to script_versions_url, notice: 'Version was successfully created.'
|
33
37
|
else
|
@@ -37,6 +41,10 @@ module Phcscriptcdnpro
|
|
37
41
|
|
38
42
|
# PATCH/PUT - Script Versions
|
39
43
|
def update
|
44
|
+
@script_version.user_id = current_user.id
|
45
|
+
@script_version.user_name = current_user.username
|
46
|
+
@script_version.membership_id = membership_info.id
|
47
|
+
@script_version.oganization_id = membership_info.org_id
|
40
48
|
if @script_version.update(script_version_params)
|
41
49
|
redirect_to script_versions_url, notice: 'Version was successfully updated.'
|
42
50
|
else
|
@@ -46,15 +54,15 @@ module Phcscriptcdnpro
|
|
46
54
|
|
47
55
|
# DELETE - Script Versions
|
48
56
|
def destroy
|
49
|
-
|
50
|
-
|
57
|
+
@script_version.destroy
|
58
|
+
redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
|
51
59
|
end
|
52
60
|
|
53
61
|
private
|
54
62
|
|
55
63
|
# Common Callbacks
|
56
64
|
def set_script_version
|
57
|
-
|
65
|
+
@script_version = Script::Version.find(params[:id])
|
58
66
|
end
|
59
67
|
|
60
68
|
# Only allow a trusted parameter "white list" through.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "PHCNetworks Script CDN" %>
|
3
|
-
<% phc_title_tagline "Global Script
|
3
|
+
<% phc_title_tagline "Global Developer Script CDN" %>
|
4
4
|
<!-- Title System -->
|
5
5
|
|
6
6
|
<!-- Page Header -->
|
@@ -32,19 +32,13 @@
|
|
32
32
|
<span class="font-lato"><%= script_listings_index.created_at %></span>
|
33
33
|
<% end %>
|
34
34
|
</li>
|
35
|
-
<li>
|
36
|
-
<%= link_to "#" do %>
|
37
|
-
<i class="fa fa-comment-o"></i>
|
38
|
-
<span class="font-lato">0 Comments</span>
|
39
|
-
<% end %>
|
40
|
-
</li>
|
41
35
|
<li>
|
42
36
|
<i class="fa fa-folder-open-o"></i>
|
43
37
|
<%= link_to "#" do %>
|
44
|
-
<span class="font-lato"
|
38
|
+
<span class="font-lato"></span>
|
45
39
|
<% end %>
|
46
40
|
<%= link_to "#" do %>
|
47
|
-
<span class="font-lato"
|
41
|
+
<span class="font-lato"></span>
|
48
42
|
<% end %>
|
49
43
|
</li>
|
50
44
|
<li>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Global Script
|
2
|
+
<% phc_title "CDN for " + @script_listings_single.scripttitle %>
|
3
|
+
<% phc_title_tagline "Global Developer Script CDN" %>
|
4
4
|
<!-- Title System -->
|
5
5
|
|
6
6
|
<!-- Page Header -->
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
|
-
VERSION = "5.3.
|
3
|
-
end
|
2
|
+
VERSION = "5.3.6"
|
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: 5.3.
|
4
|
+
version: 5.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|