frosty_meadow 0.0.4 → 0.0.5

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 (2) hide show
  1. data/lib/frosty_meadow.rb +3 -3
  2. metadata +1 -1
data/lib/frosty_meadow.rb CHANGED
@@ -9,11 +9,11 @@ class FrostyMeadow
9
9
 
10
10
  result = "#{adjectives[rand(adjectives.length)]} #{nouns[rand(nouns.length)]}"
11
11
 
12
- return (params[:underscored] && self.to_underscored(result)) || result
12
+ return (params[:separator] && self.seperate(result, params[:separator])) || result
13
13
  end
14
14
 
15
- def self.to_underscored result
16
- result.gsub(/ +/, '_')
15
+ def self.seperate result, separator
16
+ result.gsub(/ +/, separator)
17
17
  end
18
18
 
19
19
  def self.get_words params = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frosty_meadow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: