roda-project 0.1.0 → 0.1.1
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/lib/roda/project/helpers/template.rb +2 -0
- data/lib/roda/project/version.rb +1 -1
- data/lib/roda/templates/base/app/app.rb.erb +1 -2
- data/lib/roda/templates/base/scaffold/AGENTS.md +2 -2
- data/lib/roda/templates/base/scaffold/Rakefile.erb +1 -1
- data/lib/roda/templates/base/scaffold/app/routes/foo.rb.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08210d041ee17e0cbb350d2a60269bd66231d0829a29d3789bc0f4391dcb1a92'
|
|
4
|
+
data.tar.gz: 6393f6c0f3b56e4d54127e99748a68b8131cdccee2f09c09b366bcaaa5f3db35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ff655e7a93c8a67c9eeb9bb4b9e621527a0e308584c929a72bad01cd3e5e88eb377a46b6e7af818649113183fdaf1b41ea3d19e91faca93e16e925b035672f4
|
|
7
|
+
data.tar.gz: 17bd68c2ac92dd4ce1ab173e5470509851e3662e90eaea8c226c4f5462a2ef4b87fe26758d727f0e9d07f6fb859697b40c665d2423bcc01462be89747a40c554
|
|
@@ -18,6 +18,7 @@ module Roda
|
|
|
18
18
|
)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# For copy without parse ERB files
|
|
21
22
|
def cp_r(type, path)
|
|
22
23
|
FileUtils.cp_r(
|
|
23
24
|
File.expand_path("../../templates/#{type}/#{path}", __dir__),
|
|
@@ -25,6 +26,7 @@ module Roda
|
|
|
25
26
|
)
|
|
26
27
|
end
|
|
27
28
|
|
|
29
|
+
# For copy without parse ERB files
|
|
28
30
|
def cp(type, path)
|
|
29
31
|
File.write(
|
|
30
32
|
"#{@dir}#{@context.project_name}/#{path}",
|
data/lib/roda/project/version.rb
CHANGED
|
@@ -60,8 +60,7 @@ class <%= context.const_project_name %> < Roda
|
|
|
60
60
|
hmac_secret Config.get[:hmac_secret]
|
|
61
61
|
end
|
|
62
62
|
<% end %>
|
|
63
|
-
def config = @config ||= Config.get
|
|
64
|
-
def self.branch(args, &) = hash_branch(args, &)<% if context.fullstack? %>
|
|
63
|
+
def config = @config ||= Config.get<% if context.fullstack? %>
|
|
65
64
|
def html = @html ||= Views::Html.new(t)<% end %>
|
|
66
65
|
|
|
67
66
|
route do |r|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Act as a Ruby specialist.
|
|
2
2
|
|
|
3
|
-
This is a web application written using the Roda web framework
|
|
3
|
+
This is a web application written using the Roda web framework
|
|
4
4
|
|
|
5
5
|
## Project guidelines
|
|
6
6
|
|
|
7
|
-
- **Never** deliver code without
|
|
7
|
+
- **Never** deliver code without tests validating the code (execute with `rake test`)
|
|
8
8
|
- **Never** write long comments in the code
|
|
9
9
|
- **Always** use clean code
|