demo_lorem 0.0.1 → 0.0.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.
- data/README.md +9 -1
- data/demo_lorem.gemspec +1 -1
- data/lib/demo_lorem.rb +53 -2
- data/lib/demo_lorem/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# DemoLorem
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Simple lorem generator, with 8 different methods of producing dummy texts.
|
|
4
|
+
1. ipsum
|
|
5
|
+
2. cicero
|
|
6
|
+
3. european_languages
|
|
7
|
+
4. far_far_away
|
|
8
|
+
5. weather
|
|
9
|
+
6. kafka
|
|
10
|
+
7. pangram
|
|
11
|
+
8. random_regex
|
|
4
12
|
|
|
5
13
|
## Installation
|
|
6
14
|
|
data/demo_lorem.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["manmohan.menon@gmail.com"]
|
|
11
11
|
spec.description = %q{Lorem Ipsum generator}
|
|
12
12
|
spec.summary = %q{simply generates lorem ipsum text.}
|
|
13
|
-
spec.homepage = ""
|
|
13
|
+
spec.homepage = "https://github.com/Manmohan-menon/demo_lorem"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/demo_lorem.rb
CHANGED
|
@@ -1,7 +1,58 @@
|
|
|
1
1
|
require "demo_lorem/version"
|
|
2
2
|
|
|
3
3
|
module DemoLorem
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
extend self
|
|
5
|
+
def ipsum
|
|
6
|
+
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
|
|
7
|
+
ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco
|
|
8
|
+
laboris nisi ut aliquip ex ea commodo consequat.Duis aute irure dolor in reprehenderit in
|
|
9
|
+
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
|
|
10
|
+
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
6
11
|
end
|
|
12
|
+
|
|
13
|
+
def cicero
|
|
14
|
+
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising
|
|
15
|
+
pain was born and I will give you a complete account of the system, and expound the actual
|
|
16
|
+
teachings of the great explorer of the truth, the master-builder of human happiness."
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def european_languages
|
|
20
|
+
"The European languages are members of the same family. Their separate existence is a myth.
|
|
21
|
+
For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ
|
|
22
|
+
in their grammar, their pronunciation and their most common words. Everyone realizes why a
|
|
23
|
+
new common language would be desirable"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def far_far_away
|
|
27
|
+
"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia,
|
|
28
|
+
there live the random texts. Separated they live in Bookmarksgrove right at the coast of the
|
|
29
|
+
Semantics, a large language ocean. A small river named Duden flows by their place
|
|
30
|
+
and supplies it with the necessary "
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def weather
|
|
34
|
+
"A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring
|
|
35
|
+
which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot,
|
|
36
|
+
which was created for the bliss of souls like mine."
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def kafka
|
|
40
|
+
"One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed
|
|
41
|
+
into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could
|
|
42
|
+
see his brown belly, slightly domed and divided by arches into stiff sections."
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def pangram
|
|
46
|
+
"The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced
|
|
47
|
+
by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs
|
|
48
|
+
grab quick-jived waltz. Brick quiz whangs jumpy veldt fox."
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def random_regex
|
|
52
|
+
"abc def ghi jkl mno pqrs tuv wxyz ABC DEF GHI JKL MNO PQRS TUV WXYZ !§ $%& /() =?* <>
|
|
53
|
+
#|; ²³~ @ ©«» ¤¼× {}abc def ghi jkl mno pqrs tuv wxyz ABC DEF GHI JKL
|
|
54
|
+
MNO PQRS TUV WXYZ !§ $%& /() =?* <> #|"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
|
|
7
58
|
end
|
data/lib/demo_lorem/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: demo_lorem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-07-
|
|
12
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -58,7 +58,7 @@ files:
|
|
|
58
58
|
- demo_lorem.gemspec
|
|
59
59
|
- lib/demo_lorem.rb
|
|
60
60
|
- lib/demo_lorem/version.rb
|
|
61
|
-
homepage:
|
|
61
|
+
homepage: https://github.com/Manmohan-menon/demo_lorem
|
|
62
62
|
licenses:
|
|
63
63
|
- MIT
|
|
64
64
|
post_install_message:
|