plok 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8122c48dac2931969b8b9763d3e1e317f9c7139c74b97035bca19b7d111c1b54
4
+ data.tar.gz: 64ba00aaa9d8c41c849be898b24af2d98c6f454b49d71b18b5a1753817c9c085
5
+ SHA512:
6
+ metadata.gz: dbd8cbc5b86e6dfba40b3b9c185915f583b333fd8abc0017ef4a890bfe246d9eb1518642615f5361ef6c2903a43e2d697a9564fce4b68b559f82a17ba3bafe15
7
+ data.tar.gz: 107322ab6763e377544d5374e0a4910d6560e88159a82ec2b4222141b0fecefa6089de1dc4d70acf1bdaa36831de65c954d383485a7dba495efed72f05deaa82
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2019 Bauffman
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,31 @@
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
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Plok'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('lib/**/*.rb')
14
+ end
15
+
16
+ APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
17
+ load 'rails/tasks/engine.rake'
18
+
19
+ load 'rails/tasks/statistics.rake'
20
+
21
+ require 'bundler/gem_tasks'
22
+
23
+ require 'rake/testtask'
24
+
25
+ Rake::TestTask.new(:test) do |t|
26
+ t.libs << 'test'
27
+ t.pattern = 'test/**/*_test.rb'
28
+ t.verbose = false
29
+ end
30
+
31
+ task default: :test
File without changes
@@ -0,0 +1,5 @@
1
+ class CatchAllController < ApplicationController
2
+ def resolve
3
+ format.all { render plain: 'Page not found', status: :not_found }
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ class Plok::VersionController < ActionController::Base
2
+ def show
3
+ respond_to do |format|
4
+ format.all { render plain: Plok::VERSION }
5
+ end
6
+ end
7
+ end
data/config/plok.yml ADDED
@@ -0,0 +1,9 @@
1
+ development:
2
+ modules:
3
+ - flexible_content
4
+ - snippets
5
+ - settings
6
+ - queued_tasks
7
+ - email_templates
8
+ - pages
9
+ - redirects
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ get 'plok/version' => 'plok/version#show', defaults: { format: 'txt' }
3
+ get '*path' => 'catch_all#resolve'
4
+ end
@@ -0,0 +1,4 @@
1
+ module Plok
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module Plok
2
+ VERSION = '0.2.0'
3
+ end
data/lib/plok.rb ADDED
@@ -0,0 +1,6 @@
1
+ require "plok/version"
2
+ require "plok/engine"
3
+
4
+ module Plok
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :plok do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: plok
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Davy Hellemans
8
+ - Dave Lens
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2021-09-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '6.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '6.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: mysql2
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ description: Some basics used for setting up rails projects
43
+ email:
44
+ - davy@blimp.be
45
+ - dave@blimp.be
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - MIT-LICENSE
51
+ - Rakefile
52
+ - app/assets/config/plok_manifest.js
53
+ - app/controllers/catch_all_controller.rb
54
+ - app/controllers/plok/version_controller.rb
55
+ - config/plok.yml
56
+ - config/routes.rb
57
+ - lib/plok.rb
58
+ - lib/plok/engine.rb
59
+ - lib/plok/version.rb
60
+ - lib/tasks/plok_tasks.rake
61
+ homepage: https://plok.blimp.be
62
+ licenses:
63
+ - MIT
64
+ metadata:
65
+ allowed_push_host: https://rubygems.org
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubygems_version: 3.2.28
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: CMS basics
85
+ test_files: []