{"head":"d9bf26bc0db2e3942e8206fa56aa51e32a334db5","size":76,"push_id":46692395,"ref":"refs/heads/master","commits":[{"sha":"3a36d283421bdf283574a4fb012c4bdc4d2481cb","author":{"name":"Ryan Fitzgerald","email":"a41ab1eb109619127ac06c9e4595f7df9bb6d168@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/3a36d283421bdf283574a4fb012c4bdc4d2481cb","message":"improve docs for Pry::Method"},{"sha":"ddb51d5b382801e8046c8842bfaf8acadeb69dc1","author":{"name":"Ryan Fitzgerald","email":"a41ab1eb109619127ac06c9e4595f7df9bb6d168@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/ddb51d5b382801e8046c8842bfaf8acadeb69dc1","message":"fix make_header bug (fix #286)"},{"sha":"e9c2f383eb6a9e3a4134f51f60ddf9c29d6ce165","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/e9c2f383eb6a9e3a4134f51f60ddf9c29d6ce165","message":"Pry now indents code similar to IRB.\n\nCode is indented using the class Pry::Indent. This class uses an internal stack\nthat contains the indentation levels for each line of code. Certain keywords\nsuch as \"class\" or \"def\" will add data to this stack so that the next line is\nindented, other keywords such as \"end\" or \"}\" will remove data from the stack,\ncausing the next line to be un-indented.\n\nPry::Indent is hooked into Pry#retrieve_line as well as Pry#readline. This means\nthat both input strings as well as the ones displayed by \"show-method\" are\nindented. Sadly due to the way Readline works input strings are indented similar\nto IRB. This means that instead of the following:\n\n    > class User\n    >   def initialize\n    >   end\n    > end\n\nYou'll get the following:\n\n    > class User\n    >   def initialize\n    >     end\n    >   end\n\nWhile annoying there doesn't seem to be a way to work around this issue. Luckily\nthe \"show-method\" command indents your code properly.\n\nBy default indentation is turned on. This can be turned off (or back on) using\nthe configuration item Pry.config.indent. However, if you turn this option off\nafter a method is defined \"show-method\" will still show it with indentation as\nindentation happens on input rather than only when code is displayed.\n\nFor more information see Pry::Indent#indent in lib/pry/indent.rb.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"42e943733b2346e326596cd0578437086ef96675","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/42e943733b2346e326596cd0578437086ef96675","message":"Compatibility with 1.8 and friends.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"bdd0759c7ec2efb88614beeb58480337e65ea705","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/bdd0759c7ec2efb88614beeb58480337e65ea705","message":"No need for #===()\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"8ca04c22df2ecf1d2c68d76b7569e98d7084f1ae","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/8ca04c22df2ecf1d2c68d76b7569e98d7084f1ae","message":"fixed some style issues; renamed Pry.config.indent to Pry.config.auto_indent"},{"sha":"282ea70971652cd818bd8ce4dddb3fe5742938e4","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/282ea70971652cd818bd8ce4dddb3fe5742938e4","message":"moved indent.rb require to pry_instance.rb"},{"sha":"6f78f1dd437fe63bce79893d1f11c248fd400373","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/6f78f1dd437fe63bce79893d1f11c248fd400373","message":"Reset written lines using tput.\n\nWhen writing code in Pry blocks of code are now aligned properly thanks to \n`tput`. This was inspired by https://github.com/janlelis/ripl-auto_indent/blob/master/lib/ripl/auto_indent.rb#L53-62. Please note that currently \"show-method\" is broken as it\nwill also trigger the line resetting.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"029d192e95c6b15a220a565c5320ff830517fc5d","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/029d192e95c6b15a220a565c5320ff830517fc5d","message":"fixed tput for show-method"},{"sha":"971223d94a4eb69373e7df57776ff713cba9b879","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/971223d94a4eb69373e7df57776ff713cba9b879","message":"move code to correct indentation into a method on Pry::Indent"},{"sha":"e2db26574f84f648d03d78b52aa0b9d6d208bb7c","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/e2db26574f84f648d03d78b52aa0b9d6d208bb7c","message":"Pry::Indent now handles single line statements.\n\nPreviously certain lines of code would break the indentation process. For\nexample, the following code would result in incorrect indentation:\n\n    def hello; end\n    puts \"Hello world\"\n\nThis would result in the following:\n\n    def hello; end\n      puts \"Hello world\"\n\nI've worked around this issue by adding a new method\n(Pry::Indent#skip_indentation?) that does a lookahead on the list of tokens to\ndetermine if a line should be indented or not. It's probably not the most\nefficient way of doing it but it makes it quite easy to add more tokens to the\nlist without adding a lot more complexity.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"dc95ff8cc984e3e21e4ce5e92a1104b452d80d33","author":{"name":"Yorick Peterse","email":"82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/dc95ff8cc984e3e21e4ce5e92a1104b452d80d33","message":"Removed a useless line of code\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>"},{"sha":"a73529bacfdda7a6986ebcec01d04b3afd52c79d","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/a73529bacfdda7a6986ebcec01d04b3afd52c79d","message":"added Pry::Indent#reset method to clear out indentation levels and reset the stack"},{"sha":"6d77e577cbab178ce63a87ef9b218de0b2fcaa8b","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/6d77e577cbab178ce63a87ef9b218de0b2fcaa8b","message":"fix ^D behaviour with indentation, fix command behaviour with indentation\n\n* Now ^D resets the indentation stack (@indent.reset)\n* Command now execute properly notwithstanding an indentation level"},{"sha":"3ea75bb026b6ba9c5b4fecc3236e25bf696b5afe","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/3ea75bb026b6ba9c5b4fecc3236e25bf696b5afe","message":"added Pry::Indent#indent_level method as as short-hand for stack[-1]"},{"sha":"c3ce60e7499fc5b3e2235f38bb98cf3b0b30effe","author":{"name":"John Mair","email":"97ea805dc4e09eb53a5875179c78385b35058fc0@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/c3ce60e7499fc5b3e2235f38bb98cf3b0b30effe","message":"indentation is now reset if the eval_string is cleared (i.e when the ! command is invoked)"},{"sha":"4dc9d27cf625540e24a90b2e322ea2c0fc9f1801","author":{"name":"Conrad Irwin","email":"31b6f693a82a5124643a54e11972ee47582d7be9@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/4dc9d27cf625540e24a90b2e322ea2c0fc9f1801","message":"make sure Pry::Method#name returns a String."},{"sha":"f140c5379a5c4973dd017b9cacc04034a9e36fd5","author":{"name":"Conrad Irwin","email":"31b6f693a82a5124643a54e11972ee47582d7be9@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/f140c5379a5c4973dd017b9cacc04034a9e36fd5","message":"Add all_from_(obj|class) methods to Pry::Method\n\nThis is the core part of an \"ls\" implementation."},{"sha":"1c0a82f888dca97912538e1fc3520ebcd82ebaab","author":{"name":"Conrad Irwin","email":"31b6f693a82a5124643a54e11972ee47582d7be9@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/1c0a82f888dca97912538e1fc3520ebcd82ebaab","message":"Allow commands to opt-out of Shellwords."},{"sha":"fd26a55627da4d8d5586adeba26470df5db15746","author":{"name":"Conrad Irwin","email":"31b6f693a82a5124643a54e11972ee47582d7be9@gmail.com"},"url":"https://api.github.com/repos/ConradIrwin/pry/commits/fd26a55627da4d8d5586adeba26470df5db15746","message":"Add (instance_)resolution_order to Pry::Method"}],"legacy":{"head":"d9bf26bc0db2e3942e8206fa56aa51e32a334db5","size":76,"push_id":46692395,"shas":[["3a36d283421bdf283574a4fb012c4bdc4d2481cb","rwfitzge@gmail.com","improve docs for Pry::Method","Ryan Fitzgerald"],["ddb51d5b382801e8046c8842bfaf8acadeb69dc1","rwfitzge@gmail.com","fix make_header bug (fix #286)","Ryan Fitzgerald"],["e9c2f383eb6a9e3a4134f51f60ddf9c29d6ce165","yorickpeterse@gmail.com","Pry now indents code similar to IRB.\n\nCode is indented using the class Pry::Indent. This class uses an internal stack\nthat contains the indentation levels for each line of code. Certain keywords\nsuch as \"class\" or \"def\" will add data to this stack so that the next line is\nindented, other keywords such as \"end\" or \"}\" will remove data from the stack,\ncausing the next line to be un-indented.\n\nPry::Indent is hooked into Pry#retrieve_line as well as Pry#readline. This means\nthat both input strings as well as the ones displayed by \"show-method\" are\nindented. Sadly due to the way Readline works input strings are indented similar\nto IRB. This means that instead of the following:\n\n    > class User\n    >   def initialize\n    >   end\n    > end\n\nYou'll get the following:\n\n    > class User\n    >   def initialize\n    >     end\n    >   end\n\nWhile annoying there doesn't seem to be a way to work around this issue. Luckily\nthe \"show-method\" command indents your code properly.\n\nBy default indentation is turned on. This can be turned off (or back on) using\nthe configuration item Pry.config.indent. However, if you turn this option off\nafter a method is defined \"show-method\" will still show it with indentation as\nindentation happens on input rather than only when code is displayed.\n\nFor more information see Pry::Indent#indent in lib/pry/indent.rb.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["42e943733b2346e326596cd0578437086ef96675","yorickpeterse@gmail.com","Compatibility with 1.8 and friends.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["bdd0759c7ec2efb88614beeb58480337e65ea705","yorickpeterse@gmail.com","No need for #===()\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["8ca04c22df2ecf1d2c68d76b7569e98d7084f1ae","jrmair@gmail.com","fixed some style issues; renamed Pry.config.indent to Pry.config.auto_indent","John Mair"],["282ea70971652cd818bd8ce4dddb3fe5742938e4","jrmair@gmail.com","moved indent.rb require to pry_instance.rb","John Mair"],["6f78f1dd437fe63bce79893d1f11c248fd400373","yorickpeterse@gmail.com","Reset written lines using tput.\n\nWhen writing code in Pry blocks of code are now aligned properly thanks to \n`tput`. This was inspired by https://github.com/janlelis/ripl-auto_indent/blob/master/lib/ripl/auto_indent.rb#L53-62. Please note that currently \"show-method\" is broken as it\nwill also trigger the line resetting.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["029d192e95c6b15a220a565c5320ff830517fc5d","jrmair@gmail.com","fixed tput for show-method","John Mair"],["971223d94a4eb69373e7df57776ff713cba9b879","jrmair@gmail.com","move code to correct indentation into a method on Pry::Indent","John Mair"],["e2db26574f84f648d03d78b52aa0b9d6d208bb7c","yorickpeterse@gmail.com","Pry::Indent now handles single line statements.\n\nPreviously certain lines of code would break the indentation process. For\nexample, the following code would result in incorrect indentation:\n\n    def hello; end\n    puts \"Hello world\"\n\nThis would result in the following:\n\n    def hello; end\n      puts \"Hello world\"\n\nI've worked around this issue by adding a new method\n(Pry::Indent#skip_indentation?) that does a lookahead on the list of tokens to\ndetermine if a line should be indented or not. It's probably not the most\nefficient way of doing it but it makes it quite easy to add more tokens to the\nlist without adding a lot more complexity.\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["dc95ff8cc984e3e21e4ce5e92a1104b452d80d33","yorickpeterse@gmail.com","Removed a useless line of code\n\nSigned-off-by: Yorick Peterse <yorickpeterse@gmail.com>","Yorick Peterse"],["a73529bacfdda7a6986ebcec01d04b3afd52c79d","jrmair@gmail.com","added Pry::Indent#reset method to clear out indentation levels and reset the stack","John Mair"],["6d77e577cbab178ce63a87ef9b218de0b2fcaa8b","jrmair@gmail.com","fix ^D behaviour with indentation, fix command behaviour with indentation\n\n* Now ^D resets the indentation stack (@indent.reset)\n* Command now execute properly notwithstanding an indentation level","John Mair"],["3ea75bb026b6ba9c5b4fecc3236e25bf696b5afe","jrmair@gmail.com","added Pry::Indent#indent_level method as as short-hand for stack[-1]","John Mair"],["c3ce60e7499fc5b3e2235f38bb98cf3b0b30effe","jrmair@gmail.com","indentation is now reset if the eval_string is cleared (i.e when the ! command is invoked)","John Mair"],["4dc9d27cf625540e24a90b2e322ea2c0fc9f1801","conrad.irwin@gmail.com","make sure Pry::Method#name returns a String.","Conrad Irwin"],["f140c5379a5c4973dd017b9cacc04034a9e36fd5","conrad.irwin@gmail.com","Add all_from_(obj|class) methods to Pry::Method\n\nThis is the core part of an \"ls\" implementation.","Conrad Irwin"],["1c0a82f888dca97912538e1fc3520ebcd82ebaab","conrad.irwin@gmail.com","Allow commands to opt-out of Shellwords.","Conrad Irwin"],["fd26a55627da4d8d5586adeba26470df5db15746","conrad.irwin@gmail.com","Add (instance_)resolution_order to Pry::Method","Conrad Irwin"]],"ref":"refs/heads/master"}}