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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a493e820f732b6685ee88ec762e40dc4ab1973e
4
- data.tar.gz: 4dbb50bba1533d0adc2cce120756eb7c3455a7e8
3
+ metadata.gz: 4bf463d683e3c951915c9ed70623e33de0b7775f
4
+ data.tar.gz: b2962f1daa15c65f02b92216aba474d77ed47230
5
5
  SHA512:
6
- metadata.gz: 68a113c62f33045d692409f2251d0e630e5fce9f0f7b49da2c88aa2fab7c95ab9dd43e15b45d3b541ba9ef60d09d68c97200c7b5363b57debafe67bcd070fa7f
7
- data.tar.gz: c62839ae51061d8ce0f2c7bf73c6abd1285e163ffb0320f13adc82147787b7a785657d3548eda5b60d9cd13cb87ba574d2cd1923f8f1298551e3f534690f8d43
6
+ metadata.gz: f093038641e6da6f6560d9a6f0419fc99ffb07761a976ffe7f831d9b4ba5746d7a0a117fdb544e0b93aa706b47fac7980c6c5700975a3405d8f8cfa19f69bbec
7
+ data.tar.gz: 30369bbebc04bb9c2ac8313e11b4469c4b459239d8bd1759d3bc23e53ec2b0836461f30bc964208a7802e3570662093adfd67a000f0464bcbd56882bff8940ac
@@ -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,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/cdnlistings 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,3 @@
1
+ // Place all the styles related to the api/cdnlists 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,6 @@
1
+ require_dependency "phcscriptcdnpro/application_controller"
2
+
3
+ module Phcscriptcdnpro
4
+ class Api::CdnlistingsController < ApplicationController
5
+ end
6
+ end
@@ -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
@@ -8,7 +8,7 @@ module Phcscriptcdnpro
8
8
 
9
9
  # Frontend Index/List
10
10
  def list
11
- @scriptcdn_mains = Scriptcdn::Main.all
11
+ @scriptcdn_mains = Scriptcdn::Main.all
12
12
  end
13
13
 
14
14
  # Frontend Show/Listing
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Api::CdnlistingsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Api::CdnlistsHelper
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ object @scriptcdn_mains
2
+ attributes :id, :scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptplatform, :scriptplatform
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
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.9.6"
2
+ VERSION = "1.9.7"
3
3
  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.6
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-24 00:00:00.000000000 Z
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