rtt 0.0.0.21 → 0.0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/Manifest +1 -31
  2. data/Rakefile +2 -2
  3. data/db/rtt.sqlite3 +0 -0
  4. data/db/test.sqlite3 +0 -0
  5. data/lib/rtt.rb +3 -1
  6. data/lib/rtt/cmd_line_parser.rb +13 -1
  7. data/lib/rtt/storage.rb +12 -0
  8. data/rtt.gemspec +6 -6
  9. metadata +14 -36
  10. data/todo.txt +0 -1
  11. data/vendor/highline-1.5.2/CHANGELOG +0 -227
  12. data/vendor/highline-1.5.2/INSTALL +0 -41
  13. data/vendor/highline-1.5.2/LICENSE +0 -7
  14. data/vendor/highline-1.5.2/README +0 -63
  15. data/vendor/highline-1.5.2/Rakefile +0 -82
  16. data/vendor/highline-1.5.2/TODO +0 -6
  17. data/vendor/highline-1.5.2/examples/ansi_colors.rb +0 -38
  18. data/vendor/highline-1.5.2/examples/asking_for_arrays.rb +0 -18
  19. data/vendor/highline-1.5.2/examples/basic_usage.rb +0 -75
  20. data/vendor/highline-1.5.2/examples/color_scheme.rb +0 -32
  21. data/vendor/highline-1.5.2/examples/limit.rb +0 -12
  22. data/vendor/highline-1.5.2/examples/menus.rb +0 -65
  23. data/vendor/highline-1.5.2/examples/overwrite.rb +0 -19
  24. data/vendor/highline-1.5.2/examples/page_and_wrap.rb +0 -322
  25. data/vendor/highline-1.5.2/examples/password.rb +0 -7
  26. data/vendor/highline-1.5.2/examples/trapping_eof.rb +0 -22
  27. data/vendor/highline-1.5.2/examples/using_readline.rb +0 -17
  28. data/vendor/highline-1.5.2/lib/highline.rb +0 -758
  29. data/vendor/highline-1.5.2/lib/highline/color_scheme.rb +0 -120
  30. data/vendor/highline-1.5.2/lib/highline/compatibility.rb +0 -17
  31. data/vendor/highline-1.5.2/lib/highline/import.rb +0 -43
  32. data/vendor/highline-1.5.2/lib/highline/menu.rb +0 -395
  33. data/vendor/highline-1.5.2/lib/highline/question.rb +0 -463
  34. data/vendor/highline-1.5.2/lib/highline/system_extensions.rb +0 -240
  35. data/vendor/highline-1.5.2/setup.rb +0 -1360
  36. data/vendor/highline-1.5.2/test/tc_color_scheme.rb +0 -56
  37. data/vendor/highline-1.5.2/test/tc_highline.rb +0 -823
  38. data/vendor/highline-1.5.2/test/tc_import.rb +0 -54
  39. data/vendor/highline-1.5.2/test/tc_menu.rb +0 -429
  40. data/vendor/highline-1.5.2/test/ts_all.rb +0 -15
data/Manifest CHANGED
@@ -5,6 +5,7 @@ Rakefile
5
5
  USAGE.txt
6
6
  bin/rtt
7
7
  db/rtt.sqlite3
8
+ db/test.sqlite3
8
9
  lib/rtt.rb
9
10
  lib/rtt/array_extensions.rb
10
11
  lib/rtt/client.rb
@@ -23,34 +24,3 @@ spec/datamapper_spec_helper.rb
23
24
  spec/lib/rtt/task_spec.rb
24
25
  spec/lib/rtt_spec.rb
25
26
  tasks/rtt.rake
26
- todo.txt
27
- vendor/highline-1.5.2/CHANGELOG
28
- vendor/highline-1.5.2/INSTALL
29
- vendor/highline-1.5.2/LICENSE
30
- vendor/highline-1.5.2/README
31
- vendor/highline-1.5.2/Rakefile
32
- vendor/highline-1.5.2/TODO
33
- vendor/highline-1.5.2/examples/ansi_colors.rb
34
- vendor/highline-1.5.2/examples/asking_for_arrays.rb
35
- vendor/highline-1.5.2/examples/basic_usage.rb
36
- vendor/highline-1.5.2/examples/color_scheme.rb
37
- vendor/highline-1.5.2/examples/limit.rb
38
- vendor/highline-1.5.2/examples/menus.rb
39
- vendor/highline-1.5.2/examples/overwrite.rb
40
- vendor/highline-1.5.2/examples/page_and_wrap.rb
41
- vendor/highline-1.5.2/examples/password.rb
42
- vendor/highline-1.5.2/examples/trapping_eof.rb
43
- vendor/highline-1.5.2/examples/using_readline.rb
44
- vendor/highline-1.5.2/lib/highline.rb
45
- vendor/highline-1.5.2/lib/highline/color_scheme.rb
46
- vendor/highline-1.5.2/lib/highline/compatibility.rb
47
- vendor/highline-1.5.2/lib/highline/import.rb
48
- vendor/highline-1.5.2/lib/highline/menu.rb
49
- vendor/highline-1.5.2/lib/highline/question.rb
50
- vendor/highline-1.5.2/lib/highline/system_extensions.rb
51
- vendor/highline-1.5.2/setup.rb
52
- vendor/highline-1.5.2/test/tc_color_scheme.rb
53
- vendor/highline-1.5.2/test/tc_highline.rb
54
- vendor/highline-1.5.2/test/tc_import.rb
55
- vendor/highline-1.5.2/test/tc_menu.rb
56
- vendor/highline-1.5.2/test/ts_all.rb
data/Rakefile CHANGED
@@ -3,13 +3,13 @@ require 'echoe'
3
3
 
4
4
  # PACKAGING ============================================================
5
5
 
6
- Echoe.new('rtt', '0.0.0.21') do |p|
6
+ Echoe.new('rtt', '0.0.0.22') do |p|
7
7
  p.description = 'RTT is a tool for tracking time'
8
8
  p.url = 'http://github.com/marklazz/rtt'
9
9
  p.author = 'Marcelo Giorgi'
10
10
  p.email = 'marklazz.uy@gmail.com'
11
11
  p.ignore_pattern = [ 'tmp/*', 'script/*', '*.sh' ]
12
- p.runtime_dependencies = [ ['highline', ">= 1.5.2"], ['activesupport', '>= 2.3.0'], ['prawn', '>= 0.8.0'], ['dm-core', '>= 1.0.0'], [ 'dm-validations', '>= 1.0.0'], [ 'dm-migrations', '>= 1.0.0'], 'dm-sqlite-adapter' ]
12
+ p.runtime_dependencies = [ ['highline', ">= 1.5.2"], ['activesupport', '>= 2.3.0', '< 3.0.0'], ['prawn', '>= 0.8.0'], ['dm-core', '>= 1.0.0'], [ 'dm-validations', '>= 1.0.0'], [ 'dm-migrations', '>= 1.0.0'], 'dm-sqlite-adapter' ]
13
13
  p.development_dependencies = [ 'spec' ]
14
14
  end
15
15
 
data/db/rtt.sqlite3 CHANGED
Binary file
data/db/test.sqlite3 ADDED
Binary file
data/lib/rtt.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
- %w( rubygems dm-core dm-validations dm-migrations active_support highline/import).each { |lib| require lib }
2
+ require 'rubygems'
3
+ gem 'activesupport', [ '>= 2.3.x', '< 3.x.x' ]
4
+ %w( activesupport dm-core dm-validations dm-migrations highline/import).each { |lib| require lib }
3
5
  Dir[File.expand_path(File.join(File.dirname(__FILE__), 'rtt', '*'))].each { |lib| require lib; }
4
6
 
5
7
  module Rtt
@@ -13,6 +13,12 @@ module Rtt
13
13
  class DeleteCommand < Command
14
14
  NUMBER_OF_PARAM_REQUIRED = 0
15
15
  end
16
+ class ExportCommand < Command
17
+ NUMBER_OF_PARAM_REQUIRED = 1
18
+ end
19
+ class ImportCommand < Command
20
+ NUMBER_OF_PARAM_REQUIRED = 1
21
+ end
16
22
  class PauseCommand < Command
17
23
  NUMBER_OF_PARAM_REQUIRED = 0
18
24
  end
@@ -58,7 +64,9 @@ module Rtt
58
64
  :resume => StartCommand,
59
65
  :user => SetUserCommand,
60
66
  :delete => DeleteCommand,
61
- :configure => ConfigureCommand
67
+ :configure => ConfigureCommand,
68
+ :export => ExportCommand,
69
+ :import => ImportCommand
62
70
  }
63
71
 
64
72
  def capture(arguments)
@@ -133,6 +141,10 @@ module Rtt
133
141
  list(env_filters)
134
142
  when SetUserCommand
135
143
  set_user(cmd.name)
144
+ when ImportCommand
145
+ import(cmd.name)
146
+ when ExportCommand
147
+ export(cmd.name)
136
148
  when DeleteCommand
137
149
  name = cmd.name
138
150
  options = name.present? ? env_filters.merge!(:name => name) : env_filters
data/lib/rtt/storage.rb CHANGED
@@ -2,6 +2,18 @@
2
2
  module Rtt
3
3
  module Storage
4
4
 
5
+ DEFAULT_STORAGE_NAME = :rtt
6
+
7
+ def export filename
8
+ require 'fileutils'
9
+ FileUtils.cp(File.join( File.dirname(__FILE__), '..', '..', 'db', "#{DEFAULT_STORAGE_NAME.to_s}.sqlite3"), filename)
10
+ end
11
+
12
+ def import filename
13
+ require 'fileutils'
14
+ FileUtils.cp(filename, File.join( File.dirname(__FILE__), '..', '..', 'db', "#{DEFAULT_STORAGE_NAME.to_s}.sqlite3"))
15
+ end
16
+
5
17
  def init(database = :rtt)
6
18
  DataMapper.setup(:default, {:adapter => "sqlite3", :database => File.join( File.dirname(__FILE__), '..', '..', 'db', "#{database.to_s}.sqlite3") })
7
19
  migrate unless missing_tables
data/rtt.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rtt}
5
- s.version = "0.0.0.21"
5
+ s.version = "0.0.0.22"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marcelo Giorgi"]
9
- s.date = %q{2010-06-30}
9
+ s.date = %q{2010-07-03}
10
10
  s.default_executable = %q{rtt}
11
11
  s.description = %q{RTT is a tool for tracking time}
12
12
  s.email = %q{marklazz.uy@gmail.com}
13
13
  s.executables = ["rtt"]
14
14
  s.extra_rdoc_files = ["LICENSE", "README.rdoc", "bin/rtt", "lib/rtt.rb", "lib/rtt/array_extensions.rb", "lib/rtt/client.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/hash_extensions.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/project.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "lib/rtt/task.rb", "lib/rtt/user.rb", "tasks/rtt.rake"]
15
- s.files = ["LICENSE", "Manifest", "README.rdoc", "Rakefile", "USAGE.txt", "bin/rtt", "db/rtt.sqlite3", "lib/rtt.rb", "lib/rtt/array_extensions.rb", "lib/rtt/client.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/hash_extensions.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/project.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "lib/rtt/task.rb", "lib/rtt/user.rb", "log/rtt.sqlite3", "rtt.gemspec", "spec/datamapper_spec_helper.rb", "spec/lib/rtt/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "todo.txt", "vendor/highline-1.5.2/CHANGELOG", "vendor/highline-1.5.2/INSTALL", "vendor/highline-1.5.2/LICENSE", "vendor/highline-1.5.2/README", "vendor/highline-1.5.2/Rakefile", "vendor/highline-1.5.2/TODO", "vendor/highline-1.5.2/examples/ansi_colors.rb", "vendor/highline-1.5.2/examples/asking_for_arrays.rb", "vendor/highline-1.5.2/examples/basic_usage.rb", "vendor/highline-1.5.2/examples/color_scheme.rb", "vendor/highline-1.5.2/examples/limit.rb", "vendor/highline-1.5.2/examples/menus.rb", "vendor/highline-1.5.2/examples/overwrite.rb", "vendor/highline-1.5.2/examples/page_and_wrap.rb", "vendor/highline-1.5.2/examples/password.rb", "vendor/highline-1.5.2/examples/trapping_eof.rb", "vendor/highline-1.5.2/examples/using_readline.rb", "vendor/highline-1.5.2/lib/highline.rb", "vendor/highline-1.5.2/lib/highline/color_scheme.rb", "vendor/highline-1.5.2/lib/highline/compatibility.rb", "vendor/highline-1.5.2/lib/highline/import.rb", "vendor/highline-1.5.2/lib/highline/menu.rb", "vendor/highline-1.5.2/lib/highline/question.rb", "vendor/highline-1.5.2/lib/highline/system_extensions.rb", "vendor/highline-1.5.2/setup.rb", "vendor/highline-1.5.2/test/tc_color_scheme.rb", "vendor/highline-1.5.2/test/tc_highline.rb", "vendor/highline-1.5.2/test/tc_import.rb", "vendor/highline-1.5.2/test/tc_menu.rb", "vendor/highline-1.5.2/test/ts_all.rb"]
15
+ s.files = ["LICENSE", "Manifest", "README.rdoc", "Rakefile", "USAGE.txt", "bin/rtt", "db/rtt.sqlite3", "db/test.sqlite3", "lib/rtt.rb", "lib/rtt/array_extensions.rb", "lib/rtt/client.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/hash_extensions.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/project.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "lib/rtt/task.rb", "lib/rtt/user.rb", "log/rtt.sqlite3", "spec/datamapper_spec_helper.rb", "spec/lib/rtt/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "rtt.gemspec"]
16
16
  s.homepage = %q{http://github.com/marklazz/rtt}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rtt", "--main", "README.rdoc"]
18
18
  s.require_paths = ["lib"]
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
 
27
27
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
28
  s.add_runtime_dependency(%q<highline>, [">= 1.5.2"])
29
- s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
29
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0", "< 3.0.0"])
30
30
  s.add_runtime_dependency(%q<prawn>, [">= 0.8.0"])
31
31
  s.add_runtime_dependency(%q<dm-core>, [">= 1.0.0"])
32
32
  s.add_runtime_dependency(%q<dm-validations>, [">= 1.0.0"])
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.add_development_dependency(%q<spec>, [">= 0"])
36
36
  else
37
37
  s.add_dependency(%q<highline>, [">= 1.5.2"])
38
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
38
+ s.add_dependency(%q<activesupport>, [">= 2.3.0", "< 3.0.0"])
39
39
  s.add_dependency(%q<prawn>, [">= 0.8.0"])
40
40
  s.add_dependency(%q<dm-core>, [">= 1.0.0"])
41
41
  s.add_dependency(%q<dm-validations>, [">= 1.0.0"])
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
45
45
  end
46
46
  else
47
47
  s.add_dependency(%q<highline>, [">= 1.5.2"])
48
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
48
+ s.add_dependency(%q<activesupport>, [">= 2.3.0", "< 3.0.0"])
49
49
  s.add_dependency(%q<prawn>, [">= 0.8.0"])
50
50
  s.add_dependency(%q<dm-core>, [">= 1.0.0"])
51
51
  s.add_dependency(%q<dm-validations>, [">= 1.0.0"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 101
4
+ hash: 99
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 0
10
- - 21
11
- version: 0.0.0.21
10
+ - 22
11
+ version: 0.0.0.22
12
12
  platform: ruby
13
13
  authors:
14
14
  - Marcelo Giorgi
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-06-30 00:00:00 -03:00
19
+ date: 2010-07-03 00:00:00 -03:00
20
20
  default_executable: rtt
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,14 @@ dependencies:
49
49
  - 3
50
50
  - 0
51
51
  version: 2.3.0
52
+ - - <
53
+ - !ruby/object:Gem::Version
54
+ hash: 7
55
+ segments:
56
+ - 3
57
+ - 0
58
+ - 0
59
+ version: 3.0.0
52
60
  type: :runtime
53
61
  version_requirements: *id002
54
62
  - !ruby/object:Gem::Dependency
@@ -174,6 +182,7 @@ files:
174
182
  - USAGE.txt
175
183
  - bin/rtt
176
184
  - db/rtt.sqlite3
185
+ - db/test.sqlite3
177
186
  - lib/rtt.rb
178
187
  - lib/rtt/array_extensions.rb
179
188
  - lib/rtt/client.rb
@@ -187,42 +196,11 @@ files:
187
196
  - lib/rtt/task.rb
188
197
  - lib/rtt/user.rb
189
198
  - log/rtt.sqlite3
190
- - rtt.gemspec
191
199
  - spec/datamapper_spec_helper.rb
192
200
  - spec/lib/rtt/task_spec.rb
193
201
  - spec/lib/rtt_spec.rb
194
202
  - tasks/rtt.rake
195
- - todo.txt
196
- - vendor/highline-1.5.2/CHANGELOG
197
- - vendor/highline-1.5.2/INSTALL
198
- - vendor/highline-1.5.2/LICENSE
199
- - vendor/highline-1.5.2/README
200
- - vendor/highline-1.5.2/Rakefile
201
- - vendor/highline-1.5.2/TODO
202
- - vendor/highline-1.5.2/examples/ansi_colors.rb
203
- - vendor/highline-1.5.2/examples/asking_for_arrays.rb
204
- - vendor/highline-1.5.2/examples/basic_usage.rb
205
- - vendor/highline-1.5.2/examples/color_scheme.rb
206
- - vendor/highline-1.5.2/examples/limit.rb
207
- - vendor/highline-1.5.2/examples/menus.rb
208
- - vendor/highline-1.5.2/examples/overwrite.rb
209
- - vendor/highline-1.5.2/examples/page_and_wrap.rb
210
- - vendor/highline-1.5.2/examples/password.rb
211
- - vendor/highline-1.5.2/examples/trapping_eof.rb
212
- - vendor/highline-1.5.2/examples/using_readline.rb
213
- - vendor/highline-1.5.2/lib/highline.rb
214
- - vendor/highline-1.5.2/lib/highline/color_scheme.rb
215
- - vendor/highline-1.5.2/lib/highline/compatibility.rb
216
- - vendor/highline-1.5.2/lib/highline/import.rb
217
- - vendor/highline-1.5.2/lib/highline/menu.rb
218
- - vendor/highline-1.5.2/lib/highline/question.rb
219
- - vendor/highline-1.5.2/lib/highline/system_extensions.rb
220
- - vendor/highline-1.5.2/setup.rb
221
- - vendor/highline-1.5.2/test/tc_color_scheme.rb
222
- - vendor/highline-1.5.2/test/tc_highline.rb
223
- - vendor/highline-1.5.2/test/tc_import.rb
224
- - vendor/highline-1.5.2/test/tc_menu.rb
225
- - vendor/highline-1.5.2/test/ts_all.rb
203
+ - rtt.gemspec
226
204
  has_rdoc: true
227
205
  homepage: http://github.com/marklazz/rtt
228
206
  licenses: []
data/todo.txt DELETED
@@ -1 +0,0 @@
1
- 1) Add --configure to current task
@@ -1,227 +0,0 @@
1
- = Change Log
2
-
3
- Below is a complete listing of changes for each revision of HighLine.
4
-
5
- == 1.5.2
6
-
7
- * Added support for using the ffi-ncurses gem which is supported in JRuby.
8
- * Added gem build instructions.
9
-
10
- == 1.5.1
11
-
12
- * Fixed the long standing echo true bug.
13
- (reported by Lauri Tuominen)
14
- * Improved Windows API calls to support the redirection of STDIN.
15
- (patch by Aaron Simmons)
16
- * Updated gem specification to avoid a deprecated call.
17
- * Made a minor documentation clarification about character mode support.
18
- * Worked around some API changes in Ruby's standard library in Ruby 1.9.
19
- (patch by Jake Benilov)
20
-
21
- == 1.5.0
22
-
23
- * Fixed a bug that would prevent Readline from showing all completions.
24
- (reported by Yaohan Chen)
25
- * Added the ability to pass a block to HighLine#agree().
26
- (patch by Yaohan Chen)
27
-
28
- == 1.4.0
29
-
30
- * Made the code grabbing terminal size a little more cross-platform by
31
- adding support for Solaris. (patch by Ronald Braswell and Coey Minear)
32
-
33
- == 1.2.9
34
-
35
- * Additional work on the backspacing issue. (patch by Jeremy Hinegardner)
36
- * Fixed Readline prompt bug. (patch by Jeremy Hinegardner)
37
-
38
- == 1.2.8
39
-
40
- * Fixed backspacing past the prompt and interrupting a prompt bugs.
41
- (patch by Jeremy Hinegardner)
42
-
43
- == 1.2.7
44
-
45
- * Fixed the stty indent bug.
46
- * Fixed the echo backspace bug.
47
- * Added HighLine::track_eof=() setting to work are threaded eof?() calls.
48
-
49
- == 1.2.6
50
-
51
- Patch by Jeremy Hinegardner:
52
-
53
- * Added ColorScheme support.
54
- * Added HighLine::Question.overwrite mode.
55
- * Various documentation fixes.
56
-
57
- == 1.2.5
58
-
59
- * Really fixed the bug I tried to fix in 1.2.4.
60
-
61
- == 1.2.4
62
-
63
- * Fixed a crash causing bug when using menus, reported by Patrick Hof.
64
-
65
- == 1.2.3
66
-
67
- * Treat Cygwin like a Posix OS, instead of a native Windows environment.
68
-
69
- == 1.2.2
70
-
71
- * Minor documentation corrections.
72
- * Applied Thomas Werschleiln's patch to fix termio buffering on Solaris.
73
- * Applied Justin Bailey's patch to allow canceling paged output.
74
- * Fixed a documentation bug in the description of character case settings.
75
- * Added a notice about termios in HighLine::Question#echo.
76
- * Finally working around the infamous "fast typing" bug
77
-
78
- == 1.2.1
79
-
80
- * Applied Justin Bailey's fix for the page_print() infinite loop bug.
81
- * Made a SystemExtensions module to expose OS level functionality other
82
- libraries may want to access.
83
- * Publicly exposed the get_character() method, per user requests.
84
- * Added terminal_size(), output_cols(), and output_rows() methods.
85
- * Added :auto setting for warp_at=() and page_at=().
86
-
87
- == 1.2.0
88
-
89
- * Improved RubyForge and gem spec project descriptions.
90
- * Added basic examples to README.
91
- * Added a VERSION constant.
92
- * Added support for hidden menu commands.
93
- * Added Object.or_ask() when using highline/import.
94
-
95
- == 1.0.4
96
-
97
- * Moved the HighLine project to Subversion.
98
- * HighLine's color escapes can now be disabled.
99
- * Fixed EOF bug introduced in the last release.
100
- * Updated HighLine web page.
101
- * Moved to a forked development/stable version numbering.
102
-
103
- == 1.0.2
104
-
105
- * Removed old and broken help tests.
106
- * Fixed test case typo found by David A. Black.
107
- * Added ERb escapes processing to lists, for coloring list items. Color escapes
108
- do not add to list element size.
109
- * HighLine now throws EOFError when input is exhausted.
110
-
111
- == 1.0.1
112
-
113
- * Minor bug fix: Moved help initialization to before response building, so help
114
- would show up in the default responses.
115
-
116
- == 1.0.0
117
-
118
- * Fixed documentation typo pointed out by Gavin Kistner.
119
- * Added <tt>gather = ...</tt> option to question for fetching entire Arrays or
120
- Hashes filled with answers. You can set +gather+ to a count of answers to
121
- collect, a String or Regexp matching the end of input, or a Hash where each
122
- key can be used in a new question.
123
- * Added File support to HighLine.ask(). You can specify a _directory_ and a
124
- _glob_ pattern that combine into a list of file choices the user can select
125
- from. You can choose to receive the user's answer as an open filehandle or as
126
- a Pathname object.
127
- * Added Readline support for history and editing.
128
- * Added tab completion for menu and file selection selection (requires
129
- Readline).
130
- * Added an optional character limit for input.
131
- * Added a complete help system to HighLine's shell menu creation tools.
132
-
133
- == 0.6.1
134
-
135
- * Removed termios dependancy in gem, to fix Windows' install.
136
-
137
- == 0.6.0
138
-
139
- * Implemented HighLine.choose() for menu handling.
140
- * Provided shortcut <tt>choose(item1, item2, ...)</tt> for simple menus.
141
- * Allowed Ruby code to be attached to each menu item, to create a complete
142
- menu solution.
143
- * Provided for total customization of the menu layout.
144
- * Allowed for menu selection by index, name or both.
145
- * Added a _shell_ mode to allow menu selection with additional details
146
- following the name.
147
- * Added a list() utility method that can be invoked just like color(). It can
148
- layout Arrays for you in any output in the modes <tt>:columns_across</tt>,
149
- <tt>:columns_down</tt>, <tt>:inline</tt> and <tt>:rows</tt>
150
- * Added support for <tt>echo = "*"</tt> style settings. User code can now
151
- choose the echo character this way.
152
- * Modified HighLine to user the "termios" library for character input, if
153
- available. Will return to old behavior (using "stty"), if "termios" cannot be
154
- loaded.
155
- * Improved "stty" state restoring code.
156
- * Fixed "stty" code to handle interrupt signals.
157
- * Improved the default auto-complete error message and exposed this message
158
- through the +responses+ interface as <tt>:no_completion</tt>.
159
-
160
- == 0.5.0
161
-
162
- * Implemented <tt>echo = false</tt> for HighLine::Question objects, primarily to
163
- make fetching passwords trivial.
164
- * Fixed an auto-complete bug that could cause a crash when the user gave an
165
- answer that didn't complete to any valid choice.
166
- * Implemented +case+ for HighLine::Question objects to provide character case
167
- conversions on given answers. Can be set to <tt>:up</tt>, <tt>:down</tt>, or
168
- <tt>:capitalize</tt>.
169
- * Exposed <tt>@answer</tt> to the response system, to allow response that are
170
- aware of incorrect input.
171
- * Implemented +confirm+ for HighLine::Question objects to allow for verification
172
- for sensitive user choices. If set to +true+, user will have to answer an
173
- "Are you sure? " question. Can also be set to the question to confirm with
174
- the user.
175
-
176
- == 0.4.0
177
-
178
- * Added <tt>@wrap_at</tt> and <tt>@page_at</tt> settings and accessors to
179
- HighLine, to control text flow.
180
- * Implemented line wrapping with adjustable limit.
181
- * Implemented paged printing with adjustable limit.
182
-
183
- == 0.3.0
184
-
185
- * Added support for installing with setup.rb.
186
- * All output is now treated as an ERb sequence, allowing Ruby code to be
187
- embedded in output strings.
188
- * Added support for ANSI color sequences in say(). (And everything else
189
- by extension.)
190
- * Added whitespace handling for answers. Can be set to <tt>:strip</tt>,
191
- <tt>:chomp</tt>, <tt>:collapse</tt>, <tt>:strip_and_collapse</tt>,
192
- <tt>:chomp_and_collapse</tt>, <tt>:remove</tt>, or <tt>:none</tt>.
193
- * Exposed question details to ERb completion through @question, to allow for
194
- intelligent responses.
195
- * Simplified HighLine internals using @question.
196
- * Added support for fetching single character input either with getc() or
197
- HighLine's own cross-platform terminal input routine.
198
- * Improved type conversion to handle user defined classes.
199
-
200
- == 0.2.0
201
-
202
- * Added Unit Tests to cover an already fixed output bug in the future.
203
- * Added Rakefile and setup test action (default).
204
- * Renamed HighLine::Answer to HighLine::Question to better illustrate its role.
205
- * Renamed fetch_line() to get_response() to better define its goal.
206
- * Simplified explain_error in terms of the Question object.
207
- * Renamed accept?() to in_range?() to better define purpose.
208
- * Reworked valid?() into valid_answer?() to better fit Question object.
209
- * Reworked <tt>@member</tt> into <tt>@in</tt>, to make it easier to remember and
210
- switched implementation to include?().
211
- * Added range checks for @above and @below.
212
- * Fixed the bug causing ask() to swallow NoMethodErrors.
213
- * Rolled ask_on_error() into responses.
214
- * Redirected imports to Kernel from Object.
215
- * Added support for <tt>validate = lambda { ... }</tt>.
216
- * Added default answer support.
217
- * Fixed bug that caused ask() to die with an empty question.
218
- * Added complete documentation.
219
- * Improve the implemetation of agree() to be the intended "yes" or "no" only
220
- question.
221
- * Added Rake tasks for documentation and packaging.
222
- * Moved project to RubyForge.
223
-
224
- == 0.1.0
225
-
226
- * Initial release as the solution to
227
- {Ruby Quiz #29}[http://www.rubyquiz.com/quiz29.html].