templates-rails 0.1.4 → 0.1.5
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 +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +9 -9
- data/app/controllers/templates_controller.rb +1 -1
- data/lib/templates/version.rb +1 -1
- data/lib/templates-rails.rb +5 -1
- metadata +14 -163
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -8
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/controllers/dashboard_controller.rb +0 -4
- data/spec/dummy/app/views/dashboard/show.html.erb +0 -1
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/app/views/templates/example_1.html.erb +0 -5
- data/spec/dummy/app/views/templates/folder_example/deep_folder_example/example_3.html.erb +0 -3
- data/spec/dummy/app/views/templates/folder_example/example_2.html.erb +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -33
- data/spec/dummy/config/application.rb +0 -40
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -16
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -70
- data/spec/dummy/config/environments/production.rb +0 -88
- data/spec/dummy/config/environments/test.rb +0 -60
- data/spec/dummy/config/initializers/assets.rb +0 -12
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -26
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/puma.rb +0 -43
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/config.ru +0 -6
- data/spec/dummy/log/development.log +0 -30
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2M/2MAeYGAY45NZwjibSlhTx4BGyoFwEASnw8OOvzoPIfc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2e/2ek7t0LQPdRX4lcsH8XX9yBrpBF1sMwmZmdeFlgf_Q0.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2j/2jrKpaTjFrBWDDzvaEc3AI_0vDJiBZZR_07WiExafzM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/49/496_a5VnSine9-_CqKkEEp3KqBwPjWlZhdqdtlMHgLc.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/6R/6RAKOlKW3tB4ZhiNL6nVJULnHHER8HHfwCzmDDra0Rk.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7N/7NFl5qThg3hc3O7ZJZUCaRHo5AQeK0k-N0zEiqMxp-M.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/C8/C8TEvZYpztgLTR6gM2XcuriZ1OSwPvQyok-reKuKtUo.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/DX/DXOxSHHIgfdJQF_9KcMvopZ1VWpHzn5AI8KN5R4vkSg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/FM/FMrxanWFOrajAAElycRrSH8kAn48Tgi9y2ttFNP7BLo.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/H0/H08GISlZ931aF5r8N02rv-fsvRMYNws3V8s6diggrU8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/KC/KCHa2Ee3BuOl0sNMSIMXL8MY6Hhx3evXlElaWy3jTE4.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYBkYAqHGrXmJbHyOTdSPiU2SmIEipK8U43erhIVkco.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/On/OnyCmCxC_T0QEGfWWeWjkSyu1dHhkvBWCmviYXzuX7w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/PT/PTQWcxxA1r1nKovYz0VU4TTsuKmSxJVmC534ucjH8eg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/QB/QBOGV65q7kxlEvzPf4_dDKWLJ0xKdm7WmEfO8Ei2aME.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/R4/R4xPn-UcTN-hk1fy8N3kDlh35zSSfU1xDxBHtpWjZww.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/TY/TY801gOOBLAFciwSH9MpRQIm_ua5WYZSHm75xEUvjMc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ULOh0ZolkxJ-LucKyRbDpQsM9EKrIU3zgYVh3GPDAew.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ulybhME9QE-q9scM8yh2bbXcwjohJUh9nM169M7BLpg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cj/cjr6kKZl1jz29v3-bI5-3-kxgsv3LSUUb64PRTVXkUA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cy/cygCUfkLX3IQ6knjQ1wScjHrNRc6sx2IMG9g6XCSeGM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBMW9818Rcj0YFAQGnGRPInLE4nxg4MRQxf5oMTkYXQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBz4_5n1jSGudGJIQYq-3Tu315jxVYdHpt5UGM8kPeg.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/f7/f7iLPc7ku5n9m-SZc5c30hIkGE4iSB-GDAlCZn0Zfso.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/kI/kIjjB6GADQ-iUYczFhypYH6ziSbcB61qTP8Aswk-0hc.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/p_/p_4jCnzWsxjI4cOwzmhtbHktBW9nQS3JPW_h_g8Epo0.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/tf/tfIrQCl9Gmfy7yvsMeqC2lKCLMHeZGEQJ2j2NxsuumY.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/ur/ur1aNCXLtRdYcv3q2JiACQIMzE3Ye53WR1X7zHDVlsE.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wo/wo05iTqGknAPJGrk-zgvijzWaIEoHq0JuyIaMKAzViU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/zM/zMYJo7-35vm5lIG-gzuCNqcoV7tMBG_QyssS2zBeJ1E.cache +0 -1
- data/spec/dummy/tmp/development_secret.txt +0 -1
- data/spec/dummy/tmp/pids/server.pid +0 -1
- data/spec/dummy/tmp/restart.txt +0 -0
- data/spec/features/dummy_functionality_spec.rb +0 -10
- data/spec/rails_helper.rb +0 -5
- data/spec/spec_helper.rb +0 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ba6abfb48fd6c5e9fa907243075cd761cf7552e3145944b4d8081607b4185ac
|
4
|
+
data.tar.gz: 016d952e63d19d7c13e545dac85ff24bb61f3848c52cc6903868446c3f95129d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '099bbae6948e60d28b80b0283f81e6b1a3eedad1c493c6fb154823a0eb797a00264c78cee20c2e347e9957dbd109bd49bb59f1cf28f28675c2adc2a0b802e67d'
|
7
|
+
data.tar.gz: 4945a929b790320809ca06081adddca388206367581941fc82a5218a770fb3827dadd9b98490fa0eaba71ca97d13e962d1bab5268091d6d2b55a8098de106cb1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
## Changelog
|
2
|
+
|
3
|
+
### 0.1.5 - 14-07-2023
|
4
|
+
* Added `Templates.parent_controller` configuration option
|
5
|
+
* Fixed CI and updated checkout/branch strategy from V2 to V3
|
6
|
+
* Updated README.md with improved description and usage instructions
|
7
|
+
|
8
|
+
### 0.1.4 - 10-11-2022
|
9
|
+
* Improved `templates:install` task
|
10
|
+
* Fixed a broken readme link
|
11
|
+
|
12
|
+
### 0.1.3 - 20-08-2022
|
13
|
+
* Enhancements
|
14
|
+
* Improved URL formatting for deeply nested directories and files
|
15
|
+
* Bug fixes
|
16
|
+
* Fixed assets pipeline limitation, added support for PropShaft, etc.
|
17
|
+
|
18
|
+
### 0.1.2 - 12-03-2022
|
19
|
+
* Enhancements
|
20
|
+
* Added Rspec & Capybara
|
21
|
+
* Setup a basic dummy test
|
22
|
+
* Improved base font and increased sizes of template boxes via flex
|
23
|
+
* Fixed the CHANGELOG link from RubyGems gem page
|
24
|
+
|
25
|
+
### 0.1.1 - 06-03-2022
|
26
|
+
* Bug fixes
|
27
|
+
* Removed engine isolation to fix main app routes accessibility
|
28
|
+
* Enhancements
|
29
|
+
* Setup a dummy dashboard
|
30
|
+
* Engine is now mounted automatically
|
data/README.md
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
# Templates
|
2
2
|
[](https://badge.fury.io/rb/templates-rails)
|
3
3
|
[](https://github.com/Ancez/templates-rails/actions/workflows/rspec.yml)
|
4
|
-
[](https://www.codefactor.io/repository/github/ancez/templates-rails)
|
5
4
|
|
6
5
|
Simple to use templating system for your Rails application. Design your views before implementation.
|
7
6
|
|
8
|
-
Dummy can be viewed [here](https://templates-rails.herokuapp.com/).
|
9
|
-
|
10
7
|
## Installation
|
11
8
|
|
12
|
-
Add
|
9
|
+
Add follow line to your Gemfile under the `:development` group and run `bundle install`
|
13
10
|
|
14
11
|
```ruby
|
15
12
|
gem 'templates-rails'
|
16
13
|
```
|
17
14
|
|
18
|
-
And then execute:
|
19
|
-
|
20
|
-
bundle install
|
21
|
-
|
22
15
|
Or install it yourself as:
|
23
16
|
|
24
17
|
gem install templates-rails --group development
|
25
18
|
|
19
|
+
|
20
|
+
## Setup
|
21
|
+
To override the default inheritance controller for e.g. compatibility with tenant based applications where there is a differently named inheritance controller copy the line below to your desired environment (most likely `development.rb`). Our default is set to `ApplicationController` as it's commonly used. If you don't have an `ApplicationController`, set the `parent_controller` to e.g. `ActionController::Base`
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
Templates.parent_controller = 'ApplicationController'
|
25
|
+
```
|
26
|
+
|
26
27
|
## TODO
|
27
28
|
- Finish the install rake task to generate the `templates` directory
|
28
29
|
- Setup a rake task for generating the layouts so users can pick their layouts
|
@@ -31,7 +32,6 @@ Or install it yourself as:
|
|
31
32
|
## Usage
|
32
33
|
- `partials` directories get ignored within the `views/templates` directory
|
33
34
|
|
34
|
-
|
35
35
|
## Development
|
36
36
|
|
37
37
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/templates/version.rb
CHANGED
data/lib/templates-rails.rb
CHANGED
@@ -2,5 +2,9 @@ require 'templates/version'
|
|
2
2
|
require 'templates/engine'
|
3
3
|
|
4
4
|
module Templates
|
5
|
-
#
|
5
|
+
# The parent controller for TemplatesController to inherit from.
|
6
|
+
# This is set early in the initialization process and should be set to a string.
|
7
|
+
# It needs to be a string so the parent controller reloads whenever there are changes in development.
|
8
|
+
mattr_accessor :parent_controller
|
9
|
+
@@parent_controller = 'ApplicationController'
|
6
10
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: templates-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukasz Czapiewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
22
|
+
version: 7.0.0
|
23
|
+
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '7.0'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 7.0.0
|
27
33
|
description: A templating system for creating and making design decisions for your
|
28
34
|
Rails application. Make your design decisions before you build your application
|
29
35
|
views.
|
@@ -33,9 +39,8 @@ executables: []
|
|
33
39
|
extensions: []
|
34
40
|
extra_rdoc_files: []
|
35
41
|
files:
|
36
|
-
-
|
42
|
+
- CHANGELOG.md
|
37
43
|
- README.md
|
38
|
-
- Rakefile
|
39
44
|
- app/assets/config/templates_manifest.js
|
40
45
|
- app/assets/stylesheets/templates/application.css
|
41
46
|
- app/controllers/templates_controller.rb
|
@@ -49,83 +54,6 @@ files:
|
|
49
54
|
- lib/templates-rails.rb
|
50
55
|
- lib/templates/engine.rb
|
51
56
|
- lib/templates/version.rb
|
52
|
-
- spec/dummy/Rakefile
|
53
|
-
- spec/dummy/app/assets/config/manifest.js
|
54
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
55
|
-
- spec/dummy/app/controllers/application_controller.rb
|
56
|
-
- spec/dummy/app/controllers/dashboard_controller.rb
|
57
|
-
- spec/dummy/app/views/dashboard/show.html.erb
|
58
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
59
|
-
- spec/dummy/app/views/layouts/mailer.html.erb
|
60
|
-
- spec/dummy/app/views/layouts/mailer.text.erb
|
61
|
-
- spec/dummy/app/views/templates/example_1.html.erb
|
62
|
-
- spec/dummy/app/views/templates/folder_example/deep_folder_example/example_3.html.erb
|
63
|
-
- spec/dummy/app/views/templates/folder_example/example_2.html.erb
|
64
|
-
- spec/dummy/bin/rails
|
65
|
-
- spec/dummy/bin/rake
|
66
|
-
- spec/dummy/bin/setup
|
67
|
-
- spec/dummy/config.ru
|
68
|
-
- spec/dummy/config/application.rb
|
69
|
-
- spec/dummy/config/boot.rb
|
70
|
-
- spec/dummy/config/database.yml
|
71
|
-
- spec/dummy/config/environment.rb
|
72
|
-
- spec/dummy/config/environments/development.rb
|
73
|
-
- spec/dummy/config/environments/production.rb
|
74
|
-
- spec/dummy/config/environments/test.rb
|
75
|
-
- spec/dummy/config/initializers/assets.rb
|
76
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
77
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
78
|
-
- spec/dummy/config/initializers/inflections.rb
|
79
|
-
- spec/dummy/config/initializers/permissions_policy.rb
|
80
|
-
- spec/dummy/config/locales/en.yml
|
81
|
-
- spec/dummy/config/puma.rb
|
82
|
-
- spec/dummy/config/routes.rb
|
83
|
-
- spec/dummy/config/storage.yml
|
84
|
-
- spec/dummy/log/development.log
|
85
|
-
- spec/dummy/public/404.html
|
86
|
-
- spec/dummy/public/422.html
|
87
|
-
- spec/dummy/public/500.html
|
88
|
-
- spec/dummy/public/apple-touch-icon-precomposed.png
|
89
|
-
- spec/dummy/public/apple-touch-icon.png
|
90
|
-
- spec/dummy/public/favicon.ico
|
91
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2M/2MAeYGAY45NZwjibSlhTx4BGyoFwEASnw8OOvzoPIfc.cache
|
92
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2e/2ek7t0LQPdRX4lcsH8XX9yBrpBF1sMwmZmdeFlgf_Q0.cache
|
93
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2j/2jrKpaTjFrBWDDzvaEc3AI_0vDJiBZZR_07WiExafzM.cache
|
94
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/49/496_a5VnSine9-_CqKkEEp3KqBwPjWlZhdqdtlMHgLc.cache
|
95
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/6R/6RAKOlKW3tB4ZhiNL6nVJULnHHER8HHfwCzmDDra0Rk.cache
|
96
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7N/7NFl5qThg3hc3O7ZJZUCaRHo5AQeK0k-N0zEiqMxp-M.cache
|
97
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/C8/C8TEvZYpztgLTR6gM2XcuriZ1OSwPvQyok-reKuKtUo.cache
|
98
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/DX/DXOxSHHIgfdJQF_9KcMvopZ1VWpHzn5AI8KN5R4vkSg.cache
|
99
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/FM/FMrxanWFOrajAAElycRrSH8kAn48Tgi9y2ttFNP7BLo.cache
|
100
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/H0/H08GISlZ931aF5r8N02rv-fsvRMYNws3V8s6diggrU8.cache
|
101
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/KC/KCHa2Ee3BuOl0sNMSIMXL8MY6Hhx3evXlElaWy3jTE4.cache
|
102
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYBkYAqHGrXmJbHyOTdSPiU2SmIEipK8U43erhIVkco.cache
|
103
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/On/OnyCmCxC_T0QEGfWWeWjkSyu1dHhkvBWCmviYXzuX7w.cache
|
104
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/PT/PTQWcxxA1r1nKovYz0VU4TTsuKmSxJVmC534ucjH8eg.cache
|
105
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/QB/QBOGV65q7kxlEvzPf4_dDKWLJ0xKdm7WmEfO8Ei2aME.cache
|
106
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/R4/R4xPn-UcTN-hk1fy8N3kDlh35zSSfU1xDxBHtpWjZww.cache
|
107
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/TY/TY801gOOBLAFciwSH9MpRQIm_ua5WYZSHm75xEUvjMc.cache
|
108
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ULOh0ZolkxJ-LucKyRbDpQsM9EKrIU3zgYVh3GPDAew.cache
|
109
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ulybhME9QE-q9scM8yh2bbXcwjohJUh9nM169M7BLpg.cache
|
110
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cj/cjr6kKZl1jz29v3-bI5-3-kxgsv3LSUUb64PRTVXkUA.cache
|
111
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cy/cygCUfkLX3IQ6knjQ1wScjHrNRc6sx2IMG9g6XCSeGM.cache
|
112
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBMW9818Rcj0YFAQGnGRPInLE4nxg4MRQxf5oMTkYXQ.cache
|
113
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBz4_5n1jSGudGJIQYq-3Tu315jxVYdHpt5UGM8kPeg.cache
|
114
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/f7/f7iLPc7ku5n9m-SZc5c30hIkGE4iSB-GDAlCZn0Zfso.cache
|
115
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/kI/kIjjB6GADQ-iUYczFhypYH6ziSbcB61qTP8Aswk-0hc.cache
|
116
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
117
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
118
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/p_/p_4jCnzWsxjI4cOwzmhtbHktBW9nQS3JPW_h_g8Epo0.cache
|
119
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/tf/tfIrQCl9Gmfy7yvsMeqC2lKCLMHeZGEQJ2j2NxsuumY.cache
|
120
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/ur/ur1aNCXLtRdYcv3q2JiACQIMzE3Ye53WR1X7zHDVlsE.cache
|
121
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wo/wo05iTqGknAPJGrk-zgvijzWaIEoHq0JuyIaMKAzViU.cache
|
122
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/zM/zMYJo7-35vm5lIG-gzuCNqcoV7tMBG_QyssS2zBeJ1E.cache
|
123
|
-
- spec/dummy/tmp/development_secret.txt
|
124
|
-
- spec/dummy/tmp/pids/server.pid
|
125
|
-
- spec/dummy/tmp/restart.txt
|
126
|
-
- spec/features/dummy_functionality_spec.rb
|
127
|
-
- spec/rails_helper.rb
|
128
|
-
- spec/spec_helper.rb
|
129
57
|
homepage: https://github.com/Ancez/templates-rails
|
130
58
|
licenses:
|
131
59
|
- MIT
|
@@ -148,86 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
76
|
- !ruby/object:Gem::Version
|
149
77
|
version: '0'
|
150
78
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.2.3
|
152
80
|
signing_key:
|
153
81
|
specification_version: 4
|
154
82
|
summary: Simple to use templating system for your Rails application. Design your views
|
155
83
|
before implementation.
|
156
|
-
test_files:
|
157
|
-
- spec/spec_helper.rb
|
158
|
-
- spec/dummy/app/controllers/application_controller.rb
|
159
|
-
- spec/dummy/app/controllers/dashboard_controller.rb
|
160
|
-
- spec/dummy/app/views/dashboard/show.html.erb
|
161
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
162
|
-
- spec/dummy/app/views/layouts/mailer.html.erb
|
163
|
-
- spec/dummy/app/views/layouts/mailer.text.erb
|
164
|
-
- spec/dummy/app/views/templates/example_1.html.erb
|
165
|
-
- spec/dummy/app/views/templates/folder_example/deep_folder_example/example_3.html.erb
|
166
|
-
- spec/dummy/app/views/templates/folder_example/example_2.html.erb
|
167
|
-
- spec/dummy/app/assets/config/manifest.js
|
168
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
169
|
-
- spec/dummy/bin/rake
|
170
|
-
- spec/dummy/bin/setup
|
171
|
-
- spec/dummy/bin/rails
|
172
|
-
- spec/dummy/config/routes.rb
|
173
|
-
- spec/dummy/config/locales/en.yml
|
174
|
-
- spec/dummy/config/environments/production.rb
|
175
|
-
- spec/dummy/config/environments/development.rb
|
176
|
-
- spec/dummy/config/environments/test.rb
|
177
|
-
- spec/dummy/config/environment.rb
|
178
|
-
- spec/dummy/config/storage.yml
|
179
|
-
- spec/dummy/config/application.rb
|
180
|
-
- spec/dummy/config/puma.rb
|
181
|
-
- spec/dummy/config/database.yml
|
182
|
-
- spec/dummy/config/boot.rb
|
183
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
184
|
-
- spec/dummy/config/initializers/assets.rb
|
185
|
-
- spec/dummy/config/initializers/permissions_policy.rb
|
186
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
187
|
-
- spec/dummy/config/initializers/inflections.rb
|
188
|
-
- spec/dummy/config.ru
|
189
|
-
- spec/dummy/Rakefile
|
190
|
-
- spec/dummy/public/favicon.ico
|
191
|
-
- spec/dummy/public/422.html
|
192
|
-
- spec/dummy/public/apple-touch-icon.png
|
193
|
-
- spec/dummy/public/500.html
|
194
|
-
- spec/dummy/public/404.html
|
195
|
-
- spec/dummy/public/apple-touch-icon-precomposed.png
|
196
|
-
- spec/dummy/log/development.log
|
197
|
-
- spec/dummy/tmp/pids/server.pid
|
198
|
-
- spec/dummy/tmp/development_secret.txt
|
199
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/ur/ur1aNCXLtRdYcv3q2JiACQIMzE3Ye53WR1X7zHDVlsE.cache
|
200
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/zM/zMYJo7-35vm5lIG-gzuCNqcoV7tMBG_QyssS2zBeJ1E.cache
|
201
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/6R/6RAKOlKW3tB4ZhiNL6nVJULnHHER8HHfwCzmDDra0Rk.cache
|
202
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/KC/KCHa2Ee3BuOl0sNMSIMXL8MY6Hhx3evXlElaWy3jTE4.cache
|
203
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
204
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/FM/FMrxanWFOrajAAElycRrSH8kAn48Tgi9y2ttFNP7BLo.cache
|
205
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/C8/C8TEvZYpztgLTR6gM2XcuriZ1OSwPvQyok-reKuKtUo.cache
|
206
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/TY/TY801gOOBLAFciwSH9MpRQIm_ua5WYZSHm75xEUvjMc.cache
|
207
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/PT/PTQWcxxA1r1nKovYz0VU4TTsuKmSxJVmC534ucjH8eg.cache
|
208
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ULOh0ZolkxJ-LucKyRbDpQsM9EKrIU3zgYVh3GPDAew.cache
|
209
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/UL/ulybhME9QE-q9scM8yh2bbXcwjohJUh9nM169M7BLpg.cache
|
210
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/p_/p_4jCnzWsxjI4cOwzmhtbHktBW9nQS3JPW_h_g8Epo0.cache
|
211
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/DX/DXOxSHHIgfdJQF_9KcMvopZ1VWpHzn5AI8KN5R4vkSg.cache
|
212
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
213
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/kI/kIjjB6GADQ-iUYczFhypYH6ziSbcB61qTP8Aswk-0hc.cache
|
214
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYBkYAqHGrXmJbHyOTdSPiU2SmIEipK8U43erhIVkco.cache
|
215
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/H0/H08GISlZ931aF5r8N02rv-fsvRMYNws3V8s6diggrU8.cache
|
216
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBz4_5n1jSGudGJIQYq-3Tu315jxVYdHpt5UGM8kPeg.cache
|
217
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dB/dBMW9818Rcj0YFAQGnGRPInLE4nxg4MRQxf5oMTkYXQ.cache
|
218
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cj/cjr6kKZl1jz29v3-bI5-3-kxgsv3LSUUb64PRTVXkUA.cache
|
219
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/f7/f7iLPc7ku5n9m-SZc5c30hIkGE4iSB-GDAlCZn0Zfso.cache
|
220
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/cy/cygCUfkLX3IQ6knjQ1wScjHrNRc6sx2IMG9g6XCSeGM.cache
|
221
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/On/OnyCmCxC_T0QEGfWWeWjkSyu1dHhkvBWCmviYXzuX7w.cache
|
222
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2M/2MAeYGAY45NZwjibSlhTx4BGyoFwEASnw8OOvzoPIfc.cache
|
223
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2j/2jrKpaTjFrBWDDzvaEc3AI_0vDJiBZZR_07WiExafzM.cache
|
224
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/QB/QBOGV65q7kxlEvzPf4_dDKWLJ0xKdm7WmEfO8Ei2aME.cache
|
225
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7N/7NFl5qThg3hc3O7ZJZUCaRHo5AQeK0k-N0zEiqMxp-M.cache
|
226
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/tf/tfIrQCl9Gmfy7yvsMeqC2lKCLMHeZGEQJ2j2NxsuumY.cache
|
227
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/R4/R4xPn-UcTN-hk1fy8N3kDlh35zSSfU1xDxBHtpWjZww.cache
|
228
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/49/496_a5VnSine9-_CqKkEEp3KqBwPjWlZhdqdtlMHgLc.cache
|
229
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2e/2ek7t0LQPdRX4lcsH8XX9yBrpBF1sMwmZmdeFlgf_Q0.cache
|
230
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wo/wo05iTqGknAPJGrk-zgvijzWaIEoHq0JuyIaMKAzViU.cache
|
231
|
-
- spec/dummy/tmp/restart.txt
|
232
|
-
- spec/features/dummy_functionality_spec.rb
|
233
|
-
- spec/rails_helper.rb
|
84
|
+
test_files: []
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2022 Ancez
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/spec/dummy/Rakefile
DELETED
@@ -1,15 +0,0 @@
|
|
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 +0,0 @@
|
|
1
|
-
<%= link_to 'Go to Templates', templates_engine_path %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<%= csrf_meta_tags %>
|
7
|
-
<%= csp_meta_tag %>
|
8
|
-
|
9
|
-
<%= stylesheet_link_tag "application" %>
|
10
|
-
</head>
|
11
|
-
|
12
|
-
<body>
|
13
|
-
<%= yield %>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= yield %>
|
data/spec/dummy/bin/rails
DELETED
data/spec/dummy/bin/rake
DELETED
data/spec/dummy/bin/setup
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "fileutils"
|
3
|
-
|
4
|
-
# path to your application root.
|
5
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
6
|
-
|
7
|
-
def system!(*args)
|
8
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
9
|
-
end
|
10
|
-
|
11
|
-
FileUtils.chdir APP_ROOT do
|
12
|
-
# This script is a way to set up or update your development environment automatically.
|
13
|
-
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
14
|
-
# Add necessary setup steps to this file.
|
15
|
-
|
16
|
-
puts "== Installing dependencies =="
|
17
|
-
system! "gem install bundler --conservative"
|
18
|
-
system("bundle check") || system!("bundle install")
|
19
|
-
|
20
|
-
# puts "\n== Copying sample files =="
|
21
|
-
# unless File.exist?("config/database.yml")
|
22
|
-
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
23
|
-
# end
|
24
|
-
|
25
|
-
puts "\n== Preparing database =="
|
26
|
-
system! "bin/rails db:prepare"
|
27
|
-
|
28
|
-
puts "\n== Removing old logs and tempfiles =="
|
29
|
-
system! "bin/rails log:clear tmp:clear"
|
30
|
-
|
31
|
-
puts "\n== Restarting application server =="
|
32
|
-
system! "bin/rails restart"
|
33
|
-
end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
require_relative 'boot'
|
2
|
-
|
3
|
-
require 'rails'
|
4
|
-
# Pick the frameworks you want:
|
5
|
-
# require 'active_model/railtie'
|
6
|
-
# require 'active_job/railtie'
|
7
|
-
# require 'active_record/railtie'
|
8
|
-
# require 'active_storage/engine'
|
9
|
-
require 'action_controller/railtie'
|
10
|
-
# require 'action_mailer/railtie'
|
11
|
-
# require 'action_mailbox/engine'
|
12
|
-
# require 'action_text/engine'
|
13
|
-
require 'action_view/railtie'
|
14
|
-
# require 'action_cable/engine'
|
15
|
-
# require 'rails/test_unit/railtie'
|
16
|
-
|
17
|
-
# Require the gems listed in Gemfile, including any gems
|
18
|
-
# you've limited to :test, :development, or :production.
|
19
|
-
Bundler.require(*Rails.groups)
|
20
|
-
require 'templates-rails'
|
21
|
-
|
22
|
-
module Dummy
|
23
|
-
class Application < Rails::Application
|
24
|
-
config.load_defaults Rails::VERSION::STRING.to_f
|
25
|
-
|
26
|
-
# For compatibility with applications that use this config
|
27
|
-
config.action_controller.include_all_helpers = false
|
28
|
-
|
29
|
-
# Configuration for the application, engines, and railties goes here.
|
30
|
-
#
|
31
|
-
# These settings can be overridden in specific environments using the files
|
32
|
-
# in config/environments, which are processed later.
|
33
|
-
#
|
34
|
-
# config.time_zone = "Central Time (US & Canada)"
|
35
|
-
# config.eager_load_paths << Rails.root.join("extras")
|
36
|
-
|
37
|
-
# Don't generate system test files.
|
38
|
-
config.generators.system_tests = nil
|
39
|
-
end
|
40
|
-
end
|
data/spec/dummy/config/boot.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
adapter: postgresql
|
3
|
-
database: templates_development
|
4
|
-
pool: 5
|
5
|
-
timeout: 5000
|
6
|
-
test:
|
7
|
-
adapter: postgresql
|
8
|
-
database: templates_test
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
production:
|
13
|
-
adapter: postgresql
|
14
|
-
database: templates_production
|
15
|
-
pool: 5
|
16
|
-
timeout: 5000
|