phcscriptcdnpro 1.10.0 → 1.10.1

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: 052bc22f050a4ea078939e5c6a702b800b0daf19
4
- data.tar.gz: 80f8782061bf56d546b74eac5b298aae3c06a130
3
+ metadata.gz: 1b8ec135acec50c50a09d18c4ca05ea82c0e5962
4
+ data.tar.gz: de84c02b3eb7a2f82fcfcfb68f455a2106704fea
5
5
  SHA512:
6
- metadata.gz: 54c40f584758f006d3f5beab39b0d891c34561b1cefb768b4b151853689010ad3691e1fbc36eed053b16ee23b4ec7dca7a9c489bf398ac434d372b16a47200cf
7
- data.tar.gz: 00d4e2b55bd35a6e00aff939786a80a4307c631977204b79e734223fd411d28e829437de078cfeb6376902273191d1996d2947327b55f1bf9368d265ba8f4818
6
+ metadata.gz: efc07deb5d212c276732278fcc1367233ec88a53613c0bc73d6e7fc57edb4669daca9e47c03dd93eda34a0d61ec682b27104e692f6db5e57879dd8d376eec4a1
7
+ data.tar.gz: f69558b262ad49a1fec115f57d02dea69d490577c682e7ee78a90ef34cdb98e96b3e5a9c367272c17ed5ba02ec95a8e158b5c54e838aaa6c2dea4060b2ad42c3
@@ -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/versions 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::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
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Api::VersionsHelper
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ collection @scriptcdn_versions
2
+ attributes :id, :version
3
+
@@ -0,0 +1,2 @@
1
+ collection @scriptcdn_versions
2
+ attributes :id, :version
data/config/routes.rb CHANGED
@@ -23,6 +23,8 @@ Phcscriptcdnpro::Engine.routes.draw do
23
23
 
24
24
  # Routes for API
25
25
  resources :mains, defaults: {format: 'json'}
26
+ resources :informations, defaults: {format: 'json'}
27
+ resources :versions, defaults: {format: 'json'}
26
28
 
27
29
  end
28
30
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.10.0"
2
+ VERSION = "1.10.1"
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.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -429,13 +429,16 @@ files:
429
429
  - Rakefile
430
430
  - app/assets/javascripts/phcscriptcdnpro/api/informations.js
431
431
  - app/assets/javascripts/phcscriptcdnpro/api/mains.js
432
+ - app/assets/javascripts/phcscriptcdnpro/api/versions.js
432
433
  - app/assets/javascripts/phcscriptcdnpro/application.js
433
434
  - app/assets/stylesheets/phcscriptcdnpro/api/informations.scss
434
435
  - app/assets/stylesheets/phcscriptcdnpro/api/mains.scss
436
+ - app/assets/stylesheets/phcscriptcdnpro/api/versions.scss
435
437
  - app/assets/stylesheets/phcscriptcdnpro/application.css.scss
436
438
  - app/assets/stylesheets/phcscriptcdnpro/custom.scss
437
439
  - app/controllers/phcscriptcdnpro/api/informations_controller.rb
438
440
  - app/controllers/phcscriptcdnpro/api/mains_controller.rb
441
+ - app/controllers/phcscriptcdnpro/api/versions_controller.rb
439
442
  - app/controllers/phcscriptcdnpro/application_controller.rb
440
443
  - app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
441
444
  - app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
@@ -445,6 +448,7 @@ files:
445
448
  - app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb
446
449
  - app/helpers/phcscriptcdnpro/api/informations_helper.rb
447
450
  - app/helpers/phcscriptcdnpro/api/mains_helper.rb
451
+ - app/helpers/phcscriptcdnpro/api/versions_helper.rb
448
452
  - app/helpers/phcscriptcdnpro/application_helper.rb
449
453
  - app/models/phcscriptcdnpro/scripcdn.rb
450
454
  - app/models/phcscriptcdnpro/scriptcdn.rb
@@ -459,6 +463,8 @@ files:
459
463
  - app/views/phcscriptcdnpro/api/informations/show.json.rabl
460
464
  - app/views/phcscriptcdnpro/api/mains/index.json.rabl
461
465
  - 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
462
468
  - app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
463
469
  - app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb
464
470
  - app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb