Commit graph

7218 commits

Author SHA1 Message Date
aycabta
c8ee44f44c Fix showing doc of "nil.to_s", nil doesn't have #name 2019-07-19 08:23:41 +09:00
Nobuyoshi Nakada
cd372f8db2
Get rid of LoadError with $DEBUG 2019-07-17 14:45:33 +09:00
aycabta
c20445ab56 Require Ruby 2.4 or later because needs lex_state from Ripper 2019-07-15 17:22:18 +09:00
Hiroshi SHIBATA
5349aa23c8
Also fixed up with 036039c8a2 2019-07-15 14:47:47 +09:00
Hiroshi SHIBATA
036039c8a2
Fixed LoadError of version file. 2019-07-15 14:45:30 +09:00
Hiroshi SHIBATA
0eafa1dce8
Fixed inconsitency locations of default gems. 2019-07-15 14:43:08 +09:00
Rafael Mendonça França
58065b8701
[ruby/logger] Add option to set the binary mode of the log device
Without binmode strings with incompatible encoding can't be written in
the file. This is very common in applications that log user provided
parameters.

We need to allow changing the binnary mode because right now it is impossible to use
the built-in log rotation feature when you provide a File object to the
LogDevice, and if you provide a filename you can't have binmode.

9114b3ac7e
2019-07-15 14:43:08 +09:00
Jeremy Evans
f4064a0a0c
[ruby/logger] Set filename when initializing logger with a File object
This should allow reopen to work.  Requested in ruby issue #14595.

bd367aff12
2019-07-15 14:43:08 +09:00
Samuel Williams
2c22051b4b
[ruby/logger] Enable frozen_string_literal: true in logger.rb.
2dc832e901
2019-07-15 14:43:08 +09:00
Samuel Williams
3fdb963827
[ruby/logger] Prefer require_relative, it's a little bit faster.
1e2aab4bea
2019-07-15 14:43:07 +09:00
sonots
7ef0856287
[ruby/logger] Update logger.gemspec
1335a71d98
2019-07-15 14:43:07 +09:00
sonots
7f10da9d27
[ruby/logger] require 'logger/errors' just for compat
255a51dc10
2019-07-15 14:43:07 +09:00
Colby Swandale
bbe157f340
[ruby/logger] split logger classes/modules into separate files
f10ce9fff2
2019-07-15 14:43:07 +09:00
Samuel Williams
47500f2055
[ruby/logger] Add support for changing severity using bang methods.
ae4c6dfcbb
2019-07-15 14:43:07 +09:00
Samuel Giddins
310198d6be
[ruby/logger] Add missing closing "
b4b3caae40
2019-07-15 14:43:07 +09:00
Samuel Giddins
227eae79ac
[ruby/logger] Say that logger requires ruby >= 2.3
Since it uses `&.`, it can't be used on older rubies
b872f90ab9
2019-07-15 14:43:07 +09:00
Colby Swandale
b9ba07a05c
[ruby/logger] dont lock bundler to a specific version in travis
eb5ac229a5
2019-07-15 14:43:07 +09:00
Colby Swandale
99c14fb694
[ruby/logger] remove files that dont need to be included in gem releases
9a3be8650f
2019-07-15 14:43:07 +09:00
Kazuhiro NISHIYAMA
b789648830
Change PROMPT_S of simple-prompt
When input `"` or `/` with simple-prompt,

Before:
`"` or `/`
(prompt disappeared and indent is changed)

After:
`"> "` or `/> /`
(indent is unchanged since `>> `)
2019-07-15 10:29:48 +09:00
aycabta
0af897ab59 Simplify history saving code 2019-07-15 10:20:23 +09:00
Tanaka Akira
8f7884761e The default charset of text/* media type is UTF-8.
Thanks for the patch  gareth (Gareth Adams).  [Bug #15933]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

> When no explicit charset parameter is provided by the sender, media
> subtypes of the "text" type are defined to have a default charset
> value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
2019-07-15 09:36:52 +09:00
aycabta
17ccda5413 Use #to_a for Readline::HISTORY directly 2019-07-15 08:33:07 +09:00
aycabta
2b78a93bcf Add lib/irb/color.rb to destribution file list 2019-07-15 07:59:33 +09:00
aycabta
266f6cd8a1 Remove debug print 2019-07-15 07:54:47 +09:00
aycabta
4b7a04a5b8 Support multiline irb_history
A history line ends with "\" to escape newline if it's a continuous
line.
2019-07-15 07:51:57 +09:00
aycabta
10d7b39d5d Check wether prompt_i is nil 2019-07-15 02:58:28 +09:00
aycabta
078e50c5e9 Save history in IRB is enabled by default 2019-07-15 01:16:18 +09:00
aycabta
6d57369105 Auto indent in IRB is enabled by default 2019-07-15 01:07:37 +09:00
aycabta
82b058ff60 Version 1.1.0.pre.2 2019-07-15 00:43:47 +09:00
aycabta
d0b1a8d5fb Need reline-0.0.1 or later for some features 2019-07-15 00:43:36 +09:00
aycabta
cd7b99bbfc Version 0.0.1 2019-07-15 00:36:59 +09:00
manga_osyo
04e6b90d5b Remove unused method. 2019-07-15 00:33:16 +09:00
Marcus Stollsteimer
423feb53a2 [ruby/matrix] Add Matrix::VERSION constant
Add Matrix::VERSION for the gem version, use it in the gemspec,
and make it also available for library users.

65c2bb1fa1
2019-07-15 00:32:00 +09:00
Marcus Stollsteimer
4403130193 [ruby/matrix] Add missing `lib/matrix/' files to file list in gemspec
2bbb9be233
2019-07-15 00:32:00 +09:00
manga_osyo
073cc52dcc Add class Reline::History and test. 2019-07-15 00:17:59 +09:00
Masataka Pocke Kuwabara
9806da50f4 Suppress warnings 2019-07-15 00:13:01 +09:00
aycabta
83171b0ee8 [ruby/rdoc] Bump version to 6.1.1
55c0627fe0
2019-07-15 00:11:07 +09:00
poloka
312d72000a [ruby/rdoc] Correction to include regexp_handling in list of loaded files
1940b2318c
2019-07-15 00:11:07 +09:00
Kouhei Sutou
198281a71d [ruby/csv] Fix a bug that strip: true removes newlines
5540d35a30
2019-07-14 23:07:31 +09:00
kawa_tech
8c0edbd79d [ruby/csv] add options doc :quote_empty (#89)
5ca8d79f60
2019-07-14 23:07:31 +09:00
Masafumi Koba
75620c804e [ruby/csv] Add options doc: :write_converters, :write_nil_value, :write_empty_value (#87)
5923ee08b7
2019-07-14 23:07:31 +09:00
hayashiyoshino
fe40841bfb [ruby/csv] add document of strip (#88)
* add document of strip

* modify typo

de0257dc31
2019-07-14 23:07:31 +09:00
Kouhei Sutou
c8b82998d4 [ruby/csv] Bump version
3976985008
2019-07-14 23:07:31 +09:00
Kouhei Sutou
8392592a0a [ruby/csv] Don't raise on eof?
GitHub: fix #86

Reported by krororo. Thanks!!!

5a8d9d9297
2019-07-14 23:07:31 +09:00
Kazuhiro NISHIYAMA
9171f83305 [ruby/csv] Refactor range in delete_suffix (#85)
7ff57a50e8
2019-07-14 23:07:31 +09:00
Kouhei Sutou
864e2a95d9 [ruby/csv] Bump version
312f844693
2019-07-14 23:07:31 +09:00
Maxime Lapointe
b67b07bd5b Fix links to headings
A previous change made the header's id be fully referenced (for the sidebar I believe) but this broke links to them.
This fixes the issue.
2019-07-14 17:46:16 +09:00
Tanaka Akira
05aac90a1b Warn open-uri's "open" method at Kernel.
Use URI.open instead.

Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893].
2019-07-14 17:18:17 +09:00
Luke Gruber
3163a07878 fix issue with 'SIGINT' handling in LineEditor#reset
@old_trap is the string "DEFAULT" and not a callable object (Proc)
if there are no other signal handlers for SIGINT signal to chain.
2019-07-14 15:51:09 +09:00
Nobuyoshi Nakada
331eccf3fe
Removed useless freezes from gemspec files 2019-07-13 07:25:54 +09:00