ffaker 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ == 1.13.0
2
+
3
+ Education bug fix, Faker::Job (thanks Piotr Usewicz)
4
+
1
5
  == 1.12.0
2
6
 
3
7
  Faker::AddressAU and FakkerAddressPhoneAU modules (thanks Ben Wiseley).
@@ -77,12 +77,14 @@ $ cat scripts/benchmark.rb
77
77
  * doctorbh (https://github.com/doctorbh)
78
78
  * Ben Wisleey ( https://github.com/wiseleyb )
79
79
  * Simon Russel ( https://github.com/simonrussell )
80
+ * Piotr Usewicz ( https://github.com/pusewicz )
80
81
 
81
82
  * See complete list: https://github.com/EmmanuelOga/ffaker/network
82
83
 
83
84
  == TODO
84
85
 
85
86
  * Even though the API is pretty simple, better rdoc documentation would not hurt.
87
+ * Put all modules under its respective language (E.G. EducationUS instead of just Education)
86
88
 
87
89
  == Note on Patches/Pull Requests
88
90
 
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
5
5
  s.rubygems_version = '1.3.5'
6
6
 
7
7
  s.name = 'ffaker'
8
- s.version = '1.12.1'
9
- s.date = '2012-01-09'
8
+ s.version = '1.13.0'
9
+ s.date = '2012-02-27'
10
10
  s.rubyforge_project = 'ffaker'
11
11
 
12
12
  s.summary = "Faster Faker, generates dummy data."
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
41
41
  lib/ffaker/hipster_ipsum.rb
42
42
  lib/ffaker/html_ipsum.rb
43
43
  lib/ffaker/internet.rb
44
+ lib/ffaker/job.rb
44
45
  lib/ffaker/lorem.rb
45
46
  lib/ffaker/lorem_cn.rb
46
47
  lib/ffaker/name.rb
@@ -69,6 +70,7 @@ Gem::Specification.new do |s|
69
70
  test/test_company.rb
70
71
  test/test_faker.rb
71
72
  test/test_faker_internet.rb
73
+ test/test_faker_job.rb
72
74
  test/test_faker_name.rb
73
75
  test/test_faker_name_cn.rb
74
76
  test/test_faker_name_de.rb
@@ -1,5 +1,5 @@
1
1
  module Faker
2
- VERSION = "1.12.1"
2
+ VERSION = "1.13.0"
3
3
 
4
4
  require 'ffaker/utils/array_utils'
5
5
  require 'ffaker/utils/module_utils'
@@ -25,17 +25,18 @@ module Faker
25
25
  end
26
26
 
27
27
  autoload :Address, 'ffaker/address'
28
- autoload :AddressUS, 'ffaker/address_us'
29
- autoload :AddressDE, 'ffaker/address_de'
28
+ autoload :AddressAU, 'ffaker/address_au'
30
29
  autoload :AddressCA, 'ffaker/address_ca'
30
+ autoload :AddressDE, 'ffaker/address_de'
31
31
  autoload :AddressUK, 'ffaker/address_uk'
32
- autoload :AddressAU, 'ffaker/address_au'
32
+ autoload :AddressUS, 'ffaker/address_us'
33
33
  autoload :Company, 'ffaker/company'
34
34
  autoload :Education, 'ffaker/education'
35
35
  autoload :Geolocation, 'ffaker/geolocation'
36
36
  autoload :HTMLIpsum, 'ffaker/html_ipsum'
37
37
  autoload :HipsterIpsum, 'ffaker/hipster_ipsum'
38
38
  autoload :Internet, 'ffaker/internet'
39
+ autoload :Job, 'ffaker/job'
39
40
  autoload :Lorem, 'ffaker/lorem'
40
41
  autoload :LoremCN, 'ffaker/lorem_cn'
41
42
  autoload :Name, 'ffaker/name'
@@ -45,8 +46,8 @@ module Faker
45
46
  autoload :NameRU, 'ffaker/name_ru'
46
47
  autoload :NameSN, 'ffaker/name_sn'
47
48
  autoload :PhoneNumber, 'ffaker/phone_number'
48
- autoload :PhoneNumberSN, 'ffaker/phone_number_sn'
49
49
  autoload :PhoneNumberAU, 'ffaker/phone_number_au'
50
+ autoload :PhoneNumberSN, 'ffaker/phone_number_sn'
50
51
  autoload :Product, 'ffaker/product'
51
52
  autoload :VERSION, 'ffaker/version'
52
53
  end
@@ -21,7 +21,7 @@ module Faker
21
21
 
22
22
  def school_generic_name
23
23
  case rand(2)
24
- when 0 then Address::STATE.rand
24
+ when 0 then AddressUS::STATE.rand
25
25
  when 1 then school_name
26
26
  end
27
27
  end
@@ -0,0 +1,26 @@
1
+ module Faker
2
+ module Job
3
+ extend ModuleUtils
4
+ extend self
5
+
6
+ def title
7
+ "#{JOB_PREFIX.rand} #{JOB_ADJ.rand} #{JOB_NOUN.rand}"
8
+ end
9
+
10
+ JOB_PREFIX = k %w(Lead Senior Direct Corporate Dynamic Future Product National
11
+ Regional District Central Global Customer Investor Dynamic
12
+ International Legacy Forward Internal Human Chief Principal)
13
+
14
+ JOB_ADJ = k %w(Solutions Program Brand Security Research Marketing Directives
15
+ Implementation Integration Functionality Response Paradigm Tactics
16
+ Identity Markets Group Division Applications Optimization
17
+ Operations Infrastructure Intranet Communications Web Branding
18
+ Quality Assurance Mobility Accounts Data Creative Configuration
19
+ Accountability Interactions Factors Usability Metrics)
20
+
21
+ JOB_NOUN = k %w(Supervisor Associate Executive Liason Officer Manager Engineer
22
+ Specialist Director Coordinator Administrator Architect Analyst
23
+ Designer Planner Orchestrator Technician Developer Producer
24
+ Consultant Assistant Facilitator Agent Representative Strategist)
25
+ end
26
+ end
@@ -0,0 +1,12 @@
1
+ require 'helper'
2
+
3
+ class TestFakerJob < Test::Unit::TestCase
4
+ def setup
5
+ @tester = Faker::Job
6
+ end
7
+
8
+ def test_title
9
+ assert @tester.title.match(/(\w+\.? ?){2,3}/)
10
+ end
11
+ end
12
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.13.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-09 00:00:00.000000000 Z
12
+ date: 2012-02-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Faster Faker, generates dummy data.
15
15
  email: EmmanuelOga@gmail.com
@@ -38,6 +38,7 @@ files:
38
38
  - lib/ffaker/hipster_ipsum.rb
39
39
  - lib/ffaker/html_ipsum.rb
40
40
  - lib/ffaker/internet.rb
41
+ - lib/ffaker/job.rb
41
42
  - lib/ffaker/lorem.rb
42
43
  - lib/ffaker/lorem_cn.rb
43
44
  - lib/ffaker/name.rb
@@ -66,6 +67,7 @@ files:
66
67
  - test/test_company.rb
67
68
  - test/test_faker.rb
68
69
  - test/test_faker_internet.rb
70
+ - test/test_faker_job.rb
69
71
  - test/test_faker_name.rb
70
72
  - test/test_faker_name_cn.rb
71
73
  - test/test_faker_name_de.rb
@@ -102,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  version: '0'
103
105
  requirements: []
104
106
  rubyforge_project: ffaker
105
- rubygems_version: 1.8.11
107
+ rubygems_version: 1.8.10
106
108
  signing_key:
107
109
  specification_version: 2
108
110
  summary: Faster Faker, generates dummy data.
@@ -117,6 +119,7 @@ test_files:
117
119
  - test/test_company.rb
118
120
  - test/test_faker.rb
119
121
  - test/test_faker_internet.rb
122
+ - test/test_faker_job.rb
120
123
  - test/test_faker_name.rb
121
124
  - test/test_faker_name_cn.rb
122
125
  - test/test_faker_name_de.rb