random_name_generator 2.0.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7d564d5122ed3a4ca55980018503990bbbb54b7bef92113861abb7a3316b46a
4
- data.tar.gz: 1e8e97dcbf48700a14b865e569b6921555ee352fd27f03791d134ce3a9d45db7
3
+ metadata.gz: b497a4a4f3d1402951e0f9f86b5bcf5a5e8ecc84702734580459f839ef7cea38
4
+ data.tar.gz: '08368ce25fbba0e4ef8e3a99c0d1c417bc094a0d9e72483541e3c32f7ace255b'
5
5
  SHA512:
6
- metadata.gz: 0c766bddfc9d8f2712ca6f2b694caeeeffec57748679d8282b94db29f16811c53c74d1793e2e3770bb79f2c6625eba345fc77c61dd61a5aa2b4241c2db3c29e6
7
- data.tar.gz: a545729b99e9c5170d3820f0e75b58fbce4f9bfc5cc422732f0fa863170ca001abb2265221243bb20a6ca1f291756f004fbf738c15ae796cf304a4e0a8eab8ec
6
+ metadata.gz: f3dd98e4ca5bfa8581b0c79f9fa75c804756c4a461fc9b6af2c21d383f4cf1bce7594e577bfc9bb8d7da0797f50317ce31cdc7235109cc21d9bb602d85eb345c
7
+ data.tar.gz: 6c6965cabb9e513e578fa28a1f497769de73b21c1b8f63b62fa5d21147f759d3970c9e219093fe1378e8b7c08c934ebf2e1494d48cb388bfbcecb4bc5df68c8e
data/.coveralls.yml CHANGED
@@ -1 +1 @@
1
- service_name: travis-ci
1
+ service_name: github
@@ -0,0 +1,8 @@
1
+ FROM mcr.microsoft.com/devcontainers/ruby:latest
2
+
3
+ # [Optional] Uncomment this section to install additional packages.
4
+ #RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5
+ # && apt-get -y install --no-install-recommends python-is-python3
6
+
7
+ # Add ./bin to PATH
8
+ ENV PATH="./bin:${PATH}"
@@ -0,0 +1,37 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/cpp
3
+ // Based on https://github.com/microsoft/vscode-remote-try-cpp?tab=readme-ov-file
4
+ {
5
+ "name": "Ruby Dev Playbook",
6
+ "build": {
7
+ "dockerfile": "Dockerfile"
8
+ },
9
+ // Features to add to the dev container. More info: https://containers.dev/features.
10
+ "features": {
11
+ "ghcr.io/devcontainers/features/github-cli:1": {}, // https://github.com/devcontainers/features/tree/main/src/github-cli
12
+ "ghcr.io/devcontainers-contrib/features/actions-runner:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/actions-runner
13
+ "ghcr.io/devcontainers-contrib/features/actionlint:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/actionlint
14
+ "ghcr.io/devcontainers-contrib/features/direnv:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/direnv
15
+ "ghcr.io/devcontainers-contrib/features/fd:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/fd
16
+ },
17
+
18
+ // Configure tool-specific properties.
19
+ "customizations": {
20
+ // Configure properties specific to VS Code.
21
+ "vscode": {
22
+ "settings": {},
23
+ "extensions": [
24
+ "eamodio.gitlens",
25
+ "streetsidesoftware.code-spell-checker",
26
+ ]
27
+ }
28
+ },
29
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
30
+ // "forwardPorts": [],
31
+
32
+ // Use 'postCreateCommand' to run commands after the container is created.
33
+ // "postCreateCommand": "",
34
+
35
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
36
+ // "remoteUser": "root"
37
+ }
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby-version: ['2.5', '2.6', '2.7', '3.0']
10
+ ruby-version: ['3.0', '3.2', '3.3.5']
11
11
  steps:
12
12
  - uses: actions/checkout@v2
13
13
  - name: Set up Ruby
data/.rubocop.yml CHANGED
@@ -1,7 +1,11 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 3.0
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,18 @@ 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
+
19
35
  Style/StringLiterals:
20
36
  Enabled: true
21
37
  EnforcedStyle: double_quotes
data/Gemfile CHANGED
@@ -6,13 +6,12 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "pry"
9
- gem "rake", "~> 13.0"
10
- gem "slop", "~> 4.9.1"
9
+ gem "rake", "~> 13.1.0"
10
+ gem "slop", "~> 4.10.1"
11
11
 
12
12
  group :development do
13
- gem "coveralls", require: false
14
13
  gem "reek"
15
- gem "rspec", "~> 3.10.0"
14
+ gem "rspec", "~> 3.12.0"
16
15
  gem "rubocop"
17
16
  gem "rubocop-rake", require: false
18
17
  gem "rubocop-rspec", require: false
data/Gemfile.lock CHANGED
@@ -1,99 +1,112 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- random_name_generator (2.0.1)
4
+ random_name_generator (3.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
- coveralls (0.8.23)
12
- json (>= 1.8, < 3)
13
- simplecov (~> 0.16.1)
14
- term-ansicolor (~> 1.3)
15
- thor (>= 0.19.4, < 2.0)
16
- tins (~> 1.6)
17
- diff-lcs (1.4.4)
18
- docile (1.4.0)
19
- json (2.5.1)
20
- kwalify (0.7.2)
21
- method_source (1.0.0)
22
- parallel (1.20.1)
23
- parser (3.0.2.0)
12
+ concurrent-ruby (1.3.4)
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)
42
+ language_server-protocol (3.17.0.3)
43
+ method_source (1.1.0)
44
+ parallel (1.26.3)
45
+ parser (3.3.5.0)
24
46
  ast (~> 2.4.1)
25
- pry (0.14.1)
47
+ racc
48
+ pry (0.14.2)
26
49
  coderay (~> 1.1)
27
50
  method_source (~> 1.0)
28
- psych (4.0.1)
29
- rainbow (3.0.0)
30
- rake (13.0.6)
31
- reek (6.0.5)
32
- kwalify (~> 0.7.0)
33
- parser (~> 3.0.0)
34
- psych (>= 3.1, < 5.0)
51
+ racc (1.8.1)
52
+ rainbow (3.1.1)
53
+ rake (13.1.0)
54
+ reek (6.3.0)
55
+ dry-schema (~> 1.13.0)
56
+ parser (~> 3.3.0)
35
57
  rainbow (>= 2.0, < 4.0)
36
- regexp_parser (2.1.1)
37
- rexml (3.2.5)
38
- rspec (3.10.0)
39
- rspec-core (~> 3.10.0)
40
- rspec-expectations (~> 3.10.0)
41
- rspec-mocks (~> 3.10.0)
42
- rspec-core (3.10.1)
43
- rspec-support (~> 3.10.0)
44
- rspec-expectations (3.10.1)
58
+ rexml (~> 3.1)
59
+ regexp_parser (2.9.2)
60
+ rexml (3.3.8)
61
+ rspec (3.12.0)
62
+ rspec-core (~> 3.12.0)
63
+ rspec-expectations (~> 3.12.0)
64
+ rspec-mocks (~> 3.12.0)
65
+ rspec-core (3.12.3)
66
+ rspec-support (~> 3.12.0)
67
+ rspec-expectations (3.12.4)
45
68
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.2)
69
+ rspec-support (~> 3.12.0)
70
+ rspec-mocks (3.12.7)
48
71
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.2)
51
- rubocop (1.18.4)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-support (3.12.2)
74
+ rubocop (1.66.1)
75
+ json (~> 2.3)
76
+ language_server-protocol (>= 3.17.0)
52
77
  parallel (~> 1.10)
53
- parser (>= 3.0.0.0)
78
+ parser (>= 3.3.0.2)
54
79
  rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8, < 3.0)
56
- rexml
57
- rubocop-ast (>= 1.8.0, < 2.0)
80
+ regexp_parser (>= 2.4, < 3.0)
81
+ rubocop-ast (>= 1.32.2, < 2.0)
58
82
  ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.9.0)
61
- parser (>= 3.0.1.1)
83
+ unicode-display_width (>= 2.4.0, < 3.0)
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.4.0)
65
- rubocop (~> 1.0)
66
- rubocop-ast (>= 1.1.0)
67
- ruby-progressbar (1.11.0)
68
- simplecov (0.16.1)
69
- docile (~> 1.1)
70
- json (>= 1.8, < 3)
71
- simplecov-html (~> 0.10.0)
72
- simplecov-html (0.10.2)
73
- slop (4.9.1)
74
- sync (0.5.0)
75
- term-ansicolor (1.7.1)
76
- tins (~> 1.0)
77
- thor (1.1.0)
78
- tins (1.29.1)
79
- sync
80
- unicode-display_width (2.0.0)
88
+ rubocop-rspec (3.1.0)
89
+ rubocop (~> 1.61)
90
+ ruby-progressbar (1.13.0)
91
+ slop (4.10.1)
92
+ unicode-display_width (2.6.0)
93
+ zeitwerk (2.6.18)
81
94
 
82
95
  PLATFORMS
83
- arm64-darwin-20
96
+ arm64-darwin-21
97
+ arm64-darwin-24
84
98
  x86_64-linux
85
99
 
86
100
  DEPENDENCIES
87
- coveralls
88
101
  pry
89
- rake (~> 13.0)
102
+ rake (~> 13.1.0)
90
103
  random_name_generator!
91
104
  reek
92
- rspec (~> 3.10.0)
105
+ rspec (~> 3.12.0)
93
106
  rubocop
94
107
  rubocop-rake
95
108
  rubocop-rspec
96
- slop (~> 4.9.1)
109
+ slop (~> 4.10.1)
97
110
 
98
111
  BUNDLED WITH
99
- 2.2.14
112
+ 2.2.29
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # RandomNameGenerator
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/random_name_generator.svg)](https://badge.fury.io/rb/random_name_generator)
4
- [![Build Status](https://travis-ci.org/folkengine/random_name_generator.svg?branch=master)](https://travis-ci.org/folkengine/random_name_generator)
4
+ [![Build and Test](https://github.com/folkengine/random_name_generator/actions/workflows/ruby.yml/badge.svg)](https://github.com/folkengine/random_name_generator/actions/workflows/ruby.yml)
5
5
  [![Code Climate](https://codeclimate.com/github/folkengine/random_name_generator/badges/gpa.svg)](https://codeclimate.com/github/folkengine/random_name_generator)
6
- [![Coverage Status](https://coveralls.io/repos/github/folkengine/random_name_generator/badge.svg?branch=master)](https://coveralls.io/github/folkengine/random_name_generator?branch=master)
7
6
  [![Inline docs](http://inch-ci.org/github/folkengine/random_name_generator.svg?branch=master)](http://inch-ci.org/github/folkengine/random_name_generator)
8
7
 
9
8
  Ruby port of
@@ -61,7 +61,7 @@ module RandomNameGenerator
61
61
  end
62
62
 
63
63
  def incompatible?(next_syllable)
64
- (next_incompatible?(next_syllable) || previous_incompatible?(next_syllable))
64
+ next_incompatible?(next_syllable) || previous_incompatible?(next_syllable)
65
65
  end
66
66
 
67
67
  def compatible?(next_syllable)
@@ -130,7 +130,7 @@ module RandomNameGenerator
130
130
  def parse_args(args)
131
131
  args = args.to_s.strip.downcase.split
132
132
  parse_syllable(args[0])
133
- parse_flags(args[1..-1])
133
+ parse_flags(args[1..])
134
134
  end
135
135
 
136
136
  def parse_syllable(syll)
@@ -165,17 +165,17 @@ module RandomNameGenerator
165
165
  end
166
166
 
167
167
  def next_incompatible?(next_syllable)
168
- vnc = (next_syllable_must_start_with_vowel? && next_syllable.consonant_first?)
169
- cnv = (next_syllable_must_start_with_consonant? && next_syllable.vowel_first?)
168
+ vnc = next_syllable_must_start_with_vowel? && next_syllable.consonant_first?
169
+ cnv = next_syllable_must_start_with_consonant? && next_syllable.vowel_first?
170
170
 
171
- (vnc || cnv)
171
+ vnc || cnv
172
172
  end
173
173
 
174
174
  def previous_incompatible?(next_syllable)
175
- vlc = (vowel_last? && next_syllable.previous_syllable_must_end_with_consonant?)
176
- clv = (consonant_last? && next_syllable.previous_syllable_must_end_with_vowel?)
175
+ vlc = vowel_last? && next_syllable.previous_syllable_must_end_with_consonant?
176
+ clv = consonant_last? && next_syllable.previous_syllable_must_end_with_vowel?
177
177
 
178
- (vlc || clv)
178
+ vlc || clv
179
179
  end
180
180
  end
181
181
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RandomNameGenerator
4
- VERSION = "2.0.1"
4
+ VERSION = "3.0.0"
5
5
  end
@@ -12,7 +12,8 @@ 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.5.0")
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
16
+ spec.metadata = { "rubygems_mfa_required" => "true" }
16
17
 
17
18
  spec.metadata["homepage_uri"] = spec.homepage
18
19
  spec.metadata["source_code_uri"] = "https://github.com/folkengine/random_name_generator"
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.0.1
4
+ version: 3.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: 2021-08-08 00:00:00.000000000 Z
11
+ date: 2024-10-05 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.
@@ -21,6 +21,8 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - ".codeclimate.yml"
23
23
  - ".coveralls.yml"
24
+ - ".devcontainer/Dockerfile"
25
+ - ".devcontainer/devcontainer.json"
24
26
  - ".github/workflows/ruby.yml"
25
27
  - ".gitignore"
26
28
  - ".overcommit.yml"
@@ -56,6 +58,7 @@ homepage: https://github.com/folkengine/random_name_generator
56
58
  licenses:
57
59
  - LGPL-3.0
58
60
  metadata:
61
+ rubygems_mfa_required: 'true'
59
62
  homepage_uri: https://github.com/folkengine/random_name_generator
60
63
  source_code_uri: https://github.com/folkengine/random_name_generator
61
64
  changelog_uri: https://github.com/folkengine/random_name_generator/CHANGELOG.md
@@ -67,14 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
70
  requirements:
68
71
  - - ">="
69
72
  - !ruby/object:Gem::Version
70
- version: 2.5.0
73
+ version: 3.0.0
71
74
  required_rubygems_version: !ruby/object:Gem::Requirement
72
75
  requirements:
73
76
  - - ">="
74
77
  - !ruby/object:Gem::Version
75
78
  version: '0'
76
79
  requirements: []
77
- rubygems_version: 3.2.3
80
+ rubygems_version: 3.4.19
78
81
  signing_key:
79
82
  specification_version: 4
80
83
  summary: Random Name Generator