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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1407181d50f463862dcb72ceea67040c9e4902717d3dfc22892784dae0d9c8f0
4
- data.tar.gz: 86ff27b2ff0e77965fddffbdf21398e438163cc18e13c5af8a8fde037c00573f
3
+ metadata.gz: e6a6352369fa7a8582fdbd4a4686227b76333a869f73de8793bb07a7b385c0a3
4
+ data.tar.gz: ffa68c63c70a6c8a88de1415bbb0152159bf88db6fae74af769c6ff95c6015a8
5
5
  SHA512:
6
- metadata.gz: 958e1a6dd58d2b03b2b801ef4d81bf2d2364b42cfafe89971e31e01dc04c6a5cd743c55f6792c6352a22d29d264b243cc2d6e902d94809881d64dcd222d370ae
7
- data.tar.gz: ec3dea6e7c5926d9693ac842a4463c24a3fc9702c8bc5a42c5700307ae5e203fe65c970ee97c3b22a8729f6c86d04d338274227d01a72480d7cc6819d273ab14
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"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseDevAssets
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  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.2
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-06-11 00:00:00.000000000 Z
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