church_faker 0.0.1 → 0.0.4

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
  SHA1:
3
- metadata.gz: cef2b103f3dee31bdc43359c9e25bbd5886b1284
4
- data.tar.gz: 929f45e6825201c1b5c3685b8df503aa968a9577
3
+ metadata.gz: b22c625dda04fb12dc1dc8753d027e087734930c
4
+ data.tar.gz: 2b6157cae68d0a352496e9ba2d6b422cf4865e0c
5
5
  SHA512:
6
- metadata.gz: cabd8853c8d4512ff170604bd2876317c1822297f4dee1618f7974a8d2937b467faae71dfe84ba20952d311d24fa0180999be2a87bdafb4331ceb060068f3e9a
7
- data.tar.gz: f84cf48f1c8271234ffa6ad0180d41f2cefdcd37d8114cd51a1bb34ce2a5a7a32146456bf96edf330fc90e2f8d2b726fccc51bcdf8abb4676f68ddd508ff6553
6
+ metadata.gz: 952782eb996d2e1ba07c5d9e68dd8f7d7827378808a6c7c9d2243bd5663e772e5ccbefbd90bb961f38edcade875e3fb3797e6c1e809de0bd0cf2d83f80c2a28d
7
+ data.tar.gz: f6f45f09e68c1dd36082eac59312190c503bb9136464b00f245fd45b491dc0b6044227f9b8e4eade69b08be3ebe98ebcc09f368120d84f0367fcd335bb5b6809
data/README.md CHANGED
@@ -19,7 +19,8 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
  Faker::Church.name
22
-
22
+ => "First United Church of Lake Ayana"
23
+
23
24
  ## Contributing
24
25
 
25
26
  1. Fork it ( http://github.com/<my-github-username>/church_faker/fork )
@@ -0,0 +1,32 @@
1
+ module FFaker
2
+ module Church
3
+ extend ModuleUtils
4
+ extend self
5
+
6
+ def job_title
7
+ case rand(3)
8
+ when 0 then "#{level} #{descriptor} #{job}"
9
+ when 1 then "#{descriptor} #{job}"
10
+ when 2 then "#{level} #{job}"
11
+ end
12
+ end
13
+
14
+ private
15
+ def level
16
+ LEVELS.sample
17
+ end
18
+
19
+ def descriptor
20
+ DESCRIPTORS.sample
21
+ end
22
+
23
+ def job
24
+ JOBS.sample
25
+ end
26
+
27
+ LEVELS = k %w[Senior Campus Central Internal Associate Executive] unless const_defined? :LEVELS
28
+ DESCRIPTORS = k %w[Administrative Children's Connections Creative Facilities High\ School Middle\ School Ministry Operations Preschool Small\ Groups Spiritual\ Formation Worship Youth] unless const_defined? :DESCRIPTORS
29
+ JOBS = k %w[Assistant Director Intern Leader Minister Pastor] unless const_defined? :JOBS
30
+
31
+ end
32
+ end
@@ -0,0 +1,56 @@
1
+ module FFaker
2
+ module Church
3
+ extend ModuleUtils
4
+ extend self
5
+
6
+ def name
7
+ case rand(7)
8
+ when 0 then "#{number} Church of #{city}"
9
+ when 1 then "#{number} #{denomination} Church of #{city}"
10
+ when 2 then "#{city} #{denomination}"
11
+ when 3 then "#{city} #{church}"
12
+ when 4 then "#{cheese_name}"
13
+ when 5 then "#{city} #{denomination} #{church}"
14
+ when 6 then "#{city_prefix} #{body_of_water} #{church}"
15
+ end
16
+ end
17
+
18
+ private
19
+ def number
20
+ NUMBERS.sample
21
+ end
22
+
23
+ def city
24
+ FFaker::Address.city
25
+ end
26
+
27
+ def city_prefix
28
+ FFaker::Address.city_prefix
29
+ end
30
+
31
+ def cheese_name
32
+ CHEESE_NAMES.sample
33
+ end
34
+
35
+ def denomination
36
+ DENOMINATIONS.sample
37
+ end
38
+
39
+ def body_of_water
40
+ BODIES_OF_WATER.sample
41
+ end
42
+
43
+ def church
44
+ case rand(2)
45
+ when 0 then CHURCH_TYPES.sample
46
+ when 1 then "Church"
47
+ end
48
+ end
49
+
50
+ NUMBERS = k %w[First Second Third Last Forty-Second] unless const_defined? :NUMBERS
51
+ CHEESE_NAMES = k %w[Churchopolis Crosspointe Elevate Encounter Insurgence Kinetic Pulse Recreate Reproduce Resurgence StarChurch TheConnectingPoint TheCore Veritas Verve Victory] unless const_defined? :CHEESE_NAMES
52
+ DENOMINATIONS = k %w[Baptist Catholic Charismatic Christian Evangelical Foursquare Lutheran Pentecostal Presbyterian Reformed United] unless const_defined? :DENOMINATIONS
53
+ BODIES_OF_WATER = k %w[Bay Beach Brook Cove Creek Gulf Harbor Lake Lagoon River Sea Sound Spring] unless const_defined? :BODIES_OF_WATER
54
+ CHURCH_TYPES = k %w[Assembly Chapel Christian\ Center Church Fellowship Ministries Parish Tabernacle] unless const_defined? :CHURCH_TYPES
55
+ end
56
+ end
@@ -1,3 +1,3 @@
1
1
  module ChurchFaker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/church_faker.rb CHANGED
@@ -1,38 +1,3 @@
1
1
  require 'ffaker'
2
- module Faker
3
- module Church
4
- extend ModuleUtils
5
- extend self
6
-
7
- def name
8
- case rand(5)
9
- when 0 then "#{number} Church of #{city}"
10
- when 1 then "#{number} #{denomination} Church of #{city}"
11
- when 2 then "#{city} #{denomination}"
12
- when 3 then "#{city} Church"
13
- when 4 then "#{cheese_name}"
14
- end
15
- end
16
-
17
- private
18
- def number
19
- NUMBERS.sample
20
- end
21
-
22
- def city
23
- Faker::Address.city
24
- end
25
-
26
- def cheese_name
27
- CHEESE_NAMES.sample
28
- end
29
-
30
- def denomination
31
- DENOMINATIONS.sample
32
- end
33
-
34
- NUMBERS = k %w[First Second Third Last Forty-Second] unless const_defined? :NUMBERS
35
- CHEESE_NAMES = k %w[Elevate Crosspointe Recreate Encounter Kinetic Pulse Resurgence TheCore StarChurch Churchopolis Reproduce Verve Insurgence TheConnectingPoint] unless const_defined? :CHEESE_NAMES
36
- DENOMINATIONS = k %w[Evangelical Christian Pentecostal Lutheran Catholic Reformed Presbyterian Baptist Charismatic United] unless const_defined? :DENOMINATIONS
37
- end
38
- end
2
+ require 'church_faker/name'
3
+ require 'church_faker/job_title'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: church_faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Murphy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-25 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,8 @@ files:
66
66
  - Rakefile
67
67
  - church_faker.gemspec
68
68
  - lib/church_faker.rb
69
+ - lib/church_faker/job_title.rb
70
+ - lib/church_faker/name.rb
69
71
  - lib/church_faker/version.rb
70
72
  homepage: https://github.com/danielmurphy/church-faker
71
73
  licenses:
@@ -87,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
89
  version: '0'
88
90
  requirements: []
89
91
  rubyforge_project:
90
- rubygems_version: 2.2.0
92
+ rubygems_version: 2.2.2
91
93
  signing_key:
92
94
  specification_version: 4
93
95
  summary: Generates fake church names