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

ruby-changes:41178

From: yuki <ko1@a...>
Date: Wed, 23 Dec 2015 02:30:33 +0900 (JST)
Subject: [ruby-changes:41178] yuki:r53250 (trunk): * gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0

yuki	2015-12-23 02:30:22 +0900 (Wed, 23 Dec 2015)

  New Revision: 53250

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

  Log:
    * gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0
    * NEWS: Add news about the did_you_mean gem

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/gems/bundled_gems
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53249)
+++ ChangeLog	(revision 53250)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 23 02:23:19 2015  Yuki Nishijima  <mail@y...>
+
+	* gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0
+
+	* NEWS: Add news about the did_you_mean gem
+
 Wed Dec 23 02:18:57 2015  Jake Worth  <jakeworth82@g...>
 
 	* doc/contributing.rdoc: [DOC] remove an extra word "here".
Index: gems/bundled_gems
===================================================================
--- gems/bundled_gems	(revision 53249)
+++ gems/bundled_gems	(revision 53250)
@@ -3,4 +3,4 @@ test-unit 3.1.5 https://github.com/ruby/ruby/blob/trunk/gems/bundled_gems#L3
 minitest 5.8.3
 rake 10.4.2
 net-telnet 0.1.1
-did_you_mean 1.0.0.rc1
+did_you_mean 1.0.0
Index: NEWS
===================================================================
--- NEWS	(revision 53249)
+++ NEWS	(revision 53250)
@@ -39,6 +39,16 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L39
           obj&.attr += 1
     [Feature #11537]
 
+* the did_you_mean gem:
+
+  * When a NameError or NoMethodError occurs because of a typo in the name,
+    the did_you_mean gem automatically suggests other names similar to the
+    method name.
+
+      "Yuki".starts_with?("Y")
+      # => NoMethodError: undefined method `starts_with?' for "Yuki":String
+      #    Did you mean?  start_with?
+
 * indented here document:
 
   * new string literal, here document starts with `<<~`.

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

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