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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 941d7c1306c7ee0e0bbeaa02d39d31bc3a3fde4930edb344ffb62604d9ab4fa5
4
- data.tar.gz: a309506a3b659b16ca9c371b6c070a4fe51dfc9b18f54c53d34e9f21dbe96677
3
+ metadata.gz: b39e4e5a0e8eb0a2858888181609bcdddfdc71ab315de810bb7c23b6fb626ff0
4
+ data.tar.gz: 40d581dd0b0351db79c896ced04446bf5cf5d2af0ec2ae186f044bb499b09cff
5
5
  SHA512:
6
- metadata.gz: f3094a67d116ecdce1c6edfb0ab31d41d68f14e0adf3ef8528e74ad0efee715f04cf5c7786140239869d76be379d75e5247e5ad87423f21e08bf0059c2869401
7
- data.tar.gz: f70e4d552a8e09f1c4d5b34857325a5c0cac625ad88d7253ccf779b831737573bfb3f40c316bd4b370aeecd581baf715e8f635c7e6e88781e3ac7456650773e3
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-maintainability: https://api.codeclimate.com/v1/badges/406f1433b0b9e0509a6e/maintainability
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-maintainability: https://codeclimate.com/github/rdavid/renamr/maintainability
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}]
@@ -11,7 +11,7 @@ module Renamr
11
11
  # Automatic localization.
12
12
  class AutoLocalizationAction < Action
13
13
  def initialize
14
- super
14
+ super()
15
15
  I18n.config.available_locales = :en
16
16
  end
17
17
 
data/lib/renamr/omit.rb CHANGED
@@ -10,7 +10,7 @@ module Renamr
10
10
  # Omits file names shorter than limit.
11
11
  class OmitAction < Action
12
12
  def initialize(lim)
13
- super
13
+ super()
14
14
  raise 'lim cannot be nil.' if lim.nil?
15
15
 
16
16
  @lim = lim
@@ -10,7 +10,7 @@ module Renamr
10
10
  # Prepends file modification datestamp.
11
11
  class PrependDateAction < Action
12
12
  def initialize(dir)
13
- super
13
+ super()
14
14
  @dir = dir
15
15
  end
16
16
 
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?
@@ -10,7 +10,7 @@ module Renamr
10
10
  # Substitutes a string with a string.
11
11
  class SubstituteAction < Action
12
12
  def initialize(src, dst)
13
- super
13
+ super()
14
14
  raise 'src cannot be nil.' if src.nil?
15
15
 
16
16
  # The action works after PointAction. All points are replaces with minus.
@@ -5,6 +5,6 @@
5
5
  # SPDX-License-Identifier: 0BSD
6
6
 
7
7
  module Renamr
8
- VERSION = '1.0.14'
9
- DATE = '2025-07-21'
8
+ VERSION = '1.0.15'
9
+ DATE = '2025-07-23'
10
10
  end
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.14
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-21 00:00:00.000000000 Z
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"