quotejar 1.0.0 → 1.0.1

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: fb901b26ff34eb8df53ba06afb502fbd964fdbc2
4
- data.tar.gz: 151b0603da06223be10b5d713a1f91df139dad5b
3
+ metadata.gz: ce3bb777cfe8ad55136256ed80608ec2aa5298d5
4
+ data.tar.gz: 564d05d827cdf92450e92786f51b5a77b91cf680
5
5
  SHA512:
6
- metadata.gz: 6c80b609a7048023a2ec21a83ee9f3e366fb5c8530445a32ecbda0512ea00158fe42b0587f62e123f4dcf0bde95f784987e464a0377737b5d5760e0c94c8d9c1
7
- data.tar.gz: f591c412c1777eabc4c6a4bff0a2c37df52e38dbfead481e07f60f0a657f3a04935425ec62161e591e1f4b71e9248254e2ec35779628f01f550010393db4a054
6
+ metadata.gz: 06deeb6f6edaaf15141f1d0cf6ebd0d32c072c034a6b9a7f7f15119359be0e604996d5c16b06c9788c698ff9797bd9b892cecaffac9138e377f5ae00666a8e03
7
+ data.tar.gz: 5a600d621ea1b1fc0fb656a4dd8454090979f292d4b5d726b84a7967ff63adf860ded44fa206c5c239e40fbce0d29c23971eb7197c7b66754596173931755574
data/Jen.yaml ADDED
@@ -0,0 +1,7 @@
1
+ --- !ruby/object:Kids
2
+ name: Jen
3
+ birth_date: 1978-04-03 00:00:00.000000000 -06:00
4
+ quotes:
5
+ 2015-06-08 16:22:02.431340000 -05:00:
6
+ - hi
7
+ - 37.181766751316324
data/Sally.yaml CHANGED
@@ -1,10 +1,4 @@
1
1
  --- !ruby/object:Kids
2
2
  name: Sally
3
- birth_date: 2015-06-08 16:00:28.742821000 -05:00
4
- quotes:
5
- 2015-06-08 16:02:19.402014000 -05:00:
6
- - This is my first gem
7
- - 3.5065782252135778e-06
8
- 2003-05-13 00:00:00.000000000 -05:00:
9
- - I said this before I was even born!
10
- - -12.073010265128557
3
+ birth_date: 2015-06-08 16:15:32.053664000 -05:00
4
+ quotes: {}
data/lib/quotejar.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
- require './lib/quotejar/age'
3
- require './lib/quotejar/kids'
2
+ require './lib/quotejar/age.rb'
3
+ require './lib/quotejar/kids.rb'
4
4
 
5
5
  def load_kid(name) # loads kid object from .yaml file
6
6
  File.open("./#{name}.yaml", 'r') do |file|
@@ -12,6 +12,7 @@ require './lib/quotejar/kids'
12
12
  include Age
13
13
  puts "A file for this child doesn't exist. Do you want to add the child?"
14
14
  puts "Type 'Y' for yes or 'N' for no, which will return you to the beginning."
15
+ puts "Type 'Q' to quit."
15
16
  prompt
16
17
  answer = gets.chomp.downcase
17
18
  if answer == 'y'
@@ -20,8 +21,10 @@ require './lib/quotejar/kids'
20
21
  kid.save_kid
21
22
  puts "We've created a file for #{name}. Now what would you like to do?"
22
23
  kid.options
23
- else
24
+ elsif answer == 'n'
24
25
  start
26
+ else
27
+ puts "Goodbye!"
25
28
  end
26
29
  end
27
30
 
@@ -1,3 +1,3 @@
1
1
  module Quotejar
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quotejar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jen Trudell
@@ -49,6 +49,7 @@ files:
49
49
  - ".gitignore"
50
50
  - ".travis.yml"
51
51
  - Gemfile
52
+ - Jen.yaml
52
53
  - LICENSE.txt
53
54
  - README.md
54
55
  - Rakefile