dbcfaker 0.1.3 → 0.1.4

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: fa6bb64e4b971f9112086a6b4c1bcbb5ef80d38d
4
- data.tar.gz: c0014751297f281d450cd4f87ade68efe7d08e16
3
+ metadata.gz: f14b598e721ebb48dc313ef1904e3f4bd3668d9c
4
+ data.tar.gz: 5e6ae112899ecf9cbd50fb96acca943f65780f2b
5
5
  SHA512:
6
- metadata.gz: 3888ef727658324ebd916d53e9d787f59305ddeda8181d3b1b3eb32c51d13527ac7b090d2656c59053dd38cbc2936e23b20342a446f6980c2edd9650f2f86628
7
- data.tar.gz: b01a04c1a998fa730019d253b2465110ef0c1e1b99fc28de6bc13697ae1579a83f61b537eef203929878d4521dd164e1c6c77aa4557275f9f39e8e8644e9d44c
6
+ metadata.gz: 696ecf43b9d4b0a1f98324f3a3f06e8e5588945ec83fc3e7e6ee0102d1adffb23bd2d7af12c055552395a7eadc17fa06ebd8a6e5fc0c4b9b0ab6e03e0a3f8a7a
7
+ data.tar.gz: 4f11b9301dbd8b117dd3d4d88e102a1cec50611cd455be5183bc49302a462739b80ebc29d041d7b5c1b1fe956565fa0377666054232d9e78aa940d0e3896d8f8
data/dbcfaker.gemspec CHANGED
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'dbcfaker'
7
- s.version = '0.1.3'
8
- s.date = '2015-02-20'
7
+ s.version = '0.1.4'
8
+ s.date = '2015-03-29'
9
9
  s.summary = "dbcfaker!"
10
10
  s.description = "A DBC twist on the Faker gem"
11
11
  s.authors = ["Sam Sedighian", "Rebecca Holzschuh", "Jonathan Berk", "Jeremy Gagon"]
@@ -0,0 +1,18 @@
1
+ RESOURCES = [["Harvard: How Much Exercise is Enough?", "http://news.harvard.edu/gazette/story/2012/11/how-much-exercise-is-enough/"],["American Heart Association: Physical Activity and Quality of Life", "http://www.heart.org/HEARTORG/GettingHealthy/PhysicalActivity/FitnessBasics/Physical-activity-improves-quality-of-life_UCM_307977_Article.jsp"],["NIH: Physical Activity and Life Expectancy", "http://www.cancer.gov/newscenter/newsfromnci/2012/PhysicalActivityLifeExpectancy"], ["CDC: Physical Activity", "http://www.cdc.gov/physicalactivity/"], ["Health.gov: Physical Activity", "https://www.healthypeople.gov/2020/topics-objectives/topic/physical-activity"]
2
+ ]
3
+
4
+ module DbcFaker
5
+ class Resource
6
+ def self.resource
7
+ RESOURCES.sample
8
+ end
9
+
10
+ def self.title
11
+ RESOURCES.sample[0]
12
+ end
13
+
14
+ def self.link
15
+ RESOURCES.sample[1]
16
+ end
17
+ end
18
+ end
data/lib/faker/tips.rb ADDED
@@ -0,0 +1,18 @@
1
+ TIPS = [["Jessica G: PowerWalk", "https://sleepy-dawn-7566.herokuapp.com/"],["AMA: 10 Tips to Increase Fitness", "http://www.heart.org/HEARTORG/GettingHealthy/PhysicalActivity/GettingActive/No-time-for-exercise-Try-our-Top-10-Tips-to-get-more_UCM_442855_Article.jsp"],["Harvard: Tips for Getting Exercise in Your Life", "http://www.hsph.harvard.edu/nutritionsource/tips-for-getting-exercise-into-your-life/"], ["Balanced Life Team: Ways to Improve Your Fitness", "http://balancedlifeteam.com/simple-ways-to-improve-your-fitness-level/"], ["NIH: Physical Actvity Tools and Resources", "http://www.nhlbi.nih.gov/health/educational/wecan/tools-resources/physical-activity.htm"]
2
+ ]
3
+
4
+ module DbcFaker
5
+ class Tip
6
+ def self.tip
7
+ TIPS.sample
8
+ end
9
+
10
+ def self.title
11
+ TIPS.sample[0]
12
+ end
13
+
14
+ def self.link
15
+ TIPS.sample[1]
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbcfaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Sedighian
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-02-20 00:00:00.000000000 Z
14
+ date: 2015-03-29 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: A DBC twist on the Faker gem
17
17
  email:
@@ -47,6 +47,8 @@ files:
47
47
  - lib/faker/cohort_data.rb
48
48
  - lib/faker/name.rb
49
49
  - lib/faker/quote.rb
50
+ - lib/faker/resources.rb
51
+ - lib/faker/tips.rb
50
52
  homepage: https://github.com/Sedighian/dbcfaker
51
53
  licenses:
52
54
  - MIT