Commit graph

63490 commits

Author SHA1 Message Date
hyrious
02951a45f0 [ruby/rdoc] Create link to unary operator methods correctly
54500cf12a
2020-07-22 02:35:12 +09:00
Benoit Tigeot
7693aa7056 [ruby/rdoc] Remove empty lines from html file by using ERB trim_mode flag
9e27299a46
2020-07-22 02:34:58 +09:00
Jeremy Evans
38480ad507 [ruby/rdoc] Fix parsing of rb_define_module_under
Fixes Ruby Bug #15819

94a052d833
2020-07-22 02:34:49 +09:00
aycabta
f76d67f484 [ruby/rdoc] Fix RDoc::Context#instance_method_list
The warn method returns nil, it's a bug of #instance_method_list.

a20df89263
2020-07-22 02:34:26 +09:00
Nobuhiro IMAI
f6e789e3b0 [ruby/irb] handle rescue modifier properly
6de1341f5e
2020-07-22 02:31:47 +09:00
aycabta
22d38d5475 [ruby/irb] Add test_eval_object_without_inspect_method
c0d9a26bce
2020-07-22 02:31:47 +09:00
Masataka Pocke Kuwabara
b40e925c92 [ruby/irb] Fix error when inspect is called but not found in inspector
ce6d53e6d9
2020-07-22 02:31:47 +09:00
aycabta
4268084d69 [ruby/irb] Add encoding magic comments of editors
f8c10ea24b
2020-07-22 02:31:47 +09:00
aycabta
c72a2fad97 [ruby/irb] Simplify RubyLex.compile_with_errors_suppressed
nobu-san reviewed,

https://github.com/ruby/irb/pull/106#pullrequestreview-423400033
> How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)?
> Encoding pragma is effective only at the beginning.
> And the semicolon and newline will be skipped because the position is before
> the initial pos.

I employ the way.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

e593cc65b7
2020-07-22 02:31:46 +09:00
aycabta
1dfd24a7fc [ruby/irb] Suppress incomplete encoding magic comment error
443e90af80
2020-07-22 02:31:46 +09:00
aycabta
78ccab2530 [ruby/irb] Suppress incomplete coding magic comment error
6a457edbd1
2020-07-22 02:31:46 +09:00
Tanaka Akira
48eb1ad2c3 [DOC] time.c document updated.
* fraction -> subsecond
  for consistency with method name

* The sentence,
  "A non-portable feature allows the offset to be negative on some systems.",
  is removed.
  Time before 1970 should work portably now.
  If localtime() doesn't work before 1970,
  Ruby should extrapolate it.

* Time::new -> Time.new
  "::" for method call is not common notation now.

* Time#to_i truncates subsecond

* Time#to_f approximates a value in Time object

* Time#to_r
  The sentence,
  "You can use this method to convert _time_ to another Epoch.",
  is removed.
  It is not clear because no actual example of "another Epoch" is given.

* Time#usec truncates fraction of microseconds.

* Time#nsec truncates fraction of nanoseconds.

* describe Time#inspect shows subsecond since Ruby 2.7.0.
2020-07-21 20:28:36 +09:00
Alan Wu
73ee1295a3 Add memsize support for the call cache table
Each class/module/iclass can potentially have their own cc table.
Count their malloc usage.
2020-07-20 20:20:08 -04:00
git
ac3dbbd4db * 2020-07-21 [ci skip] 2020-07-21 09:18:37 +09:00
Gabriel Nagy
a8eecceaef [ruby/csv] Bump minimum ruby version to 2.5.0 (#159)
A dependency to stringio was added to csv, which requires Ruby version
>= 2.5. Bump the gemspec version accordingly.
bc5a26029f
2020-07-21 09:17:56 +09:00
Sutou Kouhei
c6f389d84e [ruby/csv] Move doc/* to doc/csv/* to work in ruby/ruby too
910f8e0c5d
2020-07-21 09:17:54 +09:00
Burdette Lamar
935d0b3d05 [ruby/csv] Enhanced RDoc for several methods (#158)
* Enhanced RDoc for several methods

* Update lib/csv.rb

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
72e8b00e51
2020-07-20 15:39:31 +09:00
Sutou Kouhei
78893f16b2 [ruby/csv] Bump version
f9cd046d66
2020-07-20 15:39:29 +09:00
Sutou Kouhei
d919b0e4f9 [ruby/csv] Require stringio 0.1.3 or later
09dd9f2771
2020-07-20 15:39:26 +09:00
Nobuyoshi Nakada
16daee1c75 [ruby/stringio] Bump version to 0.1.3
376516cd2d
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
ddb2acbba6 [ruby/stringio] No compatibility check in US-ASCII case
59df1c8293
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
c62aff1632 [ruby/stringio] Added non-ASCII but convertible encoding case
1d28e5c969
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
a7c67fc6da [ruby/stringio] Removed wrong UNREACHABLE
f528538d10
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
574871781b [ruby/stringio] Bump version to 0.1.2
8cbe3f7397
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
6ff9604f85 [ruby/stringio] Raise an error if encoding conversion not succeeded
As `rb_str_conv_enc()` returns the argument string object itself
unchanged when any conversion failed, check the incompatibility in
that case.

Fixes https://github.com/ruby/stringio/issues/13

ede6bdcc71
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
840115bf46 Make StringIO encoding fixed
Get rid of affects by default external encoding.
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
d2bf6133f6
Remove trailing spaces [ci skip] 2020-07-20 13:34:16 +09:00
Samuel Williams
1b3a6847be Move declarations to private internal/thread.h header. 2020-07-20 13:20:58 +12:00
Samuel Williams
f3462d99a3 Rename rb_current_thread_scheduler to rb_thread_scheduler_if_nonblocking.
Correctly capture thread before releasing GVL and pass as argument to
`rb_thread_scheduler_if_nonblocking`.
2020-07-20 13:20:58 +12:00
Samuel Williams
9f6a3d0306 Add multi-threaded I/O test. 2020-07-20 13:20:58 +12:00
Samuel Williams
e6e9cef06e Improve consistency of tests. 2020-07-20 13:20:58 +12:00
Samuel Williams
a3ac1bf450 Add more timeouts to macos, mjit, ubuntu and windows workflows. 2020-07-20 10:58:57 +12:00
git
da0e8158c9 * 2020-07-20 [ci skip] 2020-07-20 03:35:19 +09:00
Sutou Kouhei
4fcfa85cb6
[ruby/csv] CSV.generate_line: use the encoding of the first non ASCII field as the expected encoding
See also: https://github.com/ruby/stringio/issues/13#issuecomment-660543554

004cf49d18
2020-07-20 02:32:55 +09:00
Sutou Kouhei
178649e6dc
[ruby/csv] force_quotes: add support for specifying the target indexes or names
GitHub: fix GH-153

Reported by Aleksandr. Thanks!!!

8812c58a26
2020-07-20 02:32:54 +09:00
Burdette Lamar
d9749b4715
[ruby/csv] RDoc for converters (#157)
* More on RDoc for converters

* More on RDoc for converters

* Fix indent

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
6044976160
2020-07-20 02:32:54 +09:00
Burdette Lamar
d7c42df0b1
[ruby/csv] Adding call-seq to methods RDoc (#155)
* Adding call-seq to methods RDoc

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>


dbd860c1cd
2020-07-20 02:32:54 +09:00
Burdette Lamar
544d82f49b
[ruby/csv] RDoc: summary lists for options (#154)
* RDoc: summary lists for options

* Enhanced RDoc for certain attributes and instance methods

* Enhanced RDoc for certain attributes and instance methods

* Enhanced RDoc for certain attributes and instance methods

* Enhanced RDoc for certain attributes and instance methods
72d8a25dc9
2020-07-20 02:32:54 +09:00
Burdette Lamar
40c5023629
[ruby/csv] RDoc remark about instance methods (#152)
76379bbe62
2020-07-20 02:32:54 +09:00
Burdette Lamar
a0bee2bbd6
[ruby/csv] Revised introductory RDoc (#151)
60f6f1c28f
2020-07-20 02:32:54 +09:00
Burdette Lamar
da83401ba4
[ruby/csv] Enhanced RDoc for filter (#149)
* Enhanced RDoc for filter

* Correct return values for ::filter, ::foreach, ::parse

* Enhanced RDoc for filter

* Remove "returns nil"s

Co-authored-by: Sutou Kouhei <kou@clear-code.com>
2c347f9a3d
2020-07-20 02:32:54 +09:00
Burdette Lamar
66b5cedc29
[ruby/csv] Enhancements for RDoc (#148)
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
25dd4cddbb
2020-07-20 02:32:53 +09:00
Burdette Lamar
7bf13c5183
[ruby/csv] Improve RDoc for common options (#146)
223cbee35d
2020-07-20 02:32:53 +09:00
Burdette Lamar
d9eff306f5
[ruby/csv] Organize files in doc/ (#145)
bc9ea859b0
2020-07-20 02:32:53 +09:00
Burdette Lamar
920a16893a
[ruby/csv] RDoc for parse_line (adds headers examples) (#143)
* RDoc for parse_line (adds headers examples)

* RDoc for parse_line (adds headers examples)
a161be928e
2020-07-20 02:32:53 +09:00
Burdette Lamar
6106b7badd
[ruby/csv] Added headers to RDoc for CSV.foreach (#142)
* Added headers: to RDoc for CSV.foreach

* Correct options remark for CSV.generate

* Improve citation for option headers
b01945ec3a
2020-07-20 02:32:53 +09:00
Burdette Lamar
e4742fec64
[ruby/csv] Add headers cases to CSV.parse (#141)
* Add headers cases to CSV.parse

* Adjust call-seq for CSV.parse

* Update csv.rb
848c760c43
2020-07-20 02:32:53 +09:00
Burdette Lamar
9901bb4c73
[ruby/csv] Add missing file doc/argument_io.rdoc (#140)
e37f04aa5c
2020-07-20 02:32:52 +09:00
Burdette Lamar
013cca1f9a
[ruby/csv] doc: fix return value of open {} and use File.open {} (#139)
* Enhanced RDoc for CSV

* Repair example code for foreach
16b425eb37
2020-07-20 02:32:52 +09:00
Burdette Lamar
7c55c96147
[ruby/csv] Rdoc (#137)
Enhancements for open, parse, minor tweaks.
35392f4e45
2020-07-20 02:32:52 +09:00