Skip to content

Commit

Permalink
Merge pull request #37 from inaka/elbrujohalcon.37.hex_package
Browse files Browse the repository at this point in the history
Hex Package
  • Loading branch information
igaray committed Jan 11, 2016
2 parents f560844 + 45669af commit cdbcc3e
Show file tree
Hide file tree
Showing 24 changed files with 4,989 additions and 682 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lasse.d
.erlang.mk/
.eunit
.edts
Expand Down
46 changes: 25 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
# Change Log

## [1.0.0](https://github.com/inaka/lasse/tree/1.0.0) (2015-06-08)
## [1.1.0](https://github.com/inaka/lasse/tree/1.1.0) (2016-01-11)
[Full Changelog](https://github.com/inaka/lasse/compare/1.0.1...1.1.0)

**Fixed bugs:**

- Fix -callback spec for init [\#36](https://github.com/inaka/lasse/issues/36)

**Closed issues:**

- Fulfill the open-source checklist [\#18](https://github.com/inaka/lasse/issues/18)

**Merged pull requests:**

- \[\#36\] Fixed specs for init callback [\#38](https://github.com/inaka/lasse/pull/38) ([jfacorro](https://github.com/jfacorro))
- Updated license [\#35](https://github.com/inaka/lasse/pull/35) ([spike886](https://github.com/spike886))

## [1.0.1](https://github.com/inaka/lasse/tree/1.0.1) (2015-06-09)
[Full Changelog](https://github.com/inaka/lasse/compare/1.0.0...1.0.1)

**Merged pull requests:**

- Version bump to 1.0.1 [\#34](https://github.com/inaka/lasse/pull/34) ([elbrujohalcon](https://github.com/elbrujohalcon))
- export types in lasse\_handler [\#33](https://github.com/inaka/lasse/pull/33) ([elbrujohalcon](https://github.com/elbrujohalcon))

## [1.0.0](https://github.com/inaka/lasse/tree/1.0.0) (2015-06-08)
[Full Changelog](https://github.com/inaka/lasse/compare/0.2.0...1.0.0)

**Implemented enhancements:**
Expand All @@ -11,9 +34,7 @@
**Fixed bugs:**

- Export types in lasse\_handler [\#28](https://github.com/inaka/lasse/issues/28)

- Complete init callback definition [\#27](https://github.com/inaka/lasse/issues/27)

- Change name to event [\#21](https://github.com/inaka/lasse/issues/21)

**Closed issues:**
Expand All @@ -23,13 +44,11 @@
**Merged pull requests:**

- Debug line removed [\#32](https://github.com/inaka/lasse/pull/32) ([elbrujohalcon](https://github.com/elbrujohalcon))

- Overhaul [\#31](https://github.com/inaka/lasse/pull/31) ([elbrujohalcon](https://github.com/elbrujohalcon))

- waffle.io Badge [\#30](https://github.com/inaka/lasse/pull/30) ([waffle-iron](https://github.com/waffle-iron))
- Generate new release [\#25](https://github.com/inaka/lasse/pull/25) ([Euen](https://github.com/Euen))

## [0.2.0](https://github.com/inaka/lasse/tree/0.2.0) (2015-05-05)

[Full Changelog](https://github.com/inaka/lasse/compare/0.1.0...0.2.0)

**Implemented enhancements:**
Expand All @@ -47,47 +66,32 @@
**Merged pull requests:**

- \[\#25\] new release 0.2.0 [\#26](https://github.com/inaka/lasse/pull/26) ([Euen](https://github.com/Euen))

- Update LICENSE [\#24](https://github.com/inaka/lasse/pull/24) ([andresinaka](https://github.com/andresinaka))

- Fix result handling of module:handle\_error/3 [\#23](https://github.com/inaka/lasse/pull/23) ([stwind](https://github.com/stwind))

- \[fix \#19\] change version to 1.10.0 [\#20](https://github.com/inaka/lasse/pull/20) ([Euen](https://github.com/Euen))

- \[\#14\] Allow Initial Events to be sent on init. [\#16](https://github.com/inaka/lasse/pull/16) ([jfacorro](https://github.com/jfacorro))

- \[\#13\] Added State value to all return values of init\(\) [\#15](https://github.com/inaka/lasse/pull/15) ([jfacorro](https://github.com/jfacorro))

## [0.1.0](https://github.com/inaka/lasse/tree/0.1.0) (2014-06-18)

**Implemented enhancements:**

- Additional Features [\#6](https://github.com/inaka/lasse/issues/6)

**Closed issues:**

- Considerations from reading the Protocol RFC [\#10](https://github.com/inaka/lasse/issues/10)

- Add Examples and Documentation [\#4](https://github.com/inaka/lasse/issues/4)

- Add Tests [\#3](https://github.com/inaka/lasse/issues/3)

- App Structure [\#2](https://github.com/inaka/lasse/issues/2)

- Create an Initial Version [\#1](https://github.com/inaka/lasse/issues/1)

**Merged pull requests:**

- \[\#10\] Implemented missing features form the RFC [\#12](https://github.com/inaka/lasse/pull/12) ([jfacorro](https://github.com/jfacorro))

- \[\#4\] Added examples and updated the README with some documentation. [\#11](https://github.com/inaka/lasse/pull/11) ([jfacorro](https://github.com/jfacorro))

- \[\#6\] Implemented additional features and added tests [\#9](https://github.com/inaka/lasse/pull/9) ([jfacorro](https://github.com/jfacorro))

- \[\#3\] Created test suite for lasse. [\#8](https://github.com/inaka/lasse/pull/8) ([jfacorro](https://github.com/jfacorro))

- \[\#2\] App Structure [\#7](https://github.com/inaka/lasse/pull/7) ([jfacorro](https://github.com/jfacorro))

- \[\#1\] lasse\_handler and related behavior implementation [\#5](https://github.com/inaka/lasse/pull/5) ([jfacorro](https://github.com/jfacorro))


Expand Down
35 changes: 13 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
PROJECT = lasse

CONFIG ?= rel/sys.config

SHELL_DEPS = sync
TEST_DEPS = cowboy lager shotgun meck katana xref_runner
TEST_DEPS = cowboy shotgun meck katana mixer
BUILD_DEPS = inaka_mk hexer_mk
LOCAL_DEPS = common_test

dep_meck = git https://github.com/eproxus/meck.git 0.8.2
dep_cowboy = git https://github.com/extend/cowboy.git 1.0.1
dep_shotgun = git https://github.com/inaka/shotgun.git 0.1.11
dep_katana = git https://github.com/inaka/erlang-katana.git 0.2.5
dep_xref_runner = git https://github.com/inaka/xref_runner.git 0.2.2
dep_meck = hex 0.8.4
dep_cowboy = git https://github.com/extend/cowboy.git 1.0.4
dep_shotgun = hex 0.1.15
dep_katana = hex 0.2.18
dep_mixer = git https://github.com/inaka/mixer.git 0.1.4
dep_inaka_mk = git https://github.com/inaka/inaka.mk.git 1.0.0
dep_hexer_mk = git https://github.com/inaka/hexer.mk.git 1.0.1

DIALYZER_DIRS := ebin/
DIALYZER_OPTS := --verbose --statistics -Werror_handling \
-Wrace_conditions #-Wunmatched_returns
DEP_PLUGINS = inaka_mk hexer_mk

include erlang.mk

ERLC_OPTS := +warn_unused_vars +warn_export_all +warn_shadow_vars +warn_unused_import +warn_unused_function
ERLC_OPTS += +warn_bif_clash +warn_unused_record +warn_deprecated_function +warn_obsolete_guard +strict_validation
ERLC_OPTS += +warn_export_vars +warn_exported_vars +warn_missing_spec +warn_untyped_record +debug_info

TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
CT_OPTS += -cover test/${PROJECT}.coverspec -vvv -erl_args -config ${CONFIG}

SHELL_OPTS += -name ${PROJECT}@`hostname` -config ${CONFIG} -s lager -s sync

quicktests: app
@$(MAKE) --no-print-directory app-build test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)"
@mkdir -p logs/
$(gen_verbose) $(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)
SHELL_OPTS += -s sync

erldocs:
erldocs . -o docs
CT_OPTS = -cover test/cover.spec
52 changes: 50 additions & 2 deletions elvis.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
elvis,
[
{config,
[#{dirs => ["src"],
[#{dirs => ["src", "examples/ping_pong/src"],
filter => "*.erl",
rules => [{elvis_style, line_length, #{limit => 80,
skip_comments => false}},
Expand All @@ -17,7 +17,7 @@
{elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules, #{limit => 30}},
{elvis_style, no_if_expression},
{elvis_style, invalid_dynamic_call, #{ignore => [elvis]}},
{elvis_style, invalid_dynamic_call},
{elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{
Expand All @@ -26,10 +26,58 @@
#{regex => "^([a-z][a-z0-9]*_?)*(_SUITE)?$",
ignore => []}
},
{
elvis_style,
function_naming_convention,
#{regex => "^([a-z][a-z0-9]*_?)*$"}
},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 10}},
{elvis_style, no_debug_call}
]
},
#{dirs => ["test"],
filter => "*.erl",
rules => [{elvis_style, line_length, #{limit => 80,
skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, macro_names},
{elvis_style, macro_module_names},
{elvis_style, operator_spaces, #{rules => [{right, ","},
{right, "++"},
{left, "++"}]}},
{elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules, #{limit => 30}},
{elvis_style, no_if_expression},
{elvis_style, invalid_dynamic_call},
{elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{
elvis_style,
module_naming_convention,
#{regex => "^([a-z][a-z0-9]*_?)*(_SUITE)?$",
ignore => []}
},
{
elvis_style,
function_naming_convention,
#{regex => "^([a-z][a-z0-9]*_?)*$"}
},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 10}}
]
},
#{dirs => ["."],
filter => "Makefile",
rules => [{elvis_project, no_deps_master_erlang_mk},
{elvis_project, protocol_for_deps_erlang_mk, #{regex => "(https://.*|[0-9]+([.][0-9]+)*)"}}]
},
#{dirs => ["."],
filter => "elvis.config",
rules => [{elvis_project, old_configuration_format}]
}
]
}
Expand Down
Loading

0 comments on commit cdbcc3e

Please sign in to comment.