momblish 0.2.0 → 0.2.2
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/momblish/version.rb +1 -1
- data/lib/momblish.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e68918ace44bb33f8a3119e4bdf53c79d792480aff9bd65c2ac90dc32b27de1
|
4
|
+
data.tar.gz: 0763ebaf957cf2b47a387909907566fd36611d7f998ef426456ba1cd75bf5830
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09f376658714f513eb8f4ff38da8be406a93a4950cd8d30b7cd311804477d54334c57486765f1e81cd435976c4eca8a439fef31f30898d234cc12f6667d3ae36'
|
7
|
+
data.tar.gz: 72154e33458be49742a2402af3f0b97f6799b169f5e3e82d471f28a887b0fee00b026fd138d04597b07bcfce4a517ce809557c2c8df36a99f7cb78953aec2b08
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/momblish/version.rb
CHANGED
data/lib/momblish.rb
CHANGED
@@ -32,7 +32,7 @@ class Momblish
|
|
32
32
|
|
33
33
|
class << self
|
34
34
|
def lookup_dict(lang)
|
35
|
-
DICT[lang].find { |location|
|
35
|
+
DICT[lang].find { |location| File.exist?(location) }
|
36
36
|
end
|
37
37
|
|
38
38
|
def method_missing(lang)
|
@@ -75,7 +75,7 @@ class Momblish
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def sentence(count = nil, word_length: nil)
|
78
|
-
return enum_for(:sentence, word_length: word_length) unless block_given?
|
78
|
+
return enum_for(:sentence, count, word_length: word_length) unless block_given?
|
79
79
|
|
80
80
|
if count.nil?
|
81
81
|
loop { yield word(word_length) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momblish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Prater
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|