{"action":"closed","issue":{"url":"https://api.github.com/repos/pry/pry/issues/1528","repository_url":"https://api.github.com/repos/pry/pry","labels_url":"https://api.github.com/repos/pry/pry/issues/1528/labels{/name}","comments_url":"https://api.github.com/repos/pry/pry/issues/1528/comments","events_url":"https://api.github.com/repos/pry/pry/issues/1528/events","html_url":"https://github.com/pry/pry/issues/1528","id":138818963,"number":1528,"title":"pry autocompletion generates apostrophe if used on String literal ","user":{"login":"sunboshan","id":4976854,"avatar_url":"https://avatars1.githubusercontent.com/u/4976854?v=4","gravatar_id":"","url":"https://api.github.com/users/sunboshan","html_url":"https://github.com/sunboshan","followers_url":"https://api.github.com/users/sunboshan/followers","following_url":"https://api.github.com/users/sunboshan/following{/other_user}","gists_url":"https://api.github.com/users/sunboshan/gists{/gist_id}","starred_url":"https://api.github.com/users/sunboshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunboshan/subscriptions","organizations_url":"https://api.github.com/users/sunboshan/orgs","repos_url":"https://api.github.com/users/sunboshan/repos","events_url":"https://api.github.com/users/sunboshan/events{/privacy}","received_events_url":"https://api.github.com/users/sunboshan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-03-06T18:16:17Z","updated_at":"2017-08-13T20:02:10Z","closed_at":"2017-08-13T20:02:10Z","body":"```\n[1] pry(main)> \"a\".siz      # press TAB\n[1] pry(main)> \"a\".size\"\n\n[1] pry(main)> 'a'.siz       # press Tab\n[1] pry(main)> 'a'.size'\n```\n\nIt wasn't an issue until I recompile Ruby `2.3.0` through `rvm` to support unicode in `pry`. The main part was to compile Ruby against `readline` instead of `libedit`.\n\nThe new Ruby now support unicode in `irb` or `pry`, however `pry` gives the above bug whereas `irb` is fine.\n\nHere's the information for the new Ruby `readline` info\n\n```\n$ otool -L ~/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle \nreadline.bundle:\n    ~/.rvm/rubies/ruby-2.3.0/lib/libruby.2.3.0.dylib (compatibility version 2.3.0, current version 2.3.0)\n    ~/.rvm/usr/lib/libreadline.6.2.dylib (compatibility version 6.0.0, current version 6.2.0)\n    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)\n    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)\n    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) \n```\n"}}
{"actor":{"display_login":"r-obert"}}