doge_woof 0.1.0 → 0.1.10
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 +1 -1
- data/{my_doge.gemspec → doge_woof.gemspec} +1 -0
- data/lib/doge_woof.rb +11 -10
- data/lib/doge_woof/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0833ee542db2517c8fd7f3a41715a0de5821a98
|
|
4
|
+
data.tar.gz: be1ab0cb508980903ebfff54289a2b5a011c1b20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d37eee28e428c5b5aff08fe003b19e2b32c535ef2f70501308b0b4ec9e0c2fce565da243a2af61d4b8570f9412917581fd42ebc57718e882f368e253aa96e1e2
|
|
7
|
+
data.tar.gz: 49be0e331f916f75ab408d04abb77e7ec297d139ac02e9806c11d429f0fa00cd0fae403f69d0f859fc317a42080efc743c9cbafb8d385e899c10b1423d891b9e
|
data/Gemfile
CHANGED
data/lib/doge_woof.rb
CHANGED
|
@@ -25,28 +25,29 @@ module DogeWoof
|
|
|
25
25
|
woof += @@modifiers.sample.capitalize + " " + @@words.sample + ". "
|
|
26
26
|
end
|
|
27
27
|
woof += @@c_words.sample.capitalize + "."
|
|
28
|
-
return woof
|
|
28
|
+
return woof_result = {"result" => woof}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def line(count = 3
|
|
31
|
+
def line(count = 3)
|
|
32
32
|
woof = ""
|
|
33
33
|
count.times do
|
|
34
34
|
woof += @@modifiers.sample.capitalize + " " + @@fillers.sample + " " + @@words.sample + " " + @@c_modifiers.sample + ". "
|
|
35
|
-
woof += @@c_words.sample.capitalize + ". " if rand <
|
|
35
|
+
woof += @@c_words.sample.capitalize + ". " if rand < 0.3
|
|
36
36
|
end
|
|
37
|
-
return woof
|
|
37
|
+
return woof_result = {"result" => woof}
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
def para(para_count = 2, line_count =
|
|
40
|
+
def para(para_count = 2, line_count = 15)
|
|
41
41
|
woof = ""
|
|
42
42
|
para_count.times do
|
|
43
|
-
|
|
43
|
+
line_count.times do
|
|
44
|
+
woof += @@modifiers.sample.capitalize + " " + @@fillers.sample + " " + @@words.sample + " " + @@c_modifiers.sample + ". "
|
|
45
|
+
woof += @@c_words.sample.capitalize + ". " if rand < 0.5
|
|
46
|
+
end
|
|
47
|
+
woof += "\n\n"
|
|
44
48
|
end
|
|
45
|
-
return woof
|
|
49
|
+
return woof_result = {"result" => woof}
|
|
46
50
|
end
|
|
47
51
|
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
|
-
|
|
51
|
-
Doge = DogeWoof.generate("para", 2)
|
|
52
|
-
puts Doge
|
data/lib/doge_woof/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: doge_woof
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ruppal Singh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: doge_woof
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.1.10
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.1.10
|
|
41
55
|
description: Wow ipsum. Such lorem. Leave ipsum lorem behind! Amaze your fellow devs.
|
|
42
56
|
email:
|
|
43
57
|
- ruppalsingh.dv@gmail.com
|
|
@@ -52,9 +66,9 @@ files:
|
|
|
52
66
|
- Rakefile
|
|
53
67
|
- bin/console
|
|
54
68
|
- bin/setup
|
|
69
|
+
- doge_woof.gemspec
|
|
55
70
|
- lib/doge_woof.rb
|
|
56
71
|
- lib/doge_woof/version.rb
|
|
57
|
-
- my_doge.gemspec
|
|
58
72
|
homepage: http://github.com/ruppalsingh/my_doge
|
|
59
73
|
licenses: []
|
|
60
74
|
metadata:
|