samify 0.1.0 → 0.1.1
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/lib/samify.rb +12 -3
- data/lib/samify/version.rb +1 -1
- data/samify.gemspec +1 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9666d42d00f0a6a4e534bfdcb1181cde7d946b2a
|
4
|
+
data.tar.gz: 1fe98241578a0d3b1eda9c9a14b65844d298c53d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb995d2d4cb1d4b4f201994165288d3d15a173d7a612ff4e859dd72102a15a226e4ea83207c3aba0ee3dd990a4e254294950d8a80d65cd7cf91a90cc00d68e8
|
7
|
+
data.tar.gz: 2b235546625ab1f3ab1adfa5de75e4ed5102d97aa1f573ab72b9ec639145ef1514a9279391eeba8d972551c4fe91b1fd181c1e072a0c918b8efbc9e62d689f2a
|
data/lib/samify.rb
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
require "samify/version"
|
2
2
|
|
3
3
|
module Samify
|
4
|
-
class
|
5
|
-
def
|
6
|
-
|
4
|
+
class Sami
|
5
|
+
def convert_to_sami(input)
|
6
|
+
samis = ["sammy", "sammie", "sammi", "samy", "sammee", "sammeigh", "sammey", "samii"]
|
7
|
+
samis.each do |word|
|
8
|
+
input = input.gsub(word, 'sami')
|
9
|
+
word.capitalize!
|
10
|
+
end
|
11
|
+
samis.each do |word|
|
12
|
+
input = input.gsub(word, 'Sami')
|
13
|
+
word.capitalize!
|
14
|
+
end
|
15
|
+
input
|
7
16
|
end
|
8
17
|
end
|
9
18
|
end
|
data/lib/samify/version.rb
CHANGED
data/samify.gemspec
CHANGED
@@ -9,8 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Samantha Morco"]
|
10
10
|
spec.email = ["morkotiks@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{This
|
13
|
-
spec.description = %q{Sami is awesome.}
|
12
|
+
spec.summary = %q{This is going to replace any misspellings of Sami (i.e. Sammy, Samy, Sammi, etc.) to the correct spelling.}
|
14
13
|
spec.homepage = "https://github.com/samanthamorco/samify"
|
15
14
|
spec.license = "MIT"
|
16
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samantha Morco
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- morkotiks@gmail.com
|
58
58
|
executables: []
|
@@ -92,8 +92,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.8
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
|
-
summary: This
|
98
|
+
summary: This is going to replace any misspellings of Sami (i.e. Sammy, Samy, Sammi,
|
99
|
+
etc.) to the correct spelling.
|
99
100
|
test_files: []
|