-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathchangelog.yml
87 lines (87 loc) · 3.86 KB
/
changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
- version: 1.1.0
summary:
date: 2023-10-18
added:
- |-
Add `Dry::Files#chmod(path, mode)` to modify file permissions. Provide the mode as an integer
to match UNIX octal permissions, such as `0o755`. (@timriley in #18)
- version: 1.0.2
summary:
date: 2023-10-03
fixed:
- |-
Ensure `Dry::Files#inject_line_at_block_bottom` to not match false positive closing blocks (@jodosha in #17)
- version: 1.0.1
summary:
date: 2022-11-21
fixed:
- |-
Do not introduce multiple newlines in `Dry::Files#append` (@timriley in #14)
- version: 1.0.0
summary:
date: 2022-11-04
changed:
- "Bumped version to 1.0.0 (@solnic)"
- version: 0.3.0
summary:
date: '2022-09-19'
fixed:
added:
- 'Support for `inject_line_at_class_bottom` (via #13) (@jodosha)'
changed:
- version: 0.2.0
date: '2022-07-10'
added:
- 'Dry::Files#append to create intermediate directory and touch destination file
(via #8) (@jodosha)'
- version: 0.1.0
date: '2021-05-04'
summary: Initial release
fixed:
added:
- Introduced `Dry::Files`
- 'Introduced `Dry::Files#initialize` which accepts an optional `memory: true/false`
argument to use the in-memory adapter (@jodosha)'
- Introduced `Dry::Files#read` to read the file all at once (@jodosha)
- Introduced `Dry::Files#touch` to touch a file and create all the intermediate
directories, if needed (@jodosha)
- Introduced `Dry::Files#write` to write/replace a file and create all the intermediate
directories, if needed (@jodosha)
- Introduced `Dry::Files#join` to join the given path tokens (@jodosha)
- Introduced `Dry::Files#expand_path` to make the relative path absolute, starting
from the current directory of from a custom one (@jodosha)
- Introduced `Dry::Files#pwd` to return the current directory (@jodosha)
- Introduced `Dry::Files#chdir` to temporary change the current directory (@jodosha)
- Introduced `Dry::Files#mkdir` to create intermediate directories for the given
directory name (@jodosha)
- Introduced `Dry::Files#mkdir_p` to create intermediate directories for the given
file name (@jodosha)
- Introduced `Dry::Files#cp` to copy source file into destination and create intermediate
destination directories, if needed (@jodosha)
- Introduced `Dry::Files#delete` to delete a file (@jodosha)
- Introduced `Dry::Files#delete_directory` to delete a directory (@jodosha)
- Introduced `Dry::Files#exist?` to check if a path exists (@jodosha)
- Introduced `Dry::Files#directory?` to check if a path is a directory (@jodosha)
- Introduced `Dry::Files#executable?` to check if a path is an executable (@jodosha)
- Introduced `Dry::Files#unshift` to add a new line at the top of the file (@jodosha)
- Introduced `Dry::Files#append` to add a new line at the bottom of the file (@jodosha)
- Introduced `Dry::Files#replace_first_line` to replace first line that match target
(@jodosha)
- Introduced `Dry::Files#replace_last_line` to replace last line that match target
(@jodosha)
- Introduced `Dry::Files#inject_line_before` to inject content before the first
match of target (@jodosha)
- Introduced `Dry::Files#inject_line_before_last` to inject content before the last
match of target (@jodosha)
- Introduced `Dry::Files#inject_line_after` to inject content after the first match
of target (@jodosha)
- Introduced `Dry::Files#inject_line_after_last` to inject content after the last
match of target (@jodosha)
- Introduced `Dry::Files#inject_line_at_block_top` to inject content as the first
line of the matching code block (@jodosha)
- Introduced `Dry::Files#inject_line_at_block_bottom` to inject content as the last
line of the matching code block (@jodosha)
- Introduced `Dry::Files#remove_line` to remove the first matching line (@jodosha)
- Introduced `Dry::Files#remove_block` remove the first matching block (@jodosha)
changed: