phcscriptcdnpro 44.0.0 → 45.0.0

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
  SHA256:
3
- metadata.gz: e0a48862954ddbd96c1e36e00e4e7beaf7d62e2fcc1a10bc52411588e5590ce9
4
- data.tar.gz: 643fbd9312c72c7b3ed23dc95d50552c12e2fb2f04706809c1130ebd231af33d
3
+ metadata.gz: 0e2e60a35c60b318826413d5c460efc6dd1b0d61b4ecac57c7d545c2f42fc521
4
+ data.tar.gz: 2eb08f26b19b58cf92b484e3aa9584112b7ac5d3e7f3b58081bf6a60273fada1
5
5
  SHA512:
6
- metadata.gz: 9c8308d32c7887fc3904ed05c2c76cbd51e2a257f9922e07886e3ef51c20eeec04c3c6134ef9bf37993c5f123de888b9aa74801339a9867989036c08e400a17a
7
- data.tar.gz: f3e667f1a1071db6531c46ef425bbcb41fb980601488ace55e863cec886edcf6f075ac7e321661fc538b25270e6f9a35455a1115dce8c3ba14ad0d2119d70a7f
6
+ metadata.gz: ab29003ff4091752a5571f79ed1e60365adda7e664f355f0be6ce2804f2a15aa7b5e972720bf70a0a8ccbe02a968a1257258f22696827413a8b8dcb6db432fbf
7
+ data.tar.gz: b49cd5aa8a14b644ef2a0d16db1199878c8f836e1ff9ff55ed3ee38e4680cbee1152d11ee1aa7861b1eafc8b03a0f2886b50fea4203e4cb0beb4805a98aa7ca2
data/config/routes.rb ADDED
@@ -0,0 +1,33 @@
1
+ Phcscriptcdnpro::Engine.routes.draw do
2
+
3
+ # Frontend Routes
4
+ namespace :frontend do
5
+ resources :listings
6
+ end
7
+
8
+ # Script CDN Listing System
9
+ namespace :script do
10
+ # Main Script Module
11
+ resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
12
+ resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
13
+ end
14
+ resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
15
+ resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension'
16
+ resources :versions, class_name: 'Phcscriptcdnpro::Script::Version'
17
+ resources :licences, class_name: 'Phcscriptcdnpro::Script::Licence'
18
+ end
19
+
20
+ # Application API
21
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
22
+ namespace :v1 do
23
+ # Routes for API
24
+ resources :mains, defaults: {format: 'json'}
25
+ resources :informations, defaults: {format: 'json'}
26
+ resources :versions, defaults: {format: 'json'}
27
+ end
28
+ end
29
+
30
+ # Mount Account Routes
31
+ mount Phcaccountspro::Engine, :at => '/'
32
+
33
+ end
@@ -0,0 +1,35 @@
1
+ class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_listings do |t|
5
+
6
+ t.string :scripttitle
7
+ t.text :scriptdescription
8
+ t.string :descriptionsource
9
+
10
+ t.string :scriptwebsite
11
+ t.string :scripttwitter
12
+ t.string :scriptgithub
13
+
14
+ t.date :scriptinitialrelease
15
+ t.date :scriptlastestrelease
16
+ t.date :scriptbetarelease
17
+ t.date :scriptlastestreleasecdn
18
+
19
+ t.string :scriptstatus
20
+
21
+ t.string :slug
22
+
23
+ t.string :user_id
24
+ t.string :org_id
25
+
26
+ t.references :version
27
+ t.references :licence
28
+ t.references :author
29
+
30
+ t.timestamps
31
+
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,23 @@
1
+ class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_authors do |t|
5
+
6
+ t.string :authorfirstname
7
+ t.string :authorlastname
8
+
9
+ t.string :authorwebsite
10
+ t.string :authorgithub
11
+ t.string :authortwitter
12
+
13
+ t.string :slug
14
+
15
+ t.string :user_id
16
+ t.string :org_id
17
+
18
+ t.timestamps
19
+
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,20 @@
1
+ class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_extensions do |t|
5
+
6
+ t.string :scriptextensionname
7
+ t.text :scriptextensiondes
8
+ t.string :scriptextension
9
+
10
+ t.string :slug
11
+
12
+ t.string :user_id
13
+ t.string :org_id
14
+
15
+ t.timestamps
16
+
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,27 @@
1
+ class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_licences do |t|
5
+
6
+ t.string :lcncname
7
+ t.string :lcncdescript
8
+ t.text :lcncdescription
9
+
10
+ t.string :lcnccomgpl
11
+ t.string :lcncarvlfsf
12
+ t.string :lcncarvlosi
13
+ t.string :lcncarvlcopyfree
14
+ t.string :lcncarvldebian
15
+ t.string :lcncarvlfedora
16
+
17
+ t.string :slug
18
+
19
+ t.string :user_id
20
+ t.string :org_id
21
+
22
+ t.timestamps
23
+
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,24 @@
1
+ class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_urls do |t|
5
+
6
+ t.string :scripturl
7
+ t.date :scripturlrelease
8
+ t.date :scripturlcdnupdate
9
+
10
+ t.references :listing
11
+ t.references :version
12
+ t.references :extension
13
+
14
+ t.string :slug
15
+
16
+ t.string :user_id
17
+ t.string :org_id
18
+
19
+ t.timestamps
20
+
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,18 @@
1
+ class CreatePhcscriptcdnproScriptVersions < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_versions do |t|
5
+
6
+ t.string :scriptversion
7
+
8
+ t.string :slug
9
+
10
+ t.string :user_id
11
+ t.string :org_id
12
+
13
+ t.timestamps
14
+
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ class CreatePhcscriptcdnproFriendlyIdSlugs < ActiveRecord::Migration[5.2]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_friendly_id_slugs do |t|
5
+ t.string :slug, :null => false
6
+ t.integer :sluggable_id, :null => false
7
+ t.string :sluggable_type, :limit => 50
8
+ t.string :scope
9
+ t.datetime :created_at
10
+ end
11
+
12
+ add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_id
13
+ add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
+ add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdnpro_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
15
+ add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_type
16
+
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproExtensionVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_extension_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_extension_versions, %i(item_type item_id), :name => 'scriptcdnpro_ext_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproListingVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_listing_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_listing_versions, %i(item_type item_id), :name => 'scriptcdnpro_listing_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproScriptversionVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_scriptversion_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdnpro_scriptversion_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproUrlVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_url_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_url_versions, %i(item_type item_id), :name => 'scriptcdnpro_url_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproAuthorVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_author_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproLicenceVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_licence_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcscriptcdnpro_licence_versions, %i(item_type item_id), :name => 'scriptcdnpro_licence_versions'
15
+
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "44.0.0"
2
+ VERSION = "45.0.0"
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: 44.0.0
4
+ version: 45.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -344,14 +344,14 @@ dependencies:
344
344
  requirements:
345
345
  - - "~>"
346
346
  - !ruby/object:Gem::Version
347
- version: '36.0'
347
+ version: '37.0'
348
348
  type: :runtime
349
349
  prerelease: false
350
350
  version_requirements: !ruby/object:Gem::Requirement
351
351
  requirements:
352
352
  - - "~>"
353
353
  - !ruby/object:Gem::Version
354
- version: '36.0'
354
+ version: '37.0'
355
355
  - !ruby/object:Gem::Dependency
356
356
  name: rspec-rails
357
357
  requirement: !ruby/object:Gem::Requirement
@@ -634,6 +634,20 @@ files:
634
634
  - app/views/phcscriptcdnpro/script/versions/index.html.erb
635
635
  - app/views/phcscriptcdnpro/script/versions/new.html.erb
636
636
  - app/views/phcscriptcdnpro/script/versions/show.html.erb
637
+ - config/routes.rb
638
+ - db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb
639
+ - db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb
640
+ - db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb
641
+ - db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb
642
+ - db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb
643
+ - db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb
644
+ - db/migrate/20170509002355_create_phcscriptcdnpro_friendly_id_slugs.rb
645
+ - db/migrate/20170517064030_create_phcscriptcdnpro_extension_versions.rb
646
+ - db/migrate/20170517064049_create_phcscriptcdnpro_listing_versions.rb
647
+ - db/migrate/20170517064114_create_phcscriptcdnpro_scriptversion_versions.rb
648
+ - db/migrate/20170517064150_create_phcscriptcdnpro_url_versions.rb
649
+ - db/migrate/20170517064208_create_phcscriptcdnpro_author_versions.rb
650
+ - db/migrate/20170517064427_create_phcscriptcdnpro_licence_versions.rb
637
651
  - lib/phcscriptcdnpro.rb
638
652
  - lib/phcscriptcdnpro/engine.rb
639
653
  - lib/phcscriptcdnpro/version.rb