discourse_dev_assets 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/discourse_dev_assets.gemspec +1 -0
- data/lib/discourse_dev_assets.rb +7 -0
- data/lib/discourse_dev_assets/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6a6352369fa7a8582fdbd4a4686227b76333a869f73de8793bb07a7b385c0a3
|
4
|
+
data.tar.gz: ffa68c63c70a6c8a88de1415bbb0152159bf88db6fae74af769c6ff95c6015a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b2355936d6d1f96eb8a2ce82d7979d9ab8f3b3227ddc84e1109f11a9887e651d5e4dc8b501bdb3b45b6ab887ccdfe8868a43592d7d1e152a060a645dd3e78d0
|
7
|
+
data.tar.gz: 56a41cca9c111d853ffaedd524d79ea39e0efa950a7d197f404b37403aed5ecd5f72205077a46600669345ebe107d5161c075497b393f73d91c23349688f79bd
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "faker", "~> 2.16"
|
22
|
+
spec.add_runtime_dependency "literate_randomizer"
|
22
23
|
|
23
24
|
spec.add_development_dependency "bundler", "~> 2.0"
|
24
25
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
data/lib/discourse_dev_assets.rb
CHANGED
@@ -43,12 +43,19 @@ Faker::Base.instance_eval do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
require 'literate_randomizer'
|
47
|
+
|
46
48
|
Faker::Lorem.instance_eval do
|
47
49
|
alias :faker_sentence :sentence
|
50
|
+
alias :faker_paragraph :paragraph
|
48
51
|
|
49
52
|
NOT_GIVEN = Object.new
|
50
53
|
|
51
54
|
def sentence(word_count: 4, supplemental: false, random_words_to_add: 15)
|
52
55
|
faker_sentence(word_count: word_count, supplemental: supplemental, random_words_to_add: random_words_to_add)
|
53
56
|
end
|
57
|
+
|
58
|
+
def paragraph(options={})
|
59
|
+
LiterateRandomizer.paragraph(options)
|
60
|
+
end
|
54
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse_dev_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinoth Kannan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faker
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: literate_randomizer
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|