phcscriptcdnpro 1.4.2 → 1.4.4

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/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +12 -12
  3. data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +67 -0
  4. data/app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb +85 -0
  5. data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +63 -0
  6. data/app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb +4 -0
  7. data/app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb +4 -0
  8. data/app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb +4 -0
  9. data/app/models/phcscriptcdnpro/scriptcdn/author.rb +1 -1
  10. data/app/models/phcscriptcdnpro/scriptcdn/{script.rb → main.rb} +3 -3
  11. data/app/models/phcscriptcdnpro/scriptcdn/url.rb +9 -0
  12. data/app/models/phcscriptcdnpro/scriptcdn/version.rb +10 -0
  13. data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +18 -0
  14. data/app/views/phcscriptcdnpro/scriptcdn/{scripts → mains}/edit.html.erb +3 -3
  15. data/app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb +66 -0
  16. data/app/views/phcscriptcdnpro/scriptcdn/{scripts → mains}/new.html.erb +3 -3
  17. data/app/views/phcscriptcdnpro/scriptcdn/mains/show.html.erb +19 -0
  18. data/app/views/phcscriptcdnpro/scriptcdn/urls/_form.html.erb +14 -0
  19. data/app/views/phcscriptcdnpro/scriptcdn/urls/_formpatch.html.erb +14 -0
  20. data/app/views/phcscriptcdnpro/scriptcdn/{scripturls → urls}/edit.html.erb +1 -1
  21. data/app/views/phcscriptcdnpro/scriptcdn/{scripturls → urls}/index.html.erb +10 -17
  22. data/app/views/phcscriptcdnpro/scriptcdn/{scripturls → urls}/new.html.erb +1 -1
  23. data/app/views/phcscriptcdnpro/scriptcdn/urls/show.html.erb +9 -0
  24. data/app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb +21 -0
  25. data/app/views/phcscriptcdnpro/scriptcdn/{scriptversions → versions}/edit.html.erb +1 -1
  26. data/app/views/phcscriptcdnpro/scriptcdn/{scriptversions → versions}/index.html.erb +5 -5
  27. data/app/views/phcscriptcdnpro/scriptcdn/{scriptversions → versions}/new.html.erb +1 -1
  28. data/config/routes.rb +9 -0
  29. data/db/migrate/20160617181959_create_phcscriptcdnpro_scriptcdn_authors.rb +5 -1
  30. data/db/migrate/20160618200955_create_phcscriptcdnpro_scriptcdn_urls.rb +19 -0
  31. data/db/migrate/20160618201418_create_phcscriptcdnpro_scriptcdn_mains.rb +20 -0
  32. data/db/migrate/20160618201703_create_phcscriptcdnpro_scriptcdn_versions.rb +15 -0
  33. data/lib/phcscriptcdnpro/version.rb +1 -1
  34. metadata +29 -25
  35. data/app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb +0 -73
  36. data/app/controllers/phcscriptcdnpro/scriptcdn/scripturls_controller.rb +0 -85
  37. data/app/controllers/phcscriptcdnpro/scriptcdn/scriptversions_controller.rb +0 -64
  38. data/app/models/phcscriptcdnpro/scriptcdn/scripturl.rb +0 -15
  39. data/app/models/phcscriptcdnpro/scriptcdn/scriptversion.rb +0 -15
  40. data/app/views/phcscriptcdnpro/scriptcdn/scripts/_form.html.erb +0 -22
  41. data/app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb +0 -66
  42. data/app/views/phcscriptcdnpro/scriptcdn/scripts/show.html.erb +0 -20
  43. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/_form.html.erb +0 -22
  44. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb +0 -22
  45. data/app/views/phcscriptcdnpro/scriptcdn/scriptversions/_form.html.erb +0 -14
  46. data/db/migrate/20160222025658_create_phcscriptcdnpro_scriptcdn_scripts.rb +0 -14
  47. data/db/migrate/20160222030223_create_phcscriptcdnpro_scriptcdn_scriptversions.rb +0 -11
  48. data/db/migrate/20160222030446_create_phcscriptcdnpro_scriptcdn_scripturls.rb +0 -15
@@ -1,11 +0,0 @@
1
- class CreatePhcscriptcdnproScriptcdnScriptversions < ActiveRecord::Migration
2
- def change
3
- create_table :phcscriptcdnpro_scriptcdn_scriptversions do |t|
4
-
5
- t.string :scrptversion
6
-
7
- t.timestamps null: false
8
-
9
- end
10
- end
11
- end
@@ -1,15 +0,0 @@
1
- class CreatePhcscriptcdnproScriptcdnScripturls < ActiveRecord::Migration
2
- def change
3
- create_table :phcscriptcdnpro_scriptcdn_scripturls do |t|
4
-
5
- t.string :scrpturlphc
6
- t.string :scrpturltype
7
-
8
- t.references :scriptversion, index: true
9
- t.references :script, index: true
10
-
11
- t.timestamps null: false
12
-
13
- end
14
- end
15
- end