Skip to content

Commit a0140d1

Browse files
committed
Lotus => Hanami
1 parent f68481f commit a0140d1

File tree

407 files changed

+2503
-2482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+2503
-2482
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tmp
2222
mkmf.log
2323
.greenbar
2424
.DS_Store
25-
.lotusrc
25+
.hanamirc
2626
test/fixtures/static_assets/public/assets*
2727
test/fixtures/static_assets_app/public/assets*
2828
test/fixtures/rake/rake_tasks/public/assets*

.travis.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,8 @@ script:
1010
- 'bundle install'
1111
- './script/ci'
1212
rvm:
13-
- 2.0.0
14-
- 2.1.0
15-
- 2.1.1
16-
- 2.1.2
17-
- 2.1.3
18-
- 2.1.4
19-
- 2.1.5
20-
- 2.1.6
21-
- 2.1.7
22-
- 2.1.8
23-
- 2.2.0
24-
- 2.2.1
25-
- 2.2.2
26-
- 2.2.3
27-
- 2.2.4
28-
- 2.3.0
29-
- rbx-2
13+
- 2.2
14+
- 2.3
3015
- jruby-9000
3116
- jruby-9.0.1.0
3217
- jruby-9.0.3.0
@@ -35,7 +20,6 @@ rvm:
3520

3621
matrix:
3722
allow_failures:
38-
- rvm: rbx-2
3923
- rvm: jruby-head
4024
- rvm: ruby-head
4125
- rvm: jruby-9000

CHANGELOG.md

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Lotus is an open source project and we would love you to help us make it better.
1+
Hanami is an open source project and we would love you to help us make it better.
22

33
## Reporting Issues
44

@@ -21,7 +21,7 @@ but we just don't know.
2121

2222
## Pull requests
2323

24-
We accept pull requests to Lotus for:
24+
We accept pull requests to Hanami for:
2525

2626
* Adding documentation
2727
* Fixing bugs
@@ -47,6 +47,6 @@ request; Questions, clarifications, and so on.
4747

4848
Some things that will increase the chance that your pull request is accepted:
4949

50-
* Use Lotus idioms
50+
* Use Hanami idioms
5151
* Include tests that fail without your code, and pass with it
5252
* Update the documentation, guides, etc.

FEATURES.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Lotus
1+
# Hanami
22
### A complete web framework for Ruby
33

44
## Features
@@ -20,16 +20,16 @@
2020
* `asset_url`
2121
- Content Delivery Network (CDN) support for static assets (CDN mode)
2222
- Checksum suffix for static assets in production mode (Digest mode)
23-
- Support for third party gems as assets distribution channel (eg. `lotus-jquery`)
24-
- CLI: `lotus assets` command `precompile`: preprocess, minify and append checksum suffix
25-
- CLI: `lotus destroy` destroy apps, models, actions, migrations and mailers
23+
- Support for third party gems as assets distribution channel (eg. `hanami-jquery`)
24+
- CLI: `hanami assets` command `precompile`: preprocess, minify and append checksum suffix
25+
- CLI: `hanami destroy` destroy apps, models, actions, migrations and mailers
2626
- Custom initializers (`apps/web/config/initializers`)
2727
- Rake tasks `:preload` and `:environment`
2828

2929
## v0.5.0 - 2015-09-30
3030

3131
- Mailers
32-
- CLI: `lotus generate mailer`
32+
- CLI: `hanami generate mailer`
3333
- SQL joins
3434
- Custom coercers for data mapper
3535

@@ -39,7 +39,7 @@
3939

4040
- Application architecture
4141
- Database migrations
42-
- CLI: `lotus db` commands: `create`, `drop`, `prepare`, `migrate`, `version`, `apply`.
42+
- CLI: `hanami db` commands: `create`, `drop`, `prepare`, `migrate`, `version`, `apply`.
4343
- HTML5 Form helpers
4444
- Cross Site Request Forgery (CSRF) protection
4545
- Force SSL
@@ -50,26 +50,26 @@
5050
- Automatic secure cookies
5151
- Routing helpers for actions
5252
- Send files from actions
53-
- `Lotus.root` returns top level directory of the project.
53+
- `Hanami.root` returns top level directory of the project.
5454

5555
## v0.3.1 - 2015-05-15
5656

57-
- CLI: `lotus generate app admin` creates a new application (`apps/admin`).
58-
- CLI: `lotus generate model user`. It generates entity, repository and related unit test files.
59-
- `Lotus.env` and `Lotus.env?` for current environment introspection (eg. `Lotus.env?(:test)` or `Lotus.env?(:staging, :production)`)
57+
- CLI: `hanami generate app admin` creates a new application (`apps/admin`).
58+
- CLI: `hanami generate model user`. It generates entity, repository and related unit test files.
59+
- `Hanami.env` and `Hanami.env?` for current environment introspection (eg. `Hanami.env?(:test)` or `Hanami.env?(:staging, :production)`)
6060
- Allow repositories to execute raw query/commands against database
6161
- Automatic timestamps update for entities
62-
– Dirty Tracking for entities (via `Lotus::Entity::DirtyTracking`)
62+
– Dirty Tracking for entities (via `Hanami::Entity::DirtyTracking`)
6363
- Nested RESTful resource(s)
6464
- String pluralization and singularization
6565

6666
## v0.3.0 - 2015-03-23
6767

68-
- CLI: `lotus generate action web dashboard#index`. It generates an action, a view, a template, a route and related unit test files.
69-
- CLI: `lotus db console`. It starts a database REPL.
68+
- CLI: `hanami generate action web dashboard#index`. It generates an action, a view, a template, a route and related unit test files.
69+
- CLI: `hanami db console`. It starts a database REPL.
7070
- Full featured HTML5 markup generator for views (Eg. `html.div { p "Hello World" }`)
7171
- Routing helpers in views and templates (Eg. `routes.home_path`).
72-
- `lotus new` supports `--database` (Eg. `lotus new bookshelf --database=postgresql`).
72+
- `hanami new` supports `--database` (Eg. `hanami new bookshelf --database=postgresql`).
7373
- Initialize a Git repository when generate a new application
7474
- Security: XSS (Cross Site Scripting) protections
7575
- Security: Clickhijacking protection
@@ -85,23 +85,23 @@
8585
## v0.2.1 - 2015-02-06
8686

8787
- Allow entities to include validations.
88-
- `lotus new .` to generate a Lotus application for an existing code base (Eg. a gem that needs a web UI).
89-
- `lotus new` supports `--path` (for destination directory), `--test` (to generate Minitest or RSpec boilerplate).
90-
- Lotus logger
88+
- `hanami new .` to generate a Hanami application for an existing code base (Eg. a gem that needs a web UI).
89+
- `hanami new` supports `--path` (for destination directory), `--test` (to generate Minitest or RSpec boilerplate).
90+
- Hanami logger
9191

9292
## v0.2.0 - 2014-12-23
9393

9494
- Support Minitest as default testing framework (`bundle exec rake` runs the entire test suite of an application).
9595
- Support for _Method Override_ technique.
9696
- Custom templates for non successful responses (Eg. `404.html.erb`).
97-
- Support distinct `.env` files for each Lotus environment.
98-
- Allow to configure multiple applications and handle Lotus environments accordingly.
97+
- Support distinct `.env` files for each Hanami environment.
98+
- Allow to configure multiple applications and handle Hanami environments accordingly.
9999
- Allow to configure middleware stack, routes, database mapping and adapter for each application.
100100
- Show a welcome page with instructions for new generated apps.
101-
- CLI: `lotus routes`. It prints all the routes available for all the applications.
102-
- CLI: `lotus new`. It generates a new application which can run multiple Lotus applications (_Container_ architecture).
103-
- CLI: `lotus console`. It starts a Ruby REPL. It supports IRB (default), Pry and Ripl.
104-
- CLI: `lotus server`. It starts a web server that supports code reloading. It supports all the Rack web servers (default: WEBRick).
101+
- CLI: `hanami routes`. It prints all the routes available for all the applications.
102+
- CLI: `hanami new`. It generates a new application which can run multiple Hanami applications (_Container_ architecture).
103+
- CLI: `hanami console`. It starts a Ruby REPL. It supports IRB (default), Pry and Ripl.
104+
- CLI: `hanami server`. It starts a web server that supports code reloading. It supports all the Rack web servers (default: WEBRick).
105105
- Database adapters: File system (default for new apps)
106106
- Allow to share code for all the views and actions of an application
107107
- Reusable validations framework (mixin). It supports: coercions and presence, format, acceptance, size, inclusion, exclusion, confirmation validations.
@@ -117,10 +117,10 @@
117117

118118
## v0.1.0 - 2014-06-23
119119

120-
- Run multiple Lotus applications in the same Ruby process
120+
- Run multiple Hanami applications in the same Ruby process
121121
- Serve static files
122122
- Render default pages for non successful responses (404, 500, etc.)
123-
- Support multiple Lotus environments (development, test and production)
123+
- Support multiple Hanami environments (development, test and production)
124124
- Full stack applications
125125
- Data mapper
126126
- Database adapters: Memory and SQL
@@ -148,7 +148,7 @@
148148
- Nested route namespaces
149149
- RESTful resource(s), including collection and member actions
150150
- Named routes, routes constraints, variables, catch-all
151-
- Compatibility with Lotus::Controller
151+
- Compatibility with Hanami::Controller
152152
- HTTP redirect from the router
153153
- HTTP routing compatible with Rack
154154
- Thread safety

Gemfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ if !ENV['TRAVIS']
88
end
99

1010
gem 'sass'
11-
gem 'lotus-utils', '~> 0.6', require: false, github: 'lotus/utils', branch: '0.6.x'
12-
gem 'lotus-validations', '~> 0.4', require: false, github: 'lotus/validations', branch: '0.4.x'
13-
gem 'lotus-router', '~> 0.5', require: false, github: 'lotus/router', branch: '0.5.x'
14-
gem 'lotus-controller', '~> 0.5', require: false, github: 'lotus/controller', branch: '0.5.x'
15-
gem 'lotus-view', '~> 0.5', require: false, github: 'lotus/view', branch: '0.5.x'
16-
gem 'lotus-model', '~> 0.5', require: false, github: 'lotus/model', branch: '0.5.x'
17-
gem 'lotus-helpers', '~> 0.2', require: false, github: 'lotus/helpers', branch: '0.2.x'
18-
gem 'lotus-mailer', '~> 0.1', require: false, github: 'lotus/mailer', branch: '0.1.x'
19-
gem 'lotus-assets', '~> 0.1', require: false, github: 'lotus/assets', branch: '0.1.x'
11+
gem 'hanami-utils', '~> 0.7', require: false, github: 'hanami/utils', branch: '0.7.x'
12+
gem 'hanami-validations', '~> 0.5', require: false, github: 'hanami/validations', branch: '0.5.x'
13+
gem 'hanami-router', '~> 0.6', require: false, github: 'hanami/router', branch: '0.6.x'
14+
gem 'hanami-controller', '~> 0.6', require: false, github: 'hanami/controller', branch: '0.6.x'
15+
gem 'hanami-view', '~> 0.6', require: false, github: 'hanami/view', branch: '0.6.x'
16+
gem 'hanami-model', '~> 0.6', require: false, github: 'hanami/model', branch: '0.6.x'
17+
gem 'hanami-helpers', '~> 0.3', require: false, github: 'hanami/helpers', branch: '0.3.x'
18+
gem 'hanami-mailer', '~> 0.2', require: false, github: 'hanami/mailer', branch: '0.2.x'
19+
gem 'hanami-assets', '~> 0.2', require: false, github: 'hanami/assets', branch: '0.2.x'
2020

2121
platforms :ruby do
2222
gem 'sqlite3'

README.md

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
# Lotus
1+
# Hanami
22

3-
A complete web framework for Ruby
3+
The web, with simplicity.
44

55
## Frameworks
66

7-
Lotus combines small yet powerful frameworks:
7+
Hanami combines small yet powerful frameworks:
88

9-
* [**Lotus::Utils**](https://github.com/lotus/utils) - Ruby core extensions and class utilities
10-
* [**Lotus::Router**](https://github.com/lotus/router) - Rack compatible HTTP router for Ruby
11-
* [**Lotus::Validations**](https://github.com/lotus/validations) - Validations mixin for Ruby objects
12-
* [**Lotus::Helpers**](https://github.com/lotus/helpers) - View helpers for Ruby applications
13-
* [**Lotus::Mailer**](https://github.com/lotus/mailer) - Mail for Ruby applications
14-
* [**Lotus::Model**](https://github.com/lotus/model) - Persistence with entities, repositories and data mapper
15-
* [**Lotus::Assets**](https://github.com/lotus/assets) - Assets management for Ruby
16-
* [**Lotus::View**](https://github.com/lotus/view) - Presentation with a separation between views and templates
17-
* [**Lotus::Controller**](https://github.com/lotus/controller) - Full featured, fast and testable actions for Rack
9+
* [**Hanami::Utils**](https://github.com/hanami/utils) - Ruby core extensions and class utilities
10+
* [**Hanami::Router**](https://github.com/hanami/router) - Rack compatible HTTP router for Ruby
11+
* [**Hanami::Validations**](https://github.com/hanami/validations) - Validations mixin for Ruby objects
12+
* [**Hanami::Helpers**](https://github.com/hanami/helpers) - View helpers for Ruby applications
13+
* [**Hanami::Mailer**](https://github.com/hanami/mailer) - Mail for Ruby applications
14+
* [**Hanami::Model**](https://github.com/hanami/model) - Persistence with entities, repositories and data mapper
15+
* [**Hanami::Assets**](https://github.com/hanami/assets) - Assets management for Ruby
16+
* [**Hanami::View**](https://github.com/hanami/view) - Presentation with a separation between views and templates
17+
* [**Hanami::Controller**](https://github.com/hanami/controller) - Full featured, fast and testable actions for Rack
1818

19-
These components are designed to be used independently or together in a Lotus application.
19+
These components are designed to be used independently or together in a Hanami application.
2020
If you aren't familiar with them, please take time to go through their READMEs.
2121

2222
## Status
2323

24-
[![Gem Version](https://badge.fury.io/rb/lotusrb.svg)](http://badge.fury.io/rb/lotusrb)
25-
[![Build Status](https://secure.travis-ci.org/lotus/lotus.svg?branch=master)](http://travis-ci.org/lotus/lotus?branch=master)
26-
[![Coverage](https://coveralls.io/repos/lotus/lotus/badge.svg?branch=master)](https://coveralls.io/r/lotus/lotus)
27-
[![Code Climate](https://codeclimate.com/github/lotus/lotus.svg)](https://codeclimate.com/github/lotus/lotus)
28-
[![Dependencies](https://gemnasium.com/lotus/lotus.svg)](https://gemnasium.com/lotus/lotus)
29-
[![Inline docs](http://inch-ci.org/github/lotus/lotus.svg)](http://inch-ci.org/github/lotus/lotus)
24+
[![Gem Version](https://badge.fury.io/rb/hanami.svg)](http://badge.fury.io/rb/hanami)
25+
[![Build Status](https://secure.travis-ci.org/hanami/hanami.svg?branch=master)](http://travis-ci.org/hanami/hanami?branch=master)
26+
[![Coverage](https://coveralls.io/repos/hanami/hanami/badge.svg?branch=master)](https://coveralls.io/r/hanami/hanami)
27+
[![Code Climate](https://codeclimate.com/github/hanami/hanami.svg)](https://codeclimate.com/github/hanami/hanami)
28+
[![Dependencies](https://gemnasium.com/hanami/hanami.svg)](https://gemnasium.com/hanami/hanami)
29+
[![Inline docs](http://inch-ci.org/github/hanami/hanami.svg)](http://inch-ci.org/github/hanami/hanami)
3030

3131
## Contact
3232

33-
* Home page: http://lotusrb.org
34-
* Community: http://lotusrb.org/community
35-
* Guides: http://lotusrb.org/guides
36-
* Mailing List: http://lotusrb.org/mailing-list
37-
* API Doc: http://rdoc.info/gems/lotusrb
38-
* Bugs/Issues: https://github.com/lotus/lotus/issues
39-
* Support: http://stackoverflow.com/questions/tagged/lotus-ruby
40-
* Forum: https://discuss.lotusrb.org
41-
* Chat: http://chat.lotusrb.org
33+
* Home page: http://hanamirb.org
34+
* Community: http://hanamirb.org/community
35+
* Guides: http://hanamirb.org/guides
36+
* Mailing List: http://hanamirb.org/mailing-list
37+
* API Doc: http://rdoc.info/gems/hanami
38+
* Bugs/Issues: https://github.com/hanami/hanami/issues
39+
* Support: http://stackoverflow.com/questions/tagged/hanami
40+
* Forum: https://discuss.hanamirb.org
41+
* Chat: http://chat.hanamirb.org
4242

4343
## Rubies
4444

45-
__Lotus__ supports Ruby (MRI) 2+
45+
__Hanami__ supports Ruby (MRI) 2+
4646

4747
## Installation
4848

4949
```shell
50-
% gem install lotusrb
50+
% gem install hanami
5151
```
5252

5353
## Usage
5454

5555
```shell
56-
% lotus new bookshelf
56+
% hanami new bookshelf
5757
% cd bookshelf && bundle
58-
% bundle exec lotus server # visit http://localhost:2300
58+
% bundle exec hanami server # visit http://localhost:2300
5959
```
6060

61-
Please follow along with the [Getting Started guide](http://lotusrb.org/guides/getting-started).
61+
Please follow along with the [Getting Started guide](http://hanamirb.org/guides/getting-started).
6262

6363
## Community
6464

6565
We strive for a Community made of **inclusive, helpful and smart people**.
66-
We have a [Code of Conduct](http://lotusrb.org/community/#code-of-conduct) to handle controversial cases.
66+
We have a [Code of Conduct](http://hanamirb.org/community/#code-of-conduct) to handle controversial cases.
6767
In general, we expect **you** to be **nice** with other people.
6868
Our hope is for a great software and a great Community.
6969

@@ -85,16 +85,17 @@ This Code of Conduct is adapted from the Contributor Covenant, version 1.1.0, av
8585

8686
## Contributing
8787

88-
1. Fork it ( https://github.com/lotus/lotus/fork )
88+
1. Fork it ( https://github.com/hanami/hanami/fork )
8989
2. Create your feature branch (`git checkout -b my-new-feature`)
9090
3. Commit your changes (`git commit -am 'Add some feature'`)
9191
4. Push to the branch (`git push origin my-new-feature`)
9292
5. Create a new Pull Request
9393

9494
## Versioning
9595

96-
__Lotus__ uses [Semantic Versioning 2.0.0](http://semver.org)
96+
__Hanami__ uses [Semantic Versioning 2.0.0](http://semver.org)
9797

9898
## Copyright
9999

100100
Copyright © 2014-2016 Luca Guidi – Released under MIT License
101+
This project was formerly known as Lotus (`lotusrb`).

bin/lotus renamed to bin/hanami

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
22

33
require 'bundler'
4-
require 'lotus/cli'
5-
Lotus::Cli.start
4+
require 'hanami/cli'
5+
Hanami::Cli.start

lotusrb.gemspec renamed to hanami.gemspec

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# coding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require 'lotus/version'
4+
require 'hanami/version'
55

66
Gem::Specification.new do |spec|
7-
spec.name = 'lotusrb'
8-
spec.version = Lotus::VERSION
7+
spec.name = 'hanami'
8+
spec.version = Hanami::VERSION
99
spec.authors = ['Luca Guidi', 'Trung Lê', 'Alfonso Uceda Pompa']
1010
11-
spec.summary = %q{A complete web framework for Ruby}
12-
spec.description = %q{A complete web framework for Ruby}
13-
spec.homepage = 'http://lotusrb.org'
11+
spec.summary = %q{The web, with simplicity.}
12+
spec.description = %q{Hanami is a simple and complete web framework for Ruby}
13+
spec.homepage = 'http://hanamirb.org'
1414
spec.license = 'MIT'
1515

16-
spec.files = `git ls-files -z -- lib/* bin/* LICENSE.md README.md CHANGELOG.md FEATURES.md lotusrb.gemspec`.split("\x0")
16+
spec.files = `git ls-files -z -- lib/* bin/* LICENSE.md README.md CHANGELOG.md FEATURES.md hanami.gemspec`.split("\x0")
1717
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
1818
spec.test_files = spec.files.grep(%r{^(test)/})
1919
spec.require_paths = ['lib']
2020
spec.required_ruby_version = '>= 2.0.0'
2121

22-
spec.add_dependency 'lotus-utils', '~> 0.6'
23-
spec.add_dependency 'lotus-router', '~> 0.5'
24-
spec.add_dependency 'lotus-controller', '~> 0.5'
25-
spec.add_dependency 'lotus-view', '~> 0.5'
26-
spec.add_dependency 'lotus-helpers', '~> 0.2', '>= 0.2.6'
27-
spec.add_dependency 'lotus-mailer', '~> 0.1'
28-
spec.add_dependency 'lotus-assets', '~> 0.1'
22+
spec.add_dependency 'hanami-utils', '~> 0.7'
23+
spec.add_dependency 'hanami-router', '~> 0.6'
24+
spec.add_dependency 'hanami-controller', '~> 0.6'
25+
spec.add_dependency 'hanami-view', '~> 0.6'
26+
spec.add_dependency 'hanami-helpers', '~> 0.3'
27+
spec.add_dependency 'hanami-mailer', '~> 0.2'
28+
spec.add_dependency 'hanami-assets', '~> 0.2'
2929
spec.add_dependency 'shotgun', '~> 0.9'
3030
spec.add_dependency 'dotenv', '~> 2.0'
3131
spec.add_dependency 'thor', '~> 0.19'

0 commit comments

Comments
 (0)