dry-web-roda 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -1
  3. data/README.md +15 -1
  4. data/bin/dry-web-roda +6 -0
  5. data/dry-web-roda.gemspec +2 -0
  6. data/lib/dry/web/roda/cli/generate.rb +18 -0
  7. data/lib/dry/web/roda/cli.rb +19 -0
  8. data/lib/dry/web/roda/generate.rb +54 -0
  9. data/lib/dry/web/roda/generators/app.rb +36 -0
  10. data/lib/dry/web/roda/generators/umbrella.rb +38 -0
  11. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/application.rb.tt +33 -0
  12. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/container.rb.tt +19 -0
  13. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/import.rb.tt +5 -0
  14. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/page.rb.tt +6 -0
  15. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/transactions.rb.tt +12 -0
  16. data/lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/view.rb.tt +19 -0
  17. data/lib/dry/web/roda/skeletons/app/component/boot.rb.tt +10 -0
  18. data/lib/dry/web/roda/skeletons/app/lib/__underscored_app_name__/.keep +0 -0
  19. data/lib/dry/web/roda/skeletons/app/transactions/example.rb.tt +9 -0
  20. data/lib/dry/web/roda/skeletons/app/web/routes/example.rb.tt +7 -0
  21. data/lib/dry/web/roda/skeletons/app/web/templates/layouts/application.html.slim +3 -0
  22. data/lib/dry/web/roda/skeletons/umbrella/.gitignore +5 -0
  23. data/lib/dry/web/roda/skeletons/umbrella/Gemfile +39 -0
  24. data/lib/dry/web/roda/skeletons/umbrella/README.md.tt +12 -0
  25. data/lib/dry/web/roda/skeletons/umbrella/Rakefile.tt +81 -0
  26. data/lib/dry/web/roda/skeletons/umbrella/bin/console.tt +7 -0
  27. data/lib/dry/web/roda/skeletons/umbrella/bin/setup +7 -0
  28. data/lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/application.rb.tt +7 -0
  29. data/lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/container.rb.tt +17 -0
  30. data/lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/import.rb.tt +5 -0
  31. data/lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt +17 -0
  32. data/lib/dry/web/roda/skeletons/umbrella/component/boot/logger.rb.tt +5 -0
  33. data/lib/dry/web/roda/skeletons/umbrella/component/boot/rom.rb.tt +16 -0
  34. data/lib/dry/web/roda/skeletons/umbrella/component/boot.rb.tt +12 -0
  35. data/lib/dry/web/roda/skeletons/umbrella/config/settings.yml.tt +8 -0
  36. data/lib/dry/web/roda/skeletons/umbrella/config.ru.tt +2 -0
  37. data/lib/dry/web/roda/skeletons/umbrella/db/sample_data.rb +1 -0
  38. data/lib/dry/web/roda/skeletons/umbrella/db/seed.rb +1 -0
  39. data/lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/page.rb.tt +48 -0
  40. data/lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/repository.rb.tt +11 -0
  41. data/lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/transactions.rb.tt +33 -0
  42. data/lib/dry/web/roda/skeletons/umbrella/lib/persistence/commands/.keep +0 -0
  43. data/lib/dry/web/roda/skeletons/umbrella/lib/persistence/relations/.keep +0 -0
  44. data/lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb +34 -0
  45. data/lib/dry/web/roda/skeletons/umbrella/lib/types.rb +5 -0
  46. data/lib/dry/web/roda/skeletons/umbrella/log/.keep +0 -0
  47. data/lib/dry/web/roda/skeletons/umbrella/spec/app_helper.rb +35 -0
  48. data/lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt +24 -0
  49. data/lib/dry/web/roda/skeletons/umbrella/spec/spec_helper.rb.tt +66 -0
  50. data/lib/dry/web/roda/skeletons/umbrella/spec/support/db/test_factories.rb +3 -0
  51. data/lib/dry/web/roda/skeletons/umbrella/spec/support/test_helpers.rb.tt +15 -0
  52. data/lib/dry/web/roda/version.rb +1 -1
  53. data/spec/dummy/apps/main/{core → component}/boot.rb +0 -0
  54. data/spec/dummy/apps/main/{core → component}/main/application.rb +0 -0
  55. data/spec/dummy/apps/main/{core → component}/main/container.rb +1 -0
  56. data/spec/dummy/apps/main/{core → component}/main/import.rb +0 -0
  57. data/spec/dummy/apps/main/{core → component}/main/requests.rb +0 -0
  58. data/spec/dummy/apps/main/{core → component}/main/view.rb +0 -0
  59. data/spec/dummy/bin/console +1 -1
  60. data/spec/dummy/{core → component}/boot.rb +1 -1
  61. data/spec/dummy/{core → component}/dummy/application.rb +0 -0
  62. data/spec/dummy/{core → component}/dummy/container.rb +1 -0
  63. data/spec/dummy/config.ru +1 -1
  64. data/spec/spec_helper.rb +1 -1
  65. metadata +97 -21
@@ -0,0 +1 @@
1
+ # Build your seed data here
@@ -0,0 +1,48 @@
1
+ module <%= config[:camel_cased_app_name] %>
2
+ class Page
3
+ attr_reader :options
4
+
5
+ def initialize(options = {})
6
+ @options = options
7
+ end
8
+
9
+ def view_locals
10
+ {
11
+ csrf_token: csrf_token,
12
+ csrf_tag: csrf_tag,
13
+ }
14
+ end
15
+
16
+ def csrf_token
17
+ self[:csrf_token].()
18
+ end
19
+
20
+ def csrf_metatag
21
+ self[:csrf_metatag].()
22
+ end
23
+
24
+ def csrf_tag
25
+ self[:csrf_tag].()
26
+ end
27
+
28
+ def flash
29
+ self[:flash]
30
+ end
31
+
32
+ def flash?
33
+ %w(notice alert).any? { |type| flash[type] }
34
+ end
35
+
36
+ def with_flash(flash)
37
+ with(flash: flash)
38
+ end
39
+
40
+ def with(new_options)
41
+ self.class.new(options.merge(new_options))
42
+ end
43
+
44
+ def [](name)
45
+ options.fetch(name)
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,11 @@
1
+ require "rom-repository"
2
+ require "<%= config[:underscored_app_name] %>/container"
3
+ require "<%= config[:underscored_app_name] %>/import"
4
+
5
+ <%= config[:camel_cased_app_name] %>::Container.boot! :rom
6
+
7
+ module <%= config[:camel_cased_app_name] %>
8
+ class Repository < ROM::Repository::Root
9
+ include <%= config[:camel_cased_app_name] %>::Import.args["persistence.rom"]
10
+ end
11
+ end
@@ -0,0 +1,33 @@
1
+ require "dry-configurable"
2
+ require "dry-transaction"
3
+
4
+ module <%= config[:camel_cased_app_name] %>
5
+ class Transactions
6
+ extend Dry::Configurable
7
+
8
+ attr_reader :options
9
+
10
+ setting :container
11
+ setting :options, {}
12
+
13
+ def self.define(&block)
14
+ yield(new(options))
15
+ end
16
+
17
+ def self.options
18
+ {container: config.container}.merge(config.options)
19
+ end
20
+
21
+ def initialize(options)
22
+ @options = options
23
+ end
24
+
25
+ def container
26
+ options[:container]
27
+ end
28
+
29
+ def define(name, &block)
30
+ container.register(name, Dry.Transaction(options, &block))
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,34 @@
1
+ require "roda"
2
+ require "rack/csrf"
3
+
4
+ class Roda
5
+ module RodaPlugins
6
+ module Page
7
+ module InstanceMethods
8
+ def current_page
9
+ page.with_flash(flash)
10
+ end
11
+
12
+ def page
13
+ self.class["page"].with(
14
+ csrf_token: -> { Rack::Csrf.token(request.env) },
15
+ csrf_metatag: -> { Rack::Csrf.metatag(request.env) },
16
+ csrf_tag: -> { Rack::Csrf.tag(request.env) },
17
+ )
18
+ end
19
+ end
20
+ end
21
+
22
+ module View
23
+ module RequestMethods
24
+ def view(name, overrides = {})
25
+ options = {scope: scope.current_page}.merge(overrides)
26
+ is to: "#{scope.name}.views.#{name}", call_with: [options]
27
+ end
28
+ end
29
+ end
30
+
31
+ register_plugin :page, Page
32
+ register_plugin :view, View
33
+ end
34
+ end
@@ -0,0 +1,5 @@
1
+ require "dry-types"
2
+
3
+ module Types
4
+ include Dry::Types.module
5
+ end
File without changes
@@ -0,0 +1,35 @@
1
+ require_relative "db_helper"
2
+
3
+ require "rack/test"
4
+ require "capybara/rspec"
5
+ require "capybara-screenshot/rspec"
6
+ require "capybara/poltergeist"
7
+
8
+ Dir[SPEC_ROOT.join("support/app/*.rb").to_s].each(&method(:require))
9
+ Dir[SPEC_ROOT.join("shared/app/*.rb").to_s].each(&method(:require))
10
+
11
+ require SPEC_ROOT.join("../component/boot").realpath
12
+
13
+ Capybara.app = TestHelpers.app
14
+ Capybara.server_port = 3001
15
+ Capybara.save_and_open_page_path = "#{File.dirname(__FILE__)}/../tmp/capybara-screenshot"
16
+ Capybara.javascript_driver = :poltergeist
17
+ Capybara::Screenshot.prune_strategy = {keep: 10}
18
+
19
+ Capybara.register_driver :poltergeist do |app|
20
+ Capybara::Poltergeist::Driver.new(
21
+ app,
22
+ js_errors: false,
23
+ phantomjs_logger: File.open(SPEC_ROOT.join("../log/phantomjs.log"), "w"),
24
+ phantomjs_options: %w(--load-images=no)
25
+ )
26
+ end
27
+
28
+ RSpec.configure do |config|
29
+ config.include Rack::Test::Methods, type: :request
30
+ config.include Rack::Test::Methods, Capybara::DSL, type: :feature
31
+
32
+ config.before :suite do
33
+ TestHelpers.app.freeze
34
+ end
35
+ end
@@ -0,0 +1,24 @@
1
+ require_relative "spec_helper"
2
+
3
+ <%= config[:camel_cased_app_name] %>::Container.boot! :rom
4
+
5
+ Dir[SPEC_ROOT.join("support/db/*.rb").to_s].each(&method(:require))
6
+ Dir[SPEC_ROOT.join("shared/db/*.rb").to_s].each(&method(:require))
7
+
8
+ require "database_cleaner"
9
+ DatabaseCleaner[:sequel, connection: TestHelpers.db_connection].strategy = :truncation
10
+
11
+ RSpec.configure do |config|
12
+ config.include TestHelpers
13
+ config.include TestFactories
14
+
15
+ config.before :suite do
16
+ DatabaseCleaner.clean_with :truncation
17
+ end
18
+
19
+ config.around :each do |example|
20
+ DatabaseCleaner.cleaning do
21
+ example.run
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,66 @@
1
+ ENV["RACK_ENV"] = "test"
2
+
3
+ require "byebug"
4
+
5
+ SPEC_ROOT = Pathname(__FILE__).dirname
6
+
7
+ Dir[SPEC_ROOT.join("support/*.rb").to_s].each(&method(:require))
8
+ Dir[SPEC_ROOT.join("shared/*.rb").to_s].each(&method(:require))
9
+
10
+ require SPEC_ROOT.join("../component/<%= config[:underscored_app_name] %>/container")
11
+
12
+ RSpec.configure do |config|
13
+ config.disable_monkey_patching!
14
+
15
+ config.expect_with :rspec do |expectations|
16
+ # This option will default to `true` in RSpec 4.
17
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
18
+ end
19
+
20
+ config.mock_with :rspec do |mocks|
21
+ # Prevents you from mocking or stubbing a method that does not exist on a
22
+ # real object. This is generally recommended, and will default to `true`
23
+ # in RSpec 4.
24
+ mocks.verify_partial_doubles = true
25
+ end
26
+
27
+ # These two settings work together to allow you to limit a spec run to
28
+ # individual examples or groups you care about by tagging them with `:focus`
29
+ # metadata. When nothing is tagged with `:focus`, all examples get run.
30
+ config.filter_run :focus
31
+ config.run_all_when_everything_filtered = true
32
+
33
+ # Allows RSpec to persist some state between runs in order to support the
34
+ # `--only-failures` and `--next-failure` CLI options.
35
+ config.example_status_persistence_file_path = "spec/examples.txt"
36
+
37
+ # This setting enables warnings. It's recommended, but in some cases may be
38
+ # too noisy due to issues in dependencies.
39
+ config.warnings = true
40
+
41
+ # Many RSpec users commonly either run the entire suite or an individual
42
+ # file, and it's useful to allow more verbose output when running an
43
+ # individual spec file.
44
+ if config.files_to_run.one?
45
+ # Use the documentation formatter for detailed output,
46
+ # unless a formatter has already been configured
47
+ # (e.g. via a command-line flag).
48
+ config.default_formatter = "doc"
49
+ end
50
+
51
+ # Print the 10 slowest examples and example groups at the end of the spec
52
+ # run, to help surface which specs are running particularly slow.
53
+ config.profile_examples = 10
54
+
55
+ # Run specs in random order to surface order dependencies. If you find an
56
+ # order dependency and want to debug it, you can fix the order by providing
57
+ # the seed, which is printed after each run.
58
+ # --seed 1234
59
+ config.order = :random
60
+
61
+ # Seed global randomization in this process using the `--seed` CLI option.
62
+ # Setting this allows you to use `--seed` to deterministically reproduce
63
+ # test failures related to randomization by passing the same `--seed` value
64
+ # as the one that triggered the failure.
65
+ Kernel.srand config.seed
66
+ end
@@ -0,0 +1,3 @@
1
+ module TestFactories
2
+ # Helper methods to create test data go here
3
+ end
@@ -0,0 +1,15 @@
1
+ module TestHelpers
2
+ module_function
3
+
4
+ def app
5
+ <%= config[:camel_cased_app_name] %>::Application.app
6
+ end
7
+
8
+ def rom
9
+ <%= config[:camel_cased_app_name] %>::Container["persistence.rom"]
10
+ end
11
+
12
+ def db_connection
13
+ rom.gateways[:default].connection
14
+ end
15
+ end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
7
7
  end
File without changes
@@ -3,6 +3,7 @@ require 'dry/web/container'
3
3
  module Main
4
4
  class Container < Dry::Web::Container
5
5
  configure do |config|
6
+ config.core_dir = 'component'
6
7
  config.root = Pathname(__FILE__).join('../..').realpath.dirname.freeze
7
8
  config.auto_register = 'lib'
8
9
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'dry/web/cli'
4
- # require_relative '../core/boot'
4
+ # require_relative '../component/boot'
5
5
 
6
6
  Dry::Web::Cli.start
@@ -3,6 +3,6 @@ require_relative 'dummy/container'
3
3
  Dummy::Container.finalize!
4
4
 
5
5
  app_paths = Pathname(__FILE__).dirname.join('../apps').realpath.join('*')
6
- Dir[app_paths].each { |f| require "#{f}/core/boot" }
6
+ Dir[app_paths].each { |f| require "#{f}/component/boot" }
7
7
 
8
8
  require_relative "dummy/application"
File without changes
@@ -5,6 +5,7 @@ module Dummy
5
5
  # we need to override default here because we run tests from within the
6
6
  # project root and our app is in spec/dummy
7
7
  configure do |config|
8
+ config.core_dir = 'component'
8
9
  config.root = Pathname(__FILE__).dirname.join('../..')
9
10
  config.auto_register = 'lib'
10
11
  end
data/spec/dummy/config.ru CHANGED
@@ -1,3 +1,3 @@
1
- require_relative 'core/boot'
1
+ require_relative 'component/boot'
2
2
 
3
3
  run Dummy::Application.freeze.app
data/spec/spec_helper.rb CHANGED
@@ -20,7 +20,7 @@ SPEC_ROOT = Pathname(__FILE__).dirname
20
20
  Dir[SPEC_ROOT.join('support/*.rb').to_s].each { |f| require f }
21
21
  Dir[SPEC_ROOT.join('shared/*.rb').to_s].each { |f| require f }
22
22
 
23
- require SPEC_ROOT.join('dummy/core/boot').to_s
23
+ require SPEC_ROOT.join('dummy/component/boot').to_s
24
24
 
25
25
  module Test; end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-web-roda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-12 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: inflecto
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: roda
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,20 @@ dependencies:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: thor
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.19'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.19'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: bundler
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +139,8 @@ dependencies:
111
139
  description: Roda integration for dry-web apps
112
140
  email:
113
141
  - piotr.solnica@gmail.com
114
- executables: []
142
+ executables:
143
+ - dry-web-roda
115
144
  extensions: []
116
145
  extra_rdoc_files: []
117
146
  files:
@@ -123,16 +152,63 @@ files:
123
152
  - LICENSE
124
153
  - README.md
125
154
  - Rakefile
155
+ - bin/dry-web-roda
126
156
  - dry-web-roda.gemspec
127
157
  - lib/dry-web-roda.rb
128
158
  - lib/dry/web/roda/application.rb
159
+ - lib/dry/web/roda/cli.rb
160
+ - lib/dry/web/roda/cli/generate.rb
161
+ - lib/dry/web/roda/generate.rb
162
+ - lib/dry/web/roda/generators/app.rb
163
+ - lib/dry/web/roda/generators/umbrella.rb
164
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/application.rb.tt
165
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/container.rb.tt
166
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/import.rb.tt
167
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/page.rb.tt
168
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/transactions.rb.tt
169
+ - lib/dry/web/roda/skeletons/app/component/__underscored_app_name__/view.rb.tt
170
+ - lib/dry/web/roda/skeletons/app/component/boot.rb.tt
171
+ - lib/dry/web/roda/skeletons/app/lib/__underscored_app_name__/.keep
172
+ - lib/dry/web/roda/skeletons/app/transactions/example.rb.tt
173
+ - lib/dry/web/roda/skeletons/app/web/routes/example.rb.tt
174
+ - lib/dry/web/roda/skeletons/app/web/templates/layouts/application.html.slim
175
+ - lib/dry/web/roda/skeletons/umbrella/.gitignore
176
+ - lib/dry/web/roda/skeletons/umbrella/Gemfile
177
+ - lib/dry/web/roda/skeletons/umbrella/README.md.tt
178
+ - lib/dry/web/roda/skeletons/umbrella/Rakefile.tt
179
+ - lib/dry/web/roda/skeletons/umbrella/bin/console.tt
180
+ - lib/dry/web/roda/skeletons/umbrella/bin/setup
181
+ - lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/application.rb.tt
182
+ - lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/container.rb.tt
183
+ - lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/import.rb.tt
184
+ - lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
185
+ - lib/dry/web/roda/skeletons/umbrella/component/boot.rb.tt
186
+ - lib/dry/web/roda/skeletons/umbrella/component/boot/logger.rb.tt
187
+ - lib/dry/web/roda/skeletons/umbrella/component/boot/rom.rb.tt
188
+ - lib/dry/web/roda/skeletons/umbrella/config.ru.tt
189
+ - lib/dry/web/roda/skeletons/umbrella/config/settings.yml.tt
190
+ - lib/dry/web/roda/skeletons/umbrella/db/sample_data.rb
191
+ - lib/dry/web/roda/skeletons/umbrella/db/seed.rb
192
+ - lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/page.rb.tt
193
+ - lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/repository.rb.tt
194
+ - lib/dry/web/roda/skeletons/umbrella/lib/__underscored_app_name__/transactions.rb.tt
195
+ - lib/dry/web/roda/skeletons/umbrella/lib/persistence/commands/.keep
196
+ - lib/dry/web/roda/skeletons/umbrella/lib/persistence/relations/.keep
197
+ - lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb
198
+ - lib/dry/web/roda/skeletons/umbrella/lib/types.rb
199
+ - lib/dry/web/roda/skeletons/umbrella/log/.keep
200
+ - lib/dry/web/roda/skeletons/umbrella/spec/app_helper.rb
201
+ - lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
202
+ - lib/dry/web/roda/skeletons/umbrella/spec/spec_helper.rb.tt
203
+ - lib/dry/web/roda/skeletons/umbrella/spec/support/db/test_factories.rb
204
+ - lib/dry/web/roda/skeletons/umbrella/spec/support/test_helpers.rb.tt
129
205
  - lib/dry/web/roda/version.rb
130
- - spec/dummy/apps/main/core/boot.rb
131
- - spec/dummy/apps/main/core/main/application.rb
132
- - spec/dummy/apps/main/core/main/container.rb
133
- - spec/dummy/apps/main/core/main/import.rb
134
- - spec/dummy/apps/main/core/main/requests.rb
135
- - spec/dummy/apps/main/core/main/view.rb
206
+ - spec/dummy/apps/main/component/boot.rb
207
+ - spec/dummy/apps/main/component/main/application.rb
208
+ - spec/dummy/apps/main/component/main/container.rb
209
+ - spec/dummy/apps/main/component/main/import.rb
210
+ - spec/dummy/apps/main/component/main/requests.rb
211
+ - spec/dummy/apps/main/component/main/view.rb
136
212
  - spec/dummy/apps/main/lib/main/entities/user.rb
137
213
  - spec/dummy/apps/main/lib/main/persistence/repositories/users.rb
138
214
  - spec/dummy/apps/main/lib/main/transactions/register_user.rb
@@ -146,11 +222,11 @@ files:
146
222
  - spec/dummy/apps/main/web/templates/users/index/_list.html.slim
147
223
  - spec/dummy/apps/main/web/templates/users/index/_list_item.html.slim
148
224
  - spec/dummy/bin/console
225
+ - spec/dummy/component/boot.rb
226
+ - spec/dummy/component/dummy/application.rb
227
+ - spec/dummy/component/dummy/container.rb
149
228
  - spec/dummy/config.ru
150
229
  - spec/dummy/config/application.yml
151
- - spec/dummy/core/boot.rb
152
- - spec/dummy/core/dummy/application.rb
153
- - spec/dummy/core/dummy/container.rb
154
230
  - spec/dummy/log/.gitkeep
155
231
  - spec/dummy/shared/persistence.rb
156
232
  - spec/dummy/shared/persistence/db.rb
@@ -182,12 +258,12 @@ signing_key:
182
258
  specification_version: 4
183
259
  summary: Roda integration for dry-web apps
184
260
  test_files:
185
- - spec/dummy/apps/main/core/boot.rb
186
- - spec/dummy/apps/main/core/main/application.rb
187
- - spec/dummy/apps/main/core/main/container.rb
188
- - spec/dummy/apps/main/core/main/import.rb
189
- - spec/dummy/apps/main/core/main/requests.rb
190
- - spec/dummy/apps/main/core/main/view.rb
261
+ - spec/dummy/apps/main/component/boot.rb
262
+ - spec/dummy/apps/main/component/main/application.rb
263
+ - spec/dummy/apps/main/component/main/container.rb
264
+ - spec/dummy/apps/main/component/main/import.rb
265
+ - spec/dummy/apps/main/component/main/requests.rb
266
+ - spec/dummy/apps/main/component/main/view.rb
191
267
  - spec/dummy/apps/main/lib/main/entities/user.rb
192
268
  - spec/dummy/apps/main/lib/main/persistence/repositories/users.rb
193
269
  - spec/dummy/apps/main/lib/main/transactions/register_user.rb
@@ -201,11 +277,11 @@ test_files:
201
277
  - spec/dummy/apps/main/web/templates/users/index/_list.html.slim
202
278
  - spec/dummy/apps/main/web/templates/users/index/_list_item.html.slim
203
279
  - spec/dummy/bin/console
280
+ - spec/dummy/component/boot.rb
281
+ - spec/dummy/component/dummy/application.rb
282
+ - spec/dummy/component/dummy/container.rb
204
283
  - spec/dummy/config.ru
205
284
  - spec/dummy/config/application.yml
206
- - spec/dummy/core/boot.rb
207
- - spec/dummy/core/dummy/application.rb
208
- - spec/dummy/core/dummy/container.rb
209
285
  - spec/dummy/log/.gitkeep
210
286
  - spec/dummy/shared/persistence.rb
211
287
  - spec/dummy/shared/persistence/db.rb