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 +4 -4
- data/app/assets/javascripts/phcscriptcdnpro/api/informations.js +2 -0
- data/app/assets/stylesheets/phcscriptcdnpro/api/informations.scss +3 -0
- data/app/controllers/phcscriptcdnpro/api/informations_controller.rb +22 -0
- data/app/helpers/phcscriptcdnpro/api/informations_helper.rb +4 -0
- data/app/views/phcscriptcdnpro/api/informations/index.json.rabl +2 -0
- data/app/views/phcscriptcdnpro/api/informations/show.json.rabl +2 -0
- data/app/views/phcscriptcdnpro/api/mains/index.json.rabl +1 -2
- data/app/views/phcscriptcdnpro/api/mains/show.json.rabl +2 -2
- data/lib/phcscriptcdnpro/engine.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: 052bc22f050a4ea078939e5c6a702b800b0daf19
|
4
|
+
data.tar.gz: 80f8782061bf56d546b74eac5b298aae3c06a130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54c40f584758f006d3f5beab39b0d891c34561b1cefb768b4b151853689010ad3691e1fbc36eed053b16ee23b4ec7dca7a9c489bf398ac434d372b16a47200cf
|
7
|
+
data.tar.gz: 00d4e2b55bd35a6e00aff939786a80a4307c631977204b79e734223fd411d28e829437de078cfeb6376902273191d1996d2947327b55f1bf9368d265ba8f4818
|
@@ -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
|
@@ -1,5 +1,5 @@
|
|
1
1
|
object @scriptcdn_main
|
2
2
|
attributes :id, :information_id, :version_id
|
3
|
-
child
|
3
|
+
child(:informations) {
|
4
4
|
attributes :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptlicence, :scriptinitialrelease, :scriptplatform, :scriptstatus
|
5
|
-
|
5
|
+
}
|
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.
|
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
|