name_change_o_chart 0.0.1 → 0.0.2

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
- SHA1:
3
- metadata.gz: bbcc9e268121d72c9cddd368e0de1374c02fc9dc
4
- data.tar.gz: 095c2dec1ec5d4afc43a0fecb63be340cc7b4be9
2
+ SHA256:
3
+ metadata.gz: 529c356547b2df7bff2ac1ce31f331206e57955d26105f9819f8147bd37d7bdf
4
+ data.tar.gz: 9464b4b1fca07bc721de4d141fb9b9d3b6392c4cedf7479616bfe7dbc5cc611a
5
5
  SHA512:
6
- metadata.gz: 3c4694a82ef74d043cce8803f135d95da5df8d340983178c675dd44aedd3b6fe8783974a2c6e2e50c8807b4f5cbb91e9480a5e06b3a588fa6ed3391c6e729fb5
7
- data.tar.gz: ab31127cff4b19f10a48b7bddc73bf8c4a57220047c0735578d9a4b11a720bcea123a663f92db232486eefaed4d16ecc2ced5c898ff17d972ba5f5f1ee77cee6
6
+ metadata.gz: 2b9b6053bbf14604a80824634f3296fe8b4d325bc62e8795d33118fd051411e6f4bfd686d599ea8823e66bdbfa631e2931cf53592be93a78f3627978003452cc
7
+ data.tar.gz: e0d73ac2b46328921d3af642b6b3fb15f8d999c074b8d956c30080b593860b104d61b50e531cfdbbddf62099f202ddc9a3ab216d19d2d9483394845235386094
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-01-07
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jim@saturnflyer.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2013 'Poopsie Lizardbrains'
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2023 Jim Gay
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
15
14
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -23,9 +23,24 @@ Or install it yourself as:
23
23
  ## Usage
24
24
 
25
25
  ```ruby
26
- NameChangeOChart.convert('Yukohiro Matsumoto') #=> "dinky bananahiney"
26
+ NameChangeOChart.convert('Yukohiro Matsumoto') #=> "Dinky Bananahiney"
27
27
  ```
28
28
 
29
+ Or from the command line:
30
+
31
+ ```bash
32
+ ruby -rname_change_o_chart -e "p NameChangeOChart.convert('Stinky Wafflebuns')" =>
33
+ "Snotty Chucklefanny"
34
+ ```
35
+
36
+ ## Testimonials
37
+
38
+ "I'll give a talk under that name if you will" -- [Poopsie Barfshorts](https://twitter.com/joshfrench/status/407556028180332544)
39
+
40
+ "I'm Snotty Gigglefanny" -- [Snotty Gigglefanny](https://twitter.com/seancribbs/status/407567829232148480)
41
+
42
+ "That's Sir Crusty Hamsterhumperdink." -- [Crusty Hamsterhumperdink](https://twitter.com/evanphx/status/408280969641074689)
43
+
29
44
  ## Contributing
30
45
 
31
46
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module NameChangeOChart
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,75 +1,78 @@
1
- require "name_change_o_chart/version"
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "name_change_o_chart/version"
2
4
 
3
5
  module NameChangeOChart
6
+ module_function
7
+
4
8
  def convert(name)
5
9
  parts = name.to_s.downcase.split
6
- start = parts.first.to_s
7
- ending = parts.last.to_s
10
+ start = parts.first
11
+ ending = parts.last
8
12
 
9
- first = start[0]
10
- second = ending[0]
11
- third = ending[-1]
13
+ first = start.first
14
+ second = ending.first
15
+ third = ending.last
12
16
 
13
17
  %{#{first_of_first(first)} #{first_of_last(second)}#{last_of_last(third)}}
14
18
  end
15
19
 
16
-
17
20
  def first_of_first(letter)
18
- {"a" => "stinky",
19
- "b" => "lumpy",
20
- "c" => "buttercup",
21
- "d" => "gidget",
22
- "e" => "crusty",
23
- "f" => "greasy",
24
- "g" => "fluffy",
25
- "h" => "cheeseball",
26
- "i" => "chim-chim",
27
- "j" => "poopsie",
28
- "k" => "flunky",
29
- "l" => "booger",
30
- "m" => "pinky",
31
- "n" => "zippy",
32
- "o" => "goober",
33
- "p" => "doofus",
34
- "q" => "slimy",
35
- "r" => "loopy",
36
- "s" => "snotty",
37
- "t" => "falafel",
38
- "u" => "dorkey",
39
- "v" => "squeezit",
40
- "w" => "oprah",
41
- "x" => "skipper",
42
- "y" => "dinky",
43
- "z" => "zsa-zsa"}.fetch(letter)
21
+ {"a" => "Stinky",
22
+ "b" => "Lumpy",
23
+ "c" => "Buttercup",
24
+ "d" => "Gidget",
25
+ "e" => "Crusty",
26
+ "f" => "Greasy",
27
+ "g" => "Fluffy",
28
+ "h" => "Cheeseball",
29
+ "i" => "Chim-chim",
30
+ "j" => "Poopsie",
31
+ "k" => "Flunky",
32
+ "l" => "Booger",
33
+ "m" => "Pinky",
34
+ "n" => "Zippy",
35
+ "o" => "Goober",
36
+ "p" => "Doofus",
37
+ "q" => "Slimy",
38
+ "r" => "Loopy",
39
+ "s" => "Snotty",
40
+ "t" => "Falafel",
41
+ "u" => "Dorkey",
42
+ "v" => "Squeezit",
43
+ "w" => "Oprah",
44
+ "x" => "Skipper",
45
+ "y" => "Dinky",
46
+ "z" => "Zsa-zsa"}.fetch(letter)
44
47
  end
45
48
 
46
49
  def first_of_last(letter)
47
- {"a" => "diaper",
48
- "b" => "toilet",
49
- "c" => "giggle",
50
- "d" => "bubble",
51
- "e" => "girdle",
52
- "f" => "barf",
53
- "g" => "lizard",
54
- "h" => "waffle",
55
- "i" => "cootie",
56
- "j" => "monkey",
57
- "k" => "potty",
58
- "l" => "liver",
59
- "m" => "banana",
60
- "n" => "rhino",
61
- "o" => "burger",
62
- "p" => "hamster",
63
- "q" => "toad",
64
- "r" => "gizzard",
65
- "s" => "pizza",
66
- "t" => "gerbil",
67
- "u" => "chicken",
68
- "v" => "pickle",
69
- "w" => "chuckle",
70
- "x" => "tofu",
71
- "y" => "gorilla",
72
- "z" => "stinker"}.fetch(letter)
50
+ {"a" => "Diaper",
51
+ "b" => "Toilet",
52
+ "c" => "Giggle",
53
+ "d" => "Bubble",
54
+ "e" => "Girdle",
55
+ "f" => "Barf",
56
+ "g" => "Lizard",
57
+ "h" => "Waffle",
58
+ "i" => "Cootie",
59
+ "j" => "Monkey",
60
+ "k" => "Potty",
61
+ "l" => "Liver",
62
+ "m" => "Banana",
63
+ "n" => "Rhino",
64
+ "o" => "Burger",
65
+ "p" => "Hamster",
66
+ "q" => "Toad",
67
+ "r" => "Gizzard",
68
+ "s" => "Pizza",
69
+ "t" => "Gerbil",
70
+ "u" => "Chicken",
71
+ "v" => "Pickle",
72
+ "w" => "Chuckle",
73
+ "x" => "Tofu",
74
+ "y" => "Gorilla",
75
+ "z" => "Stinker"}.fetch(letter)
73
76
  end
74
77
 
75
78
  def last_of_last(letter)
@@ -100,6 +103,4 @@ module NameChangeOChart
100
103
  "y" => "brains",
101
104
  "z" => "juice"}.fetch(letter)
102
105
  end
103
-
104
- module_function *self.instance_methods(false)
105
106
  end
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: name_change_o_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Jim Gay'"
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.3'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
11
+ date: 2023-01-08 00:00:00.000000000 Z
12
+ dependencies: []
41
13
  description: Name converter based on "Captain Underpants and the Perilous Plot of
42
14
  Professor Poopypants", by Dav Pilkey
43
15
  email:
@@ -46,20 +18,18 @@ executables: []
46
18
  extensions: []
47
19
  extra_rdoc_files: []
48
20
  files:
49
- - ".gitignore"
50
- - Gemfile
21
+ - CHANGELOG.md
22
+ - CODE_OF_CONDUCT.md
51
23
  - LICENSE.txt
52
- - PPP.gif
53
24
  - README.md
54
25
  - Rakefile
55
26
  - lib/name_change_o_chart.rb
56
27
  - lib/name_change_o_chart/version.rb
57
- - name_change_o_chart.gemspec
58
28
  homepage: https://github.com/saturnflyer/name_change_o_chart
59
29
  licenses:
60
30
  - MIT
61
31
  metadata: {}
62
- post_install_message:
32
+ post_install_message:
63
33
  rdoc_options: []
64
34
  require_paths:
65
35
  - lib
@@ -74,9 +44,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
44
  - !ruby/object:Gem::Version
75
45
  version: '0'
76
46
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.2.0
79
- signing_key:
47
+ rubygems_version: 3.2.27
48
+ signing_key:
80
49
  specification_version: 4
81
50
  summary: Convert your boring name to something more fun.
82
51
  test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/PPP.gif DELETED
Binary file
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'name_change_o_chart/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "name_change_o_chart"
8
- spec.version = NameChangeOChart::VERSION
9
- spec.authors = ["'Jim Gay'"]
10
- spec.email = ["jim@saturnflyer.com"]
11
- spec.description = %q{Name converter based on "Captain Underpants and the Perilous Plot of Professor Poopypants", by Dav Pilkey}
12
- spec.summary = %q{Convert your boring name to something more fun.}
13
- spec.homepage = "https://github.com/saturnflyer/name_change_o_chart"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files`.split($/)
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
23
- end