phcscriptcdn 0.5.7 → 0.6.0

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: 4873741f8d1941efe15674f0eac3efa29875eca7
4
- data.tar.gz: d542a1fc7dd212bbaf254d223309e4713374c68f
3
+ metadata.gz: 9217065857655a7e96ece8984fc765b1b34f8093
4
+ data.tar.gz: f1f9e2b1213d8743ae57f4583ff254191e5e9026
5
5
  SHA512:
6
- metadata.gz: 834d8ff4459e0f36175be311950d33bd130435b6a905958c4c0dd32b1a57f820b6700ba3200a02232a5c6ecf0520869815841e295355c4e1a9c71aacf8a7f520
7
- data.tar.gz: 9eecf3658abc7e49125dcf89204c6db738222b2ee2abfb70164619dfe7e39568fc35bc3c91208b1a52210193a96fd69733e0666c793bcbd282a2b67046a279d3
6
+ metadata.gz: 94f8771be286fec3b662ed50dc04e59d0230ca03599f0f3cb4e5ad7db0779889aa682b0902058d433f3f22b883f6e9c13396394761a9355f8a417eee2b92edff
7
+ data.tar.gz: 45cca20ce31fb3dd19b3e9eeacd4343fe963c15385c6c6020e35e5e5292b20c72373e9d7f7776f961f2b90681affc210a9a49e9f6b04fa87fc27d5aacff64c1b
data/README.md CHANGED
@@ -1,21 +1,21 @@
1
- [![security](https://hakiri.io/github/PHCNetworks/phc-scrtipcdn/master.svg)](https://hakiri.io/github/PHCNetworks/phc-scrtipcdn/master)
1
+ [![security](https://hakiri.io/github/PHCNetworks/phc-scriptcdn/master.svg)](https://hakiri.io/github/PHCNetworks/phc-scriptcdn/master)
2
2
  [![Code Climate](https://codeclimate.com/github/PHCNetworks/phc-scrtipcdn/badges/gpa.svg)](https://codeclimate.com/github/PHCNetworks/phc-scrtipcdn)
3
3
  [![Gem Version](https://badge.fury.io/rb/phcscriptcdn.svg)](https://badge.fury.io/rb/phcscriptcdn)
4
4
 
5
5
  ### PHC-ScriptCDN (Script Listing Engine) Documentation
6
- PHC-ScriptCDN is similar to PHCNetworks own script CDN listing system.
6
+ PHCScript CDN is script listing software to manage a script CDN.
7
7
 
8
- #### Step 1 - Add PHCScriptCDN to your gemfile
8
+ #### Step 1 - Add PHC-Script CDN to your gemfile
9
9
 
10
- gem 'phcscriptcdn', '~> 0.5.6'
10
+ gem 'phcscriptcdn', '~> 0.5.8'
11
11
  bundle exec install
12
12
 
13
- #### Step 2 - Add PHCScriptCDN database migration files
13
+ #### Step 2 - Add database migration files
14
14
 
15
15
  rake railties:install:migrations
16
16
  rake db:migrate
17
17
 
18
- #### Step 3 - Mount the Engine in your Routes File
18
+ #### Step 3 - Mount PHC-Script CDN in your Routes File
19
19
  Mount the Engine in your Routes File (App must have Root route)
20
20
 
21
21
  mount Phcscriptcdn::Engine, :at => '/'
@@ -30,4 +30,3 @@ PHCPress UI requires bootstrap and fontawesome to operate.
30
30
 
31
31
  rake assets:clobber
32
32
  rake assets:precompile
33
-
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <title>PHCNetworks Notifications</title>
6
+ <%= stylesheet_link_tag "phcnotifi/application", media: "all" %>
7
+ <%= javascript_include_tag "phcnotifi/application" %>
8
+ <%= csrf_meta_tags %>
9
+
10
+ </head>
11
+ <body data-no-turbolink="true">
12
+
13
+ <div class="container">
14
+ <%= render 'components/notifications' %>
15
+ <%= render 'components/validations' %>
16
+ <%= yield %>
17
+ </div>
18
+
19
+ </body>
20
+ </html>
@@ -0,0 +1,13 @@
1
+ <div class="row">
2
+ <div class=".col-md-12">
3
+ <div class="alert alert-dismissible alert-warning hidden alert-please-update" role="alert">
4
+ <button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true"> ×</span></button><strong>Please update</strong>Despite the fact that the record doens't show on your screen you must save it to delete it!
5
+ </div>
6
+ <% flash.each do |key, value| %>
7
+ <div class="<%= flash_class(key) %> fade in">
8
+ <a href="#" data-dismiss="alert" class="close">×</a>
9
+ <%= value %>
10
+ </div>
11
+ <% end %>
12
+ </div>
13
+ </div>
@@ -0,0 +1,11 @@
1
+ <% if object.errors.any? %>
2
+ <div class="alert alert alert-danger alert-dismissible" role="alert">
3
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
4
+ <h4>The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
5
+ <ul class="list-group">
6
+ <% object.errors.full_messages.each do |msg| %>
7
+ <li class="list-group-item list-group-item-danger borderless"><%= msg %></li>
8
+ <% end %>
9
+ </ul>
10
+ </div>
11
+ <% end %>
@@ -13,6 +13,7 @@
13
13
  <body>
14
14
  <div class="container">
15
15
  <div class="row">
16
+ <%= render 'layouts/phcnotifi/components/notifications' %>
16
17
  <%= yield %>
17
18
  </div>
18
19
  </div>
@@ -1,15 +1,7 @@
1
1
  <%= form_for(@scriptcdn_script) do |f| %>
2
2
 
3
- <% if @scriptcdn_script.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@scriptcdn_script.errors.count, "error") %> prohibited this scriptcdn_script from being saved:</h2>
6
- <ul>
7
- <% @scriptcdn_script.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'layouts/phcnotifi/components/validations', :object => @scriptcdn_script %>
13
5
 
14
6
  <div class="form-group">
15
7
  <label><%= f.label :scrptname, "Script Name" %></label>
@@ -1,15 +1,7 @@
1
1
  <%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturls_path) do |f| %>
2
2
 
3
- <% if @scriptcdn_scripturl.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@scriptcdn_scripturl.errors.count, "error") %> prohibited this scriptcdn_scripturl from being saved:</h2>
6
- <ul>
7
- <% @scriptcdn_scripturl.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'layouts/phcnotifi/components/validations', :object => @scriptcdn_scripturl %>
13
5
 
14
6
  <div class="field">
15
7
  <label><%= f.label :scrpturlname, "Script Name" %></label>
@@ -1,15 +1,7 @@
1
1
  <%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturl_path, method: :patch) do |f| %>
2
2
 
3
- <% if @scriptcdn_scripturl.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@scriptcdn_scripturl.errors.count, "error") %> prohibited this scriptcdn_scripturl from being saved:</h2>
6
- <ul>
7
- <% @scriptcdn_scripturl.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'layouts/phcnotifi/components/validations', :object => @scriptcdn_scripturl %>
13
5
 
14
6
  <div class="field">
15
7
  <label><%= f.label :scrpturlname, "Script Name" %></label>
@@ -1,16 +1,7 @@
1
1
  <%= form_for(@scriptcdn_scriptversion) do |f| %>
2
2
 
3
- <% if @scriptcdn_scriptversion.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@scriptcdn_scriptversion.errors.count, "error") %> prohibited this scriptcdn_scriptversion from being saved:</h2>
6
-
7
- <ul>
8
- <% @scriptcdn_scriptversion.errors.full_messages.each do |message| %>
9
- <li><%= message %></li>
10
- <% end %>
11
- </ul>
12
- </div>
13
- <% end %>
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'layouts/phcnotifi/components/validations', :object => @scriptcdn_scriptversion %>
14
5
 
15
6
  <div class="form-group">
16
7
  <label><%= f.label :scrptversion, "Version" %></label>
data/config/routes.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  Phcscriptcdn::Engine.routes.draw do
2
+
3
+ # Notification System
4
+ mount Phcnotifi::Engine, :at => '/'
2
5
 
3
6
  # Script CDN Listing System
4
7
  namespace :scriptcdn do
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "0.5.7"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -118,6 +118,20 @@ dependencies:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: 5.0.4
121
+ - !ruby/object:Gem::Dependency
122
+ name: phcnotifi
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: 0.2.5
128
+ type: :runtime
129
+ prerelease: false
130
+ version_requirements: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: 0.2.5
121
135
  - !ruby/object:Gem::Dependency
122
136
  name: sqlite3
123
137
  requirement: !ruby/object:Gem::Requirement
@@ -254,6 +268,9 @@ files:
254
268
  - app/models/phcscriptcdn/scriptcdn/script.rb
255
269
  - app/models/phcscriptcdn/scriptcdn/scripturl.rb
256
270
  - app/models/phcscriptcdn/scriptcdn/scriptversion.rb
271
+ - app/views/layouts/phcnotifi/application.html.erb
272
+ - app/views/layouts/phcnotifi/components/_notifications.html.erb
273
+ - app/views/layouts/phcnotifi/components/_validations.html.erb
257
274
  - app/views/layouts/phcscriptcdn/application.html.erb
258
275
  - app/views/phcscriptcdn/scriptcdn/scripts/_form.html.erb
259
276
  - app/views/phcscriptcdn/scriptcdn/scripts/edit.html.erb