wordini 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.
Files changed (3) hide show
  1. data/lib/wordini.rb +2 -2
  2. metadata +1 -2
  3. data/Rakefile +0 -3
data/lib/wordini.rb CHANGED
@@ -3,9 +3,9 @@ class Wordini
3
3
  def self.obfuscate(word_string, words_to_remove)
4
4
  word_string.split.map{ |word|
5
5
  if words_to_remove.include? word
6
- word = "*" * word.split('').count
6
+ "*" * word.length
7
7
  else
8
- word = word
8
+ word
9
9
  end
10
10
  }.join(' ')
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -22,7 +22,6 @@ files:
22
22
  - spec/wordini_spec.rb
23
23
  - Gemfile
24
24
  - Gemfile.lock
25
- - Rakefile
26
25
  homepage: http://rubygems.org/gems/wordini
27
26
  licenses: []
28
27
  post_install_message:
data/Rakefile DELETED
@@ -1,3 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/clean'