dry-web-roda 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/CONTRIBUTING.md +29 -0
  4. data/Gemfile +4 -3
  5. data/README.md +1 -1
  6. data/dry-web-roda.gemspec +0 -2
  7. data/lib/dry/web/roda/cli.rb +2 -2
  8. data/lib/dry/web/roda/cli/generate.rb +1 -1
  9. data/lib/dry/web/roda/generate.rb +32 -34
  10. data/lib/dry/web/roda/generators/abstract_generator.rb +54 -0
  11. data/lib/dry/web/roda/generators/abstract_project.rb +118 -0
  12. data/lib/dry/web/roda/generators/flat_project.rb +20 -14
  13. data/lib/dry/web/roda/generators/sub_app.rb +34 -13
  14. data/lib/dry/web/roda/generators/umbrella_project.rb +10 -19
  15. data/lib/dry/web/roda/templates/.env.test.tt +1 -0
  16. data/lib/dry/web/roda/templates/.env.tt +2 -0
  17. data/lib/dry/web/roda/templates/.gitignore +8 -0
  18. data/lib/dry/web/roda/{skeletons/flat_project/lib/__underscored_app_name__ → templates}/.keep +0 -0
  19. data/lib/dry/web/roda/templates/.rspec +2 -0
  20. data/lib/dry/web/roda/{skeletons/flat_project → templates}/Gemfile +4 -3
  21. data/lib/dry/web/roda/{skeletons/umbrella_project → templates}/README.md.tt +2 -2
  22. data/lib/dry/web/roda/templates/Rakefile.tt +66 -0
  23. data/lib/dry/web/roda/{skeletons/flat_project/web/templates/layouts → templates}/application.html.slim +0 -0
  24. data/lib/dry/web/roda/templates/boot__settings.rb.tt +10 -0
  25. data/lib/dry/web/roda/{skeletons/flat_project → templates}/config.ru.tt +0 -0
  26. data/lib/dry/web/roda/{skeletons/flat_project/bin → templates}/console.tt +0 -0
  27. data/lib/dry/web/roda/templates/container.rb.tt +14 -0
  28. data/lib/dry/web/roda/{skeletons/flat_project/web/routes/example.rb.tt → templates/example_routes.rb.tt} +0 -0
  29. data/lib/dry/web/roda/{skeletons/flat_project/system/__underscored_app_name__ → templates/flat_project}/application.rb.tt +6 -1
  30. data/lib/dry/web/roda/templates/flat_project/boot.rb.tt +10 -0
  31. data/lib/dry/web/roda/{skeletons/flat_project/system/__underscored_app_name__ → templates}/import.rb.tt +0 -0
  32. data/lib/dry/web/roda/{skeletons/flat_project/system/boot → templates}/monitor.rb.tt +0 -0
  33. data/lib/dry/web/roda/templates/operation.rb.tt +9 -0
  34. data/lib/dry/web/roda/{skeletons/flat_project/system/__underscored_app_name__ → templates}/repository.rb.tt +4 -2
  35. data/lib/dry/web/roda/templates/rom.rb.tt +39 -0
  36. data/lib/dry/web/roda/{skeletons/flat_project/db → templates}/sample_data.rb +0 -0
  37. data/lib/dry/web/roda/{skeletons/flat_project/db → templates}/seed.rb +0 -0
  38. data/lib/dry/web/roda/templates/settings.rb.tt +9 -0
  39. data/lib/dry/web/roda/{skeletons/flat_project/bin → templates}/setup +0 -0
  40. data/lib/dry/web/roda/{skeletons/umbrella_project/spec/db_helper.rb.tt → templates/spec/db_spec_helper.rb.tt} +2 -3
  41. data/lib/dry/web/roda/templates/spec/factories/example.rb +9 -0
  42. data/lib/dry/web/roda/{skeletons/flat_project → templates}/spec/spec_helper.rb.tt +1 -1
  43. data/lib/dry/web/roda/templates/spec/support/db/factory.rb +8 -0
  44. data/lib/dry/web/roda/templates/spec/support/db/helpers.rb.tt +13 -0
  45. data/lib/dry/web/roda/templates/spec/support/web/helpers.rb.tt +9 -0
  46. data/lib/dry/web/roda/{skeletons/umbrella_project/spec/app_helper.rb → templates/spec/web_spec_helper.rb} +8 -6
  47. data/lib/dry/web/roda/{skeletons/sub_app/system/__underscored_app_name__ → templates/subapp}/application.rb.tt +6 -1
  48. data/lib/dry/web/roda/templates/subapp/boot.rb.tt +5 -0
  49. data/lib/dry/web/roda/{skeletons/sub_app/system/__underscored_app_name__ → templates/subapp}/container.rb.tt +6 -9
  50. data/lib/dry/web/roda/{skeletons/sub_app/system/__underscored_app_name__ → templates/subapp}/transactions.rb.tt +2 -3
  51. data/lib/dry/web/roda/templates/subapp/view_context.rb.tt +8 -0
  52. data/lib/dry/web/roda/templates/subapp/view_controller.rb.tt +17 -0
  53. data/lib/dry/web/roda/{skeletons/flat_project/lib → templates}/types.rb +0 -0
  54. data/lib/dry/web/roda/{skeletons/umbrella_project/system/__underscored_app_name__ → templates/umbrella_project}/application.rb.tt +6 -1
  55. data/lib/dry/web/roda/templates/umbrella_project/boot.rb.tt +16 -0
  56. data/lib/dry/web/roda/templates/view_context.rb.tt +43 -0
  57. data/lib/dry/web/roda/templates/view_controller.rb.tt +17 -0
  58. data/lib/dry/web/roda/{skeletons/flat_project/web/templates → templates}/welcome.html.slim +0 -0
  59. data/lib/dry/web/roda/{skeletons/flat_project/lib/__underscored_app_name__/views → templates}/welcome.rb.tt +2 -2
  60. data/lib/dry/web/roda/version.rb +1 -1
  61. data/lib/roda/plugins/dry_view.rb +1 -1
  62. data/spec/support/project.rb +1 -1
  63. metadata +51 -116
  64. data/lib/dry/web/roda/skeletons/flat_project/README.md.tt +0 -12
  65. data/lib/dry/web/roda/skeletons/flat_project/Rakefile.tt +0 -81
  66. data/lib/dry/web/roda/skeletons/flat_project/config/settings.yml.tt +0 -8
  67. data/lib/dry/web/roda/skeletons/flat_project/lib/persistence/commands/.keep +0 -0
  68. data/lib/dry/web/roda/skeletons/flat_project/lib/persistence/relations/.keep +0 -0
  69. data/lib/dry/web/roda/skeletons/flat_project/log/.keep +0 -0
  70. data/lib/dry/web/roda/skeletons/flat_project/spec/app_helper.rb +0 -35
  71. data/lib/dry/web/roda/skeletons/flat_project/spec/db_helper.rb.tt +0 -24
  72. data/lib/dry/web/roda/skeletons/flat_project/spec/support/db/test_factories.rb +0 -3
  73. data/lib/dry/web/roda/skeletons/flat_project/spec/support/test_helpers.rb.tt +0 -15
  74. data/lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/container.rb.tt +0 -23
  75. data/lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/settings.rb.tt +0 -17
  76. data/lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/transactions.rb.tt +0 -34
  77. data/lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_context.rb.tt +0 -39
  78. data/lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_controller.rb.tt +0 -13
  79. data/lib/dry/web/roda/skeletons/flat_project/system/boot.rb.tt +0 -11
  80. data/lib/dry/web/roda/skeletons/flat_project/system/boot/rom.rb.tt +0 -32
  81. data/lib/dry/web/roda/skeletons/flat_project/system/boot/view.rb.tt +0 -3
  82. data/lib/dry/web/roda/skeletons/flat_project/transactions/example.rb.tt +0 -10
  83. data/lib/dry/web/roda/skeletons/sub_app/lib/__underscored_app_name__/.keep +0 -0
  84. data/lib/dry/web/roda/skeletons/sub_app/lib/__underscored_app_name__/views/welcome.rb.tt +0 -11
  85. data/lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/import.rb.tt +0 -5
  86. data/lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_context.rb.tt +0 -6
  87. data/lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_controller.rb.tt +0 -13
  88. data/lib/dry/web/roda/skeletons/sub_app/system/boot.rb.tt +0 -8
  89. data/lib/dry/web/roda/skeletons/sub_app/system/boot/view.rb.tt +0 -3
  90. data/lib/dry/web/roda/skeletons/sub_app/transactions/example.rb.tt +0 -9
  91. data/lib/dry/web/roda/skeletons/sub_app/web/routes/example.rb.tt +0 -7
  92. data/lib/dry/web/roda/skeletons/sub_app/web/templates/layouts/application.html.slim +0 -3
  93. data/lib/dry/web/roda/skeletons/sub_app/web/templates/welcome.html.slim +0 -1
  94. data/lib/dry/web/roda/skeletons/umbrella_project/.gitignore +0 -8
  95. data/lib/dry/web/roda/skeletons/umbrella_project/Gemfile +0 -40
  96. data/lib/dry/web/roda/skeletons/umbrella_project/Rakefile.tt +0 -81
  97. data/lib/dry/web/roda/skeletons/umbrella_project/bin/console.tt +0 -7
  98. data/lib/dry/web/roda/skeletons/umbrella_project/bin/setup +0 -7
  99. data/lib/dry/web/roda/skeletons/umbrella_project/config.ru.tt +0 -2
  100. data/lib/dry/web/roda/skeletons/umbrella_project/config/settings.yml.tt +0 -8
  101. data/lib/dry/web/roda/skeletons/umbrella_project/db/sample_data.rb +0 -1
  102. data/lib/dry/web/roda/skeletons/umbrella_project/db/seed.rb +0 -1
  103. data/lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/repository.rb.tt +0 -11
  104. data/lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/transactions.rb.tt +0 -33
  105. data/lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/view_context.rb.tt +0 -39
  106. data/lib/dry/web/roda/skeletons/umbrella_project/lib/persistence/commands/.keep +0 -0
  107. data/lib/dry/web/roda/skeletons/umbrella_project/lib/persistence/relations/.keep +0 -0
  108. data/lib/dry/web/roda/skeletons/umbrella_project/lib/types.rb +0 -6
  109. data/lib/dry/web/roda/skeletons/umbrella_project/log/.keep +0 -0
  110. data/lib/dry/web/roda/skeletons/umbrella_project/spec/spec_helper.rb.tt +0 -61
  111. data/lib/dry/web/roda/skeletons/umbrella_project/spec/support/db/test_factories.rb +0 -3
  112. data/lib/dry/web/roda/skeletons/umbrella_project/spec/support/test_helpers.rb.tt +0 -15
  113. data/lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/container.rb.tt +0 -18
  114. data/lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/import.rb.tt +0 -5
  115. data/lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/settings.rb.tt +0 -17
  116. data/lib/dry/web/roda/skeletons/umbrella_project/system/boot.rb.tt +0 -12
  117. data/lib/dry/web/roda/skeletons/umbrella_project/system/boot/monitor.rb.tt +0 -9
  118. data/lib/dry/web/roda/skeletons/umbrella_project/system/boot/rom.rb.tt +0 -32
@@ -10,7 +10,7 @@ module <%= config[:camel_cased_app_name] %>
10
10
 
11
11
  opts[:root] = Pathname(__FILE__).join("../..").realpath.dirname
12
12
 
13
- use Rack::Session::Cookie, key: "<%= config[:underscored_app_name] %>.session", secret: <%= config[:camel_cased_umbrella_name] %>::Container.settings.session_secret
13
+ use Rack::Session::Cookie, key: "<%= config[:underscored_project_name] %>.session", secret: self["core.settings"].session_secret
14
14
 
15
15
  plugin :csrf, raise: true
16
16
  plugin :flash
@@ -24,6 +24,11 @@ module <%= config[:camel_cased_app_name] %>
24
24
  end
25
25
  end
26
26
 
27
+ error do |e|
28
+ self.class[:rack_monitor].instrument(:error, exception: e)
29
+ raise e
30
+ end
31
+
27
32
  load_routes!
28
33
  end
29
34
  end
@@ -0,0 +1,5 @@
1
+ require_relative "<%= config[:underscored_project_name] %>/container"
2
+
3
+ <%= config[:camel_cased_app_name] %>::Container.finalize!
4
+
5
+ require "<%= config[:underscored_project_name] %>/application"
@@ -4,20 +4,17 @@ require "dry/web/container"
4
4
  module <%= config[:camel_cased_app_name] %>
5
5
  class Container < Dry::Web::Container
6
6
  require root.join("system/<%= config[:underscored_umbrella_name] %>/container")
7
- import <%= config[:camel_cased_umbrella_name] %>::Container
7
+ import core: <%= config[:camel_cased_umbrella_name] %>::Container
8
+
9
+ register :rack_monitor, <%= config[:camel_cased_umbrella_name] %>::Container[:rack_monitor]
8
10
 
9
11
  configure do |config|
10
12
  config.root = Pathname(__FILE__).join("../..").realpath.dirname.freeze
11
-
12
13
  config.logger = <%= config[:camel_cased_umbrella_name] %>::Container[:logger]
13
-
14
- config.default_namespace = "<%= config[:underscored_app_name] %>"
15
-
16
- config.auto_register = %w[
17
- lib/<%= config[:underscored_app_name] %>
18
- ]
14
+ config.default_namespace = "<%= config[:underscored_project_name] %>"
15
+ config.auto_register = %w[lib/<%= config[:underscored_project_name] %>]
19
16
  end
20
17
 
21
- load_paths! "lib", "system"
18
+ load_paths! "lib"
22
19
  end
23
20
  end
@@ -1,7 +1,6 @@
1
1
  require "dry-transaction"
2
- require "<%= config[:underscored_umbrella_name] %>/transactions"
3
- require "<%= config[:underscored_app_name] %>/container"
4
- require "<%= config[:underscored_app_name] %>/import"
2
+ require "<%= config[:underscored_project_name] %>/container"
3
+ require "<%= config[:underscored_project_name] %>/import"
5
4
 
6
5
  module <%= config[:camel_cased_app_name] %>
7
6
  class Transactions < <%= config[:camel_cased_umbrella_name] %>::Transactions
@@ -0,0 +1,8 @@
1
+ require "<%= config[:underscored_umbrella_name] %>/view/context"
2
+
3
+ module <%= config[:camel_cased_app_name] %>
4
+ module View
5
+ class Context < <%= config[:camel_cased_umbrella_name] %>::View::Context
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,17 @@
1
+ # auto_register: false
2
+
3
+ require "slim"
4
+ require "dry-view"
5
+ require "<%= config[:underscored_project_name] %>/container"
6
+
7
+ module <%= config[:camel_cased_app_name] %>
8
+ module View
9
+ class Controller < Dry::View::Controller
10
+ configure do |config|
11
+ config.paths = [Container.root.join("web/templates")]
12
+ config.context = Container["view.context"]
13
+ config.layout = "application"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -8,7 +8,12 @@ module <%= config[:camel_cased_app_name] %>
8
8
  end
9
9
 
10
10
  route do |r|
11
- r.run Main::Application.freeze.app
11
+ r.run ::Main::Application.freeze.app
12
+ end
13
+
14
+ error do |e|
15
+ self.class[:rack_monitor].instrument(:error, exception: e)
16
+ raise e
12
17
  end
13
18
  end
14
19
  end
@@ -0,0 +1,16 @@
1
+ begin
2
+ require "pry-byebug"
3
+ rescue LoadError
4
+ end
5
+
6
+ require_relative "<%= config[:underscored_project_name] %>/container"
7
+
8
+ <%= config[:camel_cased_app_name] %>::Container.finalize!
9
+
10
+ # Load sub-apps
11
+ app_paths = Pathname(__FILE__).dirname.join("../apps").realpath.join("*")
12
+ Dir[app_paths].each do |f|
13
+ require "#{f}/system/boot"
14
+ end
15
+
16
+ require "<%= config[:underscored_project_name] %>/application"
@@ -0,0 +1,43 @@
1
+ # auto_register: false
2
+
3
+ module <%= config[:camel_cased_app_name] %>
4
+ module View
5
+ class Context
6
+ attr_reader :attrs
7
+
8
+ def initialize(attrs = {})
9
+ @attrs = attrs
10
+ end
11
+
12
+ def csrf_token
13
+ self[:csrf_token]
14
+ end
15
+
16
+ def csrf_metatag
17
+ self[:csrf_metatag]
18
+ end
19
+
20
+ def csrf_tag
21
+ self[:csrf_tag]
22
+ end
23
+
24
+ def flash
25
+ self[:flash]
26
+ end
27
+
28
+ def flash?
29
+ %i[notice alert].any? { |type| flash[type] }
30
+ end
31
+
32
+ def with(new_attrs)
33
+ self.class.new(attrs.merge(new_attrs))
34
+ end
35
+
36
+ private
37
+
38
+ def [](name)
39
+ attrs.fetch(name)
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,17 @@
1
+ # auto_register: false
2
+
3
+ require "slim"
4
+ require "dry-view"
5
+ require "<%= config[:underscored_project_name] %>/container"
6
+
7
+ module <%= config[:camel_cased_app_name] %>
8
+ module View
9
+ class Controller < Dry::View::Controller
10
+ configure do |config|
11
+ config.paths = [Container.root.join("web/templates")]
12
+ config.context = Container["view.context"]
13
+ config.layout = "application"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,8 +1,8 @@
1
- require "<%= config[:underscored_app_name] %>/view_controller"
1
+ require "<%= config[:underscored_project_name] %>/view/controller"
2
2
 
3
3
  module <%= config[:camel_cased_app_name] %>
4
4
  module Views
5
- class Welcome < <%= config[:camel_cased_app_name] %>::ViewController
5
+ class Welcome < <%= config[:camel_cased_app_name] %>::View::Controller
6
6
  configure do |config|
7
7
  config.template = "welcome"
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.6.3".freeze
4
+ VERSION = "0.7.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -9,7 +9,7 @@ class Roda
9
9
 
10
10
  module InstanceMethods
11
11
  def view_context
12
- self.class["view_context"].with(view_context_options)
12
+ self.class["view.context"].with(view_context_options)
13
13
  end
14
14
 
15
15
  def view_context_options
@@ -16,7 +16,7 @@ module RSpec
16
16
  create_project name, args
17
17
 
18
18
  within_project_directory(name) do
19
- setup_gemfile
19
+ setup_gemfile gems: ["'dry-web-roda', path: '#{root}'"], exclude_gems: ['dry-web-roda']
20
20
  bundle_install
21
21
  yield
22
22
  end
metadata CHANGED
@@ -1,49 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-web-roda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: dry-web
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.6'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.6.0
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '0.6'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.6.0
33
- - !ruby/object:Gem::Dependency
34
- name: dry-monitor
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
13
  - !ruby/object:Gem::Dependency
48
14
  name: dry-configurable
49
15
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +176,7 @@ files:
210
176
  - ".rspec"
211
177
  - ".travis.yml"
212
178
  - CHANGELOG.md
179
+ - CONTRIBUTING.md
213
180
  - Gemfile
214
181
  - LICENSE
215
182
  - README.md
@@ -221,89 +188,57 @@ files:
221
188
  - lib/dry/web/roda/cli.rb
222
189
  - lib/dry/web/roda/cli/generate.rb
223
190
  - lib/dry/web/roda/generate.rb
191
+ - lib/dry/web/roda/generators/abstract_generator.rb
192
+ - lib/dry/web/roda/generators/abstract_project.rb
224
193
  - lib/dry/web/roda/generators/flat_project.rb
225
194
  - lib/dry/web/roda/generators/inflections.rb
226
195
  - lib/dry/web/roda/generators/sub_app.rb
227
196
  - lib/dry/web/roda/generators/umbrella_project.rb
228
- - lib/dry/web/roda/skeletons/flat_project/Gemfile
229
- - lib/dry/web/roda/skeletons/flat_project/README.md.tt
230
- - lib/dry/web/roda/skeletons/flat_project/Rakefile.tt
231
- - lib/dry/web/roda/skeletons/flat_project/bin/console.tt
232
- - lib/dry/web/roda/skeletons/flat_project/bin/setup
233
- - lib/dry/web/roda/skeletons/flat_project/config.ru.tt
234
- - lib/dry/web/roda/skeletons/flat_project/config/settings.yml.tt
235
- - lib/dry/web/roda/skeletons/flat_project/db/sample_data.rb
236
- - lib/dry/web/roda/skeletons/flat_project/db/seed.rb
237
- - lib/dry/web/roda/skeletons/flat_project/lib/__underscored_app_name__/.keep
238
- - lib/dry/web/roda/skeletons/flat_project/lib/__underscored_app_name__/views/welcome.rb.tt
239
- - lib/dry/web/roda/skeletons/flat_project/lib/persistence/commands/.keep
240
- - lib/dry/web/roda/skeletons/flat_project/lib/persistence/relations/.keep
241
- - lib/dry/web/roda/skeletons/flat_project/lib/types.rb
242
- - lib/dry/web/roda/skeletons/flat_project/log/.keep
243
- - lib/dry/web/roda/skeletons/flat_project/spec/app_helper.rb
244
- - lib/dry/web/roda/skeletons/flat_project/spec/db_helper.rb.tt
245
- - lib/dry/web/roda/skeletons/flat_project/spec/spec_helper.rb.tt
246
- - lib/dry/web/roda/skeletons/flat_project/spec/support/db/test_factories.rb
247
- - lib/dry/web/roda/skeletons/flat_project/spec/support/test_helpers.rb.tt
248
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/application.rb.tt
249
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/container.rb.tt
250
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/import.rb.tt
251
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/repository.rb.tt
252
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/settings.rb.tt
253
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/transactions.rb.tt
254
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_context.rb.tt
255
- - lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_controller.rb.tt
256
- - lib/dry/web/roda/skeletons/flat_project/system/boot.rb.tt
257
- - lib/dry/web/roda/skeletons/flat_project/system/boot/monitor.rb.tt
258
- - lib/dry/web/roda/skeletons/flat_project/system/boot/rom.rb.tt
259
- - lib/dry/web/roda/skeletons/flat_project/system/boot/view.rb.tt
260
- - lib/dry/web/roda/skeletons/flat_project/transactions/example.rb.tt
261
- - lib/dry/web/roda/skeletons/flat_project/web/routes/example.rb.tt
262
- - lib/dry/web/roda/skeletons/flat_project/web/templates/layouts/application.html.slim
263
- - lib/dry/web/roda/skeletons/flat_project/web/templates/welcome.html.slim
264
- - lib/dry/web/roda/skeletons/sub_app/lib/__underscored_app_name__/.keep
265
- - lib/dry/web/roda/skeletons/sub_app/lib/__underscored_app_name__/views/welcome.rb.tt
266
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/application.rb.tt
267
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/container.rb.tt
268
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/import.rb.tt
269
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/transactions.rb.tt
270
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_context.rb.tt
271
- - lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_controller.rb.tt
272
- - lib/dry/web/roda/skeletons/sub_app/system/boot.rb.tt
273
- - lib/dry/web/roda/skeletons/sub_app/system/boot/view.rb.tt
274
- - lib/dry/web/roda/skeletons/sub_app/transactions/example.rb.tt
275
- - lib/dry/web/roda/skeletons/sub_app/web/routes/example.rb.tt
276
- - lib/dry/web/roda/skeletons/sub_app/web/templates/layouts/application.html.slim
277
- - lib/dry/web/roda/skeletons/sub_app/web/templates/welcome.html.slim
278
- - lib/dry/web/roda/skeletons/umbrella_project/.gitignore
279
- - lib/dry/web/roda/skeletons/umbrella_project/Gemfile
280
- - lib/dry/web/roda/skeletons/umbrella_project/README.md.tt
281
- - lib/dry/web/roda/skeletons/umbrella_project/Rakefile.tt
282
- - lib/dry/web/roda/skeletons/umbrella_project/bin/console.tt
283
- - lib/dry/web/roda/skeletons/umbrella_project/bin/setup
284
- - lib/dry/web/roda/skeletons/umbrella_project/config.ru.tt
285
- - lib/dry/web/roda/skeletons/umbrella_project/config/settings.yml.tt
286
- - lib/dry/web/roda/skeletons/umbrella_project/db/sample_data.rb
287
- - lib/dry/web/roda/skeletons/umbrella_project/db/seed.rb
288
- - lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/repository.rb.tt
289
- - lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/transactions.rb.tt
290
- - lib/dry/web/roda/skeletons/umbrella_project/lib/__underscored_app_name__/view_context.rb.tt
291
- - lib/dry/web/roda/skeletons/umbrella_project/lib/persistence/commands/.keep
292
- - lib/dry/web/roda/skeletons/umbrella_project/lib/persistence/relations/.keep
293
- - lib/dry/web/roda/skeletons/umbrella_project/lib/types.rb
294
- - lib/dry/web/roda/skeletons/umbrella_project/log/.keep
295
- - lib/dry/web/roda/skeletons/umbrella_project/spec/app_helper.rb
296
- - lib/dry/web/roda/skeletons/umbrella_project/spec/db_helper.rb.tt
297
- - lib/dry/web/roda/skeletons/umbrella_project/spec/spec_helper.rb.tt
298
- - lib/dry/web/roda/skeletons/umbrella_project/spec/support/db/test_factories.rb
299
- - lib/dry/web/roda/skeletons/umbrella_project/spec/support/test_helpers.rb.tt
300
- - lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/application.rb.tt
301
- - lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/container.rb.tt
302
- - lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/import.rb.tt
303
- - lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/settings.rb.tt
304
- - lib/dry/web/roda/skeletons/umbrella_project/system/boot.rb.tt
305
- - lib/dry/web/roda/skeletons/umbrella_project/system/boot/monitor.rb.tt
306
- - lib/dry/web/roda/skeletons/umbrella_project/system/boot/rom.rb.tt
197
+ - lib/dry/web/roda/templates/.env.test.tt
198
+ - lib/dry/web/roda/templates/.env.tt
199
+ - lib/dry/web/roda/templates/.gitignore
200
+ - lib/dry/web/roda/templates/.keep
201
+ - lib/dry/web/roda/templates/.rspec
202
+ - lib/dry/web/roda/templates/Gemfile
203
+ - lib/dry/web/roda/templates/README.md.tt
204
+ - lib/dry/web/roda/templates/Rakefile.tt
205
+ - lib/dry/web/roda/templates/application.html.slim
206
+ - lib/dry/web/roda/templates/boot__settings.rb.tt
207
+ - lib/dry/web/roda/templates/config.ru.tt
208
+ - lib/dry/web/roda/templates/console.tt
209
+ - lib/dry/web/roda/templates/container.rb.tt
210
+ - lib/dry/web/roda/templates/example_routes.rb.tt
211
+ - lib/dry/web/roda/templates/flat_project/application.rb.tt
212
+ - lib/dry/web/roda/templates/flat_project/boot.rb.tt
213
+ - lib/dry/web/roda/templates/import.rb.tt
214
+ - lib/dry/web/roda/templates/monitor.rb.tt
215
+ - lib/dry/web/roda/templates/operation.rb.tt
216
+ - lib/dry/web/roda/templates/repository.rb.tt
217
+ - lib/dry/web/roda/templates/rom.rb.tt
218
+ - lib/dry/web/roda/templates/sample_data.rb
219
+ - lib/dry/web/roda/templates/seed.rb
220
+ - lib/dry/web/roda/templates/settings.rb.tt
221
+ - lib/dry/web/roda/templates/setup
222
+ - lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
223
+ - lib/dry/web/roda/templates/spec/factories/example.rb
224
+ - lib/dry/web/roda/templates/spec/spec_helper.rb.tt
225
+ - lib/dry/web/roda/templates/spec/support/db/factory.rb
226
+ - lib/dry/web/roda/templates/spec/support/db/helpers.rb.tt
227
+ - lib/dry/web/roda/templates/spec/support/web/helpers.rb.tt
228
+ - lib/dry/web/roda/templates/spec/web_spec_helper.rb
229
+ - lib/dry/web/roda/templates/subapp/application.rb.tt
230
+ - lib/dry/web/roda/templates/subapp/boot.rb.tt
231
+ - lib/dry/web/roda/templates/subapp/container.rb.tt
232
+ - lib/dry/web/roda/templates/subapp/transactions.rb.tt
233
+ - lib/dry/web/roda/templates/subapp/view_context.rb.tt
234
+ - lib/dry/web/roda/templates/subapp/view_controller.rb.tt
235
+ - lib/dry/web/roda/templates/types.rb
236
+ - lib/dry/web/roda/templates/umbrella_project/application.rb.tt
237
+ - lib/dry/web/roda/templates/umbrella_project/boot.rb.tt
238
+ - lib/dry/web/roda/templates/view_context.rb.tt
239
+ - lib/dry/web/roda/templates/view_controller.rb.tt
240
+ - lib/dry/web/roda/templates/welcome.html.slim
241
+ - lib/dry/web/roda/templates/welcome.rb.tt
307
242
  - lib/dry/web/roda/version.rb
308
243
  - lib/roda/plugins/dry_view.rb
309
244
  - script/ci
@@ -341,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
276
  version: '0'
342
277
  requirements: []
343
278
  rubyforge_project:
344
- rubygems_version: 2.6.10
279
+ rubygems_version: 2.6.11
345
280
  signing_key:
346
281
  specification_version: 4
347
282
  summary: Roda integration for dry-web apps
@@ -1,12 +0,0 @@
1
- # <%= config[:camel_cased_app_name] %>
2
-
3
- Welcome! You’ve generated an app using dry-web-roda.
4
-
5
- ## First steps
6
-
7
- 1. Run `bundle`
8
- 1. Review `config/settings.yml` (and make a copy at `config/settings.example.yml` if you want to keep example settings checked in)
9
- 1. Create a `<%= config[:underscored_app_name] %>_development` database
10
- 1. Add your own steps to `bin/setup`
11
- 1. Run the app with `bundle exec shotgun -p 3000 -o 0.0.0.0 config.ru`
12
- 1. Initialize git with `git init` and make your initial commit