phcscriptcdnpro 1.9.6 → 1.9.7
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/cdnlistings.js +2 -0
- data/app/assets/javascripts/phcscriptcdnpro/api/cdnlists.js +2 -0
- data/app/assets/stylesheets/phcscriptcdnpro/api/cdnlistings.scss +3 -0
- data/app/assets/stylesheets/phcscriptcdnpro/api/cdnlists.scss +3 -0
- data/app/controllers/phcscriptcdnpro/api/cdnlistings_controller.rb +6 -0
- data/app/controllers/phcscriptcdnpro/api/cdnlists_controller.rb +15 -0
- data/app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb +1 -1
- data/app/helpers/phcscriptcdnpro/api/cdnlistings_helper.rb +4 -0
- data/app/helpers/phcscriptcdnpro/api/cdnlists_helper.rb +4 -0
- data/app/views/phcscriptcdnpro/api/cdnlists/index.json.rabl +2 -0
- data/config/routes.rb +10 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf463d683e3c951915c9ed70623e33de0b7775f
|
4
|
+
data.tar.gz: b2962f1daa15c65f02b92216aba474d77ed47230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f093038641e6da6f6560d9a6f0419fc99ffb07761a976ffe7f831d9b4ba5746d7a0a117fdb544e0b93aa706b47fac7980c6c5700975a3405d8f8cfa19f69bbec
|
7
|
+
data.tar.gz: 30369bbebc04bb9c2ac8313e11b4469c4b459239d8bd1759d3bc23e53ec2b0836461f30bc964208a7802e3570662093adfd67a000f0464bcbd56882bff8940ac
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_dependency "phcscriptcdnpro/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdnpro
|
4
|
+
class Api::CdnlistsController < ApplicationController
|
5
|
+
|
6
|
+
# Only Responds to API Requests
|
7
|
+
respond_to :json
|
8
|
+
|
9
|
+
# Directory Category API
|
10
|
+
def index
|
11
|
+
@scriptcdn_mains = Scriptcdn::Main.all
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
data/config/routes.rb
CHANGED
@@ -17,5 +17,15 @@ Phcscriptcdnpro::Engine.routes.draw do
|
|
17
17
|
resources :informations
|
18
18
|
|
19
19
|
end
|
20
|
+
|
21
|
+
# Application API
|
22
|
+
namespace :api do
|
23
|
+
|
24
|
+
# Routes for API
|
25
|
+
resources :cdnlists, defaults: {format: 'json'} do
|
26
|
+
resources :cdnlistings
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
20
30
|
|
21
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -413,9 +413,15 @@ files:
|
|
413
413
|
- LICENSE
|
414
414
|
- README.md
|
415
415
|
- Rakefile
|
416
|
+
- app/assets/javascripts/phcscriptcdnpro/api/cdnlistings.js
|
417
|
+
- app/assets/javascripts/phcscriptcdnpro/api/cdnlists.js
|
416
418
|
- app/assets/javascripts/phcscriptcdnpro/application.js
|
419
|
+
- app/assets/stylesheets/phcscriptcdnpro/api/cdnlistings.scss
|
420
|
+
- app/assets/stylesheets/phcscriptcdnpro/api/cdnlists.scss
|
417
421
|
- app/assets/stylesheets/phcscriptcdnpro/application.css.scss
|
418
422
|
- app/assets/stylesheets/phcscriptcdnpro/custom.scss
|
423
|
+
- app/controllers/phcscriptcdnpro/api/cdnlistings_controller.rb
|
424
|
+
- app/controllers/phcscriptcdnpro/api/cdnlists_controller.rb
|
419
425
|
- app/controllers/phcscriptcdnpro/application_controller.rb
|
420
426
|
- app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
|
421
427
|
- app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
|
@@ -423,6 +429,8 @@ files:
|
|
423
429
|
- app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb
|
424
430
|
- app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb
|
425
431
|
- app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb
|
432
|
+
- app/helpers/phcscriptcdnpro/api/cdnlistings_helper.rb
|
433
|
+
- app/helpers/phcscriptcdnpro/api/cdnlists_helper.rb
|
426
434
|
- app/helpers/phcscriptcdnpro/application_helper.rb
|
427
435
|
- app/models/phcscriptcdnpro/scripcdn.rb
|
428
436
|
- app/models/phcscriptcdnpro/scriptcdn.rb
|
@@ -433,6 +441,7 @@ files:
|
|
433
441
|
- app/models/phcscriptcdnpro/scriptcdn/version.rb
|
434
442
|
- app/views/layouts/phcscriptcdnpro/application.html.erb
|
435
443
|
- app/views/layouts/phcscriptcdnpro/frontend.html.erb
|
444
|
+
- app/views/phcscriptcdnpro/api/cdnlists/index.json.rabl
|
436
445
|
- app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
|
437
446
|
- app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb
|
438
447
|
- app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb
|