Skip to content

Commit

Permalink
Prepare for v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed May 15, 2015
1 parent 74f7411 commit 98c7526
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,16 @@
# Lotus
A complete web framework for Ruby

## v0.3.1 - 2015-05-15
### Added
- [Hieu Nguyen] Introduced application generator (eg. `bundle exec lotus generate app admin` creates `apps/admin`).
- [Ngoc Nguyen] Introduced model generator (eg. `bundle exec lotus generate model user` creates entity, repository and test files).
- [Ngoc Nguyen] Introduced `Lotus.env`, `Lotus.env?` for current environment introspection (eg. `Lotus.env?(:test)` or `Lotus.env?(:staging, :production)`)
- [Miguel Molina] Skip view creation when an action is generated via `--skip-view` CLI arg.

### Fixed
- [Luca Guidi] Ensure routes to be loaded for unit tests

## v0.3.0 - 2015-03-23
### Added
- [Luca Guidi] Introduced action generator. Eg. `bundle exec lotus generate action web dashboard#index`
Expand Down
11 changes: 11 additions & 0 deletions FEATURES.md
Expand Up @@ -3,6 +3,17 @@

## Features

## v0.3.1 - 2015-05-15

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

## v0.3.0 - 2015-03-23

- CLI: `lotus generate action web dashboard#index`. It generates an action, a view, a template, a route and related unit test files.
Expand Down
6 changes: 3 additions & 3 deletions lib/lotus/commands/generate.rb
Expand Up @@ -58,7 +58,7 @@ def spec_root
@spec_root ||= Pathname.new('spec')
end

# @since x.x.x
# @since 0.3.1
# @api private
def model_root
@model_root ||= Pathname.new(['lib', ::File.basename(Dir.getwd)]
Expand All @@ -74,7 +74,7 @@ def generator
Utils::Class.load!(GENERATORS_NAMESPACE % class_name).new(self)
end

# @since x.x.x
# @since 0.3.1
# @api private
def sanitize_app_name_options(app_name)
{
Expand All @@ -83,7 +83,7 @@ def sanitize_app_name_options(app_name)
}
end

# @since x.x.x
# @since 0.3.1
# @api private
def sanitize_type(type)
type == APP ? SLICE_TYPE : type
Expand Down
2 changes: 1 addition & 1 deletion lib/lotus/environment.rb
Expand Up @@ -180,7 +180,7 @@ def environment
@environment ||= ENV[LOTUS_ENV] || ENV[RACK_ENV] || DEFAULT_ENV
end

# @since x.x.x
# @since 0.3.1
#
# @see Lotus.env?(name)
def environment?(*names)
Expand Down
12 changes: 6 additions & 6 deletions lib/lotus/generators/model.rb
Expand Up @@ -5,7 +5,7 @@ module Lotus
module Generators
class Model < Abstract

# @since x.x.x
# @since 0.3.1
# @api private
def initialize(command)
super
Expand All @@ -16,7 +16,7 @@ def initialize(command)
cli.class.source_root(source)
end

# @since x.x.x
# @since 0.3.1
# @api private
def start
opts = {
Expand Down Expand Up @@ -47,25 +47,25 @@ def start
end

private
# @since x.x.x
# @since 0.3.1
# @api private
def _entity_path
model_root.join("entities", "#{@model}.rb").to_s
end

# @since x.x.x
# @since 0.3.1
# @api private
def _repository_path
model_root.join("repositories", "#{@model}_repository.rb").to_s
end

# @since x.x.x
# @since 0.3.1
# @api private
def _entity_spec_path
spec_root.join(::File.basename(Dir.getwd), 'entities', "#{ @model }_spec.rb")
end

# @since x.x.x
# @since 0.3.1
# @api private
def _repository_spec_path
spec_root.join(::File.basename(Dir.getwd), 'repositories',
Expand Down
2 changes: 1 addition & 1 deletion lib/lotus/version.rb
Expand Up @@ -2,5 +2,5 @@ module Lotus
# Defines the version
#
# @since 0.1.0
VERSION = '0.3.0'.freeze
VERSION = '0.3.1'.freeze
end
2 changes: 1 addition & 1 deletion test/version_test.rb
Expand Up @@ -2,6 +2,6 @@

describe Lotus::VERSION do
it 'returns current version' do
Lotus::VERSION.must_equal '0.3.0'
Lotus::VERSION.must_equal '0.3.1'
end
end

0 comments on commit 98c7526

Please sign in to comment.