crazipsum 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c4fc465a2e951aa0774148a94907fb33942953c
4
- data.tar.gz: 8d036e9b12de7dbc272b7923ccc9ce6146b1c176
3
+ metadata.gz: 928cbb5bf0c4b2a8beb33acfd4d5de34750db9ad
4
+ data.tar.gz: fb4b066acd5b0e8339ad0d2151bb9011b0a3f9fd
5
5
  SHA512:
6
- metadata.gz: 52bb99ba4bdc010cb4e607652562130ceae65627880855940f2aef6d48d1b6888b54e64519e8ac5bae66a492804bfc78665b2db10cd72aa22c66270632147aab
7
- data.tar.gz: 4f46560d17d9e195c0f2070db8bb263bb5640aad9833f8c8cd6c5e336e40a9c5b368cea40974b9ff4868eb00c1a9b31aa8868318eb8a0444a8d6a8c8ad1b2f35
6
+ metadata.gz: 92a98ee51c575e114cd2bc9581d6fae631519a112f3f8c597ba3c805561bd69ef730c8b9c5f62191b92bd9bb847fccf3eb6c8b8ce277938e3c3b9e599b66d691
7
+ data.tar.gz: 8e5d492561bc67767478b2bf5e26c383d27de9718ea21ce648391d37d126438f70460aaa3ad28b4d78bc11dde73dccb9c1ef70050a1c3396ce55524268be3274
@@ -1,44 +1,45 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-06-23 17:11:37 +0200 using RuboCop version 0.40.0.
3
+ # on 2019-11-30 13:29:47 +0100 using RuboCop version 0.76.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 11
9
+ # Offense count: 3
10
10
  Metrics/AbcSize:
11
- Max: 209
11
+ Max: 122
12
12
 
13
13
  # Offense count: 1
14
14
  # Configuration parameters: CountComments.
15
15
  Metrics/ClassLength:
16
- Max: 170
16
+ Max: 126
17
17
 
18
18
  # Offense count: 1
19
19
  Metrics/CyclomaticComplexity:
20
20
  Max: 7
21
21
 
22
- # Offense count: 8
23
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
24
- # URISchemes: http, https
25
- Metrics/LineLength:
22
+ # Offense count: 3
23
+ # Configuration parameters: CountComments, ExcludedMethods.
24
+ Metrics/MethodLength:
26
25
  Max: 110
27
26
 
28
- # Offense count: 7
29
- # Configuration parameters: CountComments.
30
- Metrics/MethodLength:
31
- Max: 160
27
+ # Offense count: 1
28
+ # Configuration parameters: IgnoredPatterns.
29
+ # SupportedStyles: snake_case, camelCase
30
+ Naming/MethodName:
31
+ EnforcedStyle: snake_case
32
32
 
33
33
  # Offense count: 1
34
34
  Style/Documentation:
35
35
  Exclude:
36
36
  - 'spec/**/*'
37
37
  - 'test/**/*'
38
- - 'lib/crazipsum.rb'
38
+ - 'ataru_setup.rb'
39
39
 
40
- # Offense count: 1
41
- # Configuration parameters: EnforcedStyle, SupportedStyles.
42
- # SupportedStyles: snake_case, camelCase
43
- Style/MethodName:
44
- Enabled: false
40
+ # Offense count: 30
41
+ # Cop supports --auto-correct.
42
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
43
+ # URISchemes: http, https
44
+ Metrics/LineLength:
45
+ Max: 125
@@ -1,8 +1,11 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.0
5
- - jruby-9.1.0.0
6
- before_install: gem install bundler -v 1.12.4
4
+ - 2.4
5
+ - 2.5
6
+ - 2.6
7
+ - jruby-9.1.17.0
8
+ - jruby-9.2.9.0
9
+ before_install: gem install bundler
7
10
  script:
8
11
  - bundle exec rake
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in crazipsum.gemspec
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Crazipsum
2
+ ![travis](https://travis-ci.org/groyoh/crazipsum.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/groyoh/crazipsum/badge.svg?branch=master)](https://coveralls.io/github/groyoh/crazipsum?branch=master) [![Gem Version](https://badge.fury.io/rb/crazipsum.svg)](https://badge.fury.io/rb/crazipsum)
2
3
 
3
4
  Ever wanted some dumber, crazier (fancier?) lorem ipsum? Here you go!
4
5
 
@@ -22,33 +23,40 @@ Or install it yourself as:
22
23
 
23
24
  ```ruby
24
25
  require 'crazipsum'
26
+
25
27
  fruit_ipsum = Crazipsum(:fruit)
26
28
 
27
- fruit_ipsum.sentence
28
- # => "Minim ut eiusmod gooseberry acai berry mangosteen raspberry quis rhubarb enim fig grape nulla duis."
29
+ fruit_ipsum.sentence # => "Tangerine berry ut incididunt java-plum enim labore."
30
+
31
+ fruit_ipsum.sentence(word_count: 5) # => "Pummelo sed coconut veniam occaecat."
32
+
33
+ fruit_ipsum.sentence(word_count: 5, fillers: false) # => "Raspberry youngberry jujube tangerine pomegranate."
29
34
 
30
- fruit_ipsum.sentence(word_count: 5)
31
- # => "Pear watermelon jujube persimmon nostrud."
35
+ fruit_ipsum.sentence(word_count: 5, fillers: ["yum", "yum"]) # => "Yum mangosteen yum melon acaiberry."
32
36
 
33
- fruit_ipsum.sentence(word_count: 5, fillers: false)
34
- # => "Jackfruit mangosteen melon raspberry nectarine."
37
+ fruit_ipsum.paragraph(sentence_count: 3, word_count: 2, fillers: false) # => "Grape lime. Elderberry tayberry. Date starfruit."
35
38
 
36
- fruit_ipsum.sentence(fillers: false)
37
- # => ""Pear watermelon jujube persimmon nostrud."
39
+ fruit_ipsum.paragraphs(word_count: 2, sentence_count: 2, paragraph_count: 2) # => "Apple starfruit. Dewberry cherimoya.\n\nTangelo apple. Persimmon tamarillo."
38
40
 
39
- fruit_ipsum.paragraph(sentence_count: 3)
40
- # => "Laborum dolore elderberry cherimoya coconut exercitation dolor banana fugiat watermelon passion fruit. Commodo ut id mollit non tangerine berry reprehenderit lingonberry tamarillo cupidatat kumquat quis. Raisin fig berry in sunt eu rhubarb."
41
+ # Register a custom lorem ipsum.
42
+ Crazipsum.register(
43
+ :superhero,
44
+ ["Batman", "Superman", "Iron Man"]
45
+ )
41
46
 
42
- fruit_ipsum.paragraphs(word_count: 2, sentence_count: 2, paragraph_count: 2)
43
- # => "Id ipsum. Rowanberry pear.\n\nOrange dolore. Sunt mangosteen."
47
+ Crazipsum(:superhero).sentence(word_count: 5) # => "Eiusmod laboris Iron Man Batman in."
44
48
  ```
45
49
 
46
50
  The available dictionnaries are:
47
- * [`fruit`](data/fruit.txt)
48
- * [`religion`](data/religion.txt)
51
+ * [`car_make`](data/car_make.txt)
52
+ * [`phobia`](data/phobia.txt)
49
53
  * [`programming_language`](data/programming_language.txt)
54
+ * [`animal`](data/animal.txt)
55
+ * [`fruit`](data/fruit.txt)
56
+ * [`constellation`](data/constellation.txt)
50
57
  * [`mineral`](data/mineral.txt)
51
- * [`phobia`](data/phobia.txt)
58
+ * [`religion`](data/religion.txt)
59
+ * [`country`](data/country.txt)
52
60
 
53
61
  ## License
54
62
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rubocop'
3
5
  require 'rubocop/rake_task'
@@ -14,4 +16,4 @@ RuboCop::RakeTask.new(:rubocop) do |task|
14
16
  task.fail_on_error = true
15
17
  end
16
18
 
17
- task default: [:test, :rubocop]
19
+ task default: %i[test rubocop]
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'crazipsum'
4
+
5
+ module Setup
6
+ def setup
7
+ srand(39)
8
+ end
9
+
10
+ def teardown; end
11
+ end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'crazipsum'
@@ -1,5 +1,6 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'crazipsum/version'
5
6
 
@@ -14,14 +15,17 @@ Gem::Specification.new do |spec|
14
15
  spec.homepage = 'https://www.github.com/groyoh/crazipsum'
15
16
  spec.license = 'MIT'
16
17
 
18
+ spec.metadata['yard.run'] = 'yri'
19
+
17
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
21
  spec.bindir = 'exe'
19
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
23
  spec.require_paths = ['lib']
21
24
 
22
- spec.add_development_dependency 'bundler', '~> 1.12'
23
- spec.add_development_dependency 'rake', '~> 10.0'
24
- spec.add_development_dependency 'rubocop', '0.40.0'
25
- spec.add_development_dependency 'pry-byebug', '3.4.0'
25
+ spec.add_development_dependency 'ataru', '~> 0.2.0'
26
+ spec.add_development_dependency 'bundler'
26
27
  spec.add_development_dependency 'coveralls', '~> 0.8'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rubocop', '~> 0.49'
30
+ spec.add_development_dependency 'yard', '~> 0.9.20'
27
31
  end
@@ -0,0 +1,521 @@
1
+ canidae
2
+ felidae
3
+ cat
4
+ cattle
5
+ dog
6
+ donkey
7
+ goat
8
+ guinea pig
9
+ horse
10
+ pig
11
+ rabbit
12
+ fancy rat varieties
13
+ laboratory rat strains
14
+ sheep breeds
15
+ water buffalo breeds
16
+ chicken breeds
17
+ duck breeds
18
+ goose breeds
19
+ pigeon breeds
20
+ turkey breeds
21
+ aardvark
22
+ aardwolf
23
+ african buffalo
24
+ african elephant
25
+ african leopard
26
+ albatross
27
+ alligator
28
+ alpaca
29
+ american buffalo (bison)
30
+ american robin
31
+ amphibian
32
+ list
33
+ anaconda
34
+ angelfish
35
+ anglerfish
36
+ ant
37
+ anteater
38
+ antelope
39
+ antlion
40
+ ape
41
+ aphid
42
+ arabian leopard
43
+ arctic fox
44
+ arctic wolf
45
+ armadillo
46
+ arrow crab
47
+ asp
48
+ ass (donkey)
49
+ baboon
50
+ badger
51
+ bald eagle
52
+ bandicoot
53
+ barnacle
54
+ barracuda
55
+ basilisk
56
+ bass
57
+ bat
58
+ beaked whale
59
+ bear
60
+ list
61
+ beaver
62
+ bedbug
63
+ bee
64
+ beetle
65
+ bird
66
+ list
67
+ bison
68
+ blackbird
69
+ black panther
70
+ black widow spider
71
+ blue bird
72
+ blue jay
73
+ blue whale
74
+ boa
75
+ boar
76
+ bobcat
77
+ bobolink
78
+ bonobo
79
+ booby
80
+ box jellyfish
81
+ bovid
82
+ buffalo, african
83
+ buffalo, american (bison)
84
+ bug
85
+ butterfly
86
+ buzzard
87
+ camel
88
+ canid
89
+ cape buffalo
90
+ capybara
91
+ cardinal
92
+ caribou
93
+ carp
94
+ cat
95
+ list
96
+ catshark
97
+ caterpillar
98
+ catfish
99
+ cattle
100
+ list
101
+ centipede
102
+ cephalopod
103
+ chameleon
104
+ cheetah
105
+ chickadee
106
+ chicken
107
+ list
108
+ chimpanzee
109
+ chinchilla
110
+ chipmunk
111
+ clam
112
+ clownfish
113
+ cobra
114
+ cockroach
115
+ cod
116
+ condor
117
+ constrictor
118
+ coral
119
+ cougar
120
+ cow
121
+ coyote
122
+ crab
123
+ crane
124
+ crane fly
125
+ crawdad
126
+ crayfish
127
+ cricket
128
+ crocodile
129
+ crow
130
+ cuckoo
131
+ cicada
132
+ damselfly
133
+ deer
134
+ dingo
135
+ dinosaur
136
+ list
137
+ dog
138
+ list
139
+ dolphin
140
+ donkey
141
+ list
142
+ dormouse
143
+ dove
144
+ dragonfly
145
+ dragon
146
+ duck
147
+ list
148
+ dung beetle
149
+ eagle
150
+ earthworm
151
+ earwig
152
+ echidna
153
+ eel
154
+ egret
155
+ elephant
156
+ elephant seal
157
+ elk
158
+ emu
159
+ english pointer
160
+ ermine
161
+ falcon
162
+ ferret
163
+ finch
164
+ firefly
165
+ fish
166
+ flamingo
167
+ flea
168
+ fly
169
+ flyingfish
170
+ fowl
171
+ fox
172
+ frog
173
+ fruit bat
174
+ gamefowl
175
+ list
176
+ galliform
177
+ list
178
+ gazelle
179
+ gecko
180
+ gerbil
181
+ giant panda
182
+ giant squid
183
+ gibbon
184
+ gila monster
185
+ giraffe
186
+ goat
187
+ list
188
+ goldfish
189
+ goose
190
+ list
191
+ gopher
192
+ gorilla
193
+ grasshopper
194
+ great blue heron
195
+ great white shark
196
+ grizzly bear
197
+ ground shark
198
+ ground sloth
199
+ grouse
200
+ guan
201
+ list
202
+ guanaco
203
+ guineafowl
204
+ list
205
+ guinea pig
206
+ list
207
+ gull
208
+ guppy
209
+ haddock
210
+ halibut
211
+ hammerhead shark
212
+ hamster
213
+ hare
214
+ harrier
215
+ hawk
216
+ hedgehog
217
+ hermit crab
218
+ heron
219
+ herring
220
+ hippopotamus
221
+ hookworm
222
+ hornet
223
+ horse
224
+ list
225
+ hoverfly
226
+ hummingbird
227
+ humpback whale
228
+ hyena
229
+ iguana
230
+ impala
231
+ irukandji jellyfish
232
+ jackal
233
+ jaguar
234
+ jay
235
+ jellyfish
236
+ junglefowl
237
+ kangaroo
238
+ kangaroo mouse
239
+ kangaroo rat
240
+ kingfisher
241
+ kite
242
+ kiwi
243
+ koala
244
+ koi
245
+ komodo dragon
246
+ krill
247
+ ladybug
248
+ lamprey
249
+ landfowl
250
+ land snail
251
+ lark
252
+ leech
253
+ lemming
254
+ lemur
255
+ leopard
256
+ leopon
257
+ limpet
258
+ lion
259
+ lizard
260
+ llama
261
+ lobster
262
+ locust
263
+ loon
264
+ louse
265
+ lungfish
266
+ lynx
267
+ macaw
268
+ mackerel
269
+ magpie
270
+ mammal
271
+ manatee
272
+ mandrill
273
+ manta ray
274
+ marlin
275
+ marmoset
276
+ marmot
277
+ marsupial
278
+ marten
279
+ mastodon
280
+ meadowlark
281
+ meerkat
282
+ mink
283
+ minnow
284
+ mite
285
+ mockingbird
286
+ mole
287
+ mollusk
288
+ mongoose
289
+ monitor lizard
290
+ monkey
291
+ moose
292
+ mosquito
293
+ moth
294
+ mountain goat
295
+ mouse
296
+ mule
297
+ muskox
298
+ narwhal
299
+ newt
300
+ new world quail
301
+ nightingale
302
+ ocelot
303
+ octopus
304
+ old world quail
305
+ opossum
306
+ orangutan
307
+ orca
308
+ ostrich
309
+ otter
310
+ owl
311
+ ox
312
+ panda
313
+ panther
314
+ panthera hybrid
315
+ parakeet
316
+ parrot
317
+ parrotfish
318
+ partridge
319
+ peacock
320
+ peafowl
321
+ pelican
322
+ penguin
323
+ perch
324
+ peregrine falcon
325
+ pheasant
326
+ pig
327
+ pigeon
328
+ list
329
+ pike
330
+ pilot whale
331
+ pinniped
332
+ piranha
333
+ planarian
334
+ platypus
335
+ polar bear
336
+ pony
337
+ porcupine
338
+ porpoise
339
+ portuguese man o' war
340
+ possum
341
+ prairie dog
342
+ prawn
343
+ praying mantis
344
+ primate
345
+ ptarmigan
346
+ puffin
347
+ puma
348
+ python
349
+ quail
350
+ quelea
351
+ quokka
352
+ rabbit
353
+ list
354
+ raccoon
355
+ rainbow trout
356
+ rat
357
+ rattlesnake
358
+ raven
359
+ ray (batoidea)
360
+ ray (rajiformes)
361
+ red panda
362
+ reindeer
363
+ reptile
364
+ rhinoceros
365
+ right whale
366
+ roadrunner
367
+ rodent
368
+ rook
369
+ rooster
370
+ roundworm
371
+ saber-toothed cat
372
+ sailfish
373
+ salamander
374
+ salmon
375
+ sawfish
376
+ scale insect
377
+ scallop
378
+ scorpion
379
+ seahorse
380
+ sea lion
381
+ sea slug
382
+ sea snail
383
+ shark
384
+ list
385
+ sheep
386
+ list
387
+ shrew
388
+ shrimp
389
+ silkworm
390
+ silverfish
391
+ skink
392
+ skunk
393
+ sloth
394
+ slug
395
+ smelt
396
+ snail
397
+ snake
398
+ list
399
+ snipe
400
+ snow leopard
401
+ sockeye salmon
402
+ sole
403
+ sparrow
404
+ sperm whale
405
+ spider
406
+ spider monkey
407
+ spoonbill
408
+ squid
409
+ squirrel
410
+ starfish
411
+ star-nosed mole
412
+ steelhead trout
413
+ stingray
414
+ stoat
415
+ stork
416
+ sturgeon
417
+ sugar glider
418
+ swallow
419
+ swan
420
+ swift
421
+ swordfish
422
+ swordtail
423
+ tahr
424
+ takin
425
+ tapir
426
+ tarantula
427
+ tarsier
428
+ tasmanian devil
429
+ termite
430
+ tern
431
+ thrush
432
+ tick
433
+ tiger
434
+ tiger shark
435
+ tiglon
436
+ toad
437
+ tortoise
438
+ toucan
439
+ trapdoor spider
440
+ tree frog
441
+ trout
442
+ tuna
443
+ turkey
444
+ list
445
+ turtle
446
+ tyrannosaurus
447
+ urial
448
+ vampire bat
449
+ vampire squid
450
+ vicuna
451
+ viper
452
+ vole
453
+ vulture
454
+ wallaby
455
+ walrus
456
+ wasp
457
+ warbler
458
+ water boa
459
+ water buffalo
460
+ weasel
461
+ whale
462
+ whippet
463
+ whitefish
464
+ whooping crane
465
+ wildcat
466
+ wildebeest
467
+ wildfowl
468
+ wolf
469
+ wolverine
470
+ wombat
471
+ woodpecker
472
+ worm
473
+ wren
474
+ xerinae
475
+ x-ray fish
476
+ yak
477
+ yellow perch
478
+ zebra
479
+ zebra finch
480
+ animals by number of neurons
481
+ animals by size
482
+ common household pests
483
+ common names of poisonous animals
484
+ alpaca
485
+ bali cattle
486
+ cat
487
+ cattle
488
+ chicken
489
+ dog
490
+ domestic bactrian camel
491
+ domestic canary
492
+ domestic dromedary camel
493
+ domestic duck
494
+ domestic goat
495
+ domestic goose
496
+ domestic guineafowl
497
+ domestic hedgehog
498
+ domestic pig
499
+ domestic pigeon
500
+ domestic rabbit
501
+ domestic silkmoth
502
+ domestic silver fox
503
+ domestic turkey
504
+ donkey
505
+ fancy mouse
506
+ fancy rat
507
+ lab rat
508
+ ferret
509
+ gayal
510
+ goldfish
511
+ guinea pig
512
+ guppy
513
+ horse
514
+ koi
515
+ llama
516
+ ringneck dove
517
+ sheep
518
+ siamese fighting fish
519
+ society finch
520
+ yak
521
+ water buffalo