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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ee06fbd7dc545302e76dae3d4a7b6bf1dfbc96bcd93069192898ae42260cc69
4
- data.tar.gz: 6b25df32eeac0001a9aecf1bacf15b47b100e03a5d7ce48066b0d50e0c2e1e3a
3
+ metadata.gz: '08210d041ee17e0cbb350d2a60269bd66231d0829a29d3789bc0f4391dcb1a92'
4
+ data.tar.gz: 6393f6c0f3b56e4d54127e99748a68b8131cdccee2f09c09b366bcaaa5f3db35
5
5
  SHA512:
6
- metadata.gz: 626e1417abaad740b5e687ebb46179a1cb72c83d70e3388251cf80d48a0003fc758a0ced41089ea7f44adf9e79a15410ed61ec4222c7b38cd0f4029a12cfc638
7
- data.tar.gz: f6746dde88bb1896bf238d0d250b9c2b1fd368f35b9bab7be3c9f74fee14e35fc1152f24f43e3ea58912ed27543b9d77036d586fd8d9d2209a4fbf0183cc592a
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}",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Roda
4
4
  module Project
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -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, Sequel gem for database connection and RSpec for tests.
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 RSpec tests validating the code (execute with `rake test`)
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
@@ -161,7 +161,7 @@ namespace :g do<% if context.database? %>
161
161
 
162
162
  content = <<~RUBY
163
163
  class <%= context.const_project_name %>
164
- branch "#{branch_name}" do |r|
164
+ hash_branch "#{branch_name}" do |r|
165
165
  #{route_definitions}
166
166
  end
167
167
  end
@@ -1,5 +1,5 @@
1
1
  class <%= context.const_project_name %>
2
- branch "foo" do |r|
2
+ hash_branch "foo" do |r|
3
3
  r.get "bar" do
4
4
  <%= context.foo_bar_example %>
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique F. Teixeira