Skip to content

Commit

Permalink
Release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Feb 14, 2023
1 parent 4c82772 commit 938a1e4
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Lua is much more readily-available than it is for Fennel.

## License

Copyright © 2016-2022 Calvin Rose and contributors
Copyright © 2016-2023 Calvin Rose and contributors

Released under the [MIT license](LICENSE).

Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Note that since 0.3.0, no deprecations have actually resulted in
removals. They are advisory only and we have no plans to break the
deprecated forms.

## 1.3.0 / ???
## 1.3.0 / 2023-02-13

### New Forms
* Add `case` which does pattern matching without pinning existing locals
Expand All @@ -27,6 +27,7 @@ deprecated forms.
### Bug Fixes
* Fix a bug where readline repl history would be saved to the wrong file
* Fix a bug where `set` did not catch unknown locals when setting table fields
* Add a workaround for a bug around `ctrl-d` in readline


## 1.2.1 / 2022-10-15
Expand Down
14 changes: 7 additions & 7 deletions fennel.1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Given a filename as its first argument, it runs that file and passes
it the subsequent arguments. Ahead-of-time compilation can be invoked
with the
.B --compile
flag.
flag, while short snippets can be evaluated with the
.B --eval
argument.

.SH OPTIONS
A summary of options is included below.
Expand All @@ -46,10 +48,6 @@ is installed by default so that the
function can load Fennel files in addition to Lua files. This flag
disables that behavior. Has no effect for ahead-of-time compilation.
.TP
.B \-\-indent \fIval\fP
When compiling, use the given string as indentation for the compiler
output. This should consist of whitespace.
.TP
.B \-\-add-package-path \fIpath\fP
Add the given path to
.B package.path
Expand All @@ -68,7 +66,7 @@ compilation where it otherwise would be disabled. Use "*" to disable
globals checking.
.TP
.B \-\-globals-only \fIVAR1[,VAR2...]\fP
Same as above, but without the addition of the standard set of globals.
Same as above, but without the inclusion of the standard set of globals.
.TP
.B \-\-require-as-include
Instead of loading required modules at runtime, compile them inline
Expand Down Expand Up @@ -96,6 +94,8 @@ Print a help message and exit
.TP
.B \-v, \-\-version
Print the version number and exit
.PP
Use the NO_COLOR environment variable to disable escape codes in error messages.

.SH DOCUMENTATION

Expand All @@ -115,4 +115,4 @@ Calvin Rose and Phil Hagelberg and contributors:
https://github.com/bakpakin/Fennel/graphs/contributors

.SH LICENSE
Copyright © 2016-2021, Released under the MIT/X11 license
Copyright © 2016-2023, Released under the MIT/X11 license
4 changes: 3 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ Example:
(let [[a b & c] [1 2 3 4 5 6]]
(table.concat c ",")) ; => "3,4,5,6"
```
*(Since 1.3.0)*: This also works with function argument lists.
*(Since 1.3.0)*: This also works with function argument lists, but it
has a small performance cost, so it's recommended to use `...` instead
in cases that are sensitive to overhead.

If a table implements `__fennelrest` metamethod it is used to capture the
remainder of the table. It can be used with custom data structures
Expand Down
3 changes: 1 addition & 2 deletions release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ This document is intended for Fennel maintainers.
4. Check for changes which need to be mentioned in help text or man page.
5. Update the download links in `setup.md`.
6. Run `make rockspec VERSION=$VERSION`
7. Run `git commit -m "Release $VERSION"`
8. Run `git tag -s $VERSION -m $VERSION`.
7. Run `git commit -m "Release $VERSION" && git tag -s $VERSION -m $VERSION`

## Uploading

Expand Down
8 changes: 8 additions & 0 deletions rockspecs/fennel-1.3.0-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package = "fennel"
local fennel_version = "1.3.0"
version = (fennel_version .. "-1")
source = {url = ("https://fennel-lang.org/downloads/fennel-" .. fennel_version .. ".tar.gz")}
description = {summary = "A lisp that compiles to Lua", detailed = ("Get your parens on--write macros and " .. "homoiconic code on the Lua runtime!"), license = "MIT", homepage = "https://fennel-lang.org/"}
dependencies = {"lua >= 5.1"}
build = {type = "builtin", install = {bin = {fennel = "fennel"}}, modules = {fennel = "fennel.lua"}}
return nil
30 changes: 15 additions & 15 deletions setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Downloading Fennel on your computer allows you to run Fennel code and
compile to Lua. You have a few options for how to install Fennel.


### Downloading Fennel a package manager
### Downloading Fennel with a package manager

Depending on what package manager you use on your system, you may be
able to use it to install Fennel. See [the
Expand All @@ -37,12 +37,12 @@ installed on your system.
This method requires you to manually update the `fennel` script when
you want to use a newer version that has come out.

1. Download [the fennel script](https://fennel-lang.org/downloads/fennel-1.2.1)
2. Run `chmod +x fennel-1.2.1` to make it executable
3. Download [the signature](https://fennel-lang.org/downloads/fennel-1.2.1.asc)
4. Run `gpg --verify fennel-1.2.1.asc` to verify that the fennel
1. Download [the fennel script](https://fennel-lang.org/downloads/fennel-1.3.0)
2. Run `chmod +x fennel-1.3.0` to make it executable
3. Download [the signature](https://fennel-lang.org/downloads/fennel-1.3.0.asc)
4. Run `gpg --verify fennel-1.3.0.asc` to verify that the fennel
script is from the Fennel creators (optional but recommended)
5. Move `fennel-1.2.1` to a directory on your `$PATH`, such as `/usr/local/bin`
5. Move `fennel-1.3.0` to a directory on your `$PATH`, such as `/usr/local/bin`

**Note**: You can rename the script to `fennel` for convenience. Or
you can leave the version in the name, which makes it easy to keep
Expand All @@ -58,14 +58,14 @@ This method requires you to manually update the `fennel` binary when
you want to use a newer version that has come out.

1. Choose one the options below, depending on your system:
- [GNU/Linux x86_64](https://fennel-lang.org/downloads/fennel-1.2.1-x86_64)
([signature](https://fennel-lang.org/downloads/fennel-1.2.1-x86_64.asc))
- [GNU/Linux arm32](https://fennel-lang.org/downloads/fennel-1.2.1-arm32)
([signature](https://fennel-lang.org/downloads/fennel-1.2.1-arm32.asc))
- [Windows x86 32-bit](https://fennel-lang.org/downloads/fennel-1.2.1-windows32.exe)
([signature](https://fennel-lang.org/downloads/fennel-1.2.1-windows32.exe.asc))
2. Run `chmod +x fennel-1.2.1*` to make it executable (not needed on Windows).
3. Download the signature and confirm it matches using `gpg --verify fennel-1.2.1*.asc`
- [GNU/Linux x86_64](https://fennel-lang.org/downloads/fennel-1.3.0-x86_64)
([signature](https://fennel-lang.org/downloads/fennel-1.3.0-x86_64.asc))
- [GNU/Linux arm32](https://fennel-lang.org/downloads/fennel-1.3.0-arm32)
([signature](https://fennel-lang.org/downloads/fennel-1.3.0-arm32.asc))
- [Windows x86 32-bit](https://fennel-lang.org/downloads/fennel-1.3.0-windows32.exe)
([signature](https://fennel-lang.org/downloads/fennel-1.3.0-windows32.exe.asc))
2. Run `chmod +x fennel-1.3.0*` to make it executable (not needed on Windows).
3. Download the signature and confirm it matches using `gpg --verify fennel-1.3.0*.asc`
(optional but recommended).
4. Move the downloaded binary to a directory on your `$PATH`, such as `/usr/local/bin`

Expand Down Expand Up @@ -98,7 +98,7 @@ The Fennel compiler can be added to your code repository, and then
loaded from Lua.

1. Get the `fennel.lua` library. You can get this from a
[release tarball](https://fennel-lang.org/downloads/fennel-1.2.1.tar.gz)
[release tarball](https://fennel-lang.org/downloads/fennel-1.3.0.tar.gz)
or by running `make` in a source checkout.
2. Add `fennel.lua` to your code repository.
3. Add the following lines to your Lua code:
Expand Down
2 changes: 1 addition & 1 deletion src/fennel/utils.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(local view (require :fennel.view))

(local version :1.3.0-dev)
(local version :1.3.0)

;;; Lua VM detection helper functions

Expand Down
2 changes: 2 additions & 0 deletions src/launcher.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ for production. It is used for docstrings and enabled by default in the REPL.
When not given a command, runs the file given as the first argument.
When given neither command nor file, launches a repl.
Use the NO_COLOR environment variable to disable escape codes in error messages.
If ~/.fennelrc exists, it will be loaded before launching a repl.")

(local options {:plugins []})
Expand Down

0 comments on commit 938a1e4

Please sign in to comment.