Skip to content

Commit f4b1b8e

Browse files
committed
merge revision(s) 44878,44879: [Backport ruby#9483]
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core classes when referring to return value, since we aren't directly talking about the class. Patch by Jonathan Jackson [Bug ruby#9483] * lib/open-uri.rb: [DOC] use lower case version of core classes, same as commit r44878, based on patch by Jonathan Jackson [Bug ruby#9483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 17c2ed2 commit f4b1b8e

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Mon Feb 24 12:42:01 2014 Zachary Scott <e@zzak.io>
2+
3+
* lib/open-uri.rb: [DOC] use lower case version of core classes, same
4+
as commit r44878, based on patch by Jonathan Jackson [Bug #9483]
5+
6+
Mon Feb 24 12:42:01 2014 Zachary Scott <e@zzak.io>
7+
8+
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
9+
classes when referring to return value, since we aren't directly
10+
talking about the class. Patch by Jonathan Jackson [Bug #9483]
11+
112
Mon Feb 24 12:39:11 2014 Zachary Scott <e@zzak.io>
213

314
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szuecs [Bug #9243]

ext/ripper/lib/ripper/lexer.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212

1313
class Ripper
1414

15-
# Tokenizes Ruby program and returns an Array of String.
15+
# Tokenizes the Ruby program and returns an array of strings.
16+
#
17+
# p Ripper.tokenize("def m(a) nil end")
18+
# # => ["def", " ", "m", "(", "a", ")", " ", "nil", " ", "end"]
19+
#
1620
def Ripper.tokenize(src, filename = '-', lineno = 1)
1721
Lexer.new(src, filename, lineno).tokenize
1822
end
1923

20-
# Tokenizes Ruby program and returns an Array of Array,
21-
# which is formatted like [[lineno, column], type, token].
24+
# Tokenizes the Ruby program and returns an array of an array,
25+
# which is formatted like <code>[[lineno, column], type, token]</code>.
2226
#
2327
# require 'ripper'
2428
# require 'pp'

lib/open-uri.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,9 @@ def charset
508508
end
509509
end
510510

511-
# returns a list of encodings in Content-Encoding field
512-
# as an Array of String.
511+
# Returns a list of encodings in Content-Encoding field as an array of
512+
# strings.
513+
#
513514
# The encodings are downcased for canonicalization.
514515
def content_encoding
515516
v = @meta['content-encoding']

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.3"
2-
#define RUBY_PATCHLEVEL 544
2+
#define RUBY_PATCHLEVEL 545
33

44
#define RUBY_RELEASE_DATE "2014-02-24"
55
#define RUBY_RELEASE_YEAR 2014

0 commit comments

Comments
 (0)