phcscriptcdnpro 1.9.8 → 1.9.10

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: f426537f1c7253538e6790b849656c284b7f7b68
4
- data.tar.gz: cc43fdd369a4fe58ce9dc20d87ee909d5469ea7b
3
+ metadata.gz: c9e958babde382e880a595b8d0f719a0fa654139
4
+ data.tar.gz: 5b19d2e30046c98e1e511aea74905ed5bac4188f
5
5
  SHA512:
6
- metadata.gz: 96c0bbd462e517270075ff4792a79425e85819cf010f27f660fb3e04e63033b674b803b6f3b7ace9ff4b556a8002f3bcb474192eab3d7eaa1a98c4160b778531
7
- data.tar.gz: 749cc26ccb2457833de296831f35643bfbf1c3150834481fd394d28cdb6cc49cb3e6eb744c721cdd9ab4c6aae784ab5d1dc5b22c821bbb284baf1e553bd15484
6
+ metadata.gz: 945c8b3159a1e6eff0d60fbb861b74aab8a1c1f31a0c443d1d7a134c1cd4d799220afd0f511d7b84d89a419797b641da95bd06b5b176bf52571e3674da18d0c2
7
+ data.tar.gz: d43a5bec50aa86706d01644623d05221ad2acf0edc8ea04e3c75a7d7131cf8b0dbc8478f961e1c11cfe77e513776e07e5a23c15c3a90cc916914392a805695c4
@@ -2,5 +2,14 @@ require_dependency "phcscriptcdnpro/application_controller"
2
2
 
3
3
  module Phcscriptcdnpro
4
4
  class Api::CdnlistingsController < ApplicationController
5
+
6
+ # Only Responds to API Requests
7
+ respond_to :json
8
+
9
+ # Directory Category API
10
+ def show
11
+ @scriptcdn_mains = Scriptcdn::Main.find(params[:id])
12
+ end
13
+
5
14
  end
6
15
  end
@@ -0,0 +1,5 @@
1
+ object @scriptcdn_mains
2
+ attributes :id, :information_id, :version_id
3
+ child(:information) {
4
+ attributes :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
5
+ }
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.9.8"
2
+ VERSION = "1.9.10"
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.8
4
+ version: 1.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -455,6 +455,7 @@ files:
455
455
  - app/models/phcscriptcdnpro/scriptcdn/version.rb
456
456
  - app/views/layouts/phcscriptcdnpro/application.html.erb
457
457
  - app/views/layouts/phcscriptcdnpro/frontend.html.erb
458
+ - app/views/phcscriptcdnpro/api/cdnlistings/show.json.rabl
458
459
  - app/views/phcscriptcdnpro/api/cdnlists/index.json.rabl
459
460
  - app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
460
461
  - app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb