phcscriptcdn 49.0.0 → 50.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
  3. data/app/controllers/phcscriptcdn/application_controller.rb +10 -5
  4. data/app/controllers/phcscriptcdn/script/authors_controller.rb +2 -7
  5. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +3 -8
  6. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -7
  7. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -8
  8. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -6
  9. data/app/controllers/phcscriptcdn/script/versions_controller.rb +2 -7
  10. data/app/models/phcscriptcdn/script/author.rb +1 -1
  11. data/app/models/phcscriptcdn/script/extension.rb +4 -4
  12. data/app/models/phcscriptcdn/script/licence.rb +3 -3
  13. data/app/models/phcscriptcdn/script/listing.rb +21 -4
  14. data/app/models/phcscriptcdn/script/url.rb +5 -5
  15. data/app/models/phcscriptcdn/script/version.rb +3 -3
  16. data/app/views/layouts/phcscriptcdn/application.html.erb +21 -22
  17. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +0 -41
  18. data/app/views/phcscriptcdn/script/authors/_form.html.erb +8 -8
  19. data/app/views/phcscriptcdn/script/authors/edit.html.erb +2 -4
  20. data/app/views/phcscriptcdn/script/authors/index.html.erb +10 -8
  21. data/app/views/phcscriptcdn/script/authors/new.html.erb +2 -5
  22. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +6 -6
  23. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -7
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +16 -16
  25. data/app/views/phcscriptcdn/script/licences/index.html.erb +13 -12
  26. data/app/views/phcscriptcdn/script/listings/_form.html.erb +26 -33
  27. data/app/views/phcscriptcdn/script/listings/edit.html.erb +1 -4
  28. data/app/views/phcscriptcdn/script/listings/index.html.erb +14 -13
  29. data/app/views/phcscriptcdn/script/listings/new.html.erb +2 -4
  30. data/app/views/phcscriptcdn/script/urls/_form.html.erb +8 -8
  31. data/app/views/phcscriptcdn/script/urls/index.html.erb +9 -8
  32. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -2
  33. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -6
  34. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +10 -12
  35. data/db/migrate/20160821183714_create_phcscriptcdn_script_authors.rb +4 -5
  36. data/db/migrate/20160821183735_create_phcscriptcdn_script_extensions.rb +3 -4
  37. data/db/migrate/20160821183805_create_phcscriptcdn_script_licences.rb +8 -10
  38. data/db/migrate/20160821183830_create_phcscriptcdn_script_urls.rb +4 -5
  39. data/db/migrate/20160821183946_create_phcscriptcdn_script_versions.rb +1 -2
  40. data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +2 -2
  41. data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +1 -1
  42. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -1
  43. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -1
  44. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -17
  45. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -1
  46. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -1
  47. data/lib/phcscriptcdn/version.rb +1 -1
  48. metadata +2 -2
@@ -3,18 +3,17 @@ class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_urls do |t|
5
5
 
6
- t.string :scripturl
7
- t.date :scripturlrelease
8
- t.date :scripturlcdnupdate
6
+ t.string :script_url
7
+ t.date :script_url_release
8
+ t.date :script_url_cdn_update
9
9
 
10
10
  t.string :slug
11
11
 
12
12
  t.string :user_id
13
- t.string :org_id
14
13
 
15
14
  t.references :listing
16
- t.references :version
17
15
  t.references :extension
16
+ t.references :version
18
17
 
19
18
  t.timestamps
20
19
 
@@ -3,12 +3,11 @@ class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_versions do |t|
5
5
 
6
- t.string :scriptversion
6
+ t.string :script_version_number
7
7
 
8
8
  t.string :slug
9
9
 
10
10
  t.string :user_id
11
- t.string :org_id
12
11
 
13
12
  t.timestamps
14
13
 
@@ -10,8 +10,8 @@ class CreatePhcscriptcdnFriendlyIdSlugs < ActiveRecord::Migration[5.2]
10
10
  end
11
11
 
12
12
  add_index :phcscriptcdn_friendly_id_slugs, :sluggable_id
13
- add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdn_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
- add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdn_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
13
+ add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
+ add_index :phcscriptcdn_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
15
  add_index :phcscriptcdn_friendly_id_slugs, :sluggable_type
16
16
 
17
17
  end
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnExtensionVersions < ActiveRecord::Migration[5.2]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdn_ext_versions'
14
+ add_index :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdnpro_ext_versions'
15
15
 
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnListingVersions < ActiveRecord::Migration[5.2]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_listing_versions, %i(item_type item_id), :name => 'scriptcdn_listing_versions'
14
+ add_index :phcscriptcdn_listing_versions, %i(item_type item_id), :name => 'scriptcdnpro_listing_versions'
15
15
 
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnScriptversionVersions < ActiveRecord::Migration[5.2]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdn_scriptversion_versions'
14
+ add_index :phcscriptcdn_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdnpro_scriptversion_versions'
15
15
 
16
16
  end
17
17
  end
@@ -1,17 +1,17 @@
1
- class CreatePhcscriptcdnUrlVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcscriptcdn_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 :phcscriptcdn_url_versions, %i(item_type item_id), :name => 'scriptcdn_url_versions'
15
-
16
- end
17
- end
1
+ class CreatePhcscriptcdnUrlVersions < ActiveRecord::Migration[5.2]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_url_versions, %i(item_type item_id), :name => 'scriptcdnpro_url_versions'
15
+
16
+ end
17
+ end
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnAuthorVersions < ActiveRecord::Migration[5.2]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_author_versions, %i(item_type item_id), :name => 'scriptcdn_author_versions'
14
+ add_index :phcscriptcdn_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'
15
15
 
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnLicenceVersions < ActiveRecord::Migration[5.2]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_licence_versions, %i(item_type item_id), :name => 'scriptcdn_licence_versions'
14
+ add_index :phcscriptcdn_licence_versions, %i(item_type item_id), :name => 'scriptcdnpro_licence_versions'
15
15
 
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "49.0.0"
2
+ VERSION = "50.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 49.0.0
4
+ version: 50.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails