tuvi 0.0.12 → 0.0.13

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.
data/README.md CHANGED
@@ -43,9 +43,6 @@ Here is a basic example program followed by an explanation:
43
43
  stop
44
44
  end
45
45
 
46
- run
47
-
48
-
49
46
  First, create a ruby file and on the first line require the Tuvi library with `require 'tuvi'`
50
47
 
51
48
  From here on in, the Tuvi language is used. As you can see, the program is divided into steps, which represent a step in the program where the program provides some instructions, and either prompts the user for input or simply exits.
@@ -56,8 +53,6 @@ Every step can establish one or more lines declaring an `response` which is foll
56
53
 
57
54
  Some steps, instead of having responses, can simply end the program using the `stop` keyword.
58
55
 
59
- Finally, after all the steps have been declared (but still within the class), the `run` keyword actually runs the steps.
60
-
61
56
  You can run this file like any other Ruby file, using `ruby filename.rb`.
62
57
 
63
58
  You can also add any custom Ruby code by placing it block passed to the `code` method. Also note that variables should be set as globals. For example:
data/example_program.rb CHANGED
@@ -18,5 +18,3 @@ step 3 do
18
18
  say "You've reached the end!"
19
19
  stop
20
20
  end
21
-
22
- run
data/lib/tuvi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tuvi
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/tuvi.rb CHANGED
@@ -16,3 +16,4 @@ module Tuvi
16
16
  end
17
17
 
18
18
  extend Tuvi
19
+ at_exit { run }
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.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -2205103365390497425
103
+ hash: 920541473869891771
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: -2205103365390497425
112
+ hash: 920541473869891771
113
113
  requirements: []
114
114
  rubyforge_project:
115
115
  rubygems_version: 1.8.25