faker19 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/faker/lorem.rb +13 -0
  2. data/lib/faker/version.rb +1 -1
  3. metadata +8 -8
data/lib/faker/lorem.rb CHANGED
@@ -1,6 +1,19 @@
1
1
  module Faker
2
2
  # Based on Perl's Text::Lorem
3
3
  class Lorem < Base
4
+ def self.shuffle
5
+ lorem = [
6
+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod",
7
+ "tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,",
8
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo",
9
+ "consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse",
10
+ "cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat",
11
+ "non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
12
+ ]
13
+
14
+ lorem.shuffle.join(' ')
15
+ end
16
+
4
17
  def self.words(num = 3, supplemental = false)
5
18
  wordlist = I18n.translate('faker.lorem.words')
6
19
  wordlist += I18n.translate('faker.lorem.supplemental') if supplemental
data/lib/faker/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Faker #:nodoc:
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker19
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-06-26 00:00:00.000000000 +02:00
13
+ date: 2011-06-29 00:00:00.000000000 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
18
- requirement: &2160424600 !ruby/object:Gem::Requirement
18
+ requirement: &2153639680 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.6.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2160424600
26
+ version_requirements: *2153639680
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
- requirement: &2160424180 !ruby/object:Gem::Requirement
29
+ requirement: &2153639260 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2160424180
37
+ version_requirements: *2153639260
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2160423720 !ruby/object:Gem::Requirement
40
+ requirement: &2153638800 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2160423720
48
+ version_requirements: *2153638800
49
49
  description: ! 'Faker, a port of Data::Faker from Perl, is used to easily generate
50
50
  fake data: names, addresses, phone numbers, etc.'
51
51
  email: