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 +4 -4
- data/app/assets/javascripts/phcscriptcdnpro/api/versions.js +2 -0
- data/app/assets/stylesheets/phcscriptcdnpro/api/versions.scss +3 -0
- data/app/controllers/phcscriptcdnpro/api/versions_controller.rb +22 -0
- data/app/helpers/phcscriptcdnpro/api/versions_helper.rb +4 -0
- data/app/views/phcscriptcdnpro/api/versions/index.json.rabl +3 -0
- data/app/views/phcscriptcdnpro/api/versions/show.json.rabl +2 -0
- data/config/routes.rb +2 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b8ec135acec50c50a09d18c4ca05ea82c0e5962
|
4
|
+
data.tar.gz: de84c02b3eb7a2f82fcfcfb68f455a2106704fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc07deb5d212c276732278fcc1367233ec88a53613c0bc73d6e7fc57edb4669daca9e47c03dd93eda34a0d61ec682b27104e692f6db5e57879dd8d376eec4a1
|
7
|
+
data.tar.gz: f69558b262ad49a1fec115f57d02dea69d490577c682e7ee78a90ef34cdb98e96b3e5a9c367272c17ed5ba02ec95a8e158b5c54e838aaa6c2dea4060b2ad42c3
|
@@ -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
|
data/config/routes.rb
CHANGED
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.
|
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
|