blasphemy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/blasphemy.gemspec +2 -2
- data/lib/blasphemy.rb +24 -6
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/blasphemy.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{blasphemy}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tomasz Stachewicz"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-06-24}
|
13
13
|
s.description = %q{Surprise everyone by stubbing placeholder texts with something more original than boring "Lorem ipsum dolor sit amet". Embrace and extend, creating own wordlists for hilarious (or blasphemous or whatever you like) generated texts.}
|
14
14
|
s.email = %q{tomekrs@o2.pl}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/blasphemy.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module Faker
|
2
|
-
|
2
|
+
|
3
3
|
# heavily inspired (mildly said) by lorem_ipsum.py from Django contrib/webdesign
|
4
4
|
class CustomIpsum
|
5
5
|
attr_accessor :wordlist
|
6
6
|
def initialize
|
7
7
|
raise 'Doh! You are trying to instantiate an abstract class!'
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def words(num = 3)
|
11
11
|
@wordlist.shuffle[0, num]
|
12
12
|
end
|
@@ -23,14 +23,14 @@ module Faker
|
|
23
23
|
s = sections.join(", ")
|
24
24
|
return s.capitalize + ".?!".slice(rand(3),1)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# Returns a randomly generated paragraph of lorem ipsum text.
|
28
28
|
# The paragraph consists of between 1 and 4 sentences, inclusive.
|
29
29
|
def paragraph
|
30
30
|
((1..(rand(3)+2)).map{sentence}).join(" ")
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
class MetalIpsum < CustomIpsum
|
35
35
|
def initialize
|
36
36
|
@wordlist = ['exercitationem', 'perferendis', 'excruciating', 'sphere', 'killing',
|
@@ -41,14 +41,32 @@ module Faker
|
|
41
41
|
'acts', 'anger', 'rage', 'terror', 'death', 'scent', 'burning', 'flame',
|
42
42
|
'undead', 'necro', 'cum', 'flesh', 'chaos', 'decapitate', 'sanity', 'mad',
|
43
43
|
'crazy', 'cryptic', 'insane', 'cadaver', 'fest', 'feast', 'witch', 'christian',
|
44
|
-
'devil', 'evil', 'funeral', 'divine', 'horse', 'sword', 'axe', 'ax', 'battle',
|
44
|
+
'devil', 'evil', 'funeral', 'divine', 'horse', 'sword', 'axe', 'ax', 'battle',
|
45
45
|
'forge', 'monster', 'horror', 'ov', 'bronze', 'bone']
|
46
46
|
end
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
class TabulaIpsum < CustomIpsum
|
50
50
|
def initialize
|
51
51
|
@wordlist = []
|
52
52
|
end
|
53
53
|
end
|
54
|
+
|
55
|
+
|
56
|
+
class BaconIpsum < CustomIpsum
|
57
|
+
def initialize
|
58
|
+
@wordlist = [
|
59
|
+
'adipisicing', 'aliqua', 'aliquip', 'anim', 'aute', 'bacon', 'ball', 'beef',
|
60
|
+
'belly', 'chicken', 'chop', 'chuck', 'cillum', 'commodo', 'consectetur',
|
61
|
+
'consequat', 'corned', 'cow', 'cupidatat', 'deserunt', 'do', 'dolor',
|
62
|
+
'drumstick', 'duis', 'ea', 'elit', 'enim', 'esse', 'est', 'et', 'eu',
|
63
|
+
'ex', 'fatback', 'flank', 'fugiat', 'ground', 'ham', 'hamburger', 'hock', 'id',
|
64
|
+
'in', 'incididunt', 'irure', 'jerky', 'labore', 'laboris', 'loin', 'magna',
|
65
|
+
'meatball', 'minim', 'mollit', 'nisi', 'non', 'nostrud', 'nulla', 'occaecat', 'officia',
|
66
|
+
'pancetta', 'pariatur', 'pastrami', 'pig', 'pork', 'proident', 'qui', 'quis', 'ribeye', 'ribs',
|
67
|
+
'round', 'sausage', 'sed', 'shank', 'shankle', 'short', 'shoulder', 'sint', 'sirloin', 'spare',
|
68
|
+
'steak', 'strip', 'sunt', 't-bone', 'tail', 'tempor', 'tenderloin', 'tip', 'tongue', 'tri-tip',
|
69
|
+
'turkey', 'ullamco', 'ut', 'velit', 'veniam', 'venison', 'venisonadipisicing' ]
|
70
|
+
end
|
71
|
+
end
|
54
72
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blasphemy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomasz Stachewicz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-06-24 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|