tuvi 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tuvi/version.rb +1 -1
- data/lib/tuvi.rb +6 -0
- metadata +3 -4
- data/Gemfile.lock +0 -27
data/lib/tuvi/version.rb
CHANGED
data/lib/tuvi.rb
CHANGED
@@ -20,6 +20,7 @@ module Tuvi
|
|
20
20
|
exit if @steps[current_step].exit_program
|
21
21
|
puts @steps[current_step].formatted_answers
|
22
22
|
input = gets.downcase.chomp
|
23
|
+
exit_program if input == "exit"
|
23
24
|
determine_next_step(current_step, input)
|
24
25
|
end
|
25
26
|
|
@@ -33,6 +34,11 @@ module Tuvi
|
|
33
34
|
next_step
|
34
35
|
end
|
35
36
|
|
37
|
+
def exit_program
|
38
|
+
puts "Bye!"
|
39
|
+
exit
|
40
|
+
end
|
41
|
+
|
36
42
|
end
|
37
43
|
|
38
44
|
extend Tuvi
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuvi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -69,7 +69,6 @@ files:
|
|
69
69
|
- .DS_Store
|
70
70
|
- .gitignore
|
71
71
|
- Gemfile
|
72
|
-
- Gemfile.lock
|
73
72
|
- LICENSE.txt
|
74
73
|
- README.md
|
75
74
|
- Rakefile
|
@@ -97,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
96
|
version: '0'
|
98
97
|
segments:
|
99
98
|
- 0
|
100
|
-
hash:
|
99
|
+
hash: 3499381177603921583
|
101
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
101
|
none: false
|
103
102
|
requirements:
|
@@ -106,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
105
|
version: '0'
|
107
106
|
segments:
|
108
107
|
- 0
|
109
|
-
hash:
|
108
|
+
hash: 3499381177603921583
|
110
109
|
requirements: []
|
111
110
|
rubyforge_project:
|
112
111
|
rubygems_version: 1.8.25
|
data/Gemfile.lock
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
tuvi (0.0.4)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.2.4)
|
10
|
-
rake (10.1.0)
|
11
|
-
rspec (2.14.1)
|
12
|
-
rspec-core (~> 2.14.0)
|
13
|
-
rspec-expectations (~> 2.14.0)
|
14
|
-
rspec-mocks (~> 2.14.0)
|
15
|
-
rspec-core (2.14.5)
|
16
|
-
rspec-expectations (2.14.2)
|
17
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
18
|
-
rspec-mocks (2.14.3)
|
19
|
-
|
20
|
-
PLATFORMS
|
21
|
-
ruby
|
22
|
-
|
23
|
-
DEPENDENCIES
|
24
|
-
bundler (~> 1.3)
|
25
|
-
rake
|
26
|
-
rspec
|
27
|
-
tuvi!
|