This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYMBOLS = ("a".."z").to_a | |
srand | |
def rand_word(len = 10) | |
SYMBOLS.sort_by { |_1,_2| rand <=> 0.5 }[0..(len-1)].join | |
end | |
was_affected = false | |
value = "some kind of initial value" | |
array_for_bulk_find_and_replace = (0..100_000).to_a.map { |c| [rand_word(3), rand_word(3)] } | |
array_for_bulk_find_and_replace.each_with_index do |replace_pair, i| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DeprecateAssertions | |
protected | |
def self.methods_to_replace | |
[ | |
:assert, | |
:assert_block, | |
:assert_equal, | |
:assert_no_match, | |
:assert_not_equal, | |
:assert_nothing_raised, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en: | |
devise: | |
invitations: | |
send_instructions: 'Лист з запрошенням було відправлено на %{email}.' | |
invitation_token_invalid: 'Передано неправильний токен запрошення!' | |
updated: 'Пароль успішно встановлено. Ви успішно увійшли.' | |
no_invitations_remaining: "Не лишилось запрошень" | |
invitation_removed: 'Ваше запрошення було видалено.' | |
new: | |
header: "Надсилання запрошення" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lunich on github. | |
* I am lunich (https://keybase.io/lunich) on keybase. | |
* I have a public key ASBs5im7KzXgd40GAvC2K9odPQYxDgy0jCOlYvTHXabSvQo | |
To claim this, I am signing this object: |