Replace IRB with Pry (in your Gemfile) and Byebug with pry-byebug.
gem 'pry-rails', group: [:development, :test]
gem 'pry-byebug', group: [:development, :test]| https://chris.beams.io/posts/git-commit/ | |
| https://ncona.com/2011/07/how-to-delete-a-commit-in-git-local-and-remote/ | |
| http://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html | |
| https://stackoverflow.com/questions/10153486/how-to-delete-the-last-n-commit-on-github-and-locally | |
| https://stackoverflow.com/questions/448919/how-can-i-remove-a-commit-on-github | |
| https://toster.ru/q/455554 - how to checkout git reset --hard | |
| https://git-scm.com/book/ru/v1/Git-%D0%B8%D0%B7%D0%BD%D1%83%D1%82%D1%80%D0%B8-%D0%9E%D0%B1%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B8-%D0%B2%D0%BE%D1%81%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85 - Обслуживание и восстановление данных | |
| https://chrisk.io/undo-git-pull/ | |
| https://support.beanstalkapp.com/article/1004-how-do-i-undo-things-in-git#3 | |
| https://git-scm.com/docs/git-annotate |
| http://merle-amber.blogspot.com/2008/09/mock.html | |
| https://vasily.polovnyov.ru/posts/double-mock-stub.html | |
| https://habr.com/post/169381/ | |
| http://rubyblog.pro/2017/10/rspec-difference-between-mocks-and-stubs | |
| https://relishapp.com/rspec/rspec-mocks/docs/basics/partial-test-doubles | |
| http://lazybios.com/2016/08/rspec-expectations-cheat-sheet/ | |
| https://vasily.polovnyov.ru/posts/double-mock-stub.html | |
| https://vasily.polovnyov.ru/posts/describe-vs-context.html | |
| https://relishapp.com/rspec/rspec-mocks/v/2-99/docs/method-stubs | |
| https://stackoverflow.com/questions/39626805/passing-parameters-to-an-rspec-shared-example |
| # app/channels/hello_channel.rb | |
| class HelloChannel < ActionCable::Channel::Base | |
| def say_hello(data) | |
| times_to_say_hello = data.fetch("times_to_say_hello") | |
| hello = "Hello, #{current_profile.name}!" | |
| times_to_say_hello.times do | |
| ActionCable.server.broadcast(current_profile.id, hello) | |
| end | |
| end |
| class C | |
| def self.no_dot | |
| puts "Self is #{self}" | |
| end | |
| self.no_dot | |
| no_dot | |
| end | |
| #Не особо понимаю разницу между вызовом просто no_dot и self.no_dot |