crazipsum 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7c4fc465a2e951aa0774148a94907fb33942953c
4
+ data.tar.gz: 8d036e9b12de7dbc272b7923ccc9ce6146b1c176
5
+ SHA512:
6
+ metadata.gz: 52bb99ba4bdc010cb4e607652562130ceae65627880855940f2aef6d48d1b6888b54e64519e8ac5bae66a492804bfc78665b2db10cd72aa22c66270632147aab
7
+ data.tar.gz: 4f46560d17d9e195c0f2070db8bb263bb5640aad9833f8c8cd6c5e336e40a9c5b368cea40974b9ff4868eb00c1a9b31aa8868318eb8a0444a8d6a8c8ad1b2f35
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,44 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-06-23 17:11:37 +0200 using RuboCop version 0.40.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 11
10
+ Metrics/AbcSize:
11
+ Max: 209
12
+
13
+ # Offense count: 1
14
+ # Configuration parameters: CountComments.
15
+ Metrics/ClassLength:
16
+ Max: 170
17
+
18
+ # Offense count: 1
19
+ Metrics/CyclomaticComplexity:
20
+ Max: 7
21
+
22
+ # Offense count: 8
23
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
24
+ # URISchemes: http, https
25
+ Metrics/LineLength:
26
+ Max: 110
27
+
28
+ # Offense count: 7
29
+ # Configuration parameters: CountComments.
30
+ Metrics/MethodLength:
31
+ Max: 160
32
+
33
+ # Offense count: 1
34
+ Style/Documentation:
35
+ Exclude:
36
+ - 'spec/**/*'
37
+ - 'test/**/*'
38
+ - 'lib/crazipsum.rb'
39
+
40
+ # Offense count: 1
41
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
42
+ # SupportedStyles: snake_case, camelCase
43
+ Style/MethodName:
44
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ - jruby-9.1.0.0
6
+ before_install: gem install bundler -v 1.12.4
7
+ script:
8
+ - bundle exec rake
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in crazipsum.gemspec
4
+ gemspec
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Yohan Robert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # Crazipsum
2
+
3
+ Ever wanted some dumber, crazier (fancier?) lorem ipsum? Here you go!
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'crazipsum'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install crazipsum
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ require 'crazipsum'
25
+ fruit_ipsum = Crazipsum(:fruit)
26
+
27
+ fruit_ipsum.sentence
28
+ # => "Minim ut eiusmod gooseberry acai berry mangosteen raspberry quis rhubarb enim fig grape nulla duis."
29
+
30
+ fruit_ipsum.sentence(word_count: 5)
31
+ # => "Pear watermelon jujube persimmon nostrud."
32
+
33
+ fruit_ipsum.sentence(word_count: 5, fillers: false)
34
+ # => "Jackfruit mangosteen melon raspberry nectarine."
35
+
36
+ fruit_ipsum.sentence(fillers: false)
37
+ # => ""Pear watermelon jujube persimmon nostrud."
38
+
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
+
42
+ fruit_ipsum.paragraphs(word_count: 2, sentence_count: 2, paragraph_count: 2)
43
+ # => "Id ipsum. Rowanberry pear.\n\nOrange dolore. Sunt mangosteen."
44
+ ```
45
+
46
+ The available dictionnaries are:
47
+ * [`fruit`](data/fruit.txt)
48
+ * [`religion`](data/religion.txt)
49
+ * [`programming_language`](data/programming_language.txt)
50
+ * [`mineral`](data/mineral.txt)
51
+ * [`phobia`](data/phobia.txt)
52
+
53
+ ## License
54
+
55
+ [MIT](LICENSE.md)
56
+
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/groyoh/crazipsum.
data/Rakefile ADDED
@@ -0,0 +1,17 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rubocop'
3
+ require 'rubocop/rake_task'
4
+ require 'rake/testtask'
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << 'lib'
8
+ t.libs << 'test'
9
+ t.pattern = 'test/**/*_test.rb'
10
+ t.ruby_opts = ['-r./test/test_helper.rb']
11
+ end
12
+
13
+ RuboCop::RakeTask.new(:rubocop) do |task|
14
+ task.fail_on_error = true
15
+ end
16
+
17
+ task default: [:test, :rubocop]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'crazipsum'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/crazipsum.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'crazipsum/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'crazipsum'
8
+ spec.version = Crazipsum::VERSION
9
+ spec.authors = ['Yohan Robert']
10
+ spec.email = ['yohan.robert@outlook.fr']
11
+
12
+ spec.summary = 'Lorem ipsum remixed'
13
+ spec.description = 'Ever wanted some dumber, crazier (fancier?) lorem ipsum? Here you go!'
14
+ spec.homepage = 'https://www.github.com/groyoh/crazipsum'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = 'exe'
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ['lib']
21
+
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'
26
+ spec.add_development_dependency 'coveralls', '~> 0.8'
27
+ end
data/data/fillers.txt ADDED
@@ -0,0 +1,69 @@
1
+ lorem
2
+ ipsum
3
+ dolor
4
+ sit
5
+ amet
6
+ consectetur
7
+ adipiscing
8
+ elit
9
+ sed
10
+ do
11
+ eiusmod
12
+ tempor
13
+ incididunt
14
+ ut
15
+ labore
16
+ et
17
+ dolore
18
+ magna
19
+ aliqua
20
+ ut
21
+ enim
22
+ ad
23
+ minim
24
+ veniam
25
+ quis
26
+ nostrud
27
+ exercitation
28
+ ullamco
29
+ laboris
30
+ nisi
31
+ ut
32
+ aliquip
33
+ ex
34
+ ea
35
+ commodo
36
+ consequat
37
+ duis
38
+ aute
39
+ irure
40
+ dolor
41
+ in
42
+ reprehenderit
43
+ in
44
+ voluptate
45
+ velit
46
+ esse
47
+ cillum
48
+ dolore
49
+ eu
50
+ fugiat
51
+ nulla
52
+ pariatur
53
+ excepteur
54
+ sint
55
+ occaecat
56
+ cupidatat
57
+ non
58
+ proident
59
+ sunt
60
+ in
61
+ culpa
62
+ qui
63
+ officia
64
+ deserunt
65
+ mollit
66
+ anim
67
+ id
68
+ est
69
+ laborum
data/data/fruit.txt ADDED
@@ -0,0 +1,74 @@
1
+ acaiberry
2
+ apple
3
+ apricot
4
+ banana
5
+ berry
6
+ blackberry
7
+ blueberry
8
+ boysenberry
9
+ breadfruit
10
+ carissa
11
+ cherimoya
12
+ cherry
13
+ cloudberry
14
+ coconut
15
+ cranberry
16
+ current
17
+ date
18
+ dewberry
19
+ durian
20
+ elderberry
21
+ feijoa
22
+ fig
23
+ gogi
24
+ gooseberry
25
+ grapefruit
26
+ grape
27
+ groundcherry
28
+ guava
29
+ huckleberry
30
+ jackfruit
31
+ java-plum
32
+ jujube
33
+ kiwi
34
+ kumquat
35
+ lemon
36
+ lime
37
+ lingonberry
38
+ loganberry
39
+ loquat
40
+ mango
41
+ mangosteen
42
+ melon
43
+ mulberry
44
+ nectarine
45
+ noni
46
+ orange
47
+ papaya
48
+ passion-fruit
49
+ pawpaw
50
+ peach
51
+ pear
52
+ pear
53
+ persimmon
54
+ pineapple
55
+ plantain
56
+ plums
57
+ pomegranate
58
+ prickly-pear
59
+ prune
60
+ pummelo
61
+ quince
62
+ raisin
63
+ raspberry
64
+ rhubarb
65
+ rowanberry
66
+ sagopalm
67
+ starfruit
68
+ strawberry
69
+ tamarillo
70
+ tangelo
71
+ tangerine
72
+ tayberry
73
+ watermelon
74
+ youngberry
data/data/mineral.txt ADDED
@@ -0,0 +1,92 @@
1
+ actinium
2
+ aluminum
3
+ americum
4
+ antimony
5
+ argon
6
+ arsenic
7
+ astatine
8
+ barium
9
+ berryllium
10
+ bismuth
11
+ boron
12
+ bromine
13
+ cadmium
14
+ calcium
15
+ carbon
16
+ cerium
17
+ cesium
18
+ chromium
19
+ cobalt
20
+ copper
21
+ curium
22
+ dysprosium
23
+ erbium
24
+ europium
25
+ fluorine
26
+ francium
27
+ gadolium
28
+ gallium
29
+ germanium
30
+ gold
31
+ hafnium
32
+ helium
33
+ holmium
34
+ hydrogen
35
+ indium
36
+ iodine
37
+ iridium
38
+ iron
39
+ lead
40
+ lithium
41
+ lutecium
42
+ magnesium
43
+ manganese
44
+ mercury
45
+ molybdenum
46
+ neodymium
47
+ neon
48
+ neptunium
49
+ nickel
50
+ niobium
51
+ nitrogen
52
+ osmium
53
+ oxygen
54
+ palladium
55
+ phosphorus
56
+ platinum
57
+ plutonium
58
+ polonium
59
+ potassium
60
+ praseodymium
61
+ promethium
62
+ protoactinium
63
+ radium
64
+ radon
65
+ rhenium
66
+ rhodium
67
+ rubidium
68
+ ruthenium
69
+ scandium
70
+ selenium
71
+ silica
72
+ silver
73
+ samarium
74
+ sodium
75
+ strontium
76
+ sulfur
77
+ tantalum
78
+ technetium
79
+ tellurium
80
+ terbium
81
+ thallium
82
+ thorium
83
+ thulium
84
+ tin
85
+ titanium
86
+ tungsten
87
+ uranium
88
+ vanadium
89
+ xenon
90
+ yiterbium
91
+ yitrium
92
+ zinc