phcdevworks_scripts 7.4.0 → 8.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: 5682b2482e2bbee1456c174331fdf9eb3f69ded62c51d1a773ee0d30a70a56f8
4
- data.tar.gz: 2bf4592b6abb31865978196ddfd78f88cb0b76d31ac55532b1399c46b3e224f7
3
+ metadata.gz: c5b6f7e9d4eee7ba11870a41de1e6cbd14af7a12830b39f3831f79c0570b7369
4
+ data.tar.gz: 256aba18490066fa44f1b8127ec104cba828def014bf80cb7ac1f9b292006fa1
5
5
  SHA512:
6
- metadata.gz: ea3d050952f50510d8750d23cbdf5763f6acac5836f344dfb4968568e3457d56f7b14a64fff1330d307f15b23477b3b59ebae0fb04b2c3fb5928e9e34a25bd19
7
- data.tar.gz: 727f0e4c4ed18a4d45cc8433691ac4b20573cf1caa9ce9eb6665d65dd9444a3ffc7c652b2dd8ecc8e26a2308234c8656a673612d6439dcf4fbd2128dbe5f1ce2
6
+ metadata.gz: ac70b34dc928b5150d39e39c72d7c2508999d7e5927725ca9cd7da7d7a8111d470bf3aa1f7f238499959096591d7e1f6ec6c5bac6d752a2b7e96d44084560316
7
+ data.tar.gz: 5eb05f67314353c3ab5d1349af1b97b7562fac87c24ee8ac80e5a7a358187743f9eff42141ec17457c149a24eca2a4fbdffd4f6982dc02c8d1548ca69fd333f8
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 BradPotts - PHCDevworks
1
+ Copyright 2020 BradPotts
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,35 +1,28 @@
1
- ### PHCDevworks Scripts Documentation
1
+ # PhcdevworksScripts
2
+ Short description and motivation.
2
3
 
3
- PHCDevworks Scripts Rails 6 script management engine for website script CDN and snippet listings
4
+ ## Usage
5
+ How to use my plugin.
4
6
 
5
- - Manage script CDN listings for websites.
6
- - Main script title and description.
7
- - Script versions and script CDN URLs.
8
- - Store script snippets and URLs.
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
9
 
10
- #### Step 1 - Add PHCDevworks Scripts to your gemfile and run command
10
+ ```ruby
11
+ gem 'phcdevworks_scripts'
12
+ ```
11
13
 
12
- gem 'phcscriptcdnpro'
13
- bundle install
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
14
18
 
15
- #### Step 2 - Copy PHCDevworks Scripts Database Tables
16
- To copy PHCScriptCDN's required database migrations, copy each command individually to your terminal's command line.
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install phcdevworks_scripts
22
+ ```
17
23
 
18
- rails phcdevworks_scripts:install:migrations
19
- rails db:migrate
24
+ ## Contributing
25
+ Contribution directions go here.
20
26
 
21
- #### Step 3 - Mount PHCDevworks Scripts & Add Routes
22
- Mount PHCMembers by adding code below to your routes file.
23
-
24
- mount Phcscriptcdnpro::Engine, :at => '/'
25
-
26
- #### Step 4 - Recompile Assets
27
- To properly function re-compile your application's assets to copy over required files.
28
-
29
- rails assets:clobber
30
- rails assets:precompile
31
-
32
- #### Step 5 - Generate Contact Form View (Customization)
33
- All PHCDevworks Scripts views and layouts can be overwritten by copying files to your application.
34
-
35
- rails generate phcdevworks_scripts:views
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile CHANGED
@@ -1,32 +1,8 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
1
+ require "bundler/setup"
6
2
 
7
- require 'rdoc/task'
3
+ APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
8
5
 
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'PhcdevworksScripts'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
6
+ load "rails/tasks/statistics.rake"
16
7
 
17
- APP_RAKEFILE = File.expand_path("test/test_app/Rakefile", __dir__)
18
- load 'rails/tasks/engine.rake'
19
-
20
- load 'rails/tasks/statistics.rake'
21
-
22
- require 'bundler/gem_tasks'
23
-
24
- require 'rake/testtask'
25
-
26
- Rake::TestTask.new(:test) do |t|
27
- t.libs << 'test'
28
- t.pattern = 'test/**/*_test.rb'
29
- t.verbose = false
30
- end
31
-
32
- task default: :test
8
+ require "bundler/gem_tasks"
@@ -1,4 +1,3 @@
1
- //= link_directory ../javascripts/phcdevworks_scripts .js
2
1
  //= link_directory ../stylesheets/phcdevworks_scripts .scss
3
2
  //= link phcthemes_admin_panel_pack_coloradmin.css
4
3
  //= link phcthemes_admin_panel_pack_coloradmin.js
@@ -1,2 +1,15 @@
1
- // Load Admin Theme
2
- @import "phcthemes_admin_panel_pack_coloradmin";
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -1,13 +1,13 @@
1
1
  module PhcdevworksScripts
2
- class ApplicationController < ActionController::Base
2
+ class ApplicationController < ActionController::Base
3
3
 
4
- # Security Filters
5
- protect_from_forgery with: :exception
4
+ # Security Filters
5
+ protect_from_forgery with: :exception
6
6
 
7
- # Load Requried Helper Files
8
- helper PhcdevworksActiveMenus::Engine.helpers
9
- helper PhcdevworksNotifications::Engine.helpers
10
- helper PhcdevworksTitleseo::Engine.helpers
7
+ # Load Requried Helper Files
8
+ helper PhcdevworksActiveMenus::Engine.helpers
9
+ helper PhcdevworksNotifications::Engine.helpers
10
+ helper PhcdevworksTitleseo::Engine.helpers
11
11
 
12
- end
12
+ end
13
13
  end
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Scripts" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Script CDN and Code Snippets Listing Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_scripts/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body>
@@ -63,10 +62,6 @@
63
62
  </div>
64
63
  <!-- Page Container -->
65
64
 
66
- <!-- JavaScript -->
67
- <%= javascript_include_tag "phcdevworks_scripts/application", "data-turbolinks-track": "reload" %>
68
- <!-- JavaScript -->
69
-
70
65
  <!-- JavaScript CKEditor -->
71
66
  <script>ClassicEditor
72
67
  .create( document.querySelector( '.editor' ), {
@@ -1,3 +1,4 @@
1
+ require "phcdevworks_scripts/version"
1
2
  require "phcdevworks_scripts/engine"
2
3
 
3
4
  module PhcdevworksScripts
@@ -1,40 +1,47 @@
1
1
  module PhcdevworksScripts
2
- class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "wicked"
26
- require "gravtastic"
27
- require "friendly_id"
28
-
29
- # Mailer Dependencies
30
- require "mail_form"
31
-
32
- # Load User Accounts
33
- require "phcdevworks_accounts"
34
- require "phcdevworks_core_modules"
35
-
36
- # Engine Namespace
37
- isolate_namespace PhcdevworksScripts
38
-
39
- end
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Mailer Dependencies
30
+ require "mail_form"
31
+
32
+ # Load User Accounts
33
+ require "phcdevworks_accounts"
34
+ require "phcdevworks_core_modules"
35
+
36
+ # Engine Namespace
37
+ isolate_namespace PhcdevworksScripts
38
+
39
+ # Rspec Generators
40
+ config.generators do |g|
41
+ g.test_framework :rspec
42
+ g.fixture_replacement :factory_bot
43
+ g.factory_bot dir: 'spec/factories'
44
+ end
45
+
46
+ end
40
47
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksScripts
2
- VERSION = "7.4.0"
2
+ VERSION = '8.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-21 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '6.5'
145
+ version: '7.0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '6.5'
152
+ version: '7.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: wicked
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '2.5'
257
+ version: '3.0'
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: '2.5'
264
+ version: '3.0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: factory_bot_rails
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -349,14 +349,6 @@ files:
349
349
  - README.md
350
350
  - Rakefile
351
351
  - app/assets/config/phcdevworks_scripts_manifest.js
352
- - app/assets/javascripts/phcdevworks_scripts/application.js
353
- - app/assets/javascripts/phcdevworks_scripts/script/authors.coffee
354
- - app/assets/javascripts/phcdevworks_scripts/script/extensions.coffee
355
- - app/assets/javascripts/phcdevworks_scripts/script/listings.coffee
356
- - app/assets/javascripts/phcdevworks_scripts/script/urls.coffee
357
- - app/assets/javascripts/phcdevworks_scripts/script/versions.coffee
358
- - app/assets/javascripts/phcdevworks_scripts/snippet/posts.coffee
359
- - app/assets/javascripts/phcdevworks_scripts/snippet/urls.coffee
360
352
  - app/assets/stylesheets/phcdevworks_scripts/application.scss
361
353
  - app/assets/stylesheets/phcdevworks_scripts/script/authors.scss
362
354
  - app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss
@@ -461,7 +453,11 @@ files:
461
453
  homepage: https://phcdevworks.com/
462
454
  licenses:
463
455
  - MIT
464
- metadata: {}
456
+ metadata:
457
+ allowed_push_host: https://rubygems.org/
458
+ homepage_uri: https://phcdevworks.com/
459
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_scripts
460
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_scripts/releases
465
461
  post_install_message:
466
462
  rdoc_options: []
467
463
  require_paths:
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- //= require phcthemes_admin_panel_pack_coloradmin
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/