୨୧ ♡ ᜔ֺ ૮₍ ˶ ◕ ꒳ ◕ ˶ ₎ ა﹗ 𝅼 ׂ 𖤣𖥧𑁍 .•°¤*(¯`★´¯)*¤° ʅαყσυƚʂ°¤*(¯´★`¯)*¤°•. *•.¸♡ ʳᵉᵇˡᵒᵍ ᵒʳ ˡⁱᵏᵉ ⁱᶠ ʸᵒᵘ ᵘˢᵉ •´¯`•. 𝐃𝐨𝐧’𝐭 𝐫𝐞𝐩𝐨𝐬𝐭 𝐨𝐫 𝐜𝐥𝐚𝐢𝐦 𝐚𝐬 𝐲𝐨𝐮𝐫𝐬 .•´¯`• ♡¸.•* ୨୧ ♡

seen from Uzbekistan
seen from United Kingdom
seen from China
seen from China
seen from Austria

seen from Australia
seen from Japan
seen from Saudi Arabia

seen from Saudi Arabia
seen from Türkiye

seen from United Kingdom
seen from Vietnam
seen from Saudi Arabia
seen from Singapore
seen from United States

seen from Sweden

seen from United Kingdom
seen from Saudi Arabia
seen from United States

seen from Australia
୨୧ ♡ ᜔ֺ ૮₍ ˶ ◕ ꒳ ◕ ˶ ₎ ა﹗ 𝅼 ׂ 𖤣𖥧𑁍 .•°¤*(¯`★´¯)*¤° ʅαყσυƚʂ°¤*(¯´★`¯)*¤°•. *•.¸♡ ʳᵉᵇˡᵒᵍ ᵒʳ ˡⁱᵏᵉ ⁱᶠ ʸᵒᵘ ᵘˢᵉ •´¯`•. 𝐃𝐨𝐧’𝐭 𝐫𝐞𝐩𝐨𝐬𝐭 𝐨𝐫 𝐜𝐥𝐚𝐢𝐦 𝐚𝐬 𝐲𝐨𝐮𝐫𝐬 .•´¯`• ♡¸.•* ୨୧ ♡
like
Fork and Source a gem
I was working on this coding challenge for a job interview when I ran into a problem: I was getting this error:
ArgumentError: Invalid keyfile or passphrase
But it wasn't coming from the options I was passing, it was happening in a method inside the gem, that I wasn't able to access through the interface. So that meant I had to change the underlying source code.
This SO article which suggested I fork and source the gem, which basically means that you fork the gem, clone it in your local drive, make whatever edits you want to it, and then push the changes to your fork. You then point the gem to the new url, and voila, you are now using the modified gem in your app.
Here's the original piece of code in question:
key = Google::APIClient::PKCS12.load_key(File.open( opts['key'], mode: 'rb'), "notasecret" )
and here are my changes:
key = Google::APIClient::PKCS12.load_key(File.open( opts['key'], mode: 'rb'), "notasecret" )
all i did was add the , mode: 'rb'
I got the idea for this from this article talking about the implementing google api client on Windows, which in turn got its idea from this SO article about PKCS errors. The funny thing is that in the author's case, he felt his issue was that he was working on a windows instead of linux based system. But I had the same problem and I'm working in Mac OS.
So any way, I made the change to the source file.
Then I did the following in my terminal:
$ git clone https://gist.github.com/fa7dce865826d6931215.git $ cd fa7dce865826d6931215/ $ git remote add public https://gist.github.com/allenwlee/9636720 $ git push -f public