lotusrb 0.3.2 → 0.4.0

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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/FEATURES.md +17 -0
  4. data/README.md +16 -355
  5. data/lib/lotus.rb +0 -1
  6. data/lib/lotus/action/csrf_protection.rb +167 -0
  7. data/lib/lotus/application.rb +3 -1
  8. data/lib/lotus/cli.rb +14 -13
  9. data/lib/lotus/commands/console.rb +1 -1
  10. data/lib/lotus/commands/db.rb +102 -0
  11. data/lib/lotus/commands/db/abstract.rb +15 -0
  12. data/lib/lotus/commands/db/apply.rb +14 -0
  13. data/lib/lotus/commands/db/console.rb +1 -5
  14. data/lib/lotus/commands/db/create.rb +14 -0
  15. data/lib/lotus/commands/db/drop.rb +14 -0
  16. data/lib/lotus/commands/db/migrate.rb +19 -0
  17. data/lib/lotus/commands/db/prepare.rb +14 -0
  18. data/lib/lotus/commands/db/version.rb +14 -0
  19. data/lib/lotus/commands/generate.rb +20 -20
  20. data/lib/lotus/commands/new.rb +1 -0
  21. data/lib/lotus/commands/routes.rb +1 -2
  22. data/lib/lotus/configuration.rb +29 -0
  23. data/lib/lotus/container.rb +19 -3
  24. data/lib/lotus/environment.rb +62 -9
  25. data/lib/lotus/frameworks.rb +1 -0
  26. data/lib/lotus/generators/action.rb +46 -10
  27. data/lib/lotus/generators/action/action_spec.minitest.tt +1 -1
  28. data/lib/lotus/generators/action/action_spec.rspec.tt +1 -1
  29. data/lib/lotus/generators/action/view_spec.minitest.tt +2 -1
  30. data/lib/lotus/generators/action/view_spec.rspec.tt +2 -1
  31. data/lib/lotus/generators/app.rb +39 -0
  32. data/lib/lotus/generators/app/.gitkeep +1 -0
  33. data/lib/lotus/generators/application/app.rb +184 -0
  34. data/lib/lotus/generators/application/app/.env.development.tt +3 -0
  35. data/lib/lotus/generators/application/app/.env.test.tt +3 -0
  36. data/lib/lotus/generators/application/{container/config → app}/.env.tt +0 -0
  37. data/lib/lotus/generators/application/app/.gitkeep +1 -0
  38. data/lib/lotus/generators/application/app/Gemfile.tt +35 -0
  39. data/lib/lotus/generators/application/app/Rakefile.minitest.tt +10 -0
  40. data/lib/lotus/generators/application/app/Rakefile.rspec.tt +5 -0
  41. data/lib/lotus/generators/application/app/apps/.gitkeep.tt +1 -0
  42. data/lib/lotus/generators/application/app/capybara.rb.rspec.tt +8 -0
  43. data/lib/lotus/generators/application/app/config.ru.tt +3 -0
  44. data/lib/lotus/generators/application/app/config/application.rb.tt +227 -0
  45. data/lib/lotus/generators/application/app/config/environment.rb.tt +5 -0
  46. data/lib/lotus/generators/application/app/config/routes.rb.tt +2 -0
  47. data/lib/lotus/generators/application/app/db/.gitkeep +1 -0
  48. data/lib/lotus/generators/application/app/features_helper.rb.minitest.tt +11 -0
  49. data/lib/lotus/generators/application/app/features_helper.rb.rspec.tt +12 -0
  50. data/lib/lotus/generators/application/app/gitignore.tt +2 -0
  51. data/lib/lotus/generators/application/app/lib/app_name.rb.tt +47 -0
  52. data/lib/lotus/generators/application/app/lib/chirp/entities/.gitkeep +1 -0
  53. data/lib/lotus/generators/application/app/lib/chirp/repositories/.gitkeep +1 -0
  54. data/lib/lotus/generators/application/app/lib/config/mapping.rb.tt +7 -0
  55. data/lib/lotus/generators/application/app/lotusrc.tt +3 -0
  56. data/lib/lotus/generators/application/app/rspec.rspec.tt +2 -0
  57. data/lib/lotus/generators/application/app/schema.sql.tt +0 -0
  58. data/lib/lotus/generators/application/app/spec_helper.rb.minitest.tt +7 -0
  59. data/lib/lotus/generators/application/app/spec_helper.rb.rspec.tt +100 -0
  60. data/lib/lotus/generators/application/app/templates/application.html.erb.tt +9 -0
  61. data/lib/lotus/generators/application/app/views/application_layout.rb.tt +7 -0
  62. data/lib/lotus/generators/application/container.rb +37 -13
  63. data/lib/lotus/generators/application/container/{config/.env.development.tt → .env.development.tt} +0 -0
  64. data/lib/lotus/generators/application/container/{config/.env.test.tt → .env.test.tt} +0 -0
  65. data/lib/lotus/generators/application/container/.env.tt +1 -0
  66. data/lib/lotus/generators/application/container/lib/app_name.rb.tt +9 -0
  67. data/lib/lotus/generators/application/container/schema.sql.tt +0 -0
  68. data/lib/lotus/generators/migration.rb +58 -0
  69. data/lib/lotus/generators/migration/migration.rb.tt +4 -0
  70. data/lib/lotus/generators/model.rb +10 -7
  71. data/lib/lotus/generators/slice.rb +4 -12
  72. data/lib/lotus/generators/slice/application.rb.tt +3 -19
  73. data/lib/lotus/generators/slice/config/routes.rb.tt +1 -7
  74. data/lib/lotus/loader.rb +15 -1
  75. data/lib/lotus/lotusrc.rb +8 -3
  76. data/lib/lotus/templates/{welcome.html → welcome.html.erb} +4 -3
  77. data/lib/lotus/version.rb +1 -1
  78. data/lib/lotus/welcome.rb +20 -1
  79. data/lotusrb.gemspec +5 -5
  80. metadata +67 -18
  81. data/lib/lotus/generators/slice/action.rb.tt +0 -8
  82. data/lib/lotus/generators/slice/config/mapping.rb.tt +0 -13
  83. data/lib/lotus/generators/slice/templates/template.html.erb.tt +0 -2
  84. data/lib/lotus/generators/slice/view.rb.tt +0 -5
  85. data/lib/lotus/logger.rb +0 -141
@@ -33,17 +33,14 @@ module Lotus
33
33
  templates = {
34
34
  'application.rb.tt' => 'application.rb',
35
35
  'config/routes.rb.tt' => 'config/routes.rb',
36
- 'config/mapping.rb.tt' => 'config/mapping.rb',
37
- 'action.rb.tt' => 'controllers/home/index.rb',
38
36
  'views/application_layout.rb.tt' => 'views/application_layout.rb',
39
37
  'templates/application.html.erb.tt' => 'templates/application.html.erb',
40
- 'view.rb.tt' => 'views/home/index.rb',
41
- 'templates/template.html.erb.tt' => 'templates/home/index.html.erb',
42
38
  }
43
39
 
44
40
  empty_directories = [
45
- "public/javascripts",
46
- "public/stylesheets"
41
+ 'controllers',
42
+ 'public/javascripts',
43
+ 'public/stylesheets'
47
44
  ]
48
45
 
49
46
  # Add testing directories (spec/ is the default for both MiniTest and RSpec)
@@ -71,13 +68,8 @@ module Lotus
71
68
  # Per environment .env
72
69
  #
73
70
  ['development', 'test'].each do |environment|
74
- # Add WEB_DATABASE_URL="file:///db/web_development"
75
- cli.append_to_file target.join("config/.env.#{ environment }") do
76
- %(#{ opts[:upcase_slice_name] }_DATABASE_URL="file:///db/#{ opts[:slice_name] }_#{ environment }"\n)
77
- end
78
-
79
71
  # Add WEB_SESSIONS_SECRET="abc123" (random hex)
80
- cli.append_to_file target.join("config/.env.#{ environment }") do
72
+ cli.append_to_file target.join(".env.#{ environment }") do
81
73
  %(#{ opts[:upcase_slice_name] }_SESSIONS_SECRET="#{ SecureRandom.hex(32) }"\n)
82
74
  end
83
75
  end
@@ -91,26 +91,10 @@ module <%= config[:classified_slice_name] %>
91
91
  #
92
92
  # body_parsers :json
93
93
 
94
- ##
95
- # DATABASE
96
- #
97
-
98
- # Configure a database adapter
99
- # Argument: A Hash with the settings
100
- # type: Symbol, :file_system, :memory and :sql
101
- # uri: String, 'file:///db/bookshelf'
102
- # 'memory://localhost/bookshelf'
103
- # 'sqlite:memory:'
104
- # 'sqlite://db/bookshelf.sqlite3'
105
- # 'postgres://localhost/bookshelf'
106
- # 'mysql://localhost/bookshelf'
107
- #
108
- # adapter type: :file_system, uri: ENV['<%= config[:upcase_slice_name] %>_DATABASE_URL']
109
-
110
- # Configure a database mapping
111
- # See: http://www.rubydoc.info/gems/lotus-model#Data_Mapper
94
+ # When it's true and the router receives a non-encrypted request (http),
95
+ # it redirects to the secure equivalent resource (https). Default disabled.
112
96
  #
113
- # mapping 'config/mapping'
97
+ # force_ssl true
114
98
 
115
99
  ##
116
100
  # TEMPLATES
@@ -1,8 +1,2 @@
1
1
  # Configure your routes here
2
- # See: http://www.rubydoc.info/gems/lotus-router/#Usage
3
- #
4
- #
5
- #
6
- # This route will look for `<%= config[:classified_slice_name] %>::Controllers::Home::Index` action in `apps/<%= config[:slice_name] %>/controllers/home/index.rb`.
7
- # Please, uncomment the following line to have a working example.
8
- # get '/', to: 'home#index'
2
+ # See: http://www.rubydoc.info/gems/lotus-router/#Usage
data/lib/lotus/loader.rb CHANGED
@@ -13,6 +13,10 @@ module Lotus
13
13
  # @since 0.1.0
14
14
  # @api private
15
15
  class Loader
16
+
17
+ STRICT_TRANSPORT_SECURITY_HEADER = 'Strict-Transport-Security'.freeze
18
+ STRICT_TRANSPORT_SECURITY_DEFAULT_VALUE = 'max-age=31536000'.freeze
19
+
16
20
  def initialize(application)
17
21
  @application = application
18
22
  @configuration = @application.configuration
@@ -54,13 +58,21 @@ module Lotus
54
58
  Lotus::Config::Security::X_FRAME_OPTIONS_HEADER => config.security.x_frame_options,
55
59
  Lotus::Config::Security::CONTENT_SECURITY_POLICY_HEADER => config.security.content_security_policy
56
60
  })
61
+ default_headers.merge!(STRICT_TRANSPORT_SECURITY_HEADER => STRICT_TRANSPORT_SECURITY_DEFAULT_VALUE) if config.force_ssl
57
62
 
58
63
  if config.cookies.enabled?
59
64
  require 'lotus/action/cookies'
60
65
  prepare { include Lotus::Action::Cookies }
61
66
  cookies config.cookies.default_options
62
67
  end
63
- prepare { include Lotus::Action::Session } if config.sessions.enabled?
68
+
69
+ if config.sessions.enabled?
70
+ prepare do
71
+ include Lotus::Action::Session
72
+ include Lotus::Action::CSRFProtection
73
+ end
74
+ end
75
+
64
76
  prepare { include Lotus::Action::RoutingHelpers }
65
77
 
66
78
  config.controller.__apply(self)
@@ -183,6 +195,8 @@ module Lotus
183
195
  scheme: configuration.scheme,
184
196
  host: configuration.host,
185
197
  port: configuration.port,
198
+ prefix: configuration.path_prefix,
199
+ force_ssl: configuration.force_ssl,
186
200
  &configuration.routes
187
201
  )
188
202
  end
data/lib/lotus/lotusrc.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'pathname'
2
- require 'dotenv'
2
+ require 'dotenv/parser'
3
3
 
4
4
  module Lotus
5
5
  # Create and read the .lotusrc file in the root of the application
@@ -93,8 +93,9 @@ module Lotus
93
93
  # # => { architecture: 'application', test: 'rspec', template: 'slim' }
94
94
  def read
95
95
  if exists?
96
- lotusrc_options = Dotenv.load path_file
97
- Utils::Hash.new(lotusrc_options).symbolize!
96
+ Utils::Hash.new(
97
+ Dotenv::Parser.call(content)
98
+ ).symbolize!
98
99
  end
99
100
  end
100
101
 
@@ -142,5 +143,9 @@ module Lotus
142
143
  def path_file
143
144
  @root.join FILE_NAME
144
145
  end
146
+
147
+ def content
148
+ path_file.read
149
+ end
145
150
  end
146
151
  end
@@ -11,7 +11,7 @@
11
11
  h3 { font-size: 20px; line-height: 22px; color: #666; }
12
12
  hr { margin: 2em; color: #ecf0f1; }
13
13
  ul { text-align: center; }
14
- li { display: inline; margin: 3em; line-height: 24px; list-style-type: none; vertical-align: text-top;}
14
+ li { display: inline; margin: 2em; line-height: 24px; list-style-type: none; vertical-align: text-top;}
15
15
  p { margin-top: 60px; text-align: center; }
16
16
  a { color: #333; padding: 1px; }
17
17
  code { padding: .2em; background-color: #ecf0f1 }
@@ -30,12 +30,13 @@
30
30
  <h3>Lotus is Open Source Software for MVC web development.<br />
31
31
  It's simple, fast and lightweight.</h3>
32
32
 
33
- <p>Please edit <code>apps/web/config/routes.rb</code> to add your first route.</p>
33
+ <p>Please generate a new action with:<br><code>bundle exec lotus generate action<%= application_name %> home#index --url=/</code>.</p>
34
34
 
35
35
  <hr style="margin-top: 4em;"/>
36
36
  <div id="content">
37
37
  <ul>
38
38
  <li><a href="http://lotusrb.org">Website</a></li>
39
+ <li><a href="http://lotusrb.org/guides">Guides</a></li>
39
40
  <li><a href="http://www.rubydoc.info/gems/lotusrb">API docs</a></li>
40
41
  <li><a href="https://github.com/lotus/lotus">Source code</a></li>
41
42
  <li><a href="https://gitter.im/lotus/chat">Chat</a></li>
@@ -43,7 +44,7 @@
43
44
  </div>
44
45
  </div>
45
46
  <div id="footer">
46
- &copy; 2015 Luca Guidi &mdash; Lotus is released under the MIT License.
47
+ &copy; 2014 - present Luca Guidi &mdash; Lotus is released under the MIT License.
47
48
  </div>
48
49
  </body>
49
50
  </html>
data/lib/lotus/version.rb CHANGED
@@ -2,5 +2,5 @@ module Lotus
2
2
  # Defines the version
3
3
  #
4
4
  # @since 0.1.0
5
- VERSION = '0.3.2'.freeze
5
+ VERSION = '0.4.0'.freeze
6
6
  end
data/lib/lotus/welcome.rb CHANGED
@@ -1,14 +1,33 @@
1
+ require 'erb'
1
2
  require 'pathname'
3
+ require 'lotus/environment'
4
+ require 'lotus/utils/string'
2
5
 
3
6
  module Lotus
4
7
  class Welcome
5
8
  def initialize(app)
6
9
  @root = Pathname.new(__dir__).join('templates').realpath
7
- @body = [@root.join('welcome.html').read]
10
+ @body = [ERB.new(@root.join('welcome.html.erb').read).result(binding)]
8
11
  end
9
12
 
10
13
  def call(env)
11
14
  [200, {}, @body]
12
15
  end
16
+
17
+ def application_name
18
+ " #{ app }" if container?
19
+ end
20
+
21
+ private
22
+
23
+ def container?
24
+ Environment.new.container?
25
+ end
26
+
27
+ def app
28
+ Utils::String.new(
29
+ Application.applications.first
30
+ ).namespace.downcase
31
+ end
13
32
  end
14
33
  end
data/lotusrb.gemspec CHANGED
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
  spec.required_ruby_version = '>= 2.0.0'
21
21
 
22
- spec.add_dependency 'lotus-utils', '~> 0.4'
23
- spec.add_dependency 'lotus-router', '~> 0.4'
24
- spec.add_dependency 'lotus-controller', '~> 0.4'
22
+ spec.add_dependency 'lotus-utils', '~> 0.5'
23
+ spec.add_dependency 'lotus-router', '~> 0.4', '>= 0.4.1'
24
+ spec.add_dependency 'lotus-controller', '~> 0.4', '>= 0.4.4'
25
25
  spec.add_dependency 'lotus-view', '~> 0.4'
26
- spec.add_dependency 'lotus-helpers', '~> 0.1'
26
+ spec.add_dependency 'lotus-helpers', '~> 0.2'
27
27
  spec.add_dependency 'shotgun', '~> 0.9'
28
- spec.add_dependency 'dotenv', '~> 1.0'
28
+ spec.add_dependency 'dotenv', '~> 2.0'
29
29
  spec.add_dependency 'thor', '~> 0.19'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 1.6'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotusrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lotus-utils
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lotus-router
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +31,9 @@ dependencies:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.4'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.4.1
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +41,9 @@ dependencies:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
43
  version: '0.4'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.4.1
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: lotus-controller
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -45,6 +51,9 @@ dependencies:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0.4'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.4.4
48
57
  type: :runtime
49
58
  prerelease: false
50
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,6 +61,9 @@ dependencies:
52
61
  - - "~>"
53
62
  - !ruby/object:Gem::Version
54
63
  version: '0.4'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.4.4
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: lotus-view
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +84,14 @@ dependencies:
72
84
  requirements:
73
85
  - - "~>"
74
86
  - !ruby/object:Gem::Version
75
- version: '0.1'
87
+ version: '0.2'
76
88
  type: :runtime
77
89
  prerelease: false
78
90
  version_requirements: !ruby/object:Gem::Requirement
79
91
  requirements:
80
92
  - - "~>"
81
93
  - !ruby/object:Gem::Version
82
- version: '0.1'
94
+ version: '0.2'
83
95
  - !ruby/object:Gem::Dependency
84
96
  name: shotgun
85
97
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +112,14 @@ dependencies:
100
112
  requirements:
101
113
  - - "~>"
102
114
  - !ruby/object:Gem::Version
103
- version: '1.0'
115
+ version: '2.0'
104
116
  type: :runtime
105
117
  prerelease: false
106
118
  version_requirements: !ruby/object:Gem::Requirement
107
119
  requirements:
108
120
  - - "~>"
109
121
  - !ruby/object:Gem::Version
110
- version: '1.0'
122
+ version: '2.0'
111
123
  - !ruby/object:Gem::Dependency
112
124
  name: thor
113
125
  requirement: !ruby/object:Gem::Requirement
@@ -192,13 +204,21 @@ files:
192
204
  - README.md
193
205
  - bin/lotus
194
206
  - lib/lotus.rb
207
+ - lib/lotus/action/csrf_protection.rb
195
208
  - lib/lotus/action/routing_helpers.rb
196
209
  - lib/lotus/application.rb
197
210
  - lib/lotus/application_name.rb
198
211
  - lib/lotus/cli.rb
199
212
  - lib/lotus/commands/console.rb
200
213
  - lib/lotus/commands/db.rb
214
+ - lib/lotus/commands/db/abstract.rb
215
+ - lib/lotus/commands/db/apply.rb
201
216
  - lib/lotus/commands/db/console.rb
217
+ - lib/lotus/commands/db/create.rb
218
+ - lib/lotus/commands/db/drop.rb
219
+ - lib/lotus/commands/db/migrate.rb
220
+ - lib/lotus/commands/db/prepare.rb
221
+ - lib/lotus/commands/db/version.rb
202
222
  - lib/lotus/commands/generate.rb
203
223
  - lib/lotus/commands/new.rb
204
224
  - lib/lotus/commands/routes.rb
@@ -227,16 +247,47 @@ files:
227
247
  - lib/lotus/generators/action/view.rb.tt
228
248
  - lib/lotus/generators/action/view_spec.minitest.tt
229
249
  - lib/lotus/generators/action/view_spec.rspec.tt
250
+ - lib/lotus/generators/app.rb
251
+ - lib/lotus/generators/app/.gitkeep
252
+ - lib/lotus/generators/application/app.rb
253
+ - lib/lotus/generators/application/app/.env.development.tt
254
+ - lib/lotus/generators/application/app/.env.test.tt
255
+ - lib/lotus/generators/application/app/.env.tt
256
+ - lib/lotus/generators/application/app/.gitkeep
257
+ - lib/lotus/generators/application/app/Gemfile.tt
258
+ - lib/lotus/generators/application/app/Rakefile.minitest.tt
259
+ - lib/lotus/generators/application/app/Rakefile.rspec.tt
260
+ - lib/lotus/generators/application/app/apps/.gitkeep.tt
261
+ - lib/lotus/generators/application/app/capybara.rb.rspec.tt
262
+ - lib/lotus/generators/application/app/config.ru.tt
263
+ - lib/lotus/generators/application/app/config/application.rb.tt
264
+ - lib/lotus/generators/application/app/config/environment.rb.tt
265
+ - lib/lotus/generators/application/app/config/routes.rb.tt
266
+ - lib/lotus/generators/application/app/db/.gitkeep
267
+ - lib/lotus/generators/application/app/features_helper.rb.minitest.tt
268
+ - lib/lotus/generators/application/app/features_helper.rb.rspec.tt
269
+ - lib/lotus/generators/application/app/gitignore.tt
270
+ - lib/lotus/generators/application/app/lib/app_name.rb.tt
271
+ - lib/lotus/generators/application/app/lib/chirp/entities/.gitkeep
272
+ - lib/lotus/generators/application/app/lib/chirp/repositories/.gitkeep
273
+ - lib/lotus/generators/application/app/lib/config/mapping.rb.tt
274
+ - lib/lotus/generators/application/app/lotusrc.tt
275
+ - lib/lotus/generators/application/app/rspec.rspec.tt
276
+ - lib/lotus/generators/application/app/schema.sql.tt
277
+ - lib/lotus/generators/application/app/spec_helper.rb.minitest.tt
278
+ - lib/lotus/generators/application/app/spec_helper.rb.rspec.tt
279
+ - lib/lotus/generators/application/app/templates/application.html.erb.tt
280
+ - lib/lotus/generators/application/app/views/application_layout.rb.tt
230
281
  - lib/lotus/generators/application/container.rb
282
+ - lib/lotus/generators/application/container/.env.development.tt
283
+ - lib/lotus/generators/application/container/.env.test.tt
284
+ - lib/lotus/generators/application/container/.env.tt
231
285
  - lib/lotus/generators/application/container/.gitkeep
232
286
  - lib/lotus/generators/application/container/Gemfile.tt
233
287
  - lib/lotus/generators/application/container/Rakefile.minitest.tt
234
288
  - lib/lotus/generators/application/container/Rakefile.rspec.tt
235
289
  - lib/lotus/generators/application/container/capybara.rb.rspec.tt
236
290
  - lib/lotus/generators/application/container/config.ru.tt
237
- - lib/lotus/generators/application/container/config/.env.development.tt
238
- - lib/lotus/generators/application/container/config/.env.test.tt
239
- - lib/lotus/generators/application/container/config/.env.tt
240
291
  - lib/lotus/generators/application/container/config/environment.rb.tt
241
292
  - lib/lotus/generators/application/container/db/.gitkeep
242
293
  - lib/lotus/generators/application/container/features_helper.rb.minitest.tt
@@ -248,8 +299,11 @@ files:
248
299
  - lib/lotus/generators/application/container/lib/config/mapping.rb.tt
249
300
  - lib/lotus/generators/application/container/lotusrc.tt
250
301
  - lib/lotus/generators/application/container/rspec.rspec.tt
302
+ - lib/lotus/generators/application/container/schema.sql.tt
251
303
  - lib/lotus/generators/application/container/spec_helper.rb.minitest.tt
252
304
  - lib/lotus/generators/application/container/spec_helper.rb.rspec.tt
305
+ - lib/lotus/generators/migration.rb
306
+ - lib/lotus/generators/migration/migration.rb.tt
253
307
  - lib/lotus/generators/model.rb
254
308
  - lib/lotus/generators/model/entity.rb.tt
255
309
  - lib/lotus/generators/model/entity_spec.minitest.tt
@@ -259,16 +313,11 @@ files:
259
313
  - lib/lotus/generators/model/repository_spec.rspec.tt
260
314
  - lib/lotus/generators/slice.rb
261
315
  - lib/lotus/generators/slice/.gitkeep.tt
262
- - lib/lotus/generators/slice/action.rb.tt
263
316
  - lib/lotus/generators/slice/application.rb.tt
264
- - lib/lotus/generators/slice/config/mapping.rb.tt
265
317
  - lib/lotus/generators/slice/config/routes.rb.tt
266
318
  - lib/lotus/generators/slice/templates/application.html.erb.tt
267
- - lib/lotus/generators/slice/templates/template.html.erb.tt
268
- - lib/lotus/generators/slice/view.rb.tt
269
319
  - lib/lotus/generators/slice/views/application_layout.rb.tt
270
320
  - lib/lotus/loader.rb
271
- - lib/lotus/logger.rb
272
321
  - lib/lotus/lotusrc.rb
273
322
  - lib/lotus/middleware.rb
274
323
  - lib/lotus/rendering_policy.rb
@@ -277,7 +326,7 @@ files:
277
326
  - lib/lotus/routing/default.rb
278
327
  - lib/lotus/setup.rb
279
328
  - lib/lotus/templates/default.html.erb
280
- - lib/lotus/templates/welcome.html
329
+ - lib/lotus/templates/welcome.html.erb
281
330
  - lib/lotus/version.rb
282
331
  - lib/lotus/views/default.rb
283
332
  - lib/lotus/views/default_template_finder.rb
@@ -305,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
354
  version: '0'
306
355
  requirements: []
307
356
  rubyforge_project:
308
- rubygems_version: 2.4.5
357
+ rubygems_version: 2.4.8
309
358
  signing_key:
310
359
  specification_version: 4
311
360
  summary: A complete web framework for Ruby