phcscriptcdnpro 1.9.12 → 1.10.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: 8ffcbea7f654919261be3dd670092d39e42aca6b
4
- data.tar.gz: 532a14177b8a2bdb07aa7daf54f694acae38063d
3
+ metadata.gz: 052bc22f050a4ea078939e5c6a702b800b0daf19
4
+ data.tar.gz: 80f8782061bf56d546b74eac5b298aae3c06a130
5
5
  SHA512:
6
- metadata.gz: d6c0272ff33341a1947223b796903bb9ad3df8211bedb2e4c6b667f27b9296f89f63bf1c3c9c2003989989a4ecb16dc1c593c49596dc2ff479275a22a169b5a0
7
- data.tar.gz: 606ed42e9d4d8f60f11947b3fc56249f79260a407f7f1996f37c185221f7f113ae330ad5ec50410ed1f80b88dd5966365870b09f26faa8589eea311d42f92293
6
+ metadata.gz: 54c40f584758f006d3f5beab39b0d891c34561b1cefb768b4b151853689010ad3691e1fbc36eed053b16ee23b4ec7dca7a9c489bf398ac434d372b16a47200cf
7
+ data.tar.gz: 00d4e2b55bd35a6e00aff939786a80a4307c631977204b79e734223fd411d28e829437de078cfeb6376902273191d1996d2947327b55f1bf9368d265ba8f4818
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the api/informations controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,22 @@
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
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Api::InformationsHelper
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ collection @scriptcdn_informations
2
+ attributes :id, :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
@@ -0,0 +1,2 @@
1
+ object @scriptcdn_information
2
+ attributes :id, :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
@@ -1,3 +1,2 @@
1
1
  collection @scriptcdn_mains
2
-
3
- extends "api/mains/show"
2
+ attributes :id, :version_id, :information_id
@@ -1,5 +1,5 @@
1
1
  object @scriptcdn_main
2
2
  attributes :id, :information_id, :version_id
3
- child :informations do
3
+ child(:informations) {
4
4
  attributes :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
5
- end
5
+ }
@@ -7,6 +7,8 @@ module Phcscriptcdnpro
7
7
  # Main Dependencies
8
8
  require 'phcnotifi'
9
9
  require 'phctitleseo'
10
+ require 'rabl'
11
+ require 'oj'
10
12
 
11
13
  # UI Dependencies
12
14
  require 'jquery-rails'
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.9.12"
2
+ VERSION = "1.10.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.12
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -427,11 +427,14 @@ files:
427
427
  - LICENSE
428
428
  - README.md
429
429
  - Rakefile
430
+ - app/assets/javascripts/phcscriptcdnpro/api/informations.js
430
431
  - app/assets/javascripts/phcscriptcdnpro/api/mains.js
431
432
  - app/assets/javascripts/phcscriptcdnpro/application.js
433
+ - app/assets/stylesheets/phcscriptcdnpro/api/informations.scss
432
434
  - app/assets/stylesheets/phcscriptcdnpro/api/mains.scss
433
435
  - app/assets/stylesheets/phcscriptcdnpro/application.css.scss
434
436
  - app/assets/stylesheets/phcscriptcdnpro/custom.scss
437
+ - app/controllers/phcscriptcdnpro/api/informations_controller.rb
435
438
  - app/controllers/phcscriptcdnpro/api/mains_controller.rb
436
439
  - app/controllers/phcscriptcdnpro/application_controller.rb
437
440
  - app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
@@ -440,6 +443,7 @@ files:
440
443
  - app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb
441
444
  - app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb
442
445
  - app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb
446
+ - app/helpers/phcscriptcdnpro/api/informations_helper.rb
443
447
  - app/helpers/phcscriptcdnpro/api/mains_helper.rb
444
448
  - app/helpers/phcscriptcdnpro/application_helper.rb
445
449
  - app/models/phcscriptcdnpro/scripcdn.rb
@@ -451,6 +455,8 @@ files:
451
455
  - app/models/phcscriptcdnpro/scriptcdn/version.rb
452
456
  - app/views/layouts/phcscriptcdnpro/application.html.erb
453
457
  - app/views/layouts/phcscriptcdnpro/frontend.html.erb
458
+ - app/views/phcscriptcdnpro/api/informations/index.json.rabl
459
+ - app/views/phcscriptcdnpro/api/informations/show.json.rabl
454
460
  - app/views/phcscriptcdnpro/api/mains/index.json.rabl
455
461
  - app/views/phcscriptcdnpro/api/mains/show.json.rabl
456
462
  - app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb