phcscriptcdnpro 1.10.1 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +11 -5
  3. data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +1 -1
  4. data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +11 -4
  5. data/app/models/phcscriptcdnpro/scriptcdn/information.rb +0 -1
  6. data/app/models/phcscriptcdnpro/scriptcdn/url.rb +0 -1
  7. data/app/models/phcscriptcdnpro/scriptcdn/version.rb +1 -2
  8. data/app/views/phcscriptcdnpro/api/mains/index.json.rabl +13 -1
  9. data/app/views/phcscriptcdnpro/scriptcdn/informations/edit.html.erb +1 -1
  10. data/app/views/phcscriptcdnpro/scriptcdn/informations/index.html.erb +6 -6
  11. data/app/views/phcscriptcdnpro/scriptcdn/informations/new.html.erb +1 -1
  12. data/app/views/phcscriptcdnpro/scriptcdn/informations/show.html.erb +1 -2
  13. data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +3 -7
  14. data/app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb +1 -1
  15. data/app/views/phcscriptcdnpro/scriptcdn/versions/_formpatch.html.erb +13 -0
  16. data/app/views/phcscriptcdnpro/scriptcdn/versions/edit.html.erb +2 -2
  17. data/app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb +4 -4
  18. data/app/views/phcscriptcdnpro/scriptcdn/versions/new.html.erb +1 -1
  19. data/config/routes.rb +2 -4
  20. data/db/migrate/20160618200955_create_phcscriptcdnpro_scriptcdn_urls.rb +0 -1
  21. data/db/migrate/20160618201418_create_phcscriptcdnpro_scriptcdn_mains.rb +1 -2
  22. data/db/migrate/20160618201703_create_phcscriptcdnpro_scriptcdn_versions.rb +2 -0
  23. data/db/migrate/20160620233512_create_phcscriptcdnpro_scriptcdn_information.rb +0 -1
  24. data/lib/phcscriptcdnpro/version.rb +1 -1
  25. metadata +3 -8
  26. data/app/controllers/phcscriptcdnpro/api/informations_controller.rb +0 -22
  27. data/app/controllers/phcscriptcdnpro/api/versions_controller.rb +0 -22
  28. data/app/views/phcscriptcdnpro/api/informations/index.json.rabl +0 -2
  29. data/app/views/phcscriptcdnpro/api/informations/show.json.rabl +0 -2
  30. data/app/views/phcscriptcdnpro/api/versions/index.json.rabl +0 -3
  31. data/app/views/phcscriptcdnpro/api/versions/show.json.rabl +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b8ec135acec50c50a09d18c4ca05ea82c0e5962
4
- data.tar.gz: de84c02b3eb7a2f82fcfcfb68f455a2106704fea
3
+ metadata.gz: 522b1bbdd1311f8e7ae58d0c4f8df7e3ee586cde
4
+ data.tar.gz: b9485151919b65b9f1103c6cab65857e93959523
5
5
  SHA512:
6
- metadata.gz: efc07deb5d212c276732278fcc1367233ec88a53613c0bc73d6e7fc57edb4669daca9e47c03dd93eda34a0d61ec682b27104e692f6db5e57879dd8d376eec4a1
7
- data.tar.gz: f69558b262ad49a1fec115f57d02dea69d490577c682e7ee78a90ef34cdb98e96b3e5a9c367272c17ed5ba02ec95a8e158b5c54e838aaa6c2dea4060b2ad42c3
6
+ metadata.gz: 7af3529e19f93dfff66727b6024f9c6b24d0b12e9a1474731487b11f72b00407c42dee6706c7eb7f004c473ab7ebe105600f25ccd3219ffc59b02f21e5af910c
7
+ data.tar.gz: 5faf96cbfd9fe7436503ffa47ca10ae3c8287b0d25ac5ea3f3227e5ca8ff37d1dc6c65e774528e8285d311ce89287a8e5c14b545424945fbe42b9f6f0e33bbbc
@@ -10,22 +10,26 @@ module Phcscriptcdnpro
10
10
 
11
11
  # Script Information Index
12
12
  def index
13
- @scriptcdn_informations = Scriptcdn::Information.all
13
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
14
+ @scriptcdn_informations = scriptcdn_main.informations
14
15
  end
15
16
 
16
17
  # New Script Information
17
18
  def new
18
- @scriptcdn_information = Scriptcdn::Information.new
19
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
20
+ @scriptcdn_information = scriptcdn_main.informations.build
19
21
  end
20
22
 
21
23
  # Edit Script Information
22
24
  def edit
25
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
26
+ @scriptcdn_information = scriptcdn_main.informations.find(params[:id])
23
27
  end
24
28
 
25
29
  # POST Script Information
26
30
  def create
27
- @scriptcdn_information = Scriptcdn::Information.new(scriptcdn_information_params)
28
-
31
+ @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
32
+ @scriptcdn_information = @scriptcdn_main.informations.create(scriptcdn_information_params)
29
33
  if @scriptcdn_information.save
30
34
  redirect_to scriptcdn_informations_url, notice: 'Information was successfully created.'
31
35
  else
@@ -44,6 +48,8 @@ module Phcscriptcdnpro
44
48
 
45
49
  # DELETE Script Information
46
50
  def destroy
51
+ @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
52
+ @scriptcdn_information = @scriptcdn_main.informations.find(params[:id])
47
53
  @scriptcdn_information.destroy
48
54
  redirect_to scriptcdn_informations_url, notice: 'Information was successfully destroyed.'
49
55
  end
@@ -57,7 +63,7 @@ module Phcscriptcdnpro
57
63
 
58
64
  # Whitelist
59
65
  def scriptcdn_information_params
60
- params.require(:scriptcdn_information).permit(:scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlicence, :scriptplatform, :scriptstatus, :version_id, :main_id)
66
+ params.require(:scriptcdn_information).permit(:scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlicence, :scriptplatform, :scriptstatus, :main_id)
61
67
  end
62
68
 
63
69
  end
@@ -56,7 +56,7 @@ module Phcscriptcdnpro
56
56
 
57
57
  # Whitelist
58
58
  def scriptcdn_main_params
59
- params.require(:scriptcdn_main).permit(:information_id, :version_id)
59
+ params.require(:scriptcdn_main).permit(:scriptname)
60
60
  end
61
61
 
62
62
  end
@@ -10,21 +10,26 @@ module Phcscriptcdnpro
10
10
 
11
11
  # Script Version Index
12
12
  def index
13
- @scriptcdn_versions = Scriptcdn::Version.all
13
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
14
+ @scriptcdn_versions = scriptcdn_main.versions
14
15
  end
15
16
 
16
17
  # New Script Version
17
18
  def new
18
- @scriptcdn_version = Scriptcdn::Version.new
19
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
20
+ @scriptcdn_version = scriptcdn_main.versions.build
19
21
  end
20
22
 
21
23
  # Edit Script Version
22
24
  def edit
25
+ scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
26
+ @scriptcdn_version = scriptcdn_main.versions.find(params[:id])
23
27
  end
24
28
 
25
29
  # POST Script Version
26
30
  def create
27
- @scriptcdn_version = Scriptcdn::Version.new(scriptcdn_version_params)
31
+ @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
32
+ @scriptcdn_version = @scriptcdn_main.versions.create(scriptcdn_version_params)
28
33
  if @scriptcdn_version.save
29
34
  redirect_to scriptcdn_versions_url, notice: 'Script version was successfully created.'
30
35
  else
@@ -43,6 +48,8 @@ module Phcscriptcdnpro
43
48
 
44
49
  # DELETE Script Version
45
50
  def destroy
51
+ @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
52
+ @scriptcdn_version = @scriptcdn_main.versions.find(params[:id])
46
53
  @scriptcdn_version.destroy
47
54
  redirect_to scriptcdn_versions_url, notice: 'Script version was successfully destroyed.'
48
55
  end
@@ -56,7 +63,7 @@ module Phcscriptcdnpro
56
63
 
57
64
  # Whitelist
58
65
  def scriptcdn_version_params
59
- params.require(:scriptcdn_version).permit(:version)
66
+ params.require(:scriptcdn_version).permit(:version, :main_id)
60
67
  end
61
68
 
62
69
  end
@@ -2,7 +2,6 @@ module Phcscriptcdnpro
2
2
  class Scriptcdn::Information < ActiveRecord::Base
3
3
 
4
4
  # Relationships
5
- belongs_to :version, class_name: 'Scriptcdn::Version'
6
5
  belongs_to :main, class_name: 'Scriptcdn::Main'
7
6
 
8
7
  end
@@ -2,7 +2,6 @@ module Phcscriptcdnpro
2
2
  class Scriptcdn::Url < ActiveRecord::Base
3
3
 
4
4
  # Relationships
5
- has_many :versions, class_name: 'Scriptcdn::Version'
6
5
  belongs_to :main, class_name: 'Scriptcdn::Main'
7
6
 
8
7
  end
@@ -2,8 +2,7 @@ module Phcscriptcdnpro
2
2
  class Scriptcdn::Version < ActiveRecord::Base
3
3
 
4
4
  # Relationships
5
- has_many :urls, class_name: 'Scriptcdn::Url'
6
- has_many :mains, class_name: 'Scriptcdn::Main'
5
+ belongs_to :mains, class_name: 'Scriptcdn::Main'
7
6
 
8
7
  end
9
8
  end
@@ -1,2 +1,14 @@
1
1
  collection @scriptcdn_mains
2
- attributes :id, :version_id, :information_id
2
+ attributes :id, :version_id, :information_id
3
+ child :informations do
4
+ attribute :scripttitle
5
+ end
6
+ child :authors do
7
+ attributes :authorfirstname, :authorlastname
8
+ end
9
+ child :urls do
10
+ attributes :scripturl, :scripturlext
11
+ end
12
+ child :versions do
13
+ attributes :scripturl, :scripturlext
14
+ end
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul class="page-breadcrumb">
9
9
  <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
10
- <li><%= link_to "Script Information Index", phcscriptcdnpro.scriptcdn_informations_path %><i class="fa fa-circle"></i></li>
10
+ <li><%= link_to "Script Information Index", phcscriptcdnpro.scriptcdn_main_informations_path %><i class="fa fa-circle"></i></li>
11
11
  <li class="active"><%= yield(:phc_title_tagline) %></li>
12
12
  </ul>
13
13
 
@@ -28,7 +28,7 @@
28
28
  <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
29
29
  </div>
30
30
  <div class="actions">
31
- <%= link_to phcscriptcdnpro.new_scriptcdn_information_path, class: "btn blue-chambray" do %>
31
+ <%= link_to phcscriptcdnpro.new_scriptcdn_main_information_path, class: "btn blue-chambray" do %>
32
32
  <i class="fa fa-plus"></i> Add Script Information to the Database
33
33
  <% end %>
34
34
  </div>
@@ -51,11 +51,11 @@
51
51
  <tbody>
52
52
  <% @scriptcdn_informations.each do |scriptcdn_information| %>
53
53
  <tr>
54
- <td><%= link_to scriptcdn_information.scripttitle, edit_scriptcdn_information_path(scriptcdn_information) %></td>
55
- <td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_information_path(scriptcdn_information) %></td>
56
- <td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_information_path(scriptcdn_information) %></td>
57
- <td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_information_path(scriptcdn_information) %></td>
58
- <td><%= link_to 'Destroy', scriptcdn_information, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
54
+ <td><%= link_to scriptcdn_information.scripttitle, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
55
+ <td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
56
+ <td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
57
+ <td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
58
+ <td><%= link_to 'Destroy', scriptcdn_main_information, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
59
59
  </tr>
60
60
  <% end %>
61
61
  </tbody>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul class="page-breadcrumb">
9
9
  <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
10
- <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_informations_path %><i class="fa fa-circle"></i></li>
10
+ <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_main_informations_path %><i class="fa fa-circle"></i></li>
11
11
  <li class="active"><%= yield(:phc_title_tagline) %></li>
12
12
  </ul>
13
13
 
@@ -55,5 +55,4 @@
55
55
  <%= @scriptcdn_information.main %>
56
56
  </p>
57
57
 
58
- <%= link_to 'Edit', edit_scriptcdn_information_path(@scriptcdn_information) %> |
59
- <%= link_to 'Back', scriptcdn_information_index_path %>
58
+ <%= link_to 'Back', scriptcdn_information_main_index_path %>
@@ -2,13 +2,9 @@
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_main %>
4
4
 
5
- <div class="form-group field_with_errors">
6
- <label>Select a Information</label>
7
- <%= collection_select(:scriptcdn_main, :information_id, Phcscriptcdnpro::Scriptcdn::Information.order('scripttitle'), :id, :scripttitle, {}, {class: "form-control"}) %>
8
- </div>
9
- <div class="form-group field_with_errors">
10
- <label>Select a Version</label>
11
- <%= collection_select(:scriptcdn_main, :version_id, Phcscriptcdnpro::Scriptcdn::Version.order('version'), :id, :version, {}, {class: "form-control"}) %>
5
+ <div class="form-group field_with_error">
6
+ <%= f.label :scriptname, "Script Name" %>
7
+ <%= f.text_field :scriptname, placeholder: "Script Information Website", class: "form-control" %>
12
8
  </div>
13
9
  <div class="form-group field_with_error">
14
10
  <%= f.submit class: "btn blue-hoki" %>
@@ -1,4 +1,4 @@
1
- <%= form_for(@scriptcdn_version) do |f| %>
1
+ <%= form_for([@scriptcdn_version.main, @scriptcdn_version], url: scriptcdn_main_versions_path) do |f| %>
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_version %>
4
4
 
@@ -0,0 +1,13 @@
1
+ <%= form_for([@scriptcdn_version.main, @scriptcdn_version], url: scriptcdn_main_version_path, method: :patch) do |f| %>
2
+
3
+ <%= render 'phcnotifi/validations', :object => @scriptcdn_version %>
4
+
5
+ <div class="form-group field_with_error">
6
+ <%= f.label :version %>
7
+ <%= f.text_field :version, placeholder: "Script Version", class: "form-control" %>
8
+ </div>
9
+ <div class="form-group field_with_error">
10
+ <%= f.submit class: "btn blue-hoki" %>
11
+ </div>
12
+
13
+ <% end %>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul class="page-breadcrumb">
9
9
  <li><%= link_to "Script Listings", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
10
- <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_versions_path %><i class="fa fa-circle"></i></li>
10
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_main_versions_path %><i class="fa fa-circle"></i></li>
11
11
  <li class="active"><%= yield(:phc_title_tagline) %></li>
12
12
  </ul>
13
13
 
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
 
36
36
  <div class="portlet-body">
37
- <%= render 'form' %>
37
+ <%= render 'formpatch' %>
38
38
  </div>
39
39
 
40
40
  </div>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul class="page-breadcrumb">
9
9
  <li><%= link_to "Script Listings", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
10
- <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_versions_path %><i class="fa fa-circle"></i></li>
10
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_main_versions_path %><i class="fa fa-circle"></i></li>
11
11
  <li class="active"><%= yield(:phc_title_tagline) %></li>
12
12
  </ul>
13
13
 
@@ -30,7 +30,7 @@
30
30
  <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
31
31
  </div>
32
32
  <div class="actions">
33
- <%= link_to new_scriptcdn_version_path, class: "btn blue-chambray" do %>
33
+ <%= link_to new_scriptcdn_main_version_path, class: "btn blue-chambray" do %>
34
34
  <i class="fa fa-plus"></i> Add a New Script Version
35
35
  <% end %>
36
36
  </div>
@@ -48,8 +48,8 @@
48
48
  <tbody>
49
49
  <% @scriptcdn_versions.each do |scriptcdn_version| %>
50
50
  <tr>
51
- <td><%= link_to scriptcdn_version.version, edit_scriptcdn_version_path(scriptcdn_version) %></td>
52
- <td><%= link_to 'Destroy', scriptcdn_version, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
51
+ <td><%= link_to scriptcdn_version.version, edit_scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version) %></td>
52
+ <td><%= link_to 'Destroy', scriptcdn_main_version, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
53
53
  </tr>
54
54
  <% end %>
55
55
  </tbody>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul class="page-breadcrumb">
9
9
  <li><%= link_to "Script Listings", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
10
- <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_versions_path %><i class="fa fa-circle"></i></li>
10
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_main_versions_path %><i class="fa fa-circle"></i></li>
11
11
  <li class="active"><%= yield(:phc_title_tagline) %></li>
12
12
  </ul>
13
13
 
data/config/routes.rb CHANGED
@@ -10,12 +10,10 @@ Phcscriptcdnpro::Engine.routes.draw do
10
10
  resources :mains do
11
11
  resources :authors
12
12
  resources :urls
13
+ resources :versions
14
+ resources :informations
13
15
  end
14
16
 
15
- # Script Information
16
- resources :versions
17
- resources :informations
18
-
19
17
  end
20
18
 
21
19
  # Application API
@@ -7,7 +7,6 @@ class CreatePhcscriptcdnproScriptcdnUrls < ActiveRecord::Migration
7
7
  t.string :scripturlext
8
8
 
9
9
  t.references :main, index: true
10
- t.references :version, index: true
11
10
 
12
11
  t.string :user_id
13
12
  t.string :membership_id
@@ -3,8 +3,7 @@ class CreatePhcscriptcdnproScriptcdnMains < ActiveRecord::Migration
3
3
 
4
4
  create_table :phcscriptcdnpro_scriptcdn_mains do |t|
5
5
 
6
- t.references :information, index: true
7
- t.references :version, index: true
6
+ t.string :scriptname
8
7
 
9
8
  t.string :user_id
10
9
  t.string :membership_id
@@ -4,6 +4,8 @@ class CreatePhcscriptcdnproScriptcdnVersions < ActiveRecord::Migration
4
4
 
5
5
  t.string :version
6
6
 
7
+ t.references :main, index: true
8
+
7
9
  t.string :user_id
8
10
  t.string :membership_id
9
11
  t.string :oganization_id
@@ -13,7 +13,6 @@ class CreatePhcscriptcdnproScriptcdnInformation < ActiveRecord::Migration
13
13
  t.string :scriptplatform
14
14
  t.string :scriptstatus
15
15
 
16
- t.references :version, index: true
17
16
  t.references :main, index: true
18
17
 
19
18
  t.string :user_id
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.10.1"
2
+ VERSION = "1.11.0"
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: 1.10.1
4
+ version: 1.11.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-06-26 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -436,9 +436,7 @@ files:
436
436
  - app/assets/stylesheets/phcscriptcdnpro/api/versions.scss
437
437
  - app/assets/stylesheets/phcscriptcdnpro/application.css.scss
438
438
  - app/assets/stylesheets/phcscriptcdnpro/custom.scss
439
- - app/controllers/phcscriptcdnpro/api/informations_controller.rb
440
439
  - app/controllers/phcscriptcdnpro/api/mains_controller.rb
441
- - app/controllers/phcscriptcdnpro/api/versions_controller.rb
442
440
  - app/controllers/phcscriptcdnpro/application_controller.rb
443
441
  - app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
444
442
  - app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
@@ -459,12 +457,8 @@ files:
459
457
  - app/models/phcscriptcdnpro/scriptcdn/version.rb
460
458
  - app/views/layouts/phcscriptcdnpro/application.html.erb
461
459
  - app/views/layouts/phcscriptcdnpro/frontend.html.erb
462
- - app/views/phcscriptcdnpro/api/informations/index.json.rabl
463
- - app/views/phcscriptcdnpro/api/informations/show.json.rabl
464
460
  - app/views/phcscriptcdnpro/api/mains/index.json.rabl
465
461
  - app/views/phcscriptcdnpro/api/mains/show.json.rabl
466
- - app/views/phcscriptcdnpro/api/versions/index.json.rabl
467
- - app/views/phcscriptcdnpro/api/versions/show.json.rabl
468
462
  - app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
469
463
  - app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb
470
464
  - app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb
@@ -487,6 +481,7 @@ files:
487
481
  - app/views/phcscriptcdnpro/scriptcdn/urls/index.html.erb
488
482
  - app/views/phcscriptcdnpro/scriptcdn/urls/new.html.erb
489
483
  - app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb
484
+ - app/views/phcscriptcdnpro/scriptcdn/versions/_formpatch.html.erb
490
485
  - app/views/phcscriptcdnpro/scriptcdn/versions/edit.html.erb
491
486
  - app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb
492
487
  - app/views/phcscriptcdnpro/scriptcdn/versions/new.html.erb
@@ -1,22 +0,0 @@
1
- require_dependency "phcscriptcdnpro/application_controller"
2
-
3
- module Phcscriptcdnpro
4
- class Api::InformationsController < ApplicationController
5
-
6
- # Only Responds to API Requests
7
- respond_to :json
8
-
9
- # Directory Category API
10
- def index
11
- @scriptcdn_informations = Scriptcdn::Information.all
12
- respond_to do |format|
13
- format.json { render :json => @scriptcdn_informations }
14
- end
15
- end
16
-
17
- def show
18
- @scriptcdn_information = Scriptcdn::Information.find(params[:id])
19
- end
20
-
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- require_dependency "phcscriptcdnpro/application_controller"
2
-
3
- module Phcscriptcdnpro
4
- class Api::VersionsController < ApplicationController
5
-
6
- # Only Responds to API Requests
7
- respond_to :json
8
-
9
- # Directory Category API
10
- def index
11
- @scriptcdn_versions = Scriptcdn::Version.all
12
- respond_to do |format|
13
- format.json { render :json => @scriptcdn_versions }
14
- end
15
- end
16
-
17
- def show
18
- @scriptcdn_version = Scriptcdn::Version.find(params[:id])
19
- end
20
-
21
- end
22
- end
@@ -1,2 +0,0 @@
1
- collection @scriptcdn_informations
2
- attributes :id, :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
@@ -1,2 +0,0 @@
1
- object @scriptcdn_information
2
- attributes :id, :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
@@ -1,3 +0,0 @@
1
- collection @scriptcdn_versions
2
- attributes :id, :version
3
-
@@ -1,2 +0,0 @@
1
- collection @scriptcdn_versions
2
- attributes :id, :version