Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.1.0 #96

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Alexander V. Nikolaev <avn@daemon.hole.ru>
Valeriy Skurikhin <Keen.vs@gmail.com>
Vladimir Dronnikov <dronnikov@gmail.com>
Alexander Altshuler <altexy@gmail.com>
Alexey Romanov <jobmail37@gmail.com>
Alexey Romanoff <vr@alexeyromanoff.com>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

принято, влить

Rafis Ganeyev <rafisganeyev@gmail.com>
Mark Gurevich <markgurevichster@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

проверь плз, опираясь на запрос в гит, что все авторы есть

и напиши этот запрос в RELEASE

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что все авторы есть где? в истории коммитов?

Copy link
Member

@agladysh agladysh Feb 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что все авторы из истории коммитов есть в AUTHORS

Vladimir Stebunov <vstebunov@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and commercial purposes at absolutely no cost.

===============================================================================

Copyright (C) 2009-2017 Lua-Núcleo authors
Copyright (C) 2009-2021 Lua-Núcleo authors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

принято, влить

лучше одним коммитом все места с годами обновить


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
56 changes: 56 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
Version 1.1.0 (2021-02-15)
==========================

Additions and improvements:

Lua up to 5.4 support is added.

make.sh:
More strict bash is set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

непонятно, что хотели сказать

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не знаю, commit message такой make.sh: more strict bash

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убери под catch all (в смысле "и прочие мелкие правки везде")

Updating list-exports only if a rock is installed.
Allow local luarocks installation with "--local" option.

datetime-utils (new module):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вижу, что в RELEASE не написано про использование git shortlog для составления записи в этом файле. Надо написать.

Ты же им пользовался, да?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я (как бы) им пользовался как рефернсом (gitk)

Вывод из git shortlog выглядит не подходящим под стиль описания прошлых версий.

Может я просто не знаю как им правильно пользоваться.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

из слака:
AR> git shortlog — как правильно пользоваться?
AG>git shortlog v1.0.0...

выдаёт море коммитов

я никогда не пользовался раньше, что имеется ввиду под его использованием конкретно?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай обсудим в слаке. мне пока непонятна проблематика

make_time_table is added.
get_days_in_month is added.
get_day_of_week is added.
day_of_week_name_to_number is added.
month_name_to_number is added.

dsl/common_load_schema:
A heuristics to find a source location for dsl node is added.

ensure:
ensure_strvariant is added.
ensure_strlist is added.
ensure_strpermutations is added.

enumenator:
make_enumerator_from_set is added.
make_enumerator_from_interval is added.

language:
Exports are added: lua52_types, lua52_keywords, lua53_types,
lua53_keywords, lua54_types, lua54_keywords, lua_types, lua_keywords.

legacy (new module):
loadstring is added.

language:
update to support all current Lua versions >= 5.1

table-utils:
tdeepfilter is added.
tisarray_not is added.
tifindallpermutations is added.

tdeepequals:
tless_kv: optimization is made.
tmore: prevent crashes fix is made.

Test framework is enhanced, new extensions are added.

More tests are added (including tests for new features).

Documentation is updated.

Version 1.0.0 (2016-12-15)
==========================

Expand Down
17 changes: 10 additions & 7 deletions RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
- `COPYRIGHT` file;
- `_COPYRIGHT` exported constant in the main module.
3. Update version in `_VERSION` exported constant in the main module.
4. Regenerate exports list (performed by `./make.sh`)
5. Generate `scm-1` rockspec (performed by `./make.sh`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

принято, влить

6. Generate `VERSION-1` rockspec, where VERSION is the version to be released.
4. Regenerate tests list (performed by `./make.sh`)
5. Regenerate exports list (performed by `./make.sh`)
6. Generate `scm-1` rockspec (performed by `./make.sh`)
7. Generate `VERSION-1` rockspec, where VERSION is the version to be released.
Example:
```
lua etc/rockspec/generate.lua 1.1.0-1 v1.1.0 > rockspec/lua-nucleo-1.1.0-1.rockspec
````
7. Regenerate API docs: `./make-doc.sh`
8. Make sure that all the changes is in the working tree.
9. Tag the working tree head with the version name, e.g. `v1.1.0`.
10. Push tag to origin.
8. Regenerate API docs: `./make-doc.sh`
9. Make sure that all the changes is in the working tree.
10. Last check that all tests are passed OK in latest Lua 5.1, Lua 5.2, Lua 5.3
Lua 5.4
10. Tag the working tree head with the version name, e.g. `v1.1.0`.
11. Push tag to origin.

# Publish on [LuaRocks.org](https://luarocks.org)

Expand Down
100 changes: 100 additions & 0 deletions lua-nucleo/code/exports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ return
{
{ "lua-nucleo/log.lua", w = 0 };
};
MAX_TIMESTAMP =
{
{ "lua-nucleo/timestamp.lua", w = 0 };
};
amap =
{
{ "lua-nucleo/args.lua", w = 0 };
Expand Down Expand Up @@ -162,6 +166,10 @@ return
{
{ "lua-nucleo/string.lua", w = 0 };
};
day_of_week_name_to_number =
{
{ "lua-nucleo/datetime-utils.lua", w = 0 };
};
decoraror_checker_helper =
{
{ "lua-nucleo/testing/decorators.lua", w = 0 };
Expand Down Expand Up @@ -238,6 +246,18 @@ return
{
{ "lua-nucleo/ensure.lua", w = 0 };
};
ensure_strlist =
{
{ "lua-nucleo/ensure.lua", w = 0 };
};
ensure_strpermutations =
{
{ "lua-nucleo/ensure.lua", w = 0 };
};
ensure_strvariant =
{
{ "lua-nucleo/ensure.lua", w = 0 };
};
ensure_tdeepequals =
{
{ "lua-nucleo/ensure.lua", w = 0 };
Expand Down Expand Up @@ -286,10 +306,18 @@ return
{
{ "lua-nucleo/log.lua", w = 0 };
};
get_day_of_week =
{
{ "lua-nucleo/datetime-utils.lua", w = 0 };
};
get_day_timestamp =
{
{ "lua-nucleo/timestamp.lua", w = 0 };
};
get_days_in_month =
{
{ "lua-nucleo/datetime-utils.lua", w = 0 };
};
get_decasecond_timestamp =
{
{ "lua-nucleo/timestamp.lua", w = 0 };
Expand Down Expand Up @@ -402,6 +430,10 @@ return
{
{ "lua-nucleo/dsl/walk_data_with_schema.lua", w = 0 };
};
loadstring =
{
{ "lua-nucleo/legacy.lua", w = 0 };
};
looped_linear_interpolator =
{
{ "lua-nucleo/util/anim/interpolator.lua", w = 0 };
Expand All @@ -426,6 +458,38 @@ return
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua52_keywords =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua52_types =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua53_keywords =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua53_types =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua54_keywords =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua54_types =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua_keywords =
{
{ "lua-nucleo/language.lua", w = 0 };
};
lua_types =
{
{ "lua-nucleo/language.lua", w = 0 };
};
make_checker =
{
{ "lua-nucleo/checker.lua", w = 0 };
Expand All @@ -450,6 +514,14 @@ return
{
{ "lua-nucleo/dsl/dsl_loader.lua", w = 0 };
};
make_enumerator_from_interval =
{
{ "lua-nucleo/enumerator.lua", w = 0 };
};
make_enumerator_from_set =
{
{ "lua-nucleo/enumerator.lua", w = 0 };
};
make_generator_mt =
{
{ "lua-nucleo/functional.lua", w = 0 };
Expand Down Expand Up @@ -498,14 +570,26 @@ return
{
{ "lua-nucleo/stack_with_factory.lua", w = 0 };
};
make_time_table =
{
{ "lua-nucleo/datetime-utils.lua", w = 0 };
};
make_timed_queue =
{
{ "lua-nucleo/timed_queue.lua", w = 0 };
};
make_timestamp_from_string =
{
{ "lua-nucleo/timestamp.lua", w = 0 };
};
method_arguments =
{
{ "lua-nucleo/args.lua", w = 0 };
};
month_name_to_number =
{
{ "lua-nucleo/datetime-utils.lua", w = 0 };
};
nargs =
{
{ "lua-nucleo/args.lua", w = 0 };
Expand Down Expand Up @@ -598,6 +682,10 @@ return
{
{ "lua-nucleo/tdeepequals.lua", w = 0 };
};
tdeepfilter =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
};
tequals =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
Expand Down Expand Up @@ -638,6 +726,10 @@ return
{
{ "lua-nucleo/table-utils.lua", w = 0 };
};
tifindallpermutations =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
};
tifindvalue_nonrecursive =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
Expand Down Expand Up @@ -690,6 +782,10 @@ return
{
{ "lua-nucleo/table-utils.lua", w = 0 };
};
tisarray_not =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
};
tisempty =
{
{ "lua-nucleo/table-utils.lua", w = 0 };
Expand Down Expand Up @@ -882,6 +978,10 @@ return
{
{ "lua-nucleo/misc.lua", w = 0 };
};
unpack_timestamp =
{
{ "lua-nucleo/timestamp.lua", w = 0 };
};
upper_bound =
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ГК

{ "lua-nucleo/algorithm.lua", w = 0 };
Expand Down
5 changes: 4 additions & 1 deletion rockspec/lua-nucleo-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = {
license = "MIT/X11"
}
dependencies = {
"lua >= 5.1"
"lua >= 5.1, <= 5.4"
}
build = {
type = "none",
Expand All @@ -26,6 +26,7 @@ build = {
["lua-nucleo.code.globals"] = "lua-nucleo/code/globals.lua";
["lua-nucleo.code.profile"] = "lua-nucleo/code/profile.lua";
["lua-nucleo.coro"] = "lua-nucleo/coro.lua";
["lua-nucleo.datetime-utils"] = "lua-nucleo/datetime-utils.lua";
["lua-nucleo.deque"] = "lua-nucleo/deque.lua";
["lua-nucleo.diagnostics"] = "lua-nucleo/diagnostics.lua";
["lua-nucleo.dsl.common_load_schema"] = "lua-nucleo/dsl/common_load_schema.lua";
Expand All @@ -35,6 +36,7 @@ build = {
["lua-nucleo.dsl.tagged-tree"] = "lua-nucleo/dsl/tagged-tree.lua";
["lua-nucleo.dsl.walk_data_with_schema"] = "lua-nucleo/dsl/walk_data_with_schema.lua";
["lua-nucleo.ensure"] = "lua-nucleo/ensure.lua";
["lua-nucleo.enumerator"] = "lua-nucleo/enumerator.lua";
["lua-nucleo.factory"] = "lua-nucleo/factory.lua";
["lua-nucleo.functional"] = "lua-nucleo/functional.lua";
["lua-nucleo.import"] = "lua-nucleo/import.lua";
Expand All @@ -43,6 +45,7 @@ build = {
["lua-nucleo.key_value_store.key_value_store_simple"] = "lua-nucleo/key_value_store/key_value_store_simple.lua";
["lua-nucleo.key_value_store.key_value_store_sophisticated"] = "lua-nucleo/key_value_store/key_value_store_sophisticated.lua";
["lua-nucleo.language"] = "lua-nucleo/language.lua";
["lua-nucleo.legacy"] = "lua-nucleo/legacy.lua";
["lua-nucleo.log"] = "lua-nucleo/log.lua";
["lua-nucleo.math"] = "lua-nucleo/math.lua";
["lua-nucleo.misc"] = "lua-nucleo/misc.lua";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ПП

Expand Down
8 changes: 8 additions & 0 deletions test/test-list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ return
type = 'cases';
path = 'test/cases/0320-timestamp.lua';
};
{
type = 'cases';
path = 'test/cases/0325-datetime-utils.lua';
};
{
type = 'cases';
path = 'test/cases/0330-tpretty.lua';
Expand Down Expand Up @@ -290,6 +294,10 @@ return
type = 'cases';
path = 'test/cases/0640-quicksort.lua';
};
{
type = 'cases';
path = 'test/cases/0650-enumerator.lua';
};
{
type = 'cases';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ГК

path = 'test/cases/0650-legacy.lua';
Expand Down