random_name_generator 2.0.0 → 2.1.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: 775b293564b616bf2bca48e250b9c980bb3ef7517ffa271e8af36435ec0cbed7
4
- data.tar.gz: 514c958d0204f7a8035725df5f71a26c0dc678dd9f523ec3c32fcf6b51cfe171
3
+ metadata.gz: a55114983e8f4c64c00b1879db32b936634e216d500d845522325913a6240ff6
4
+ data.tar.gz: 07f811931d1131265310ebc77e744e4c05ac6817b51ce10f4193f5151834f4be
5
5
  SHA512:
6
- metadata.gz: 4d47906909b7860908651858ca168fc625c6d7938026671a795b8300c44142b7a8ebb243b99b8a8a2cc4b8c8336b399c0ca3a265242e5a2be3f62e2283e19bb8
7
- data.tar.gz: e31f2172d3649840e9a15ef94f993aa988be000bab2b33b65d9715ee7624daff5f1f79b39a0ac6a08e5c3789c9b9602fa0cfee0f06a60a22068918d18377f12a
6
+ metadata.gz: a923b2cd9f8dff734d808b8f0413ff806fed333d6afa2a6cb6670bf257547c67851b6b0d420cdcdf81f4d5de69f8b96b3e8d66980c2962f2491ebe168ccab7cf
7
+ data.tar.gz: 7a7f39ae2ff743a990f54149bc770b0a54352f5db3682ad8d0037cfbfb96765f17d3cb4c3005868a404137edc93cf83f9a5556601cccf29136057d6455147486
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: ['2.7', '3.0', '3.2']
11
11
  steps:
12
12
  - uses: actions/checkout@v2
13
13
  - name: Set up Ruby
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  NewCops: enable
4
4
 
5
5
  Layout/LineLength:
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.2"
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.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,89 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- random_name_generator (2.0.0)
4
+ random_name_generator (2.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
10
  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.3.5)
19
- json (2.5.1)
11
+ diff-lcs (1.5.0)
12
+ json (2.7.1)
20
13
  kwalify (0.7.2)
14
+ language_server-protocol (3.17.0.3)
21
15
  method_source (1.0.0)
22
- parallel (1.20.1)
23
- parser (3.0.0.0)
16
+ parallel (1.24.0)
17
+ parser (3.2.2.4)
24
18
  ast (~> 2.4.1)
25
- pry (0.14.0)
19
+ racc
20
+ pry (0.14.2)
26
21
  coderay (~> 1.1)
27
22
  method_source (~> 1.0)
28
- psych (3.3.1)
29
- rainbow (3.0.0)
30
- rake (13.0.3)
31
- reek (6.0.3)
23
+ racc (1.7.3)
24
+ rainbow (3.1.1)
25
+ rake (13.1.0)
26
+ reek (6.1.4)
32
27
  kwalify (~> 0.7.0)
33
- parser (~> 3.0.0)
34
- psych (~> 3.1)
28
+ parser (~> 3.2.0)
35
29
  rainbow (>= 2.0, < 4.0)
36
- regexp_parser (2.1.1)
37
- rexml (3.2.4)
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)
30
+ regexp_parser (2.8.3)
31
+ rexml (3.2.6)
32
+ rspec (3.12.0)
33
+ rspec-core (~> 3.12.0)
34
+ rspec-expectations (~> 3.12.0)
35
+ rspec-mocks (~> 3.12.0)
36
+ rspec-core (3.12.2)
37
+ rspec-support (~> 3.12.0)
38
+ rspec-expectations (3.12.3)
45
39
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.2)
40
+ rspec-support (~> 3.12.0)
41
+ rspec-mocks (3.12.6)
48
42
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.2)
51
- rubocop (1.11.0)
43
+ rspec-support (~> 3.12.0)
44
+ rspec-support (3.12.1)
45
+ rubocop (1.59.0)
46
+ json (~> 2.3)
47
+ language_server-protocol (>= 3.17.0)
52
48
  parallel (~> 1.10)
53
- parser (>= 3.0.0.0)
49
+ parser (>= 3.2.2.4)
54
50
  rainbow (>= 2.2.2, < 4.0)
55
51
  regexp_parser (>= 1.8, < 3.0)
56
- rexml
57
- rubocop-ast (>= 1.2.0, < 2.0)
52
+ rexml (>= 3.2.5, < 4.0)
53
+ rubocop-ast (>= 1.30.0, < 2.0)
58
54
  ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.4.1)
61
- parser (>= 2.7.1.5)
62
- rubocop-rake (0.5.1)
63
- rubocop
64
- rubocop-rspec (2.2.0)
55
+ 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)
62
+ rubocop-rake (0.6.0)
65
63
  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.8.2)
74
- sync (0.5.0)
75
- term-ansicolor (1.7.1)
76
- tins (~> 1.0)
77
- thor (1.1.0)
78
- tins (1.28.0)
79
- sync
80
- unicode-display_width (2.0.0)
64
+ rubocop-rspec (2.25.0)
65
+ rubocop (~> 1.40)
66
+ rubocop-capybara (~> 2.17)
67
+ rubocop-factory_bot (~> 2.22)
68
+ ruby-progressbar (1.13.0)
69
+ slop (4.10.1)
70
+ unicode-display_width (2.5.0)
81
71
 
82
72
  PLATFORMS
83
- arm64-darwin-20
73
+ aarch64-linux
74
+ arm64-darwin-21
84
75
  x86_64-linux
85
76
 
86
77
  DEPENDENCIES
87
- coveralls
88
78
  pry
89
- rake (~> 13.0)
79
+ rake (~> 13.1.0)
90
80
  random_name_generator!
91
81
  reek
92
- rspec (~> 3.0)
82
+ rspec (~> 3.12.0)
93
83
  rubocop
94
84
  rubocop-rake
95
85
  rubocop-rspec
96
- slop (~> 4.2)
86
+ slop (~> 4.10.1)
97
87
 
98
88
  BUNDLED WITH
99
- 2.2.14
89
+ 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
@@ -129,18 +128,9 @@ call `$❯ rake reek`
129
128
  ## Contributing
130
129
 
131
130
  Bug reports and pull requests are welcome on GitHub at
132
- https://github.com/folkengine/random_name_generator. This project is
133
- intended to be a safe, welcoming space for collaboration, and
134
- contributors are expected to adhere to the
135
- [code of conduct](https://github.com/folkengine/random_name_generator/blob/main/CODE_OF_CONDUCT.md).
131
+ https://github.com/folkengine/random_name_generator.
136
132
 
137
133
  ## License
138
134
 
139
135
  The gem is available as open source under the terms of the
140
136
  [GNU Lesser General Public License version 3](https://opensource.org/licenses/LGPL-3.0).
141
-
142
- ## Code of Conduct
143
-
144
- Everyone interacting in the RandomNameGenerator project's codebases,
145
- issue trackers, chat rooms and mailing lists is expected to follow the
146
- [code of conduct](https://github.com/[USERNAME]/random_name_generator/blob/main/CODE_OF_CONDUCT.md).
@@ -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.0"
4
+ VERSION = "2.1.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(">= 2.7.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.0
4
+ version: 2.1.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-03-29 00:00:00.000000000 Z
11
+ date: 2023-12-18 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: 2.7.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.2.22
78
81
  signing_key:
79
82
  specification_version: 4
80
83
  summary: Random Name Generator