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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/lib/classnamer.rb +4 -3
  4. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 739adbbcad3a5bcf1cca2cdd2382c2353f2ab8c42a0f1e8d26aff6dccb9cbe8b
4
- data.tar.gz: fca286e359dd7d1e24a8475bd24f4e93c77528ddddcc01c905376e4b819c6d97
3
+ metadata.gz: d27a21e3575373a7dd8339fc51f8f06fa691ec94575523da070ccd4afe8608cc
4
+ data.tar.gz: 1de71f5634a0f8ab76f4cdafd584489e8cbe10ea14de32f8cfb264291c512037
5
5
  SHA512:
6
- metadata.gz: 5dc4755ce5009c9e96b2c3e3f46d71c52a32cf9c2ff1d1686d786507cb3424f3085a7d68d43a9dcb62c9ef33313a5756acaeba80a2a22480715ad09bf9078fa1
7
- data.tar.gz: 6bd9610baaec2587275b4514185452d203266834e1bdcbb2b49ee343e87e466e01511bd98a68792249d34f0e9050c7d71b90db3848e1c90d9f11bd8a48db82e3
6
+ metadata.gz: e3b75eee842eb2de0866e81c81e9457db9622e4fbe7ab8c914fc954c23393c54371eb69a722cc23d00cd490148aca40762d743f1a15c04c157ae5cce9f046469
7
+ data.tar.gz: 3e14a92ade9675a6e15210a7f14e7d17a3d09ac764d6e61fe101c0f61cf9dea733c2707f56458a1d65c3af04522d8e4b14eb7cf1e8393c7c6ae156ea68a6826e
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Aaron Beckerman
1
+ Copyright (c) 2022 Aaron Beckerman
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
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.8'
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+ must have a "call" method that takes one integer
48
- # argument (an array length) and acts like Kernel::rand.
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.8
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: 2018-05-28 00:00:00.000000000 Z
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
- rubyforge_project:
48
- rubygems_version: 2.7.6
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: