samify 0.1.0 → 0.1.1

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
2
  SHA1:
3
- metadata.gz: d23c59fb7bee71d5cf0e1851fccd534adf82820b
4
- data.tar.gz: bbad0ef32a4f554602c9fe947ee35e481b846c9c
3
+ metadata.gz: 9666d42d00f0a6a4e534bfdcb1181cde7d946b2a
4
+ data.tar.gz: 1fe98241578a0d3b1eda9c9a14b65844d298c53d
5
5
  SHA512:
6
- metadata.gz: 8c6ebd6b8bbb310b39470f83cec2ab475f8f98664df07d2a3d36f42fec788d3aceee8546ec58951c1c497b1b380870468c3ff17af710787ea8363a92e78fe8f3
7
- data.tar.gz: c9ba9969bfec36a9fd1f7a882202e10d3535d34601c32b170fc701817161ee097096fbb90111d48cf1ed435a6265cd519d4b70fb0e45199a21955796aa488d68
6
+ metadata.gz: 3eb995d2d4cb1d4b4f201994165288d3d15a173d7a612ff4e859dd72102a15a226e4ea83207c3aba0ee3dd990a4e254294950d8a80d65cd7cf91a90cc00d68e8
7
+ data.tar.gz: 2b235546625ab1f3ab1adfa5de75e4ed5102d97aa1f573ab72b9ec639145ef1514a9279391eeba8d972551c4fe91b1fd181c1e072a0c918b8efbc9e62d689f2a
@@ -1,9 +1,18 @@
1
1
  require "samify/version"
2
2
 
3
3
  module Samify
4
- class Samantha
5
- def sami
6
- puts "Sami"
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
@@ -1,3 +1,3 @@
1
1
  module Samify
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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 will add the word Sami randomly.}
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.0
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: 2016-06-07 00:00:00.000000000 Z
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: Sami is awesome.
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.4.5.1
95
+ rubygems_version: 2.6.8
96
96
  signing_key:
97
97
  specification_version: 4
98
- summary: This will add the word Sami randomly.
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: []