Skip to content

Change temporary file name extension while editing encrypted file.#32268

Merged
kaspth merged 1 commit intorails:masterfrom
freeletics:encrypted-tmp-file-name
Apr 1, 2018
Merged

Change temporary file name extension while editing encrypted file.#32268
kaspth merged 1 commit intorails:masterfrom
freeletics:encrypted-tmp-file-name

Conversation

@morgoth
Copy link
Member

@morgoth morgoth commented Mar 16, 2018

To have syntax higlihting in an editor try to preserve original extension of edited file

@rails-bot
Copy link

r? @rafaelfranca

(@rails-bot has picked a reviewer for you, use r? to override)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chomp(".enc") seems pertinent 😊

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Had to add to_s as we're dealing here with Pathname object, which has sub method, but no chomp

To have syntax highlighting in an editor try to preserve original extension of edited file.
@morgoth
Copy link
Member Author

morgoth commented Mar 21, 2018

r? @kaspth

@rails-bot rails-bot assigned kaspth and unassigned rafaelfranca Mar 21, 2018
@morgoth
Copy link
Member Author

morgoth commented Apr 1, 2018

@kaspth can it be merged? I think it would be a nice improvement in 5.2 release

@kaspth kaspth merged commit 2c56d63 into rails:master Apr 1, 2018
@kaspth
Copy link
Contributor

kaspth commented Apr 1, 2018

Yep, I was just working through my list now! Thanks!

kaspth added a commit that referenced this pull request Apr 1, 2018
Change temporary file name extension while editing encrypted file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants