catify 1.0
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 +7 -0
- data/lib/catify.rb +51 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 0e73971ebb6fa320e9c49d4ed07a7eadf3508e2d
|
|
4
|
+
data.tar.gz: d91dff735f59dd46a7c0b2de0cd88bc628b3279e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: bf2d43c477b51a6c9c6e3276395bf04c9332e3662028ac6cc337fb93c1ccf0e88ad9cd8fe9bc5c4d4f48dea3116a37a72ae005d7ea07d49d2ff6866db9004dab
|
|
7
|
+
data.tar.gz: 48426b1f5d3ee3c3c4f2a9e25acb83bf78b73635bee9303525d438108430fc0e468a08165239664ea67c7e0f580fadafe7135f8676933b10928121eed4fe649d
|
data/lib/catify.rb
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
CONVERT_HASH = {
|
|
2
|
+
'awesome' => 'pawsome',
|
|
3
|
+
'for' => 'fur',
|
|
4
|
+
'perfect' => 'purrfect',
|
|
5
|
+
'now' => 'meow',
|
|
6
|
+
'kidding' => 'kitten',
|
|
7
|
+
'awful' => 'clawful',
|
|
8
|
+
'positive' => 'pawsitive',
|
|
9
|
+
'personal' => 'purrsonal',
|
|
10
|
+
'persuasion' => 'purrsuasion',
|
|
11
|
+
'persuade' => 'purrsuade',
|
|
12
|
+
'fortunate' => 'furrtunate',
|
|
13
|
+
'unfortunate' => 'unfurrtunate',
|
|
14
|
+
'prefer' => 'pawfer',
|
|
15
|
+
'forever' => 'furever',
|
|
16
|
+
'lying' => 'lion',
|
|
17
|
+
'hysterical' => 'hissterical',
|
|
18
|
+
'pardon' => 'pawdon',
|
|
19
|
+
'feeling' => 'feline',
|
|
20
|
+
'clever' => 'clawver',
|
|
21
|
+
'tell' => 'tail',
|
|
22
|
+
'familiar' => 'furmiliar',
|
|
23
|
+
'talent' => 'tailent',
|
|
24
|
+
'mountain' => 'meowntain',
|
|
25
|
+
'attitude' => 'cattitude',
|
|
26
|
+
'inferior' => 'infurior',
|
|
27
|
+
'musician' => 'meowsician',
|
|
28
|
+
'tale' => 'tail',
|
|
29
|
+
'because' => 'be-claws',
|
|
30
|
+
'very' => 'furry',
|
|
31
|
+
'portable' => 'pawtable',
|
|
32
|
+
'you' => 'mew',
|
|
33
|
+
'got' => 'cat',
|
|
34
|
+
'please' => 'paw-lease',
|
|
35
|
+
'sorry' => 'paw-y',
|
|
36
|
+
'appalling' => 'apawling',
|
|
37
|
+
'possibly' => 'pawsibly',
|
|
38
|
+
'possibility' => 'pawsibility',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class Catify
|
|
42
|
+
def self.it(phrase)
|
|
43
|
+
phrase.downcase.split(' ').map do |word|
|
|
44
|
+
if CONVERT_HASH.include?(word)
|
|
45
|
+
CONVERT_HASH[word]
|
|
46
|
+
else
|
|
47
|
+
word
|
|
48
|
+
end
|
|
49
|
+
end.join(' ').capitalize
|
|
50
|
+
end
|
|
51
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: catify
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '1.0'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ian Andersen
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Cat-pun-ify any phrase
|
|
14
|
+
email: ianderse@mac.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/catify.rb
|
|
20
|
+
homepage: http://www.github.com/ianderse/catify
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubyforge_project:
|
|
40
|
+
rubygems_version: 2.2.2
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Catify
|
|
44
|
+
test_files: []
|