random_name_generator 2.1.0 → 4.0.0

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: a55114983e8f4c64c00b1879db32b936634e216d500d845522325913a6240ff6
4
- data.tar.gz: 07f811931d1131265310ebc77e744e4c05ac6817b51ce10f4193f5151834f4be
3
+ metadata.gz: f4e1b055a45228bf4370e655f590397e940bc716c1c1fe1ef2259c66a3fcd09e
4
+ data.tar.gz: 67f9020b9f20969b6d5151a5388ffcab6142b47ebc0cabbeee952dfe711e7599
5
5
  SHA512:
6
- metadata.gz: a923b2cd9f8dff734d808b8f0413ff806fed333d6afa2a6cb6670bf257547c67851b6b0d420cdcdf81f4d5de69f8b96b3e8d66980c2962f2491ebe168ccab7cf
7
- data.tar.gz: 7a7f39ae2ff743a990f54149bc770b0a54352f5db3682ad8d0037cfbfb96765f17d3cb4c3005868a404137edc93cf83f9a5556601cccf29136057d6455147486
6
+ metadata.gz: 1395584c6872c6dfb65da4117f973ec1065c6002d854f550b266546001ffe52b881258718e83eb75f8389073acc30b0fb2963dc1d15216b344d8dfc85ca39532
7
+ data.tar.gz: cef21f4dc10098e3d8d132a36baf5674d0029234c62a641861bcc474ea20aab8afaf03a59f2b5285f336cde34323e1e324e44afd9ea5d1ba0596e002c764a9f9
@@ -1,22 +1,47 @@
1
1
  name: Ruby
2
2
 
3
- on: [push, pull_request]
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ['v*']
7
+ pull_request:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: true
4
15
 
5
16
  jobs:
6
17
  test:
18
+ name: Ruby ${{ matrix.ruby-version }}
7
19
  runs-on: ubuntu-latest
20
+ continue-on-error: ${{ matrix.allow-failure || false }}
8
21
  strategy:
22
+ fail-fast: false
9
23
  matrix:
10
- ruby-version: ['2.7', '3.0', '3.2']
24
+ ruby-version: ['3.4', '4.0']
25
+ include:
26
+ # Track the development build to catch 4.1 regressions early.
27
+ # Allowed to fail so a broken nightly never reds the whole run.
28
+ - ruby-version: head
29
+ allow-failure: true
11
30
  steps:
12
- - uses: actions/checkout@v2
31
+ - uses: actions/checkout@v4
13
32
  - name: Set up Ruby
14
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
15
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
16
33
  uses: ruby/setup-ruby@v1
17
- # uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
18
34
  with:
19
35
  ruby-version: ${{ matrix.ruby-version }}
20
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21
- - name: Run tests
22
- run: bundle exec rake
36
+ # head's bundled bundler is a moving target: honor the lockfile's
37
+ # BUNDLED WITH on release Rubies, but let head use a fresh latest
38
+ # bundler so a stale cache can't trigger CorruptBundlerInstallError.
39
+ bundler: ${{ matrix.ruby-version == 'head' && 'latest' || 'Gemfile.lock' }}
40
+ # Caching gems against "head" pairs a fixed cache with a changing
41
+ # interpreter; skip it there so each run installs cleanly.
42
+ bundler-cache: ${{ matrix.ruby-version != 'head' }}
43
+ - name: Install dependencies (head runs uncached)
44
+ if: matrix.ruby-version == 'head'
45
+ run: bundle install --jobs 4
46
+ - name: Run tests and lint
47
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -35,6 +35,10 @@ build/
35
35
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
36
  .rvmrc
37
37
 
38
+ # The Ruby version is a project requirement, not a personal preference, so it is
39
+ # tracked here even when a global gitignore excludes it.
40
+ !.tool-versions
41
+
38
42
  /.idea/
39
43
 
40
44
  .rspec_status
data/.rubocop.yml CHANGED
@@ -1,7 +1,11 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7
2
+ TargetRubyVersion: 3.4
3
3
  NewCops: enable
4
4
 
5
+ require:
6
+ - rubocop-rspec
7
+ - rubocop-rake
8
+
5
9
  Layout/LineLength:
6
10
  Max: 180
7
11
 
@@ -16,6 +20,21 @@ Metrics/ClassLength:
16
20
  Metrics/MethodLength:
17
21
  Max: 11
18
22
 
23
+ RSpec/BeforeAfterAll:
24
+ Enabled: false
25
+
26
+ RSpec/InstanceVariable:
27
+ Enabled: false
28
+
29
+ RSpec/MultipleExpectations:
30
+ Enabled: false
31
+
32
+ RSpec/NestedGroups:
33
+ Max: 5
34
+
35
+ Style/HashSyntax:
36
+ EnforcedShorthandSyntax: either
37
+
19
38
  Style/StringLiterals:
20
39
  Enabled: true
21
40
  EnforcedStyle: double_quotes
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.10
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## Version 4
2
+
3
+ ## 4.0.0 - 2026-07-18
4
+
5
+ - Raised minimum required Ruby version to 3.4.0 (dropping 3.0–3.3 support).
6
+ - Set `.tool-versions` to Ruby 3.4.10.
7
+ - Bumped dependencies: `rake` (~> 13.4), `rexml`, `concurrent-ruby`.
8
+ - Updated CI workflow and Rubocop settings.
9
+
1
10
  ## Version 2
2
11
 
3
12
  ## 2.0.0 - 2021-03-28
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "pry"
9
- gem "rake", "~> 13.1.0"
9
+ gem "rake", "~> 13.4"
10
10
  gem "slop", "~> 4.10.1"
11
11
 
12
12
  group :development do
@@ -15,4 +15,6 @@ group :development do
15
15
  gem "rubocop"
16
16
  gem "rubocop-rake", require: false
17
17
  gem "rubocop-rspec", require: false
18
+ # tsort left the default gems in Ruby 4.1; RuboCop requires it implicitly.
19
+ gem "tsort"
18
20
  end
data/Gemfile.lock CHANGED
@@ -1,82 +1,107 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- random_name_generator (2.1.0)
4
+ random_name_generator (4.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
+ bigdecimal (3.1.8)
10
11
  coderay (1.1.3)
11
- diff-lcs (1.5.0)
12
- json (2.7.1)
13
- kwalify (0.7.2)
12
+ concurrent-ruby (1.3.7)
13
+ diff-lcs (1.5.1)
14
+ dry-configurable (1.2.0)
15
+ dry-core (~> 1.0, < 2)
16
+ zeitwerk (~> 2.6)
17
+ dry-core (1.0.1)
18
+ concurrent-ruby (~> 1.0)
19
+ zeitwerk (~> 2.6)
20
+ dry-inflector (1.1.0)
21
+ dry-initializer (3.1.1)
22
+ dry-logic (1.5.0)
23
+ concurrent-ruby (~> 1.0)
24
+ dry-core (~> 1.0, < 2)
25
+ zeitwerk (~> 2.6)
26
+ dry-schema (1.13.4)
27
+ concurrent-ruby (~> 1.0)
28
+ dry-configurable (~> 1.0, >= 1.0.1)
29
+ dry-core (~> 1.0, < 2)
30
+ dry-initializer (~> 3.0)
31
+ dry-logic (>= 1.4, < 2)
32
+ dry-types (>= 1.7, < 2)
33
+ zeitwerk (~> 2.6)
34
+ dry-types (1.7.2)
35
+ bigdecimal (~> 3.0)
36
+ concurrent-ruby (~> 1.0)
37
+ dry-core (~> 1.0)
38
+ dry-inflector (~> 1.0)
39
+ dry-logic (~> 1.4)
40
+ zeitwerk (~> 2.6)
41
+ json (2.7.2)
14
42
  language_server-protocol (3.17.0.3)
15
- method_source (1.0.0)
16
- parallel (1.24.0)
17
- parser (3.2.2.4)
43
+ method_source (1.1.0)
44
+ parallel (1.26.3)
45
+ parser (3.3.5.0)
18
46
  ast (~> 2.4.1)
19
47
  racc
20
48
  pry (0.14.2)
21
49
  coderay (~> 1.1)
22
50
  method_source (~> 1.0)
23
- racc (1.7.3)
51
+ racc (1.8.1)
24
52
  rainbow (3.1.1)
25
- rake (13.1.0)
26
- reek (6.1.4)
27
- kwalify (~> 0.7.0)
28
- parser (~> 3.2.0)
53
+ rake (13.4.2)
54
+ reek (6.3.0)
55
+ dry-schema (~> 1.13.0)
56
+ parser (~> 3.3.0)
29
57
  rainbow (>= 2.0, < 4.0)
30
- regexp_parser (2.8.3)
31
- rexml (3.2.6)
58
+ rexml (~> 3.1)
59
+ regexp_parser (2.9.2)
60
+ rexml (3.4.2)
32
61
  rspec (3.12.0)
33
62
  rspec-core (~> 3.12.0)
34
63
  rspec-expectations (~> 3.12.0)
35
64
  rspec-mocks (~> 3.12.0)
36
- rspec-core (3.12.2)
65
+ rspec-core (3.12.3)
37
66
  rspec-support (~> 3.12.0)
38
- rspec-expectations (3.12.3)
67
+ rspec-expectations (3.12.4)
39
68
  diff-lcs (>= 1.2.0, < 2.0)
40
69
  rspec-support (~> 3.12.0)
41
- rspec-mocks (3.12.6)
70
+ rspec-mocks (3.12.7)
42
71
  diff-lcs (>= 1.2.0, < 2.0)
43
72
  rspec-support (~> 3.12.0)
44
- rspec-support (3.12.1)
45
- rubocop (1.59.0)
73
+ rspec-support (3.12.2)
74
+ rubocop (1.66.1)
46
75
  json (~> 2.3)
47
76
  language_server-protocol (>= 3.17.0)
48
77
  parallel (~> 1.10)
49
- parser (>= 3.2.2.4)
78
+ parser (>= 3.3.0.2)
50
79
  rainbow (>= 2.2.2, < 4.0)
51
- regexp_parser (>= 1.8, < 3.0)
52
- rexml (>= 3.2.5, < 4.0)
53
- rubocop-ast (>= 1.30.0, < 2.0)
80
+ regexp_parser (>= 2.4, < 3.0)
81
+ rubocop-ast (>= 1.32.2, < 2.0)
54
82
  ruby-progressbar (~> 1.7)
55
83
  unicode-display_width (>= 2.4.0, < 3.0)
56
- rubocop-ast (1.30.0)
57
- parser (>= 3.2.1.0)
58
- rubocop-capybara (2.19.0)
59
- rubocop (~> 1.41)
60
- rubocop-factory_bot (2.24.0)
61
- rubocop (~> 1.33)
84
+ rubocop-ast (1.32.3)
85
+ parser (>= 3.3.1.0)
62
86
  rubocop-rake (0.6.0)
63
87
  rubocop (~> 1.0)
64
- rubocop-rspec (2.25.0)
65
- rubocop (~> 1.40)
66
- rubocop-capybara (~> 2.17)
67
- rubocop-factory_bot (~> 2.22)
88
+ rubocop-rspec (3.1.0)
89
+ rubocop (~> 1.61)
68
90
  ruby-progressbar (1.13.0)
69
91
  slop (4.10.1)
70
- unicode-display_width (2.5.0)
92
+ tsort (0.2.0)
93
+ unicode-display_width (2.6.0)
94
+ zeitwerk (2.6.18)
71
95
 
72
96
  PLATFORMS
73
- aarch64-linux
74
97
  arm64-darwin-21
98
+ arm64-darwin-24
99
+ arm64-darwin-25
75
100
  x86_64-linux
76
101
 
77
102
  DEPENDENCIES
78
103
  pry
79
- rake (~> 13.1.0)
104
+ rake (~> 13.4)
80
105
  random_name_generator!
81
106
  reek
82
107
  rspec (~> 3.12.0)
@@ -84,6 +109,7 @@ DEPENDENCIES
84
109
  rubocop-rake
85
110
  rubocop-rspec
86
111
  slop (~> 4.10.1)
112
+ tsort
87
113
 
88
114
  BUNDLED WITH
89
- 2.2.29
115
+ 4.0.16
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RandomNameGenerator
4
- VERSION = "2.1.0"
4
+ VERSION = "4.0.0"
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Generates random names based upon custom collections of syllables. Styles include Elvish, Fantasy, Goblin, and Roman."
13
13
  spec.homepage = "https://github.com/folkengine/random_name_generator"
14
14
  spec.license = "LGPL-3.0"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.4.0")
16
16
  spec.metadata = { "rubygems_mfa_required" => "true" }
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: random_name_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - folkengine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2026-07-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generates random names based upon custom collections of syllables. Styles
14
14
  include Elvish, Fantasy, Goblin, and Roman.
@@ -20,7 +20,6 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - ".codeclimate.yml"
23
- - ".coveralls.yml"
24
23
  - ".devcontainer/Dockerfile"
25
24
  - ".devcontainer/devcontainer.json"
26
25
  - ".github/workflows/ruby.yml"
@@ -28,6 +27,7 @@ files:
28
27
  - ".overcommit.yml"
29
28
  - ".rspec"
30
29
  - ".rubocop.yml"
30
+ - ".tool-versions"
31
31
  - CHANGELOG.md
32
32
  - Gemfile
33
33
  - Gemfile.lock
@@ -70,14 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.7.0
73
+ version: 3.4.0
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.2.22
80
+ rubygems_version: 3.4.19
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Random Name Generator
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: github