[前][次][番号順一覧][スレッド一覧]

ruby-changes:38546

From: nagachika <ko1@a...>
Date: Sun, 24 May 2015 03:36:16 +0900 (JST)
Subject: [ruby-changes:38546] nagachika:r50627 (ruby_2_2): merge revision(s) 50406, 50407: [Backport #11075]

nagachika	2015-05-24 03:35:37 +0900 (Sun, 24 May 2015)

  New Revision: 50627

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50627

  Log:
    merge revision(s) 50406,50407: [Backport #11075]
    
    * rational.c: Added documentation for rational literal.
      [Bug #11075][fix GH-885][ci skip] Patch by @shishir127

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/rational.c
    branches/ruby_2_2/version.h
Index: ruby_2_2/ChangeLog
===================================================================
--- ruby_2_2/ChangeLog	(revision 50626)
+++ ruby_2_2/ChangeLog	(revision 50627)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1
+Sun May 24 03:32:53 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* rational.c: Added documentation for rational literal.
+	  [Bug #11075][fix GH-885][ci skip] Patch by @shishir127
+
 Sun May 24 03:06:20 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/socket/ipsocket.c (init_inetsock_internal): preserve errno
Index: ruby_2_2/version.h
===================================================================
--- ruby_2_2/version.h	(revision 50626)
+++ ruby_2_2/version.h	(revision 50627)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1
 #define RUBY_VERSION "2.2.3"
 #define RUBY_RELEASE_DATE "2015-05-24"
-#define RUBY_PATCHLEVEL 123
+#define RUBY_PATCHLEVEL 124
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 5
Index: ruby_2_2/rational.c
===================================================================
--- ruby_2_2/rational.c	(revision 50626)
+++ ruby_2_2/rational.c	(revision 50627)
@@ -2465,13 +2465,14 @@ nurat_s_convert(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/ruby_2_2/rational.c#L2465
  * a/b (b>0).  Where a is numerator and b is denominator.  Integer a
  * equals rational a/1 mathematically.
  *
- * In ruby, you can create rational object with Rational, to_r or
- * rationalize method.  The return values will be irreducible.
+ * In ruby, you can create rational object with Rational, to_r,
+ * rationalize method or suffixing r to a literal.  The return values will be irreducible.
  *
  *    Rational(1)      #=> (1/1)
  *    Rational(2, 3)   #=> (2/3)
  *    Rational(4, -6)  #=> (-2/3)
  *    3.to_r           #=> (3/1)
+ *    2/3r             #=> (2/3)
  *
  * You can also create rational object from floating-point numbers or
  * strings.

Property changes on: ruby_2_2
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r50406-50407


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]