ffaker 1.16.2 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,15 +12,15 @@ Faker::Internet.email => "kirsten.greenholt@corkeryfisher.info"
12
12
 
13
13
  ## ffaker vs faker
14
14
 
15
- faker and ffaker APIs are mostly the same, although the API on ffaker keeps
15
+ The faker and ffaker APIs are mostly the same, although the API on ffaker keeps
16
16
  growing with its users additions. In general, the only difference is that you
17
17
  need to:
18
18
 
19
- gem install ffaker
19
+ gem install ffaker
20
20
 
21
21
  and then
22
22
 
23
- require 'ffaker'
23
+ require 'ffaker'
24
24
 
25
25
  instead of "faker" with only one f.
26
26
 
@@ -30,8 +30,8 @@ ffaker was initially written in an effort to speed up a slow spec suite. Bear
30
30
  in mind, if your spec suite is slow, chances are the generation of random data
31
31
  will not account for much of the run time.
32
32
 
33
- Since then, the original faker gem has become faster seem it was
34
- maintained). Nevertheless, ffaker is still about 20x faster than faker.
33
+ Since then, the original faker gem has become faster.
34
+ Nevertheless, ffaker is still about 20x faster than faker.
35
35
 
36
36
  ```ruby
37
37
  N = 10_000
@@ -46,25 +46,23 @@ maintained). Nevertheless, ffaker is still about 20x faster than faker.
46
46
  ```
47
47
 
48
48
  ```
49
- * ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03
49
+ ruby 1.8.7
50
+ generating 10000 names (faker 0.9.5) 1.500000 0.000000 1.500000 ( 1.506865)
51
+ generating 10000 names (ffaker 1.5.0) 0.070000 0.000000 0.070000 ( 0.067526)
50
52
 
51
- generating 10000 names (faker 0.9.5) 1.500000 0.000000 1.500000 ( 1.506865)
52
- generating 10000 names (ffaker 1.5.0) 0.070000 0.000000 0.070000 ( 0.067526)
53
-
54
- * ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
55
-
56
- generating 10000 names (faker 0.9.5) 1.030000 0.020000 1.050000 ( 1.046116)
57
- generating 10000 names (ffaker 1.7.0) 0.040000 0.000000 0.040000 ( 0.045917)
53
+ ruby 1.9.2p180
54
+ generating 10000 names (faker 0.9.5) 1.030000 0.020000 1.050000 ( 1.046116)
55
+ generating 10000 names (ffaker 1.7.0) 0.040000 0.000000 0.040000 ( 0.045917)
58
56
  ```
59
57
 
60
58
  ## Contributors
61
59
 
62
- A lot of people has contributed to ffaker. Check [this list](https://github.com/EmmanuelOga/ffaker/graphs/contributors).
60
+ A lot of people have contributed to ffaker. Check [this list](https://github.com/EmmanuelOga/ffaker/graphs/contributors).
63
61
 
64
62
  ## TODO
65
63
 
66
64
  * Even though the API is pretty simple, better rdoc documentation would not hurt.
67
- * Put all modules under its respective language (E.G. EducationUS instead of just Education)
65
+ * Put all modules under their respective languages (E.G. EducationUS instead of just Education)
68
66
 
69
67
  ## Note on Patches/Pull Requests
70
68
 
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'ffaker'
7
- s.version = '1.16.2'
8
- s.date = '2013-07-05'
7
+ s.version = '1.17.0'
8
+ s.date = '2013-08-06'
9
9
  s.rubyforge_project = 'ffaker'
10
10
 
11
11
  s.summary = "Faster Faker, generates dummy data."
@@ -39,12 +39,14 @@ Gem::Specification.new do |s|
39
39
  lib/ffaker/address_sn.rb
40
40
  lib/ffaker/address_uk.rb
41
41
  lib/ffaker/address_us.rb
42
+ lib/ffaker/bacon_ipsum.rb
42
43
  lib/ffaker/company.rb
43
44
  lib/ffaker/company_se.rb
44
45
  lib/ffaker/conference.rb
45
46
  lib/ffaker/dizzle_ipsum.rb
46
47
  lib/ffaker/education.rb
47
48
  lib/ffaker/geolocation.rb
49
+ lib/ffaker/healthcare_ipsum.rb
48
50
  lib/ffaker/hipster_ipsum.rb
49
51
  lib/ffaker/html_ipsum.rb
50
52
  lib/ffaker/identification.rb
@@ -97,6 +99,7 @@ Gem::Specification.new do |s|
97
99
  test/test_address_uk.rb
98
100
  test/test_address_us.rb
99
101
  test/test_array_utils.rb
102
+ test/test_bacon_ipsum.rb
100
103
  test/test_company.rb
101
104
  test/test_company_se.rb
102
105
  test/test_conference.rb
@@ -118,6 +121,7 @@ Gem::Specification.new do |s|
118
121
  test/test_faker_name_se.rb
119
122
  test/test_faker_name_sn.rb
120
123
  test/test_geolocation.rb
124
+ test/test_healthcare_ipsum.rb
121
125
  test/test_hipster_ipsum.rb
122
126
  test/test_html_ipsum.rb
123
127
  test/test_identification.rb
@@ -1,5 +1,5 @@
1
1
  module Faker
2
- VERSION = "1.16.2"
2
+ VERSION = "1.17.0"
3
3
 
4
4
  require 'ffaker/utils/array_utils'
5
5
  require 'ffaker/utils/module_utils'
@@ -24,53 +24,55 @@ module Faker
24
24
  letterify(numerify(masks))
25
25
  end
26
26
 
27
- autoload :Address, 'ffaker/address'
28
- autoload :AddressAU, 'ffaker/address_au'
29
- autoload :AddressCA, 'ffaker/address_ca'
30
- autoload :AddressDE, 'ffaker/address_de'
31
- autoload :AddressSE, 'ffaker/address_se'
32
- autoload :AddressMX, 'ffaker/address_mx'
33
- autoload :AddressSN, 'ffaker/address_sn'
34
- autoload :AddressUK, 'ffaker/address_uk'
35
- autoload :AddressUS, 'ffaker/address_us'
36
- autoload :Company, 'ffaker/company'
37
- autoload :CompanySE, 'ffaker/company_se'
38
- autoload :Conference, 'ffaker/conference'
39
- autoload :DizzleIpsum, 'ffaker/dizzle_ipsum'
40
- autoload :Education, 'ffaker/education'
41
- autoload :Geolocation, 'ffaker/geolocation'
42
- autoload :HTMLIpsum, 'ffaker/html_ipsum'
43
- autoload :HipsterIpsum, 'ffaker/hipster_ipsum'
44
- autoload :Identification,'ffaker/identification'
45
- autoload :Internet, 'ffaker/internet'
46
- autoload :InternetSE, 'ffaker/internet_se'
47
- autoload :Job, 'ffaker/job'
48
- autoload :Lorem, 'ffaker/lorem'
49
- autoload :LoremAR, 'ffaker/lorem_ar'
50
- autoload :LoremCN, 'ffaker/lorem_cn'
51
- autoload :Movie, 'ffaker/movie'
52
- autoload :Name, 'ffaker/name'
53
- autoload :NameCN, 'ffaker/name_cn'
54
- autoload :NameDE, 'ffaker/name_de'
55
- autoload :NameGA, 'ffaker/name_ga'
56
- autoload :NameJA, 'ffaker/name_ja'
57
- autoload :NameMX, 'ffaker/name_mx'
58
- autoload :NameKR, 'ffaker/name_kr'
59
- autoload :NameRU, 'ffaker/name_ru'
60
- autoload :NameSE, 'ffaker/name_se'
61
- autoload :NameSN, 'ffaker/name_sn'
62
- autoload :NamePH, 'ffaker/name_ph'
63
- autoload :PhoneNumber, 'ffaker/phone_number'
64
- autoload :PhoneNumberAU, 'ffaker/phone_number_au'
65
- autoload :PhoneNumberSE, 'ffaker/phone_number_se'
66
- autoload :PhoneNumberMX, 'ffaker/phone_number_mx'
67
- autoload :PhoneNumberSN, 'ffaker/phone_number_sn'
68
- autoload :PhoneNumberSG, 'ffaker/phone_number_sg'
69
- autoload :Product, 'ffaker/product'
70
- autoload :SSN, 'ffaker/ssn'
71
- autoload :SSNSE, 'ffaker/ssn_se'
72
- autoload :Regexp, 'ffaker/regexp'
73
- autoload :String, 'ffaker/string'
74
- autoload :Time, 'ffaker/time'
75
- autoload :Venue, 'ffaker/venue'
27
+ autoload :Address, 'ffaker/address'
28
+ autoload :AddressAU, 'ffaker/address_au'
29
+ autoload :AddressCA, 'ffaker/address_ca'
30
+ autoload :AddressDE, 'ffaker/address_de'
31
+ autoload :AddressMX, 'ffaker/address_mx'
32
+ autoload :AddressSE, 'ffaker/address_se'
33
+ autoload :AddressSN, 'ffaker/address_sn'
34
+ autoload :AddressUK, 'ffaker/address_uk'
35
+ autoload :AddressUS, 'ffaker/address_us'
36
+ autoload :BaconIpsum, 'ffaker/bacon_ipsum'
37
+ autoload :Company, 'ffaker/company'
38
+ autoload :CompanySE, 'ffaker/company_se'
39
+ autoload :Conference, 'ffaker/conference'
40
+ autoload :DizzleIpsum, 'ffaker/dizzle_ipsum'
41
+ autoload :Education, 'ffaker/education'
42
+ autoload :Geolocation, 'ffaker/geolocation'
43
+ autoload :HTMLIpsum, 'ffaker/html_ipsum'
44
+ autoload :HealthcareIpsum, 'ffaker/healthcare_ipsum'
45
+ autoload :HipsterIpsum, 'ffaker/hipster_ipsum'
46
+ autoload :Identification, 'ffaker/identification'
47
+ autoload :Internet, 'ffaker/internet'
48
+ autoload :InternetSE, 'ffaker/internet_se'
49
+ autoload :Job, 'ffaker/job'
50
+ autoload :Lorem, 'ffaker/lorem'
51
+ autoload :LoremAR, 'ffaker/lorem_ar'
52
+ autoload :LoremCN, 'ffaker/lorem_cn'
53
+ autoload :Movie, 'ffaker/movie'
54
+ autoload :Name, 'ffaker/name'
55
+ autoload :NameCN, 'ffaker/name_cn'
56
+ autoload :NameDE, 'ffaker/name_de'
57
+ autoload :NameGA, 'ffaker/name_ga'
58
+ autoload :NameJA, 'ffaker/name_ja'
59
+ autoload :NameKR, 'ffaker/name_kr'
60
+ autoload :NameMX, 'ffaker/name_mx'
61
+ autoload :NamePH, 'ffaker/name_ph'
62
+ autoload :NameRU, 'ffaker/name_ru'
63
+ autoload :NameSE, 'ffaker/name_se'
64
+ autoload :NameSN, 'ffaker/name_sn'
65
+ autoload :PhoneNumber, 'ffaker/phone_number'
66
+ autoload :PhoneNumberAU, 'ffaker/phone_number_au'
67
+ autoload :PhoneNumberMX, 'ffaker/phone_number_mx'
68
+ autoload :PhoneNumberSE, 'ffaker/phone_number_se'
69
+ autoload :PhoneNumberSG, 'ffaker/phone_number_sg'
70
+ autoload :PhoneNumberSN, 'ffaker/phone_number_sn'
71
+ autoload :Product, 'ffaker/product'
72
+ autoload :Regexp, 'ffaker/regexp'
73
+ autoload :SSN, 'ffaker/ssn'
74
+ autoload :SSNSE, 'ffaker/ssn_se'
75
+ autoload :String, 'ffaker/string'
76
+ autoload :Time, 'ffaker/time'
77
+ autoload :Venue, 'ffaker/venue'
76
78
  end
@@ -0,0 +1,81 @@
1
+ module Faker
2
+ # thanks to http://baconipsum.com/
3
+ module BaconIpsum
4
+ extend ModuleUtils
5
+ extend Lorem
6
+ extend self
7
+
8
+ def word
9
+ BACON_WORDS.rand
10
+ end
11
+
12
+ def words(num = 3)
13
+ BACON_WORDS.random_pick(num)
14
+ end
15
+
16
+ BACON_WORDS = k [
17
+ 'beef',
18
+ 'chicken',
19
+ 'pork',
20
+ 'bacon',
21
+ 'chuck',
22
+ 'short loin',
23
+ 'sirloin',
24
+ 'shank',
25
+ 'flank',
26
+ 'sausage',
27
+ 'pork belly',
28
+ 'shoulder',
29
+ 'cow',
30
+ 'pig',
31
+ 'ground round',
32
+ 'hamburger',
33
+ 'meatball',
34
+ 'tenderloin',
35
+ 'strip steak',
36
+ 't-bone',
37
+ 'ribeye',
38
+ 'shankle',
39
+ 'tongue',
40
+ 'tail',
41
+ 'pork chop',
42
+ 'pastrami',
43
+ 'corned beef',
44
+ 'jerky',
45
+ 'ham',
46
+ 'fatback',
47
+ 'ham hock',
48
+ 'pancetta',
49
+ 'pork loin',
50
+ 'short ribs',
51
+ 'spare ribs',
52
+ 'beef ribs',
53
+ 'drumstick',
54
+ 'tri-tip',
55
+ 'ball tip',
56
+ 'venison',
57
+ 'turkey',
58
+ 'biltong',
59
+ 'rump',
60
+ 'jowl',
61
+ 'salami',
62
+ 'bresaola',
63
+ 'meatloaf',
64
+ 'brisket',
65
+ 'boudin',
66
+ 'andouille',
67
+ 'capicola',
68
+ 'swine',
69
+ 'kielbasa',
70
+ 'frankfurter',
71
+ 'prosciutto',
72
+ 'filet mignon',
73
+ 'leberkas',
74
+ 'turducken',
75
+ 'doner'
76
+ ]
77
+
78
+
79
+
80
+ end
81
+ end
@@ -32,5 +32,15 @@ module Faker
32
32
  [34.3823767402857,-118.550562688364], [33.8256050190507,-118.281161297494], [37.5758033375583,-122.012044535507],
33
33
  [37.8768587606888,-122.078250641083], [37.6859990796181,-122.094516147761], [37.4660979087165,-121.900873639257],
34
34
  [41.77117,-87.888795], [41.900425,-87.624262], [41.737173,-87.869998]]
35
+
36
+ def boxed_coords(upper_left, lower_right)
37
+ latitude_range = [upper_left[0], lower_right[0]].sort
38
+ longitude_range = [upper_left[1], lower_right[1]].sort
39
+
40
+ latitude = latitude_range[0] + rand() * (latitude_range[1] - latitude_range[0])
41
+ longitude = longitude_range[0] + rand() * (longitude_range[1] - longitude_range[0])
42
+
43
+ [latitude, longitude]
44
+ end
35
45
  end
36
- end
46
+ end
@@ -0,0 +1,74 @@
1
+ module Faker
2
+ module HealthcareIpsum
3
+ extend ModuleUtils
4
+ extend Lorem
5
+ extend self
6
+
7
+ def word
8
+ HEALTHCARE_WORDS.rand
9
+ end
10
+
11
+ def words(num = 3)
12
+ HEALTHCARE_WORDS.random_pick(num)
13
+ end
14
+
15
+ HEALTHCARE_WORDS = k [
16
+ 'accreditation', 'accredited', 'accumulation period', 'administrative
17
+ services only', 'admitting physician ', 'admitting privileges', 'after
18
+ care', 'agent of record', 'ambulatory care', 'ancillary services', 'any
19
+ willing provider laws', 'appeal', 'ASO', 'assignment of benefits',
20
+ 'attachment', 'beneficiary', 'benefit', 'benefit cap', 'board certified',
21
+ 'broker', 'capitation', 'care plan', 'case management', 'case manager',
22
+ 'centers of excellence', 'certificate of coverage', 'claim', 'clinical
23
+ practice guidelines', 'co-insurance', 'co-pay', 'co-payment', 'COB',
24
+ 'COBRA', 'concurrent review', 'consolidated omnibus budget reconciliation
25
+ act', 'contract year', 'coordinated care', 'coordination of benefits',
26
+ 'cost sharing', 'covered benefit', 'covered charges/expenses', 'covered
27
+ person', 'CPT', 'credentialing', 'creditable coverage', 'critical access
28
+ hospital', 'current procedural terminology ', 'custodial care',
29
+ 'deductible', 'deductible carry over credit', 'defensive medicine',
30
+ 'denial of claim', 'dependent', 'designated facility', 'diagnostic
31
+ related group', 'discharge planning', 'disenroll', 'DRG', 'EAPs',
32
+ 'effective date', 'eligible dependent', 'eligible expenses', 'employee
33
+ assistance programs', 'enrollee', 'EOB', 'episode of care', 'evidence of
34
+ insurability', 'exclusion period', 'exclusions and limitations',
35
+ 'explanation of benefits', 'fee schedule', 'fee-for-service', 'first
36
+ dollar coverage', 'flexible benefit plan', 'flexible spending account',
37
+ 'formulary', 'free-look period', 'FSA', 'full-time student', 'gag rule
38
+ laws', 'gatekeeper', 'general agent', 'grievance', 'group health plan',
39
+ 'guaranteed issue', 'HCFA Common Procedure Coding System', 'HCPCS',
40
+ 'HDHP', 'health care provider', 'health employer data and information
41
+ set', 'health insurance portability & accountability act', 'health
42
+ maintenance organization', 'health reimbursement arrangement', 'health
43
+ savings account', 'HEDIS', 'high deductible health plan', 'HIPAA', 'HMO',
44
+ 'home health care', 'hospice care', 'hospital care', 'hospital-surgical
45
+ coverage', 'HRA', 'HSA', 'impaired risk', 'incurral date', 'indemnity
46
+ health plan', 'independent practice associations', 'inpatient care',
47
+ 'insured ', 'international classification of diseases, 9th revision,
48
+ clinical modification icd-9-cm', 'IPA', 'lapse', 'lifetime maximum',
49
+ 'limited policy', 'major medical', 'managed care', 'master policy',
50
+ 'medicaid', 'medical necessity', 'medical savings account', 'medically
51
+ necessary', 'medicare', 'medicare supplement', 'medigap',
52
+ 'misrepresentation', 'morbidity', 'MSA', 'NAIC', 'national association of
53
+ insurance commissioners', 'national committee for quality assurance',
54
+ 'national drug code', 'NCQA', 'NDC', 'network', 'network provider',
55
+ 'noncancellable policy', 'nonrenewable', 'open enrollment',
56
+ 'out-of-network', 'out-of-plan', 'out-of-pocket costs', 'out-of-pocket
57
+ maximum', 'participating provider', 'PCP', 'permanent insurance',
58
+ 'policy', 'policy year', 'policyholder', 'portability', 'PPO',
59
+ 'pre-admission review', 'pre-admission testing', 'pre-authorization',
60
+ 'pre-certification', 'pre-existing condition', 'preferred provider
61
+ organization', 'pregnancy care', 'premium', 'preventive care', 'primary
62
+ care physician', 'prior authorization', 'provider', 'qualifying event',
63
+ 'R&C charge', 'reasonable and customary', 'referral', 'renewal', 'rider',
64
+ 'risk', 'schedule of benefits and exclusions', 'second surgical opinion',
65
+ 'self administered', 'self-insured', 'service area', 'short-term medical
66
+ insurance', 'SIC', 'skilled nursing facility', 'special benefit
67
+ networks', 'staff model', 'standard industrial classification', 'state
68
+ insurance department', 'state-mandated benefits', 'stop-loss provisions',
69
+ 'third-party payer', 'underwriting', 'urgent care', 'usual and customary
70
+ charge', 'utilization review', 'waiting period', 'well-baby care',
71
+ 'wellness office visit', 'workers compensation'
72
+ ]
73
+ end
74
+ end
@@ -65,6 +65,6 @@ module Faker
65
65
  BYTE = k((0..255).to_a.map { |n| n.to_s })
66
66
  HOSTS = k %w(gmail.com yahoo.com hotmail.com)
67
67
  DISPOSABLE_HOSTS = k %w(mailinator.com suremail.info spamherelots.com binkmail.com safetymail.info)
68
- DOMAIN_SUFFIXES = k %w(co.uk com us uk ca biz info name)
68
+ DOMAIN_SUFFIXES = k %w(co.uk com us ca biz info name)
69
69
  end
70
70
  end
@@ -22,7 +22,7 @@ module Faker
22
22
  Beast Demon Monster }
23
23
  SUFFIXES = k [ "from Hell", "from Outer Space", "from Mars", "from the Black Lagoon", "with a Thousand Faces",
24
24
  "from Across the Ocean", "Who Fell to Earth", "That Came to Dinner"]
25
-
25
+ COLORS = k %w{Red Yellow Black White}
26
26
  private
27
27
 
28
28
  def title_with_prefix
@@ -55,10 +55,10 @@ module Faker
55
55
  when 7 then "#{rand(3000)} A.D."
56
56
  when 8 then "The #{NOUNS.rand} from #{Faker::Address.neighborhood}"
57
57
  when 9 then "Christmas on #{Faker::Address.street_name}"
58
- when 10 then "The #{ %w{ Red Yellow Black White }.rand } Rose of #{Faker::AddressUK.country}"
58
+ when 10 then "The #{COLORS.rand} Rose of #{Faker::AddressUK.country}"
59
59
  when 11 then "Hard Boiled #{NOUNS.rand}"
60
60
  else
61
- String.new.tap{|s| n = simple_title; s.replace("#{n} 2: Son of #{n}")}
61
+ ::String.new.tap{|s| n = simple_title; s.replace("#{n} 2: Son of #{n}")}
62
62
  end
63
63
  end
64
64
  end
@@ -0,0 +1,28 @@
1
+ require 'helper'
2
+
3
+ class TestBaconIpsum < Test::Unit::TestCase
4
+
5
+ def test_paragraph
6
+ assert_match /1\+|[ a-z]+/i, Faker::BaconIpsum.paragraph
7
+ end
8
+
9
+ def test_sentence
10
+ assert_match /1\+|[ a-z]+/i, Faker::BaconIpsum.sentence
11
+ end
12
+
13
+ def test_paragraphs
14
+ assert_match /1\+|[ a-z]+/i, Faker::BaconIpsum.paragraphs.join(" ")
15
+ end
16
+
17
+ def test_sentences
18
+ assert_match /1\+|[ a-z]+/i, Faker::BaconIpsum.sentences.join(" ")
19
+ end
20
+
21
+ def test_words
22
+ assert_match /1\+|[ a-z]+/i, Faker::BaconIpsum.words.join(" ")
23
+ end
24
+
25
+ def test_word
26
+ assert_match /1\+|[a-z]+/i, Faker::BaconIpsum.word
27
+ end
28
+ end
@@ -8,4 +8,25 @@ class TestGeolocation < Test::Unit::TestCase
8
8
  def test_lng
9
9
  assert_match /[0-9]+/, Faker::Geolocation.lng.to_s
10
10
  end
11
+
12
+ def test_boxed_coords
13
+ coords_list = [
14
+ [[1,1], [3,3]],
15
+ [[12.3455,23.3434], [34.3434,36.34343]],
16
+ [[12.3455,23.3434], [10.3434,6.34343]]
17
+ ]
18
+
19
+ coords_list.each do |coords|
20
+ lat_min = [coords[0][0], coords[1][0]].min
21
+ lat_max = [coords[0][0], coords[1][0]].max
22
+ lon_min = [coords[0][1], coords[1][1]].min
23
+ lon_max = [coords[0][1], coords[1][1]].max
24
+
25
+ new_coords = Faker::Geolocation.boxed_coords(coords[0], coords[1])
26
+
27
+ assert (lat_min..lat_max).include?new_coords[0]
28
+ assert (lon_min..lon_max).include?new_coords[1]
29
+ end
30
+
31
+ end
11
32
  end
@@ -0,0 +1,27 @@
1
+ require 'helper'
2
+
3
+ class TestHealthcareIpsum < Test::Unit::TestCase
4
+ def test_paragraph
5
+ assert_match /1\+|[ a-z]+/i, Faker::HealthcareIpsum.paragraph
6
+ end
7
+
8
+ def test_sentence
9
+ assert_match /1\+|[ a-z]+/i, Faker::HealthcareIpsum.sentence
10
+ end
11
+
12
+ def test_paragraphs
13
+ assert_match /1\+|[ a-z]+/i, Faker::HealthcareIpsum.paragraphs.join(" ")
14
+ end
15
+
16
+ def test_sentences
17
+ assert_match /1\+|[ a-z]+/i, Faker::HealthcareIpsum.sentences.join(" ")
18
+ end
19
+
20
+ def test_words
21
+ assert_match /1\+|[ a-z]+/i, Faker::HealthcareIpsum.words.join(" ")
22
+ end
23
+
24
+ def test_word
25
+ assert_match /1\+|[a-z]+/i, Faker::HealthcareIpsum.word
26
+ end
27
+ end
metadata CHANGED
@@ -1,57 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ffaker
3
- version: !ruby/object:Gem::Version
4
- version: 1.16.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 83
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 17
9
+ - 0
10
+ version: 1.17.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Emmanuel Oga
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-07-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-08-06 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: test-unit
32
- requirement: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
33
24
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
38
32
  type: :development
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: test-unit
39
36
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :development
47
+ version_requirements: *id002
46
48
  description: Faster Faker, generates dummy data.
47
49
  email: EmmanuelOga@gmail.com
48
50
  executables: []
51
+
49
52
  extensions: []
50
- extra_rdoc_files:
53
+
54
+ extra_rdoc_files:
51
55
  - README.md
52
56
  - LICENSE
53
57
  - Changelog.md
54
- files:
58
+ files:
55
59
  - Changelog.md
56
60
  - Gemfile
57
61
  - LICENSE
@@ -69,12 +73,14 @@ files:
69
73
  - lib/ffaker/address_sn.rb
70
74
  - lib/ffaker/address_uk.rb
71
75
  - lib/ffaker/address_us.rb
76
+ - lib/ffaker/bacon_ipsum.rb
72
77
  - lib/ffaker/company.rb
73
78
  - lib/ffaker/company_se.rb
74
79
  - lib/ffaker/conference.rb
75
80
  - lib/ffaker/dizzle_ipsum.rb
76
81
  - lib/ffaker/education.rb
77
82
  - lib/ffaker/geolocation.rb
83
+ - lib/ffaker/healthcare_ipsum.rb
78
84
  - lib/ffaker/hipster_ipsum.rb
79
85
  - lib/ffaker/html_ipsum.rb
80
86
  - lib/ffaker/identification.rb
@@ -127,6 +133,7 @@ files:
127
133
  - test/test_address_uk.rb
128
134
  - test/test_address_us.rb
129
135
  - test/test_array_utils.rb
136
+ - test/test_bacon_ipsum.rb
130
137
  - test/test_company.rb
131
138
  - test/test_company_se.rb
132
139
  - test/test_conference.rb
@@ -148,6 +155,7 @@ files:
148
155
  - test/test_faker_name_se.rb
149
156
  - test/test_faker_name_sn.rb
150
157
  - test/test_geolocation.rb
158
+ - test/test_healthcare_ipsum.rb
151
159
  - test/test_hipster_ipsum.rb
152
160
  - test/test_html_ipsum.rb
153
161
  - test/test_identification.rb
@@ -169,33 +177,38 @@ files:
169
177
  - test/test_venue.rb
170
178
  homepage: http://github.com/emmanueloga/ffaker
171
179
  licenses: []
180
+
172
181
  post_install_message:
173
- rdoc_options:
182
+ rdoc_options:
174
183
  - --charset=UTF-8
175
- require_paths:
184
+ require_paths:
176
185
  - lib
177
- required_ruby_version: !ruby/object:Gem::Requirement
186
+ required_ruby_version: !ruby/object:Gem::Requirement
178
187
  none: false
179
- requirements:
180
- - - ! '>='
181
- - !ruby/object:Gem::Version
182
- version: '0'
183
- segments:
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ hash: 3
192
+ segments:
184
193
  - 0
185
- hash: 901117054328453094
186
- required_rubygems_version: !ruby/object:Gem::Requirement
194
+ version: "0"
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
187
196
  none: false
188
- requirements:
189
- - - ! '>='
190
- - !ruby/object:Gem::Version
191
- version: '0'
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ hash: 3
201
+ segments:
202
+ - 0
203
+ version: "0"
192
204
  requirements: []
205
+
193
206
  rubyforge_project: ffaker
194
207
  rubygems_version: 1.8.25
195
208
  signing_key:
196
209
  specification_version: 2
197
210
  summary: Faster Faker, generates dummy data.
198
- test_files:
211
+ test_files:
199
212
  - test/test_address.rb
200
213
  - test/test_address_au.rb
201
214
  - test/test_address_ca.rb
@@ -206,6 +219,7 @@ test_files:
206
219
  - test/test_address_uk.rb
207
220
  - test/test_address_us.rb
208
221
  - test/test_array_utils.rb
222
+ - test/test_bacon_ipsum.rb
209
223
  - test/test_company.rb
210
224
  - test/test_company_se.rb
211
225
  - test/test_conference.rb
@@ -227,6 +241,7 @@ test_files:
227
241
  - test/test_faker_name_se.rb
228
242
  - test/test_faker_name_sn.rb
229
243
  - test/test_geolocation.rb
244
+ - test/test_healthcare_ipsum.rb
230
245
  - test/test_hipster_ipsum.rb
231
246
  - test/test_html_ipsum.rb
232
247
  - test/test_identification.rb