highline 1.6.21 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 654d8d8fa13e9d967eb78065d7d9c6be9f82fe44
4
- data.tar.gz: d253b0c7ae6a1d36db8f0a07ce21c116e05e5c50
3
+ metadata.gz: 4c0eaf72ddbbf7741df17a97b4112446d5937422
4
+ data.tar.gz: b9acf919c1309a33fd91cc9e5d948e291ef259c7
5
5
  SHA512:
6
- metadata.gz: ef2e620391d4ba1df254868824bda3f88705ba2724450b6155ff785e803da17e55a4e8dcb0026d150be49260cd2857c9fb1be3362590fb9e5d6ee2066af39393
7
- data.tar.gz: e1c49b575b7d30f0c1b594c32770ff9895fc5a4fa85c0861e34c8d50ee812ac66a6dd11f5b8da7677298134fb88ce4d50356700744d6bf3fd3db2c7f437c7c56
6
+ metadata.gz: 16662e452444bd78795bf9043f9b961065959f75db20599be82091355e588f9ec0b34d0cf26612c116707fb85c0eb1010b2c1805b623618dfa4bc18dbf595eeb
7
+ data.tar.gz: c6a914aee8f201f7c8066c5ea689ce9d410253848105f01d26a13ac8fae66f7efc32ddde983207adf3cbb244c23ecd9b55dba0cddb01bc03d8b094c31babc220
@@ -0,0 +1,15 @@
1
+ ---
2
+ language: ruby
3
+ sudo: false
4
+ script: "bundle exec rake test"
5
+ rvm:
6
+ - 1.9.3
7
+ - 2.0.0
8
+ - 2.1.5
9
+ - 2.2.0
10
+ - rbx-2
11
+ notifications:
12
+ email: false
13
+ matrix:
14
+ allow_failures:
15
+ - rvm: rbx-2
data/COPYING CHANGED
@@ -1,12 +1,12 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
3
 
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
6
  Everyone is permitted to copy and distribute verbatim copies
7
7
  of this license document, but changing it is not allowed.
8
8
 
9
- Preamble
9
+ Preamble
10
10
 
11
11
  The licenses for most software are designed to take away your
12
12
  freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
15
15
  General Public License applies to most of the Free Software
16
16
  Foundation's software and to any other program whose authors commit to
17
17
  using it. (Some other Free Software Foundation software is covered by
18
- the GNU Library General Public License instead.) You can apply it to
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
19
  your programs, too.
20
20
 
21
21
  When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
55
55
 
56
56
  The precise terms and conditions for copying, distribution and
57
57
  modification follow.
58
-
59
- GNU GENERAL PUBLIC LICENSE
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
60
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
61
 
62
62
  0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110
110
  License. (Exception: if the Program itself is interactive but
111
111
  does not normally print such an announcement, your work based on
112
112
  the Program is not required to print an announcement.)
113
-
113
+
114
114
  These requirements apply to the modified work as a whole. If
115
115
  identifiable sections of that work are not derived from the Program,
116
116
  and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168
168
  access to copy the source code from the same place counts as
169
169
  distribution of the source code, even though third parties are not
170
170
  compelled to copy the source along with the object code.
171
-
171
+
172
172
  4. You may not copy, modify, sublicense, or distribute the Program
173
173
  except as expressly provided under this License. Any attempt
174
174
  otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225
225
 
226
226
  This section is intended to make thoroughly clear what is believed to
227
227
  be a consequence of the rest of this License.
228
-
228
+
229
229
  8. If the distribution and/or use of the Program is restricted in
230
230
  certain countries either by patents or by copyrighted interfaces, the
231
231
  original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255
255
  of preserving the free status of all derivatives of our free software and
256
256
  of promoting the sharing and reuse of software generally.
257
257
 
258
- NO WARRANTY
258
+ NO WARRANTY
259
259
 
260
260
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
261
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
277
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
278
  POSSIBILITY OF SUCH DAMAGES.
279
279
 
280
- END OF TERMS AND CONDITIONS
281
-
282
- How to Apply These Terms to Your New Programs
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
283
 
284
284
  If you develop a new program, and you want it to be of the greatest
285
285
  possible use to the public, the best way to achieve this is to make it
@@ -303,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
303
303
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
304
  GNU General Public License for more details.
305
305
 
306
- You should have received a copy of the GNU General Public License
307
- along with this program; if not, write to the Free Software
308
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
-
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
310
309
 
311
310
  Also add information on how to contact you by electronic and paper mail.
312
311
 
313
312
  If the program is interactive, make it output a short notice like this
314
313
  when it starts in an interactive mode:
315
314
 
316
- Gnomovision version 69, Copyright (C) year name of author
315
+ Gnomovision version 69, Copyright (C) year name of author
317
316
  Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
317
  This is free software, and you are welcome to redistribute it
319
318
  under certain conditions; type `show c' for details.
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
336
335
  This General Public License does not permit incorporating your program into
337
336
  proprietary programs. If your program is a subroutine library, you may
338
337
  consider it more useful to permit linking proprietary applications with the
339
- library. If this is what you want to do, use the GNU Library General
338
+ library. If this is what you want to do, use the GNU Lesser General
340
339
  Public License instead of this License.
@@ -1,32 +1,67 @@
1
- = Change Log
1
+ ## Change Log
2
2
 
3
3
  Below is a complete listing of changes for each revision of HighLine.
4
4
 
5
- == 1.6.21
5
+ ### 1.7.1 / 2015-02-24
6
+
7
+ #### Enhancements
8
+ * Add travis CI configuration (Eli Young (@elyscape), #130)
9
+ * Add Rubinius to Build Matrix with Allowed Failure (Brandon Fish
10
+ (bjfish), #132)
11
+ * Make some adjustments on tests (Abinoam Marques Jr., #133, #134)
12
+ * Drop support for Ruby 1.8 (Abinoam Marques Jr., #134)
13
+
14
+ #### Bug fixes
15
+ * Fix IO.console.winsize returning reversed column and line values (Fission Xuiptz (@fissionxuiptz)), #131)
16
+
17
+ ### 1.7.0 / 2015-02-18
18
+
19
+ #### Bug fixes
20
+ * Fix correct encoding of statements to output encoding (Dāvis (davispuh), #110)
21
+ * Fix character echoing when echo is false and multibyte character is typed (Abinoam Marques Jr., #117 #118)
22
+ * Fix backspace support on Cyrillic (Abinoam Marques Jr., #115 #118)
23
+ * Fix returning wrong encoding when echo is false (Abinoam Marques Jr., #116 #118)
24
+ * Fix Question #limit and #realine incompatibilities (Abinoam Marques Jr. #113 #120)
25
+ * Fix/improve string coercion on #say (Abinoam Marques Jr., #98 #122)
26
+ * Fix #terminal_size returning nil in some terminals (Abinoam Marques Jr., #85 #123)
27
+
28
+ #### Enhancements
29
+ * Improve #format_statement String coercion (Michael Bishop
30
+ (michaeljbishop), #104)
31
+ * Update homepage url on gemspec (Rubyforge->GitHub) (Edward Anderson
32
+ (nilbus), #107)
33
+ * Update COPYING file (Vít Ondruch (voxik), #109)
34
+ * Improve multi-byte encoding support (Abinoam Marques Jr., #115 #116 #117 #118)
35
+ * Make :grey -> :gray and :light -> :bright aliases (Abinoam Marques Jr., #114 #119)
36
+ * Return the default object (as it is) when no answer given (Abinoam Marques Jr., #112 #121)
37
+ * Added test for Yaml serialization of HighLine::String (Abinoam Marques Jr., #69 #124)
38
+ * Make improvements on Changelog and Rakefile (Abinoam Marques Jr., #126 #127 #128)
39
+
40
+ ### 1.6.21
6
41
 
7
42
  * Improved Windows integration (by Ronie Henrich).
8
43
  * Clarified menu choice error messages (by Keith Bennett).
9
44
 
10
- == 1.6.20
45
+ ### 1.6.20
11
46
 
12
47
  * Fixed a bug with FFI::NCurses integration (by agentdave).
13
48
  * Improved StringExtensions performance (by John Leach).
14
49
  * Various JRuby fixes (by presidentbeef).
15
50
 
16
- == 1.6.19
51
+ ### 1.6.19
17
52
 
18
53
  * Fixed `terminal_size()` with jline2 (by presidentbeef).
19
54
 
20
- == 1.6.18
55
+ ### 1.6.18
21
56
 
22
57
  * Fixed a long supported interface that was accidentally broken with a recent change (by Rubem Nakamura Carneiro).
23
58
 
24
- == 1.6.17
59
+ ### 1.6.17
25
60
 
26
61
  * Added encoding support to menus (by David Lyons).
27
62
  * Some minor fixes to SystemExtensions (by whiteleaf and presidentbeef).
28
63
 
29
- == 1.6.16
64
+ ### 1.6.16
30
65
 
31
66
  * Added the new indention feature (by davispuh).
32
67
  * Separated auto-completion from the answer type (by davispuh).
@@ -34,68 +69,68 @@ Below is a complete listing of changes for each revision of HighLine.
34
69
  * General code clean up (by stomar).
35
70
  * Made HighLine#say() a little smarter with regard to color escapes (by Kenneth Murphy).
36
71
 
37
- == 1.6.15
72
+ ### 1.6.15
38
73
 
39
74
  * Added support for nil arguments in lists (by Eric Saxby).
40
75
  * Fixed HighLine's termios integration (by Jens Wille).
41
76
 
42
- == 1.6.14
77
+ ### 1.6.14
43
78
 
44
79
  * Added JRuby 1.7 support (by Mina Nagy).
45
80
  * Take into account color escape sequences when wrapping text (by Mark J.
46
81
  Titorenko).
47
82
 
48
- == 1.6.13
83
+ ### 1.6.13
49
84
 
50
85
  * Removed unneeded Shebang lines (by Scott Gonyea).
51
86
  * Protect the String passed to Question.new from modification (by michael).
52
87
  * Added a retype-to-verify setting (by michael).
53
88
 
54
- == 1.6.12
89
+ ### 1.6.12
55
90
 
56
91
  * Silenced warnings (by James McEwan).
57
92
 
58
- == 1.6.11
93
+ ### 1.6.11
59
94
 
60
95
  * Fixed a bad test. (Fix by Diego Elio Pettenò.)
61
96
 
62
- == 1.6.10
97
+ ### 1.6.10
63
98
 
64
99
  * Fixed a regression that prevented asking for String arguments (by Jeffery
65
100
  Sman.)
66
101
  * Fixed a testing incompatibility (by Hans de Graaff.)
67
102
 
68
- == 1.6.9
103
+ ### 1.6.9
69
104
 
70
105
  * The new list modes now properly ignore escapes when sizing.
71
106
  * Added a project gemspec file.
72
107
  * Fixed a bug that prevented the use of termios (by tomdz).
73
108
  * Switch to JLine to provide better echo support on JRuby (by tomdz).
74
109
 
75
- == 1.6.8
110
+ ### 1.6.8
76
111
 
77
112
  * Fix missing <tt>ERASE_CHAR</tt> reference (by Aaron Gifford).
78
113
 
79
- == 1.6.7
114
+ ### 1.6.7
80
115
 
81
116
  * Fixed bug introduced in 1.6.6 attempted fix (by Aaron Gifford).
82
117
 
83
- == 1.6.6
118
+ ### 1.6.6
84
119
 
85
120
  * Fixed old style references causing <tt>HighLine::String</tt> errors (by Aaron Gifford).
86
121
 
87
- == 1.6.5
122
+ ### 1.6.5
88
123
 
89
124
  * HighLine#list() now correctly handles empty lists (fix by Lachlan Dowding).
90
125
  * HighLine#list() now supports <tt>:uneven_columns_across</tt> and
91
126
  <tt>:uneven_columns_down</tt> modes.
92
127
 
93
- == 1.6.4
128
+ ### 1.6.4
94
129
 
95
130
  * Add introspection methods to color_scheme: definition, keys, to_hash.
96
131
  * Add tests for new methods.
97
132
 
98
- == 1.6.3
133
+ ### 1.6.3
99
134
 
100
135
  * Add color NONE.
101
136
  * Add RGB color capability.
@@ -108,14 +143,14 @@ Below is a complete listing of changes for each revision of HighLine.
108
143
  * Add (optional) ability to extend String with the same convenience methods from
109
144
  HighLine::String, using Highline.colorize_strings.
110
145
 
111
- == 1.6.2
146
+ ### 1.6.2
112
147
 
113
148
  * Correctly handle STDIN being closed before we receive any data (fix by
114
149
  mleinart).
115
150
  * Try if msvcrt, if we can't load crtdll on Windows (fix by pepijnve).
116
151
  * A fix for nil_on_handled not running the action (reported by Andrew Davey).
117
152
 
118
- == 1.6.1
153
+ ### 1.6.1
119
154
 
120
155
  * Fixed raw_no_echo_mode so that it uses stty -icanon rather than cbreak
121
156
  as cbreak does not appear to be the posixly correct argument. It fails
@@ -132,12 +167,12 @@ Below is a complete listing of changes for each revision of HighLine.
132
167
  is the only way we could find to restore HighLine's character reading to
133
168
  working order.
134
169
 
135
- == 1.5.2
170
+ ### 1.5.2
136
171
 
137
172
  * Added support for using the ffi-ncurses gem which is supported in JRuby.
138
173
  * Added gem build instructions.
139
174
 
140
- == 1.5.1
175
+ ### 1.5.1
141
176
 
142
177
  * Fixed the long standing echo true bug.
143
178
  (reported by Lauri Tuominen)
@@ -148,35 +183,35 @@ Below is a complete listing of changes for each revision of HighLine.
148
183
  * Worked around some API changes in Ruby's standard library in Ruby 1.9.
149
184
  (patch by Jake Benilov)
150
185
 
151
- == 1.5.0
186
+ ### 1.5.0
152
187
 
153
188
  * Fixed a bug that would prevent Readline from showing all completions.
154
189
  (reported by Yaohan Chen)
155
190
  * Added the ability to pass a block to HighLine#agree().
156
191
  (patch by Yaohan Chen)
157
192
 
158
- == 1.4.0
193
+ ### 1.4.0
159
194
 
160
195
  * Made the code grabbing terminal size a little more cross-platform by
161
196
  adding support for Solaris. (patch by Ronald Braswell and Coey Minear)
162
197
 
163
- == 1.2.9
198
+ ### 1.2.9
164
199
 
165
200
  * Additional work on the backspacing issue. (patch by Jeremy Hinegardner)
166
201
  * Fixed Readline prompt bug. (patch by Jeremy Hinegardner)
167
202
 
168
- == 1.2.8
203
+ ### 1.2.8
169
204
 
170
205
  * Fixed backspacing past the prompt and interrupting a prompt bugs.
171
206
  (patch by Jeremy Hinegardner)
172
207
 
173
- == 1.2.7
208
+ ### 1.2.7
174
209
 
175
210
  * Fixed the stty indent bug.
176
211
  * Fixed the echo backspace bug.
177
212
  * Added HighLine::track_eof=() setting to work are threaded eof?() calls.
178
213
 
179
- == 1.2.6
214
+ ### 1.2.6
180
215
 
181
216
  Patch by Jeremy Hinegardner:
182
217
 
@@ -184,19 +219,19 @@ Patch by Jeremy Hinegardner:
184
219
  * Added HighLine::Question.overwrite mode.
185
220
  * Various documentation fixes.
186
221
 
187
- == 1.2.5
222
+ ### 1.2.5
188
223
 
189
224
  * Really fixed the bug I tried to fix in 1.2.4.
190
225
 
191
- == 1.2.4
226
+ ### 1.2.4
192
227
 
193
228
  * Fixed a crash causing bug when using menus, reported by Patrick Hof.
194
229
 
195
- == 1.2.3
230
+ ### 1.2.3
196
231
 
197
232
  * Treat Cygwin like a Posix OS, instead of a native Windows environment.
198
233
 
199
- == 1.2.2
234
+ ### 1.2.2
200
235
 
201
236
  * Minor documentation corrections.
202
237
  * Applied Thomas Werschleiln's patch to fix termio buffering on Solaris.
@@ -205,7 +240,7 @@ Patch by Jeremy Hinegardner:
205
240
  * Added a notice about termios in HighLine::Question#echo.
206
241
  * Finally working around the infamous "fast typing" bug
207
242
 
208
- == 1.2.1
243
+ ### 1.2.1
209
244
 
210
245
  * Applied Justin Bailey's fix for the page_print() infinite loop bug.
211
246
  * Made a SystemExtensions module to expose OS level functionality other
@@ -214,7 +249,7 @@ Patch by Jeremy Hinegardner:
214
249
  * Added terminal_size(), output_cols(), and output_rows() methods.
215
250
  * Added :auto setting for warp_at=() and page_at=().
216
251
 
217
- == 1.2.0
252
+ ### 1.2.0
218
253
 
219
254
  * Improved RubyForge and gem spec project descriptions.
220
255
  * Added basic examples to README.
@@ -222,7 +257,7 @@ Patch by Jeremy Hinegardner:
222
257
  * Added support for hidden menu commands.
223
258
  * Added Object.or_ask() when using highline/import.
224
259
 
225
- == 1.0.4
260
+ ### 1.0.4
226
261
 
227
262
  * Moved the HighLine project to Subversion.
228
263
  * HighLine's color escapes can now be disabled.
@@ -230,7 +265,7 @@ Patch by Jeremy Hinegardner:
230
265
  * Updated HighLine web page.
231
266
  * Moved to a forked development/stable version numbering.
232
267
 
233
- == 1.0.2
268
+ ### 1.0.2
234
269
 
235
270
  * Removed old and broken help tests.
236
271
  * Fixed test case typo found by David A. Black.
@@ -238,12 +273,12 @@ Patch by Jeremy Hinegardner:
238
273
  do not add to list element size.
239
274
  * HighLine now throws EOFError when input is exhausted.
240
275
 
241
- == 1.0.1
276
+ ### 1.0.1
242
277
 
243
278
  * Minor bug fix: Moved help initialization to before response building, so help
244
279
  would show up in the default responses.
245
280
 
246
- == 1.0.0
281
+ ### 1.0.0
247
282
 
248
283
  * Fixed documentation typo pointed out by Gavin Kistner.
249
284
  * Added <tt>gather = ...</tt> option to question for fetching entire Arrays or
@@ -260,11 +295,11 @@ Patch by Jeremy Hinegardner:
260
295
  * Added an optional character limit for input.
261
296
  * Added a complete help system to HighLine's shell menu creation tools.
262
297
 
263
- == 0.6.1
298
+ ### 0.6.1
264
299
 
265
300
  * Removed termios dependancy in gem, to fix Windows' install.
266
301
 
267
- == 0.6.0
302
+ ### 0.6.0
268
303
 
269
304
  * Implemented HighLine.choose() for menu handling.
270
305
  * Provided shortcut <tt>choose(item1, item2, ...)</tt> for simple menus.
@@ -287,7 +322,7 @@ Patch by Jeremy Hinegardner:
287
322
  * Improved the default auto-complete error message and exposed this message
288
323
  through the +responses+ interface as <tt>:no_completion</tt>.
289
324
 
290
- == 0.5.0
325
+ ### 0.5.0
291
326
 
292
327
  * Implemented <tt>echo = false</tt> for HighLine::Question objects, primarily to
293
328
  make fetching passwords trivial.
@@ -303,14 +338,14 @@ Patch by Jeremy Hinegardner:
303
338
  "Are you sure? " question. Can also be set to the question to confirm with
304
339
  the user.
305
340
 
306
- == 0.4.0
341
+ ### 0.4.0
307
342
 
308
343
  * Added <tt>@wrap_at</tt> and <tt>@page_at</tt> settings and accessors to
309
344
  HighLine, to control text flow.
310
345
  * Implemented line wrapping with adjustable limit.
311
346
  * Implemented paged printing with adjustable limit.
312
347
 
313
- == 0.3.0
348
+ ### 0.3.0
314
349
 
315
350
  * Added support for installing with setup.rb.
316
351
  * All output is now treated as an ERb sequence, allowing Ruby code to be
@@ -327,7 +362,7 @@ Patch by Jeremy Hinegardner:
327
362
  HighLine's own cross-platform terminal input routine.
328
363
  * Improved type conversion to handle user defined classes.
329
364
 
330
- == 0.2.0
365
+ ### 0.2.0
331
366
 
332
367
  * Added Unit Tests to cover an already fixed output bug in the future.
333
368
  * Added Rakefile and setup test action (default).
@@ -351,7 +386,7 @@ Patch by Jeremy Hinegardner:
351
386
  * Added Rake tasks for documentation and packaging.
352
387
  * Moved project to RubyForge.
353
388
 
354
- == 0.1.0
389
+ ### 0.1.0
355
390
 
356
391
  * Initial release as the solution to
357
392
  {Ruby Quiz #29}[http://www.rubyquiz.com/quiz29.html].