safedrivingcalculator 0.0.1 → 0.0.2

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.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'calculate'
@@ -4,14 +4,21 @@ class Calculator
4
4
  def initialize (speed)
5
5
  @speed = speed
6
6
  end
7
+ puts "Enter your speed"
8
+ speed = gets
9
+ # puts speed
7
10
 
8
11
  def car_type(type)
9
12
  @car_type = type
10
13
  end
14
+ puts "Enter car type"
15
+ type = gets
11
16
 
12
17
  def distance(distance)
13
18
  @distance = distance
14
19
  end
20
+ puts "Enter distance from car"
21
+ distance = gets
15
22
 
16
23
  def calculate
17
24
  if @distance == 10
@@ -19,7 +26,6 @@ class Calculator
19
26
  else
20
27
  "unsafe"
21
28
  end
22
- end
23
29
 
24
-
30
+ end
25
31
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dan Williams
@@ -14,20 +14,21 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2014-03-01 00:00:00 -08:00
17
+ date: 2014-03-09 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
21
  description: In order to be safe
22
22
  email: dwilliams@solutionsiq.com
23
- executables: []
24
-
23
+ executables:
24
+ - safedrivingcalculator
25
25
  extensions: []
26
26
 
27
27
  extra_rdoc_files: []
28
28
 
29
29
  files:
30
30
  - lib/safedrivingcalculator.rb
31
+ - bin/safedrivingcalculator
31
32
  has_rdoc: true
32
33
  homepage: http://rubygems.org/gems/safedrivingcalculator
33
34
  licenses: