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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55308fd94905b2b2d85a24bd378104005398186a
4
- data.tar.gz: c35f3a4370c491e51e1b16922bf0cc1dc853e467
3
+ metadata.gz: 78102e981cdc72b0f8813c06916d4e160ea8c89e
4
+ data.tar.gz: d39737a2ead32b921c4bb98dbd44d146aab91b57
5
5
  SHA512:
6
- metadata.gz: 2c87bcb93b965e0a91838105221e6fd6803d138e5363ec6b97edf74c05ba8326d73abcdb5ff4c0bbcecc4d46ffedb6c33f36846bfe2020e2accacdf4a0e2461a
7
- data.tar.gz: 66da7aa68094d74b61a967eb97c024062b1f26efe961aa1d7545c89b3f7de7cade4ed88829790801dcddb2b605b251a6a0ea972b821e4841bd0a062e9e428583
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
- @script_version.destroy
50
- redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
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
- @script_version = Script::Version.find(params[:id])
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 Delivery Network" %>
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">Design</span>
38
+ <span class="font-lato"></span>
45
39
  <% end %>
46
40
  <%= link_to "#" do %>
47
- <span class="font-lato">Photography</span>
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 "PHCNetworks Script CDN" %>
3
- <% phc_title_tagline "Global Script Delivery Network" %>
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.5"
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.5
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-04 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails