Skip to content

Commit ae558ac

Browse files
committed
improvement: As of this commit Reactor is now licensed as MIT.
1 parent 1626506 commit ae558ac

File tree

11 files changed

+199
-236
lines changed

11 files changed

+199
-236
lines changed

.drone.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.formatter.exs

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,85 @@
11
# Used by "mix format"
2-
spark_locals_without_parens = []
2+
spark_locals_without_parens = [
3+
chardata: 1,
4+
chgrp: 1,
5+
chgrp: 2,
6+
chmod: 1,
7+
chmod: 2,
8+
chown: 1,
9+
chown: 2,
10+
close_file: 1,
11+
close_file: 2,
12+
content: 1,
13+
cp: 1,
14+
cp: 2,
15+
cp_r: 1,
16+
cp_r: 2,
17+
description: 1,
18+
device: 1,
19+
existing: 1,
20+
gid: 1,
21+
glob: 1,
22+
glob: 2,
23+
guard: 1,
24+
guard: 2,
25+
io_binread: 1,
26+
io_binread: 2,
27+
io_binstream: 1,
28+
io_binstream: 2,
29+
io_read: 1,
30+
io_read: 2,
31+
io_stream: 1,
32+
io_stream: 2,
33+
io_write: 1,
34+
io_write: 2,
35+
line_or_bytes: 1,
36+
line_or_chars: 1,
37+
line_or_codepoints: 1,
38+
ln: 1,
39+
ln: 2,
40+
ln_s: 1,
41+
ln_s: 2,
42+
lstat: 1,
43+
lstat: 2,
44+
match_dot: 1,
45+
mkdir: 1,
46+
mkdir: 2,
47+
mkdir_p: 1,
48+
mkdir_p: 2,
49+
mode: 1,
50+
modes: 1,
51+
new: 1,
52+
open_file: 1,
53+
open_file: 2,
54+
overwrite?: 1,
55+
path: 1,
56+
pattern: 1,
57+
read_file: 1,
58+
read_file: 2,
59+
read_link: 1,
60+
read_link: 2,
61+
revert_on_undo?: 1,
62+
rm: 1,
63+
rm: 2,
64+
rmdir: 1,
65+
rmdir: 2,
66+
source: 1,
67+
stat: 1,
68+
stat: 2,
69+
target: 1,
70+
time: 1,
71+
touch: 1,
72+
touch: 2,
73+
uid: 1,
74+
wait_for: 1,
75+
wait_for: 2,
76+
where: 1,
77+
where: 2,
78+
write_file: 1,
79+
write_file: 2,
80+
write_stat: 1,
81+
write_stat: 2
82+
]
383

484
[
585
import_deps: [:reactor, :spark],

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: mix
4+
directory: "/"
5+
versioning-strategy: lockfile-only
6+
schedule:
7+
interval: "daily"
8+
groups:
9+
production-dependencies:
10+
dependency-type: production
11+
dev-dependencies:
12+
dependency-type: development

.github/workflows/elixir.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Reactor CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
jobs:
11+
ash-ci:
12+
uses: ash-project/ash/.github/workflows/ash-ci.yml@main
13+
secrets:
14+
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
15+
with:
16+
spark-formatter: true
17+
postgres: false
18+
igniter-upgrade: false
19+
sobelow: false

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
elixir 1.18.4
2-
erlang 28.0
2+
erlang 27.3.4

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2025 James Harton.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSE.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
<img src="https://github.com/ash-project/reactor/blob/main/logos/reactor-logo-light-small.png?raw=true#gh-light-mode-only" alt="Logo Light" width="250">
2+
<img src="https://github.com/ash-project/reactor/blob/main/logos/reactor-logo-dark-small.png?raw=true#gh-dark-mode-only" alt="Logo Dark" width="250">
3+
14
# Reactor.File
25

3-
[![Build Status](https://drone.harton.dev/api/badges/james/reactor_file/status.svg)](https://drone.harton.dev/james/reactor_file)
4-
[![Hex.pm](https://img.shields.io/hexpm/v/reactor_file.svg)](https://hex.pm/packages/reactor_file)
5-
[![Hippocratic License HL3-FULL](https://img.shields.io/static/v1?label=Hippocratic%20License&message=HL3-FULL&labelColor=5e2751&color=bc8c3d)](https://firstdonoharm.dev/version/3/0/full.html)
6+
[![Build Status](https://github.com/ash-project/reactor_file/actions/workflows/elixir.yml/badge.svg)](https://github.com/ash-project/reactor/actions)
7+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8+
[![Hex version badge](https://img.shields.io/hexpm/v/reactor_file.svg)](https://hex.pm/packages/reactor_file)
69

710
A [Reactor](https://github.com/ash-project/reactor) extension that provides steps for working with the local filesytem.
811

@@ -61,20 +64,9 @@ end
6164

6265
Documentation for the latest release is available on [HexDocs](https://hexdocs.pm/reactor_file).
6366

64-
## Github Mirror
65-
66-
This repository is mirrored [on Github](https://github.com/jimsynz/reactor_file)
67-
from it's primary location [on my Forgejo instance](https://harton.dev/james/reactor_file).
68-
Feel free to raise issues and open PRs on Github.
69-
70-
## License
71-
72-
This software is licensed under the terms of the
73-
[HL3-FULL](https://firstdonoharm.dev), see the `LICENSE.md` file included with
74-
this package for the terms.
67+
## Licence
7568

76-
This license actively proscribes this software being used by and for some
77-
industries, countries and activities. If your usage of this software doesn't
78-
comply with the terms of this license, then [contact me](mailto:james@harton.nz)
79-
with the details of your use-case to organise the purchase of a license - the
80-
cost of which may include a donation to a suitable charity or NGO.
69+
`reactor` is licensed under the terms of the [MIT
70+
license](https://opensource.org/licenses/MIT). See the [`LICENSE` file in this
71+
repository](https://github.com/ash-project/reactor_file/blob/main/LICENSE)
72+
for details.

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ config :spark, formatter: [remove_parens?: true]
55
config :git_ops,
66
mix_project: Reactor.File.MixProject,
77
changelog_file: "CHANGELOG.md",
8-
repository_url: "https://harton.dev/james/reactor_file",
8+
repository_url: "https://github.com/ash-project/reactor_file",
99
manage_mix_version?: true,
1010
manage_readme_version: true,
1111
version_tag_prefix: "v"

mix.exs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ defmodule Reactor.File.MixProject do
1717
elixir: "~> 1.17",
1818
elixirc_paths: elixirc_paths(Mix.env()),
1919
package: package(),
20-
source_url: "https://harton.dev/james/reactor_file",
21-
homepage_url: "https://harton.dev/james/reactor_file",
20+
source_url: "https://github.com/ash-project/reactor-file",
21+
homepage_url: "https://github.com/ash-project/reactor-file",
2222
start_permanent: Mix.env() == :prod,
2323
version: @version
2424
]
@@ -35,17 +35,16 @@ defmodule Reactor.File.MixProject do
3535
[
3636
name: :reactor_file,
3737
files: ~w[lib .formatter.exs mix.exs README* LICENSE* CHANGELOG* documentation],
38-
licenses: [],
38+
licenses: ["MIT"],
3939
links: %{
40-
"Source" => "https://harton.dev/james/reactor_file",
41-
"GitHub" => "https://github.com/jimsynz/reactor_file",
42-
"Changelog" => "https://harton.dev/james/reactor_file/src/branch/main/CHANGELOG.md",
40+
"Source" => "https://github.com/ash-project/reactor-file",
41+
"Changelog" => "https://github.com/ash-project/reactor-file/src/branch/main/CHANGELOG.md",
4342
"Sponsor" => "https://github.com/sponsors/jimsynz"
4443
},
4544
maintainers: [
4645
"James Harton <james@harton.nz>"
4746
],
48-
source_url: "https://harton.dev/james/reactor_file"
47+
source_url: "https://github.com/ash-project/reactor-file"
4948
]
5049
end
5150

@@ -88,7 +87,7 @@ defmodule Reactor.File.MixProject do
8887
groups_for_extras: extra_documentation_groups(),
8988
main: "readme",
9089
source_url_pattern:
91-
"https://harton/dev/james/reactor_file/src/branch/main/%{path}#L%{line}",
90+
"https://github.com/ash-project/reactor-file/src/branch/main/%{path}#L%{line}",
9291
spark: [
9392
extension: [
9493
%{

0 commit comments

Comments
 (0)