classnamer 3.0.8 → 3.0.9
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/LICENSE.txt +1 -1
- data/lib/classnamer.rb +4 -3
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27a21e3575373a7dd8339fc51f8f06fa691ec94575523da070ccd4afe8608cc
|
4
|
+
data.tar.gz: 1de71f5634a0f8ab76f4cdafd584489e8cbe10ea14de32f8cfb264291c512037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b75eee842eb2de0866e81c81e9457db9622e4fbe7ab8c914fc954c23393c54371eb69a722cc23d00cd490148aca40762d743f1a15c04c157ae5cce9f046469
|
7
|
+
data.tar.gz: 3e14a92ade9675a6e15210a7f14e7d17a3d09ac764d6e61fe101c0f61cf9dea733c2707f56458a1d65c3af04522d8e4b14eb7cf1e8393c7c6ae156ea68a6826e
|
data/LICENSE.txt
CHANGED
data/lib/classnamer.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
module Classnamer
|
8
8
|
|
9
9
|
# The library's version string.
|
10
|
-
VERSION = '3.0.
|
10
|
+
VERSION = '3.0.9'
|
11
11
|
|
12
12
|
# The default part candidate matrix, used by generate.
|
13
13
|
PART_CANDIDATE_MATRIX = [
|
@@ -44,8 +44,9 @@ module Classnamer
|
|
44
44
|
# an index generator (+prng+). If +matrix+ is not specified, the module's
|
45
45
|
# default part candidate matrix (PART_CANDIDATE_MATRIX) is used. If +prng+ is
|
46
46
|
# not specified, Kernel::rand is used. +matrix+ must act like an array of
|
47
|
-
# arrays of strings. +prng+
|
48
|
-
# argument (an array length) and
|
47
|
+
# arrays of strings. +prng+ will be sent "call" messages with one integer
|
48
|
+
# argument (an array length) and must act like Kernel::rand with an integer
|
49
|
+
# argument.
|
49
50
|
def self.generate(matrix = self::PART_CANDIDATE_MATRIX, prng = self::PRNG)
|
50
51
|
matrix.map { |a| a[prng.call a.length] }.join ''
|
51
52
|
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: classnamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Beckerman
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Classnamer randomly generates tongue-in-cheek class names suitable for
|
14
14
|
enterprise-friendly object-oriented programming languages like C++ and Java. It
|
15
15
|
includes a library and a command-line program.
|
16
|
-
email:
|
16
|
+
email:
|
17
17
|
executables:
|
18
18
|
- classnamer
|
19
19
|
extensions: []
|
@@ -25,11 +25,11 @@ files:
|
|
25
25
|
- classnamer.gemspec
|
26
26
|
- lib/classnamer.rb
|
27
27
|
- test/classnamer_test.rb
|
28
|
-
homepage:
|
28
|
+
homepage:
|
29
29
|
licenses:
|
30
30
|
- MIT
|
31
31
|
metadata: {}
|
32
|
-
post_install_message:
|
32
|
+
post_install_message:
|
33
33
|
rdoc_options: []
|
34
34
|
require_paths:
|
35
35
|
- lib
|
@@ -44,9 +44,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
|
-
|
48
|
-
|
49
|
-
signing_key:
|
47
|
+
rubygems_version: 3.3.7
|
48
|
+
signing_key:
|
50
49
|
specification_version: 4
|
51
50
|
summary: A random class name generator.
|
52
51
|
test_files:
|