lotusrb 0.1.0 → 0.2.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -0
  3. data/README.md +241 -311
  4. data/bin/lotus +4 -0
  5. data/lib/lotus/application.rb +111 -15
  6. data/lib/lotus/cli.rb +85 -0
  7. data/lib/lotus/commands/console.rb +62 -0
  8. data/lib/lotus/commands/new.rb +32 -0
  9. data/lib/lotus/commands/routes.rb +14 -0
  10. data/lib/lotus/commands/server.rb +65 -0
  11. data/lib/lotus/config/assets.rb +24 -10
  12. data/lib/lotus/config/configure.rb +17 -0
  13. data/lib/lotus/config/framework_configuration.rb +30 -0
  14. data/lib/lotus/config/load_paths.rb +1 -1
  15. data/lib/lotus/config/sessions.rb +97 -0
  16. data/lib/lotus/configuration.rb +698 -40
  17. data/lib/lotus/container.rb +30 -0
  18. data/lib/lotus/environment.rb +377 -0
  19. data/lib/lotus/frameworks.rb +17 -28
  20. data/lib/lotus/generators/abstract.rb +31 -0
  21. data/lib/lotus/generators/application/container/.gitkeep +1 -0
  22. data/lib/lotus/generators/application/container/Gemfile.tt +29 -0
  23. data/lib/lotus/generators/application/container/Rakefile.minitest.tt +10 -0
  24. data/lib/lotus/generators/application/container/config/.env.development.tt +2 -0
  25. data/lib/lotus/generators/application/container/config/.env.test.tt +2 -0
  26. data/lib/lotus/generators/application/container/config/.env.tt +1 -0
  27. data/lib/lotus/generators/application/container/config/environment.rb.tt +7 -0
  28. data/lib/lotus/generators/application/container/config.ru.tt +3 -0
  29. data/lib/lotus/generators/application/container/db/.gitkeep +1 -0
  30. data/lib/lotus/generators/application/container/features_helper.rb.tt +11 -0
  31. data/lib/lotus/generators/application/container/lib/app_name.rb.tt +31 -0
  32. data/lib/lotus/generators/application/container/lib/chirp/entities/.gitkeep +1 -0
  33. data/lib/lotus/generators/application/container/lib/chirp/repositories/.gitkeep +1 -0
  34. data/lib/lotus/generators/application/container/spec_helper.rb.tt +7 -0
  35. data/lib/lotus/generators/application/container.rb +70 -0
  36. data/lib/lotus/generators/slice/.gitkeep.tt +1 -0
  37. data/lib/lotus/generators/slice/action.rb.tt +8 -0
  38. data/lib/lotus/generators/slice/application.rb.tt +182 -0
  39. data/lib/lotus/generators/slice/config/mapping.rb.tt +10 -0
  40. data/lib/lotus/generators/slice/config/routes.rb.tt +8 -0
  41. data/lib/lotus/generators/slice/templates/application.html.erb +9 -0
  42. data/lib/lotus/generators/slice/templates/application.html.erb.tt +9 -0
  43. data/lib/lotus/generators/slice/templates/template.html.erb.tt +2 -0
  44. data/lib/lotus/generators/slice/view.rb.tt +5 -0
  45. data/lib/lotus/generators/slice/views/application_layout.rb.tt +7 -0
  46. data/lib/lotus/generators/slice.rb +103 -0
  47. data/lib/lotus/loader.rb +99 -19
  48. data/lib/lotus/middleware.rb +92 -9
  49. data/lib/lotus/rendering_policy.rb +42 -19
  50. data/lib/lotus/routing/default.rb +1 -1
  51. data/lib/lotus/setup.rb +5 -0
  52. data/lib/lotus/templates/welcome.html +49 -0
  53. data/lib/lotus/version.rb +1 -1
  54. data/lib/lotus/views/default.rb +13 -0
  55. data/lib/lotus/views/default_template_finder.rb +19 -0
  56. data/lib/lotus/welcome.rb +14 -0
  57. data/lib/lotus.rb +1 -0
  58. data/lotusrb.gemspec +9 -5
  59. metadata +122 -36
@@ -12,52 +12,75 @@ module Lotus
12
12
  HEADERS = 1
13
13
  BODY = 2
14
14
 
15
- RACK_RESPONSE_SIZE = 3
15
+ LOTUS_ACTION = 'lotus.action'.freeze
16
16
 
17
17
  SUCCESSFUL_STATUSES = (200..201).freeze
18
18
  STATUSES_WITHOUT_BODY = Set.new((100..199).to_a << 204 << 205 << 301 << 302 << 304).freeze
19
+ EMPTY_BODY = Array.new.freeze
19
20
  RENDERABLE_FORMATS = [:all, :html].freeze
20
21
  CONTENT_TYPE = 'Content-Type'.freeze
22
+ REQUEST_METHOD = 'REQUEST_METHOD'.freeze
23
+ HEAD = 'HEAD'.freeze
21
24
 
22
25
  def initialize(configuration)
23
26
  @controller_pattern = %r{#{ configuration.controller_pattern.gsub(/\%\{(controller|action)\}/) { "(?<#{ $1 }>(.*))" } }}
24
27
  @view_pattern = configuration.view_pattern
25
28
  @namespace = configuration.namespace
29
+ @templates = configuration.templates
26
30
  end
27
31
 
28
- def render(response)
29
- if renderable?(response)
30
- action = response.pop
32
+ def render(env, response)
33
+ body = _render(env, response) || _render_head(env)
31
34
 
32
- body = if successful?(response)
33
- view_for(response, action).render(
34
- action.to_rendering
35
- )
36
- else
37
- if render_status_page?(response, action)
38
- Lotus::Views::Default.render(response: response, format: :html)
39
- end
40
- end
35
+ response[BODY] = Array(body) unless body.nil?
36
+ response
37
+ end
41
38
 
42
- response[BODY] = Array(body) if body
39
+ private
40
+ def _render(env, response)
41
+ if action = renderable?(env)
42
+ _render_action(action, response) ||
43
+ _render_status_page(action, response)
43
44
  end
44
45
  end
45
46
 
46
- private
47
- def renderable?(response)
48
- response.size > RACK_RESPONSE_SIZE
47
+ def _render_action(action, response)
48
+ if successful?(response)
49
+ view_for(action, response).render(
50
+ action.to_rendering
51
+ )
52
+ end
53
+ end
54
+
55
+ def _render_status_page(action, response)
56
+ if render_status_page?(action, response)
57
+ Lotus::Views::Default.render(@templates, response[STATUS], response: response, format: :html)
58
+ end
59
+ end
60
+
61
+ def _render_head(env)
62
+ EMPTY_BODY if head?(env)
63
+ end
64
+
65
+ def renderable?(env)
66
+ !head?(env) and
67
+ env.delete(LOTUS_ACTION)
49
68
  end
50
69
 
51
70
  def successful?(response)
52
71
  SUCCESSFUL_STATUSES.include?(response[STATUS])
53
72
  end
54
73
 
55
- def render_status_page?(response, action)
74
+ def head?(env)
75
+ env[REQUEST_METHOD] == HEAD
76
+ end
77
+
78
+ def render_status_page?(action, response)
56
79
  RENDERABLE_FORMATS.include?(action.format) &&
57
80
  !STATUSES_WITHOUT_BODY.include?(response[STATUS])
58
81
  end
59
82
 
60
- def view_for(response, action)
83
+ def view_for(action, response)
61
84
  if response[BODY].empty?
62
85
  captures = @controller_pattern.match(action.class.name)
63
86
  Utils::Class.load!(@view_pattern % { controller: captures[:controller], action: captures[:action] }, @namespace)
@@ -17,7 +17,7 @@ module Lotus
17
17
  end
18
18
 
19
19
  def call(env)
20
- action = NullAction.new.tap {|a| a.call(env) }
20
+ action = NullAction.new.tap { |a| a.call(env) }
21
21
  [ DEFAULT_CODE, {CONTENT_TYPE => action.content_type}, DEFAULT_BODY, action ]
22
22
  end
23
23
  end
@@ -0,0 +1,5 @@
1
+ require 'lotusrb'
2
+
3
+ Bundler.require(
4
+ *Lotus::Environment.new.bundler_groups
5
+ )
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Lotus &mdash; A complete web framework for Ruby</title>
5
+ <style>
6
+ * { margin: 0; padding: 0; }
7
+ body { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; color: #333; background-color: #ecf0f1; font-size: 16px; line-height: 24px; }
8
+ h1, h2, h3 { margin: -20px; line-height: 100px; text-align: center; }
9
+ h1 { font-size: 60px; color: #551e54; }
10
+ h2 { font-size: 30px; }
11
+ h3 { font-size: 20px; line-height: 22px; color: #666; }
12
+ hr { margin: 2em; color: #ecf0f1; }
13
+ ul { text-align: center; }
14
+ li { display: inline; margin: 3em; line-height: 24px; list-style-type: none; vertical-align: text-top;}
15
+ p { margin-top: 60px; text-align: center; }
16
+ a { color: #333; padding: 1px; }
17
+ code { padding: .2em; background-color: #ecf0f1 }
18
+ #container { margin:0 auto; padding: 24px; width:700px; background-color:#fff; border: 1px solid #999; border-width: 0 1px 1px 1px; }
19
+ #content { margin: 30px 10px 0 10px; }
20
+ #footer { margin:0 auto 0; padding: 12px; width:700px; line-height: 24px; font-size: 12px; }
21
+ .bold { font-weight: bold; }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <div id="container">
26
+ <h1>Lotus</h1>
27
+ <hr />
28
+ <h2>A complete web framework for Ruby</h2>
29
+
30
+ <h3>Lotus is Open Source Software for MVC web development.<br />
31
+ It's simple, fast and lightweight.</h3>
32
+
33
+ <p>Please edit <code>apps/web/config/routes.rb</code> to add your first route.</p>
34
+
35
+ <hr style="margin-top: 4em;"/>
36
+ <div id="content">
37
+ <ul>
38
+ <li><a href="http://lotusrb.org">Website</a></li>
39
+ <li><a href="http://www.rubydoc.info/gems/lotusrb">API docs</a></li>
40
+ <li><a href="https://github.com/lotus/lotus">Source code</a></li>
41
+ <li><a href="https://gitter.im/lotus/chat">Chat</a></li>
42
+ </ul>
43
+ </div>
44
+ </div>
45
+ <div id="footer">
46
+ &copy; 2014 Luca Guidi &mdash; Lotus is released under the MIT License.
47
+ </div>
48
+ </body>
49
+ </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.1.0'.freeze
5
+ VERSION = '0.2.0'.freeze
6
6
  end
@@ -1,3 +1,5 @@
1
+ require 'lotus/views/default_template_finder'
2
+
1
3
  module Lotus
2
4
  module Views
3
5
  # The default view that is rendered for non successful responses (200 and 201)
@@ -15,6 +17,17 @@ module Lotus
15
17
  def title
16
18
  response[2].first
17
19
  end
20
+
21
+ def self.render(root, template_name, context)
22
+ format = context[:format]
23
+ template = DefaultTemplateFinder.new(root, template_name, format).find
24
+
25
+ if template
26
+ new(template, context).render
27
+ else
28
+ super(context)
29
+ end
30
+ end
18
31
  end
19
32
  end
20
33
  end
@@ -0,0 +1,19 @@
1
+ module Lotus
2
+ module Views
3
+ class DefaultTemplateFinder < View::Rendering::TemplateFinder
4
+ # Template Finder
5
+ #
6
+ # @since 0.2.0
7
+ # @api private
8
+ def initialize(root, template_name, format)
9
+ @root = root
10
+ @options = { template: template_name, format: format }
11
+ end
12
+
13
+ private
14
+ def root
15
+ @root
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ require 'pathname'
2
+
3
+ module Lotus
4
+ class Welcome
5
+ def initialize(app)
6
+ @root = Pathname.new(__dir__).join('templates').realpath
7
+ @body = [@root.join('welcome.html').read]
8
+ end
9
+
10
+ def call(env)
11
+ [200, {}, @body]
12
+ end
13
+ end
14
+ end
data/lib/lotus.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'lotus/version'
2
2
  require 'lotus/application'
3
+ require 'lotus/container'
3
4
 
4
5
  # A complete web framework for Ruby
5
6
  #
data/lotusrb.gemspec CHANGED
@@ -13,15 +13,19 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'http://lotusrb.org'
14
14
  spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files -z -- lib/* LICENSE.md README.md lotusrb.gemspec`.split("\x0")
16
+ spec.files = `git ls-files -z -- lib/* bin/* LICENSE.md README.md CHANGELOG.md lotusrb.gemspec`.split("\x0")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test)/})
19
19
  spec.require_paths = ['lib']
20
+ spec.required_ruby_version = '>= 2.0.0'
20
21
 
21
- spec.add_dependency 'lotus-utils', '~> 0.2'
22
- spec.add_dependency 'lotus-router', '~> 0.1', '>= 0.1.1'
23
- spec.add_dependency 'lotus-controller', '~> 0.2'
24
- spec.add_dependency 'lotus-view', '~> 0.2'
22
+ spec.add_dependency 'lotus-utils', '~> 0.3', '>= 0.3.2'
23
+ spec.add_dependency 'lotus-router', '~> 0.2'
24
+ spec.add_dependency 'lotus-controller', '~> 0.3'
25
+ spec.add_dependency 'lotus-view', '~> 0.3'
26
+ spec.add_dependency 'shotgun', '~> 0.9'
27
+ spec.add_dependency 'dotenv', '~> 1.0'
28
+ spec.add_dependency 'thor', '~> 0.19'
25
29
 
26
30
  spec.add_development_dependency 'bundler', '~> 1.6'
27
31
  spec.add_development_dependency 'rake', '~> 10'
metadata CHANGED
@@ -1,160 +1,246 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotusrb
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
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lotus-utils
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.3.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.3.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: lotus-router
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
18
38
  - !ruby/object:Gem::Version
19
39
  version: '0.2'
20
40
  type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
- - - ~>
44
+ - - "~>"
25
45
  - !ruby/object:Gem::Version
26
46
  version: '0.2'
27
47
  - !ruby/object:Gem::Dependency
28
- name: lotus-router
48
+ name: lotus-controller
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
- - - ~>
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.3'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
32
59
  - !ruby/object:Gem::Version
33
- version: '0.1'
34
- - - '>='
60
+ version: '0.3'
61
+ - !ruby/object:Gem::Dependency
62
+ name: lotus-view
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
35
66
  - !ruby/object:Gem::Version
36
- version: 0.1.1
67
+ version: '0.3'
37
68
  type: :runtime
38
69
  prerelease: false
39
70
  version_requirements: !ruby/object:Gem::Requirement
40
71
  requirements:
41
- - - ~>
72
+ - - "~>"
42
73
  - !ruby/object:Gem::Version
43
- version: '0.1'
44
- - - '>='
74
+ version: '0.3'
75
+ - !ruby/object:Gem::Dependency
76
+ name: shotgun
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
45
80
  - !ruby/object:Gem::Version
46
- version: 0.1.1
81
+ version: '0.9'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.9'
47
89
  - !ruby/object:Gem::Dependency
48
- name: lotus-controller
90
+ name: dotenv
49
91
  requirement: !ruby/object:Gem::Requirement
50
92
  requirements:
51
- - - ~>
93
+ - - "~>"
52
94
  - !ruby/object:Gem::Version
53
- version: '0.2'
95
+ version: '1.0'
54
96
  type: :runtime
55
97
  prerelease: false
56
98
  version_requirements: !ruby/object:Gem::Requirement
57
99
  requirements:
58
- - - ~>
100
+ - - "~>"
59
101
  - !ruby/object:Gem::Version
60
- version: '0.2'
102
+ version: '1.0'
61
103
  - !ruby/object:Gem::Dependency
62
- name: lotus-view
104
+ name: thor
63
105
  requirement: !ruby/object:Gem::Requirement
64
106
  requirements:
65
- - - ~>
107
+ - - "~>"
66
108
  - !ruby/object:Gem::Version
67
- version: '0.2'
109
+ version: '0.19'
68
110
  type: :runtime
69
111
  prerelease: false
70
112
  version_requirements: !ruby/object:Gem::Requirement
71
113
  requirements:
72
- - - ~>
114
+ - - "~>"
73
115
  - !ruby/object:Gem::Version
74
- version: '0.2'
116
+ version: '0.19'
75
117
  - !ruby/object:Gem::Dependency
76
118
  name: bundler
77
119
  requirement: !ruby/object:Gem::Requirement
78
120
  requirements:
79
- - - ~>
121
+ - - "~>"
80
122
  - !ruby/object:Gem::Version
81
123
  version: '1.6'
82
124
  type: :development
83
125
  prerelease: false
84
126
  version_requirements: !ruby/object:Gem::Requirement
85
127
  requirements:
86
- - - ~>
128
+ - - "~>"
87
129
  - !ruby/object:Gem::Version
88
130
  version: '1.6'
89
131
  - !ruby/object:Gem::Dependency
90
132
  name: rake
91
133
  requirement: !ruby/object:Gem::Requirement
92
134
  requirements:
93
- - - ~>
135
+ - - "~>"
94
136
  - !ruby/object:Gem::Version
95
137
  version: '10'
96
138
  type: :development
97
139
  prerelease: false
98
140
  version_requirements: !ruby/object:Gem::Requirement
99
141
  requirements:
100
- - - ~>
142
+ - - "~>"
101
143
  - !ruby/object:Gem::Version
102
144
  version: '10'
103
145
  - !ruby/object:Gem::Dependency
104
146
  name: minitest
105
147
  requirement: !ruby/object:Gem::Requirement
106
148
  requirements:
107
- - - ~>
149
+ - - "~>"
108
150
  - !ruby/object:Gem::Version
109
151
  version: '5'
110
152
  type: :development
111
153
  prerelease: false
112
154
  version_requirements: !ruby/object:Gem::Requirement
113
155
  requirements:
114
- - - ~>
156
+ - - "~>"
115
157
  - !ruby/object:Gem::Version
116
158
  version: '5'
117
159
  - !ruby/object:Gem::Dependency
118
160
  name: rack-test
119
161
  requirement: !ruby/object:Gem::Requirement
120
162
  requirements:
121
- - - ~>
163
+ - - "~>"
122
164
  - !ruby/object:Gem::Version
123
165
  version: '0.6'
124
166
  type: :development
125
167
  prerelease: false
126
168
  version_requirements: !ruby/object:Gem::Requirement
127
169
  requirements:
128
- - - ~>
170
+ - - "~>"
129
171
  - !ruby/object:Gem::Version
130
172
  version: '0.6'
131
173
  description: A complete web framework for Ruby
132
174
  email:
133
175
  - me@lucaguidi.com
134
- executables: []
176
+ executables:
177
+ - lotus
135
178
  extensions: []
136
179
  extra_rdoc_files: []
137
180
  files:
181
+ - CHANGELOG.md
138
182
  - LICENSE.md
139
183
  - README.md
184
+ - bin/lotus
140
185
  - lib/lotus.rb
141
186
  - lib/lotus/application.rb
187
+ - lib/lotus/cli.rb
188
+ - lib/lotus/commands/console.rb
189
+ - lib/lotus/commands/new.rb
190
+ - lib/lotus/commands/routes.rb
191
+ - lib/lotus/commands/server.rb
142
192
  - lib/lotus/config/assets.rb
193
+ - lib/lotus/config/configure.rb
194
+ - lib/lotus/config/framework_configuration.rb
143
195
  - lib/lotus/config/load_paths.rb
144
196
  - lib/lotus/config/mapper.rb
145
197
  - lib/lotus/config/mapping.rb
146
198
  - lib/lotus/config/routes.rb
199
+ - lib/lotus/config/sessions.rb
147
200
  - lib/lotus/configuration.rb
201
+ - lib/lotus/container.rb
202
+ - lib/lotus/environment.rb
148
203
  - lib/lotus/frameworks.rb
204
+ - lib/lotus/generators/abstract.rb
205
+ - lib/lotus/generators/application/container.rb
206
+ - lib/lotus/generators/application/container/.gitkeep
207
+ - lib/lotus/generators/application/container/Gemfile.tt
208
+ - lib/lotus/generators/application/container/Rakefile.minitest.tt
209
+ - lib/lotus/generators/application/container/config.ru.tt
210
+ - lib/lotus/generators/application/container/config/.env.development.tt
211
+ - lib/lotus/generators/application/container/config/.env.test.tt
212
+ - lib/lotus/generators/application/container/config/.env.tt
213
+ - lib/lotus/generators/application/container/config/environment.rb.tt
214
+ - lib/lotus/generators/application/container/db/.gitkeep
215
+ - lib/lotus/generators/application/container/features_helper.rb.tt
216
+ - lib/lotus/generators/application/container/lib/app_name.rb.tt
217
+ - lib/lotus/generators/application/container/lib/chirp/entities/.gitkeep
218
+ - lib/lotus/generators/application/container/lib/chirp/repositories/.gitkeep
219
+ - lib/lotus/generators/application/container/spec_helper.rb.tt
220
+ - lib/lotus/generators/slice.rb
221
+ - lib/lotus/generators/slice/.gitkeep.tt
222
+ - lib/lotus/generators/slice/action.rb.tt
223
+ - lib/lotus/generators/slice/application.rb.tt
224
+ - lib/lotus/generators/slice/config/mapping.rb.tt
225
+ - lib/lotus/generators/slice/config/routes.rb.tt
226
+ - lib/lotus/generators/slice/templates/application.html.erb
227
+ - lib/lotus/generators/slice/templates/application.html.erb.tt
228
+ - lib/lotus/generators/slice/templates/template.html.erb.tt
229
+ - lib/lotus/generators/slice/view.rb.tt
230
+ - lib/lotus/generators/slice/views/application_layout.rb.tt
149
231
  - lib/lotus/loader.rb
150
232
  - lib/lotus/middleware.rb
151
233
  - lib/lotus/rendering_policy.rb
152
234
  - lib/lotus/routes.rb
153
235
  - lib/lotus/routing/default.rb
236
+ - lib/lotus/setup.rb
154
237
  - lib/lotus/templates/default.html.erb
238
+ - lib/lotus/templates/welcome.html
155
239
  - lib/lotus/version.rb
156
240
  - lib/lotus/views/default.rb
241
+ - lib/lotus/views/default_template_finder.rb
157
242
  - lib/lotus/views/null_view.rb
243
+ - lib/lotus/welcome.rb
158
244
  - lib/lotusrb.rb
159
245
  - lotusrb.gemspec
160
246
  homepage: http://lotusrb.org
@@ -167,17 +253,17 @@ require_paths:
167
253
  - lib
168
254
  required_ruby_version: !ruby/object:Gem::Requirement
169
255
  requirements:
170
- - - '>='
256
+ - - ">="
171
257
  - !ruby/object:Gem::Version
172
- version: '0'
258
+ version: 2.0.0
173
259
  required_rubygems_version: !ruby/object:Gem::Requirement
174
260
  requirements:
175
- - - '>='
261
+ - - ">="
176
262
  - !ruby/object:Gem::Version
177
263
  version: '0'
178
264
  requirements: []
179
265
  rubyforge_project:
180
- rubygems_version: 2.0.14
266
+ rubygems_version: 2.2.2
181
267
  signing_key:
182
268
  specification_version: 4
183
269
  summary: A complete web framework for Ruby