dbcfaker 0.0.5 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd4924be2ee91a429bb835005156bf471d09b248
4
- data.tar.gz: 52662026b839bf953900d161c9d176806b5ab2a6
3
+ metadata.gz: a3c213b9fc51bb0415fbf32e949899d63e910aad
4
+ data.tar.gz: 6639f5355da5349d8c82c7ee54e21063d394032f
5
5
  SHA512:
6
- metadata.gz: a863ff43b8488a641707513be8bcd3eac53538749930397f1bef14cda9c6502d444d1f6f8fb12179300f70bf26db91f59756388cde2b80eaf086a3d20d60a354
7
- data.tar.gz: 1e388d628ba05642e86df49eac46a429e53d18abd75dbc38c11143493fdc93d52bdc7350985c39be827315f3c6ff57d78ce45f4744da2ea537d578b1bf775a32
6
+ metadata.gz: 458b29e316c0399b3bbc97ed37bed7d17797dd1181bac9fdfe5c6d9f5bad7fe0dbda58382523cc7c6462e9e6a33db9dffc5b557c4bd5fc8208f2ee1ca33c569c
7
+ data.tar.gz: 377384b03835d53cf997d2e21764e878b62b92216986fa41fcc379d787c8848a0b858c52b743594960a40e05d2618db0f19316c1a3f59f15f8d4d5d062291945
data/.DS_Store ADDED
Binary file
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dbc-faker.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Sam Sedighian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ DbcFaker
2
+ =====
3
+ This gem has been insipired by the original [Faker gem](https://github.com/stympy/faker/blob/master/README.md) by Benjamin Curtis and created as part of Dev BootCamp phase1 group project. Creation of this gem is in part due to our appericiation for Faker and in part as a learning exercise. We suggest you check out the original Faker gem for a much more broader support of random content generation.
4
+
5
+ ##Authors
6
+ ####In alphabetical order based on last name
7
+ Rebecca Caroline, Jonathan Berk, Jeremy Gagon and Sam Sedighian
8
+
9
+
10
+ Installing
11
+ ----------
12
+ ```bash
13
+ gem install dbcfaker
14
+ ```
15
+
16
+ ##Usage
17
+
18
+ ###DbcFaker::Name
19
+ -----
20
+ ```ruby
21
+ # Names of current student of alumni of DBC Alumni
22
+
23
+ DbcFaker::Name.name #=> "Sam Sedighian"
24
+
25
+ DbcFaker::Name.first_name #=> "Jeremy"
26
+
27
+ DbcFaker::Name.last_name #=> "Caroline"
28
+
29
+ ```
30
+
31
+ ###DbcFaker::Cohort
32
+ -----------------
33
+
34
+ ```ruby
35
+ # Actual current and previous cohorts
36
+ DbcFaker::Cohort.actual #=> "Imogeneborough"
37
+
38
+ # Random and potentially funny cohort name
39
+ DbcFaker::Cohort.bs #=> "Cuddly Ibex"
40
+
41
+ ```
42
+
43
+ ###DbcFaker::Quote
44
+ -----------------
45
+
46
+ ```ruby
47
+ # Actual quotes. #bs quotes are real too! :)
48
+
49
+ DbcFaker::Quote.actual #=> "Confusion is the state just before learning"
50
+
51
+ # Random and potentially funny cohort name
52
+ DbcFaker::Quote.bs #=> "Nap room is for napping" or "Sudocode!"
53
+
54
+ ```
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/dbcfaker.gemspec ADDED
@@ -0,0 +1,20 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('./lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'dbcfaker'
7
+ s.version = '0.1.0'
8
+ s.date = '2015-02-20'
9
+ s.summary = "dbcfaker!"
10
+ s.description = "A DBC twist on the Faker gem"
11
+ s.authors = ["Sam Sedighian", "Rebecca Holzschuh", "Jonathan Berk", "Jeremy Gagon"]
12
+ s.homepage =
13
+ 'https://github.com/Sedighian/dbcfaker'
14
+ s.license = 'MIT'
15
+
16
+ s.files = `git ls-files`.split($/)
17
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ s.require_paths = ["faker"]
19
+
20
+ end
data/lib/.DS_Store ADDED
Binary file
data/lib/dbcfaker.rb CHANGED
@@ -1,9 +1 @@
1
- require 'faker'
2
- require './name.rb'
3
- # require 'cohort'
4
- # require 'quote'
5
-
6
- module DbcFaker
7
- # hello!
8
- end
9
-
1
+ require_relative 'faker/name'
@@ -0,0 +1,12 @@
1
+ require_relative 'cohort_data.rb'
2
+
3
+
4
+ module DBCFAKER
5
+ class Cohort
6
+
7
+ def self.name
8
+ COHORTS.sample
9
+ end
10
+
11
+ end
12
+ end