renamr 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/actionlint.yml +25 -0
- data/.github/workflows/rake.yml +27 -0
- data/README.adoc +3 -3
- data/lib/renamr/auto_localization.rb +1 -1
- data/lib/renamr/omit.rb +1 -1
- data/lib/renamr/prepend_date.rb +1 -1
- data/lib/renamr/remove.rb +1 -1
- data/lib/renamr/substitute.rb +1 -1
- data/lib/renamr/version.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b39e4e5a0e8eb0a2858888181609bcdddfdc71ab315de810bb7c23b6fb626ff0
|
4
|
+
data.tar.gz: 40d581dd0b0351db79c896ced04446bf5cf5d2af0ec2ae186f044bb499b09cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b888d15545d19a1e7ad552ebf416d51cf0d0c8dd3c11a547e2b07d467aa733bc64b888340aa7886136d1eadae811b2210db973f38e6c6f4301756c22daa83d
|
7
|
+
data.tar.gz: ad1d1388214aa414ee34fa7f73823f82ff240d31695453fb920f09a218aa8c144754b38f669c7b4f06f43735719e8b1433cb32447d5994a1528847abb01a4e34
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2025 David Rabkin
|
2
|
+
# SPDX-License-Identifier: 0BSD
|
3
|
+
---
|
4
|
+
name: actionlint
|
5
|
+
# yamllint disable rule:line-length
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
actionlint:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- name: Download actionlint
|
20
|
+
id: get_actionlint
|
21
|
+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
22
|
+
shell: bash
|
23
|
+
- name: Check workflow files
|
24
|
+
run: ${{ steps.get_actionlint.outputs.executable }} -color
|
25
|
+
shell: bash
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2025 David Rabkin
|
2
|
+
# SPDX-License-Identifier: 0BSD
|
3
|
+
---
|
4
|
+
name: rake
|
5
|
+
'on':
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
pull_request:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
jobs:
|
13
|
+
rake:
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
os: [ubuntu-24.04, macos-15, windows-2022]
|
17
|
+
ruby: [3.2, 3.3, 3.4]
|
18
|
+
runs-on: ${{ matrix.os }}
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v4
|
21
|
+
- uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
bundler-cache: true
|
25
|
+
- run: bundle config set --global path "$(pwd)/vendor/bundle"
|
26
|
+
- run: bundle install --no-color
|
27
|
+
- run: bundle exec rake
|
data/README.adoc
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
:img-gem: https://badge.fury.io/rb/renamr.svg
|
6
6
|
:img-hoc: https://hitsofcode.com/github/rdavid/renamr?branch=master&label=hits%20of%20code
|
7
7
|
:img-license: https://img.shields.io/github/license/rdavid/renamr?color=blue&labelColor=gray&logo=freebsd&logoColor=lightgray&style=flat
|
8
|
-
:img-
|
8
|
+
:img-rake: https://github.com/rdavid/renamr/actions/workflows/rake.yml/badge.svg
|
9
9
|
:img-rubocop: https://github.com/rdavid/renamr/actions/workflows/rubocop.yml/badge.svg
|
10
10
|
:img-style: https://img.shields.io/badge/code_style-rubocop-brightgreen.svg
|
11
11
|
:img-test: https://github.com/rdavid/renamr/actions/workflows/test.yml/badge.svg
|
@@ -13,7 +13,7 @@
|
|
13
13
|
:url-gem: https://badge.fury.io/rb/renamr
|
14
14
|
:url-hoc: https://hitsofcode.com/view/github/rdavid/renamr?branch=master
|
15
15
|
:url-license: https://github.com/rdavid/renamr/blob/master/LICENSES/0BSD.txt
|
16
|
-
:url-
|
16
|
+
:url-rake: https://github.com/rdavid/renamr/actions/workflows/rake.yml
|
17
17
|
:url-reuse: https://github.com/fsfe/reuse-action
|
18
18
|
:url-rubocop: https://github.com/rdavid/renamr/actions/workflows/rubocop.yml
|
19
19
|
:url-ruby: https://www.ruby-lang.org/en/documentation/installation
|
@@ -24,9 +24,9 @@
|
|
24
24
|
|
25
25
|
= Renamr
|
26
26
|
|
27
|
+
image:{img-rake}[rake,link={url-rake}]
|
27
28
|
image:{img-rubocop}[rubocop,link={url-rubocop}]
|
28
29
|
image:{img-gem}[gem version,link={url-gem}]
|
29
|
-
// image:{img-maintainability}[maintainability,link={url-maintainability}]
|
30
30
|
image:{img-style}[code style,link={url-style}]
|
31
31
|
image:{img-test}[test,link={url-test}]
|
32
32
|
image:{img-hoc}[hits of code,link={url-hoc}]
|
data/lib/renamr/omit.rb
CHANGED
data/lib/renamr/prepend_date.rb
CHANGED
data/lib/renamr/remove.rb
CHANGED
@@ -10,7 +10,7 @@ module Renamr
|
|
10
10
|
# Removes symbols between left and right positions.
|
11
11
|
class RemoveAction < Action
|
12
12
|
def initialize(pos, len)
|
13
|
-
super
|
13
|
+
super()
|
14
14
|
raise 'len cannot bi nil.' if len.nil?
|
15
15
|
raise 'pos cannot be nil.' if pos.nil?
|
16
16
|
raise 'pos has to be positive.' unless pos.to_i.positive?
|
data/lib/renamr/substitute.rb
CHANGED
data/lib/renamr/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renamr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rabkin
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-07-
|
10
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: " Renamr organises multiple files and directories.\n"
|
13
13
|
email: david@rabkin.co.il
|
@@ -19,6 +19,8 @@ extra_rdoc_files:
|
|
19
19
|
- README.adoc
|
20
20
|
files:
|
21
21
|
- ".github/dependabot.yml"
|
22
|
+
- ".github/workflows/actionlint.yml"
|
23
|
+
- ".github/workflows/rake.yml"
|
22
24
|
- ".github/workflows/rubocop.yml"
|
23
25
|
- ".github/workflows/test.yml"
|
24
26
|
- ".gitignore"
|