A minimal CQRS library for Ruby.
Small Clojure lib to provide basic GPG keypair generation, encryption & decryption facilities
monorepo triggers test
this gem is in progress and rapidly changing. production ready release is coming soon. please msg me if you'd like to help
A comprehensive Clojure client for the entire Amazon AWS api.
A data inspection component for Om
API Blueprint
Google Pub/Sub -> Archai
push eventbilus/go-rally
commit sha 56f1f869253ce83fc6cf25d9148c7ddef2cfb9d7
Fix comments > 20 not showing up due to pagination.
commit sha 14df9d42fe47086ca58c2bc240adae1d78094fd1
Prevent images overflowing post media object for narrow browser.
commit sha 806d52beb89f12fba62a88915965e33cc6828b3a
Update the changelog.
push time in 2 days
push eventbilus/go-rally
commit sha 5d2cf17d35a8ecd6529f04aec781b8ecb8e4e84b
Fix pasting images.
commit sha c133955ece957dc885e4e4725986b2fe95e9a3e6
Clear comment after submitting, make the editor shorter.
push time in 3 days
push eventbilus/go-rally
commit sha cad77429350bc12b990de527814fa7aa22ed95b7
Extract more services.
push time in 3 days
push eventbilus/go-rally
commit sha 7d5422e6b8959569842299f840be63083b65e0ea
Extract voting code into service + store + storage.
commit sha 6835d44dba45074cce9c92c4b7cdb217e255f8de
Nest posts under boards so VotingStrategy can be used in BoardsController#SetUp.
commit sha 930e05a0af65ce0105fb6250988a740ed7794ed3
Fix failing tests. Reviewed-by: Marcin Bilski <[email protected]>
commit sha 5bea62af6c67cb1249ec49a7dc1344db6023b480
Fix votes remaining lag.
push time in 4 days
push eventbilus/go-rally
commit sha 18670676af1ddb72707646d563b49df924882131
Create an experimental Controller and use it with Auth.
commit sha 30fa121fa9d809901ae74321a74840181799df4d
Put buffalo context into controller so we can use the latter for everything.
commit sha cd56a2eff4d7ec1505573a0ab64f45781da6ed5f
Test-drive AuthenticatedController.
commit sha e868e075fda4094126c962a52ed7aee370401fc1
Define & use PostsController.
commit sha 35d5fce71b0a3a3b08c67ab1329dd9a299b754f2
Use PostsController for voting.
commit sha f60609d64316eb9453c7253f65b8259d457e4302
Use controllers for Boards & voting, fix csrf skipped for all actions of a given controller.
commit sha 8ec2040e5fcc839df828a65a8a8b9d4355bff08f
Convert star & refill actions to controller.
commit sha 4de3b73d78aef0ae8c1fc3766507d3447f919422
Wrap comment actions into a controller.
commit sha d083486a2c7a26dd4b854d686dfa8de31beadf61
Wrap the remaining routes.
commit sha d35e6b9f33f03097e3acc4e4be06133d33c9471c
Clean up.
push time in 6 days
push eventbilus/go-rally
commit sha d35e6b9f33f03097e3acc4e4be06133d33c9471c
Clean up.
push time in 6 days
push eventbilus/go-rally
commit sha 8ec2040e5fcc839df828a65a8a8b9d4355bff08f
Convert star & refill actions to controller.
commit sha 4de3b73d78aef0ae8c1fc3766507d3447f919422
Wrap comment actions into a controller.
commit sha d083486a2c7a26dd4b854d686dfa8de31beadf61
Wrap the remaining routes.
push time in 7 days
push eventbilus/go-rally
commit sha 580ae009b00d01ed79b92e4f1321bc8031e81fda
Convert star & refill actions to controller.
commit sha 94dd0495d34d4c06442a217e06a72d69baec56e1
Wrap comment actions into a controller.
commit sha 733ecf25761f47696736885c750f6705e842d052
Wrap the remaining routes.
push time in 7 days
push eventbilus/go-rally
commit sha e87f7c522a0cf9bcfe4085e96850d5fe90e6d5d0
Improve quick access list so it shows starred and other lists (if necessary) up to a limit.
push time in 8 days
push eventbilus/go-rally
commit sha 04426834cc000cb62189983519279cbd651518af
Add an option for starring boards.
commit sha b77168ab73423862f41a4ec8672ff8c6159a03bb
Add user dashboard showing starred boards.
commit sha 0dc4d0ec2e7f0917ecd4b7b87c3ec65101399685
Refactor the code.
commit sha 7f12ae004b66a691de649c7e7b12df09abff0c6f
Improve quick access list so it shows starred and other lists (if necessary) up to a limit.
push time in 8 days
push eventbilus/go-rally
commit sha 7f12ae004b66a691de649c7e7b12df09abff0c6f
Improve quick access list so it shows starred and other lists (if necessary) up to a limit.
push time in 9 days
push eventbilus/go-rally
commit sha 5fc8cfe55f34f01bd4d73e100874ac77aeb14b6f
WIP quick access list.
push time in 9 days
push eventbilus/go-rally
commit sha 8f70fe233e28c129a54a08d9adc70de176ab30d2
Fix incorrect number of votes (see regression test).
commit sha 04426834cc000cb62189983519279cbd651518af
Add an option for starring boards.
commit sha b77168ab73423862f41a4ec8672ff8c6159a03bb
Add user dashboard showing starred boards.
commit sha 0dc4d0ec2e7f0917ecd4b7b87c3ec65101399685
Refactor the code.
commit sha de60c84027c26b87c7ea47f065a0711d69dffc88
WIP quick access list.
push time in 10 days
push eventbilus/go-rally
commit sha 8f70fe233e28c129a54a08d9adc70de176ab30d2
Fix incorrect number of votes (see regression test).
push time in 10 days
push eventbilus/go-rally
commit sha cfb77dfe48a93dc3ddc4d7dcaeeb191d0aabbc33
Refactor the code.
push time in 11 days
push eventbilus/go-rally
commit sha aa7d944d111daa95ffdc4df3b63702216be9b0a8
Alter individual post look.
push time in 13 days
push eventbilus/go-rally
commit sha 0ba205285e718a40b27cfd3e326821c94c33d727
Redirect to board after deleting post, remove superfluous post routes.
push time in 13 days
push eventbilus/go-rally
commit sha 3cf3b2176f847288a41b317582194b0f722d6bd8
Redirect to post after updating, it's annoying that it redirects to the board.
push time in 13 days
push eventbilus/go-rally
commit sha 87e78bb1e65c14f47df7e3e1aaadd8ed8e6146d6
Move changelog to templates/ dir.
commit sha b78b395bf26dba3bbadcf5573ccac600f0bc88da
Symlink to changelog from root dir.
push time in 13 days
push eventbilus/go-rally
commit sha 22503d4ff18152011b7ecbbffb134700356aee0e
Tweak layout a bit.
commit sha 2c059f92a11b1e258d19eb5fdca29db5262dbbc2
Fix failing action tests.
commit sha 98ce8418013e518bed0e7f2805ea801f42769b84
Fix failing model tests.
commit sha 5f376963453a004241ffdb2f22468a6c89c381ba
Delete fixtures, we no longer need them.
commit sha 41a23e2f96f15bdd59e9c3721c603c214633007a
Initial voting strategy functionality.
commit sha bdfc3362915c497d92beaef781319a1ad340439f
Integrate voting with web UI.
commit sha 00fbabc56aaba731026841fe76382f949025058b
Fix race condition when up/downvoting.
commit sha 601229413055c38170791aea8f46cb9bc554b20c
Fix failing tests.
commit sha 963f0989a60558f1d59172b535b38517a8183b39
Drop User#Votes.
commit sha ccd39a8ee11c0a75761c39fbb72b05d6fcbece70
Add vote auditing.
commit sha 9fc1b52351c26534e6a5010eb8f3d1551c3f8b34
Remove Vote model, no longer necessary since moving voting to Redis (and adding voting audit).
commit sha 137b23a072e363bdfa0387d5954ce9a2c348109d
Make board vote limit configurable.
commit sha 9be888231f03f49b5106ecf984b296ec1b9f7554
Make vote limit optional.
commit sha 924ca41e3695aec98be7929f037516a0af50fbcc
Make current user the owner of board they just created.
commit sha a889f786f1ed3212bd8eff92e5cbcd6dded63e2f
Only board's owner can destroy/update it.
commit sha ae9812f5325e5f71cfc9141a88f828df4da7dff9
Board owner can refill votes.
commit sha 354f4a48a382b1300cfc889c4125173e8f9be386
Indicate op comments, add more icons.
commit sha 2c60aa072dc16d237817cf449c6798034d98ea51
Style everything.
commit sha 05ecaa88a393f8b8e73428ee991d39576cb10336
Go to board after updating post.
commit sha 91823da21cac0bb8945ed1bb977c83711dc7b2ea
Allow voting on posts's page.
push time in 13 days
push eventbilus/go-rally
commit sha 52270eba944305a34499c2a4b68627ed27b8f172
Allow board owner to edit/delete posts.
push time in 13 days
push eventbilus/go-rally
commit sha 86c624b183cf3a38a33e16b319ee17205b5a4f9a
Allow board owner to edit/delete posts.
push time in 13 days
push eventbilus/go-rally
commit sha 91823da21cac0bb8945ed1bb977c83711dc7b2ea
Allow voting on posts's page.
push time in 13 days
push eventbilus/go-rally
commit sha 354f4a48a382b1300cfc889c4125173e8f9be386
Indicate op comments, add more icons.
commit sha 2c60aa072dc16d237817cf449c6798034d98ea51
Style everything.
commit sha 05ecaa88a393f8b8e73428ee991d39576cb10336
Go to board after updating post.
push time in 13 days
push eventbilus/go-rally
commit sha ae9812f5325e5f71cfc9141a88f828df4da7dff9
Board owner can refill votes.
push time in 13 days
push eventbilus/go-rally
commit sha 49e9e9fa20ddaaf80953b65f22852c1b914b391e
Board owner can refill votes.
push time in 13 days
push eventbilus/go-rally
commit sha 3674c97979b8ffffeaf17556506711700d997320
Board owner can refill votes.
push time in 13 days
push eventbilus/go-rally
commit sha 9be888231f03f49b5106ecf984b296ec1b9f7554
Make vote limit optional.
commit sha 924ca41e3695aec98be7929f037516a0af50fbcc
Make current user the owner of board they just created.
commit sha a889f786f1ed3212bd8eff92e5cbcd6dded63e2f
Only board's owner can destroy/update it.
push time in 13 days
push eventbilus/go-rally
commit sha 5d57b51983f4e61ebaf0a5a3c8ce9156048ff4e3
Make vote limit optional.
push time in 13 days
push eventbilus/go-rally
commit sha 137b23a072e363bdfa0387d5954ce9a2c348109d
Make board vote limit configurable.
commit sha 96051b0835779137d91467866840fc1918ca146f
Make vote limit optional.
push time in 13 days
push eventbilus/go-rally
commit sha ccd39a8ee11c0a75761c39fbb72b05d6fcbece70
Add vote auditing.
commit sha 9fc1b52351c26534e6a5010eb8f3d1551c3f8b34
Remove Vote model, no longer necessary since moving voting to Redis (and adding voting audit).
push time in 13 days
push eventbilus/go-rally
commit sha 601229413055c38170791aea8f46cb9bc554b20c
Fix failing tests.
commit sha 963f0989a60558f1d59172b535b38517a8183b39
Drop User#Votes.
push time in 13 days
push eventbilus/go-rally
commit sha 00fbabc56aaba731026841fe76382f949025058b
Fix race condition when up/downvoting.
push time in 14 days
push eventbilus/go-rally
commit sha bdfc3362915c497d92beaef781319a1ad340439f
Integrate voting with web UI.
push time in 14 days
push eventbilus/go-rally
commit sha b6101c69c0924b0f93294e23eb065aeeb3743e7c
Update TODO.
commit sha a82d2fc4e406886512205193ff2a44136b70af65
Add boards resource.
commit sha 985aaaef75c8669bb1d9c85efc2dba47d2178a50
Fix foreign key migration.
commit sha b70aa9e85b83ce6148b98a98e9d8ca3e03d7dd85
Put feature flags into a separate file.
commit sha d5e65c2e48a3a6f7babd470f52938f7d88b7d841
Associate posts with parent boards.
commit sha fb4f1ee39ddde9a2d3f446fe3ebbb045262572eb
Fix nullable column handling.
commit sha f5509e007f2b708c66db1f5dfed74e04d2ca5092
Show board's posts.
commit sha 594b83711b6b623b4c2369e8b321120d065b2320
Link posts to their respective boards.
commit sha 8f2388c309247f3dcf756d2abf7cf096b5ce4a77
User can create posts associated with the current board.
commit sha da8418e91f52e6aa18b2c91c99671ee383500887
Add support for switching between boards.
commit sha b14ce11cb51207d25cbfd34dd1b4563d72bd7f9e
Return 404 for malformed post ids.
commit sha 8b1775c917cfd43f3162d13240e8a44cb345169a
Remove "My drafts".
commit sha 2081f9a1bf16818aca19463527db0aa00529695a
Remember the last accessed board and show it for /.
commit sha 97a0333827558e3c9ddab25c5810d45e8980cf9a
Link home icon to list of boards.
commit sha c02d4767b5c6ab37dda6205e788a45ea560d8e41
Fix broken ordering buttons.
commit sha 30ec9ab40a9c75258e8af07ef4d7b8d479fc8496
Update TODOs.
push time in 18 days
push eventbilus/go-rally
commit sha 30ec9ab40a9c75258e8af07ef4d7b8d479fc8496
Update TODOs.
push time in 18 days
push eventbilus/go-rally
commit sha c02d4767b5c6ab37dda6205e788a45ea560d8e41
Fix broken ordering buttons.
commit sha 532e2275f19d2f7fa428256c63654c521683a5dd
Update TODOs.
push time in 18 days
push eventbilus/go-rally
commit sha 97a0333827558e3c9ddab25c5810d45e8980cf9a
Link home icon to list of boards.
push time in 18 days
push eventbilus/go-rally
commit sha 2081f9a1bf16818aca19463527db0aa00529695a
Remember the last accessed board and show it for /.
commit sha d04e5ef0d858d2dbee646ebd5f6db1b4c2714b0e
Link home icon to list of boards.
push time in 18 days
push eventbilus/go-rally
commit sha 5aa85f7f60098d26f573bae99f7bf6bcc9c93371
Remember the last accessed board and show it for /.
commit sha bb7a4a3afbe93c42873d41712881364e6512cc77
Link home icon to list of boards.
push time in 18 days
push eventbilus/go-rally
commit sha 5c97b10e363e5d62dfacb0713d3330e65894a447
Fix broken test.
commit sha 162b573b5c8610a794daf353546553b18b8e6fce
Store attachments in PG instead of filesystem to make it compatible with Heroku.
push time in 19 days
push eventbilus/go-rally
commit sha 78b835b8edc521264cfa86bad8f6cf607160c43a
Fix the 5MB assets due to Font Awesome collective size.
commit sha 1168ab8a499e6580ebcf7bdcc7a4789c826dd397
Update the TODO list.
push time in 19 days
push eventbilus/go-rally
commit sha ef52816f90a8b7858ebd0b18b413552f7d8b6eb2
Fix the 5MB assets due to Font Awesome collective size.
push time in 19 days
push eventbilus/go-rally
commit sha 59258457a1ddd0e668e5311a11ac596ee5886020
Init new user's votes.
push time in 19 days
push eventbilus/go-rally
commit sha ad3891e16c0b60fc97c601adaa59fd5996b670f8
Show Google btn.
push time in 19 days
push eventbilus/go-rally
commit sha 00bf4afd7ab274558c4797f7f41fedbe493d922a
heroku config
commit sha 4997658c2c07411d19b016098c62a0e109e61008
migrations folder stub
commit sha 260837e826e41fa1bee1d666db7c154cec4fb379
Deploy to heroku.
commit sha 90dc7abe77d45a436fd1636674bbff8556ebb4f9
Show Google btn.
push time in 19 days
push eventbilus/go-rally
commit sha 86d2619e8622245d350aac01866f3942e6e4d39c
Update TODO.
commit sha 75dc94bf0710e860595eaad03623edbe39041a16
Style post listing.
commit sha b3ab51d018f4732293c1ac6fe564e3a677bbd32e
Style post list.
commit sha da920bce9db27d67f63f4e171354c5ce5b698015
Comment out flash.
commit sha 07b747b83b38db19eb881d2c6570e2c2809d6513
Style drafts.
commit sha 45cab15ee7ff8d00d100a2a3a88a5da985543883
Spice up navbar, breadcrumbs.
commit sha eef09375713ef2e8597df7d05986b40fb289aacf
Style using material theme.
push time in 19 days
push eventbilus/go-rally
commit sha eef09375713ef2e8597df7d05986b40fb289aacf
Style using material theme.
push time in 20 days
push eventbilus/go-rally
commit sha 19a84d28e1ff28f321da41890a671b1beaa6cc6e
Style using material theme.
push time in 20 days
push eventbilus/go-rally
commit sha bc9a4b59219a2296b5ddc3b7d0a96f0b0dea5f0b
Style using material theme.
push time in 20 days
push eventbilus/go-rally
commit sha 7fda40f77358b723a14fc4ac25c7a712b9e57fae
Upgrade buffalo.
commit sha 9c57548902e24270101967cb4fae22259f795343
Add support for anonymous posts.
commit sha 59ed4725a934a7ea4022b84ad7f2412b0aae13b8
Fix broken seeds.
commit sha c8ca7c2798e43ce6b5409d2dec13fb5754cddaee
Add post fixture.
commit sha 70f6e7da3a09a97dfa9b54ae7c4d2454d2e4b2c5
Add comments resource.
commit sha 776b3e8d772586e9e768036d8b7f45d1dac74771
PoC commenting works.
commit sha cd15c4f8675bea709a7d3ec269a97a4794baca79
Show post/comment authors, avatars.
commit sha abe40851ebd5e9f25d0a8806fce3af2b5963d955
Show comment count, updated after submitting new post.
commit sha e3fbda5d221b349037d309882ac5b1c2696be807
Update buffalo.
commit sha d92fd6306d1dd86945d4f1cc1c969cc07860a826
Change the avatar for anonymous posts.
commit sha 12b83d6a2bd8f2b43acbd52e68420234202c9ec0
Refactor authorization, add links to delete comments.
commit sha afaa1d9123b6a2786a1b7e16a2873f646c080381
Author can delete their comments.
commit sha 626e41db376fb5fc3ae2d7c0ad471c4327be8d38
Add support for posting anonymous comments.
commit sha b02eba0fa51e86f28e8f2741cc4ae505dfd960fd
Show spinner while loading comments.
push time in 20 days
push eventbilus/go-rally
commit sha 626e41db376fb5fc3ae2d7c0ad471c4327be8d38
Add support for posting anonymous comments.
commit sha e9442a53c8e000c2330b92c13689929c36687377
Show spinner while loading comments.
push time in 20 days
push eventbilus/go-rally
commit sha afaa1d9123b6a2786a1b7e16a2873f646c080381
Author can delete their comments.
push time in 20 days
push eventbilus/go-rally
commit sha abe40851ebd5e9f25d0a8806fce3af2b5963d955
Show comment count, updated after submitting new post.
commit sha e3fbda5d221b349037d309882ac5b1c2696be807
Update buffalo.
commit sha d92fd6306d1dd86945d4f1cc1c969cc07860a826
Change the avatar for anonymous posts.
commit sha 12b83d6a2bd8f2b43acbd52e68420234202c9ec0
Refactor authorization, add links to delete comments.
push time in 20 days
push eventbilus/go-rally
commit sha cd15c4f8675bea709a7d3ec269a97a4794baca79
Show post/comment authors, avatars.
push time in 21 days
push eventbilus/go-rally
commit sha ba1a3f747075d754777baf86bb3d972bc4c7f47d
Show post/comment authors, avatars.
push time in 21 days
push eventbilus/go-rally
commit sha 776b3e8d772586e9e768036d8b7f45d1dac74771
PoC commenting works.
push time in 21 days
push eventbilus/go-rally
commit sha 0888911bb84b79ce4859667073971db48d35d764
PoC commenting works.
push time in 21 days
push eventbilus/go-rally
commit sha 3ef5a9f89d4aa6bec63366263995b47f59459d61
Add basic tests for Attachment model.
push time in 22 days
push eventbilus/go-rally
commit sha c4313d7c09bfbddd6be7db27b2f824e55cd77851
Upgrade Go to v1.15.
commit sha c11307be0f3edc8774e6f69ef9d9640a2a21f79e
Add basic tests for Attachment model.
push time in 22 days
push eventbilus/go-rally
commit sha aa3442cdb793cc6c158d8c200f5bff5cfd777247
Disallow editing votes directly.
commit sha 451f1666b75ba0cf439174412c7b67d78a119251
Prepare for removing GET /posts/new.
commit sha afd90ab1eadebd57974647fa2dcb1b75df9a880b
Store attachments in temp dir by default.
commit sha f295118990d83362295454ca6bf738fa7b491bfa
Posts are created as drafts.
commit sha 432805a2e411060013778ddca485f82233c4307f
Hide drafts.
commit sha 206f3f1e4a37a54e62216217c1a15e7e40b43e58
Post can be published/unpublished, deleted while editing.
commit sha f0e50aecf3e5658d3267d43d6dc443389f05f87f
User can delete/edit their drafts.
push time in a month
push eventbilus/go-rally
commit sha f0e50aecf3e5658d3267d43d6dc443389f05f87f
User can delete/edit their drafts.
push time in a month
push eventbilus/go-rally
commit sha e3a0997c8267c1dcd523a05e6f3b1c6303f91cb4
Remove attachment after destroying the model.
push time in a month
push eventbilus/go-rally
commit sha 87cc62bab0756c3d165c7de3eed947ca82ad2f70
Add basic markdown editor.
commit sha b5917d8ca2f99db702b8160efd83f00dc8cd03bc
Render images inline, not as attachments so they open in browser when user uses a link, instead of automatically downloading.
commit sha 07a96571b60cdd02db449193c22cb5191213e043
Store images in a configurable dir.
commit sha f56bcb54247aeeb3ad66d19b36c95e2b664d49eb
Remove attachment after destroying the model.
push time in a month
push eventbilus/go-rally
commit sha 305b320b34b3b207ed5571785c11d291643d87c1
Show time ago post created, fix time zone in timestamps.
push time in a month
push eventbilus/go-rally
commit sha 1f469d00892e64443ddecfabd03b377c2c5c1bd8
Add post sorting (Top/New).
push time in a month
push eventbilus/go-rally
commit sha 607bfa559820444e5653388c01ecddbca2f35381
Show user's available votes.
commit sha 1201183447a1b4b672535921f27f6c8efebe8b61
Update post vote counts atomically.
push time in a month
push eventbilus/go-rally
commit sha 7e87fbdbb601b125c929f7609e205b1fee9324f8
Update post vote counts atomically.
push time in a month
issue openedgobuffalo/buffalo
A minor glitch (?). To install goth plugin, I had to run buffalo plugins install github.com/gobuffalo/buffalo-goth, not mentioned by https://gobuffalo.io/en/docs/goth/
created time in a month
issue commentgobuffalo/buffalo
Error: Python executable is v3.6.4, which is not supported by gyp
Happened for me as well:
Building: /usr/local/Cellar/node/14.5.0/bin/node /Users/martinb/dev/rally/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/Cellar/node/14.5.0/bin/node',
gyp verb cli '/Users/martinb/dev/rally/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/Users/martinb/dev/rally/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/martinb/dev/rally/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/martinb/dev/rally/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:176:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/Users/martinb/dev/rally/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/martinb/dev/rally/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/martinb/dev/rally/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/martinb/dev/rally/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:176:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /Users/martinb/.pyenv/shims/python
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /Users/martinb/.pyenv/shims/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:442:11)
gyp ERR! stack at Socket.emit (events.js:314:20)
gyp ERR! stack at Pipe.<anonymous> (net.js:673:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/Cellar/node/14.5.0/bin/node" "/Users/martinb/dev/rally/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/martinb/dev/rally/node_modules/node-sass
gyp ERR! node -v v14.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
comment created time in a month
fork bilus/ihp
λ IHP is a modern batteries-included Web Framework, built on top of Haskell and Nix.
https://ihp.digitallyinduced.com/
fork in a month
push eventbilus/rally
commit sha 6c6f041b8446fd067a561e4d3e037dea844f19a6
Fix stylish-haskell breaking on generated source code, missing extensions.
push time in 2 months
push eventbilus/rally
commit sha 250412de4dc07ae3848a45b99f1e63b4a50f5a46
Fix stylish-haskell breaking on generated source code, missing extensions.
push time in 2 months
issue closedjaspervdj/stylish-haskell
Broken visible type applications
I'd like to reopen this issue, I think I just got bitten by the bug when trying to format files in an IHP project. Example: https://github.com/digitallyinduced/ihp-blog-example-app/blob/master/Web/Controller/Comments.hs
Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc "<unknown>.hs" 38 9) "Parse error in expression: query@Idea"
stylish-haskell --version
stylish-haskell 0.9.2.1
My stylish-haskell.yaml:
# stylish-haskell configuration file
# ==================================
# The stylish-haskell tool is mainly configured by specifying steps. These steps
# are a list, so they have an order, and one specific step may appear more than
# once (if needed). Each file is processed by these steps in the given order.
steps:
# Convert some ASCII sequences to their Unicode equivalents. This is disabled
# by default.
# - unicode_syntax:
# # In order to make this work, we also need to insert the UnicodeSyntax
# # language pragma. If this flag is set to true, we insert it when it's
# # not already present. You may want to disable it if you configure
# # language extensions using some other method than pragmas. Default:
# # true.
# add_language_pragma: true
# Align the right hand side of some elements. This is quite conservative
# and only applies to statements where each element occupies a single
# line.
- simple_align:
cases: true
top_level_patterns: true
records: true
# Import cleanup
- imports:
# There are different ways we can align names and lists.
#
# - global: Align the import names and import list throughout the entire
# file.
#
# - file: Like global, but don't add padding when there are no qualified
# imports in the file.
#
# - group: Only align the imports per group (a group is formed by adjacent
# import lines).
#
# - none: Do not perform any alignment.
#
# Default: global.
align: global
# The following options affect only import list alignment.
#
# List align has following options:
#
# - after_alias: Import list is aligned with end of import including
# 'as' and 'hiding' keywords.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - with_alias: Import list is aligned with start of alias or hiding.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - new_line: Import list starts always on new line.
#
# > import qualified Data.List as List
# > (concat, foldl, foldr, head, init, last, length)
#
# Default: after_alias
list_align: after_alias
# Right-pad the module names to align imports in a group:
#
# - true: a little more readable
#
# > import qualified Data.List as List (concat, foldl, foldr,
# > init, last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# - false: diff-safe
#
# > import qualified Data.List as List (concat, foldl, foldr, init,
# > last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# Default: true
pad_module_names: true
# Long list align style takes effect when import is too long. This is
# determined by 'columns' setting.
#
# - inline: This option will put as much specs on same line as possible.
#
# - new_line: Import list will start on new line.
#
# - new_line_multiline: Import list will start on new line when it's
# short enough to fit to single line. Otherwise it'll be multiline.
#
# - multiline: One line per import list entry.
# Type with constructor list acts like single import.
#
# > import qualified Data.Map as M
# > ( empty
# > , singleton
# > , ...
# > , delete
# > )
#
# Default: inline
long_list_align: inline
# Align empty list (importing instances)
#
# Empty list align has following options
#
# - inherit: inherit list_align setting
#
# - right_after: () is right after the module name:
#
# > import Vector.Instances ()
#
# Default: inherit
empty_list_align: inherit
# List padding determines indentation of import list on lines after import.
# This option affects 'long_list_align'.
#
# - <integer>: constant value
#
# - module_name: align under start of module name.
# Useful for 'file' and 'group' align settings.
list_padding: 4
# Separate lists option affects formatting of import list for type
# or class. The only difference is single space between type and list
# of constructors, selectors and class functions.
#
# - true: There is single space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable (fold, foldl, foldMap))
#
# - false: There is no space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable(fold, foldl, foldMap))
#
# Default: true
separate_lists: true
# Space surround option affects formatting of import lists on a single
# line. The only difference is single space after the initial
# parenthesis and a single space before the terminal parenthesis.
#
# - true: There is single space associated with the enclosing
# parenthesis.
#
# > import Data.Foo ( foo )
#
# - false: There is no space associated with the enclosing parenthesis
#
# > import Data.Foo (foo)
#
# Default: false
space_surround: false
# Language pragmas
- language_pragmas:
# We can generate different styles of language pragma lists.
#
# - vertical: Vertical-spaced language pragmas, one per line.
#
# - compact: A more compact style.
#
# - compact_line: Similar to compact, but wrap each line with
# `{-#LANGUAGE #-}'.
#
# Default: vertical.
style: vertical
# Align affects alignment of closing pragma brackets.
#
# - true: Brackets are aligned in same column.
#
# - false: Brackets are not aligned together. There is only one space
# between actual import and closing bracket.
#
# Default: true
align: true
# stylish-haskell can detect redundancy of some language pragmas. If this
# is set to true, it will remove those redundant pragmas. Default: true.
remove_redundant: true
# Replace tabs by spaces. This is disabled by default.
# - tabs:
# # Number of spaces to use for each tab. Default: 8, as specified by the
# # Haskell report.
# spaces: 8
# Remove trailing whitespace
- trailing_whitespace: {}
# A common setting is the number of columns (parts of) code will be wrapped
# to. Different steps take this into account. Default: 80.
columns: 160
# By default, line endings are converted according to the OS. You can override
# preferred format here.
#
# - native: Native newline format. CRLF on Windows, LF on other OSes.
#
# - lf: Convert to LF ("\n").
#
# - crlf: Convert to CRLF ("\r\n").
#
# Default: native.
newline: native
# Sometimes, language extensions are specified in a cabal file or from the
# command line instead of using language pragmas in the file. stylish-haskell
# needs to be aware of these, so it can parse the file correctly.
#
# No language extensions are enabled by default.
language_extensions:
- OverloadedStrings
- NoImplicitPrelude
- ImplicitParams
- Rank2Types
- DisambiguateRecordFields
- NamedFieldPuns
- TemplateHaskell
- QuasiQuotes
- DataKinds
- MultiParamTypeClasses
- RecordWildCards
- ScopedTypeVariables
- TypeSynonymInstances
- FlexibleInstances
- DuplicateRecordFields
- OverloadedLabels
- FlexibleContexts
closed time in 2 months
bilusissue commentjaspervdj/stylish-haskell
Broken visible type applications
Explicitly adding TypeApplications to language_extensions in stylish-haskell.yaml fixes the problem.
In case someone else has an issue with IHP-generated code, lambda cases can be fixed by adding LambdaCases to language_extensions and explicit $:
action UpdateIdeaAction { ideaId } = do
idea <- fetch ideaId
ensureUserIsAuthor idea
idea
|> buildIdea
|> ifValid $ \case -- < --- HERE
Left idea -> render EditView { .. }
Right idea -> do
idea <- idea |> updateRecord
setSuccessMessage "Idea updated"
redirectTo ShowIdeaAction { .. }
comment created time in 2 months
issue openedjaspervdj/stylish-haskell
Broken visible type applications
I'd like to reopen this issue, I think I just got bitten by the bug when trying to format files in an IHP project. Example: https://github.com/digitallyinduced/ihp-blog-example-app/blob/master/Web/Controller/Comments.hs
Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc "<unknown>.hs" 38 9) "Parse error in expression: query@Idea"
stylish-haskell --version
stylish-haskell 0.9.2.1
My stylish-haskell.yaml:
# stylish-haskell configuration file
# ==================================
# The stylish-haskell tool is mainly configured by specifying steps. These steps
# are a list, so they have an order, and one specific step may appear more than
# once (if needed). Each file is processed by these steps in the given order.
steps:
# Convert some ASCII sequences to their Unicode equivalents. This is disabled
# by default.
# - unicode_syntax:
# # In order to make this work, we also need to insert the UnicodeSyntax
# # language pragma. If this flag is set to true, we insert it when it's
# # not already present. You may want to disable it if you configure
# # language extensions using some other method than pragmas. Default:
# # true.
# add_language_pragma: true
# Align the right hand side of some elements. This is quite conservative
# and only applies to statements where each element occupies a single
# line.
- simple_align:
cases: true
top_level_patterns: true
records: true
# Import cleanup
- imports:
# There are different ways we can align names and lists.
#
# - global: Align the import names and import list throughout the entire
# file.
#
# - file: Like global, but don't add padding when there are no qualified
# imports in the file.
#
# - group: Only align the imports per group (a group is formed by adjacent
# import lines).
#
# - none: Do not perform any alignment.
#
# Default: global.
align: global
# The following options affect only import list alignment.
#
# List align has following options:
#
# - after_alias: Import list is aligned with end of import including
# 'as' and 'hiding' keywords.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - with_alias: Import list is aligned with start of alias or hiding.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - new_line: Import list starts always on new line.
#
# > import qualified Data.List as List
# > (concat, foldl, foldr, head, init, last, length)
#
# Default: after_alias
list_align: after_alias
# Right-pad the module names to align imports in a group:
#
# - true: a little more readable
#
# > import qualified Data.List as List (concat, foldl, foldr,
# > init, last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# - false: diff-safe
#
# > import qualified Data.List as List (concat, foldl, foldr, init,
# > last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# Default: true
pad_module_names: true
# Long list align style takes effect when import is too long. This is
# determined by 'columns' setting.
#
# - inline: This option will put as much specs on same line as possible.
#
# - new_line: Import list will start on new line.
#
# - new_line_multiline: Import list will start on new line when it's
# short enough to fit to single line. Otherwise it'll be multiline.
#
# - multiline: One line per import list entry.
# Type with constructor list acts like single import.
#
# > import qualified Data.Map as M
# > ( empty
# > , singleton
# > , ...
# > , delete
# > )
#
# Default: inline
long_list_align: inline
# Align empty list (importing instances)
#
# Empty list align has following options
#
# - inherit: inherit list_align setting
#
# - right_after: () is right after the module name:
#
# > import Vector.Instances ()
#
# Default: inherit
empty_list_align: inherit
# List padding determines indentation of import list on lines after import.
# This option affects 'long_list_align'.
#
# - <integer>: constant value
#
# - module_name: align under start of module name.
# Useful for 'file' and 'group' align settings.
list_padding: 4
# Separate lists option affects formatting of import list for type
# or class. The only difference is single space between type and list
# of constructors, selectors and class functions.
#
# - true: There is single space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable (fold, foldl, foldMap))
#
# - false: There is no space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable(fold, foldl, foldMap))
#
# Default: true
separate_lists: true
# Space surround option affects formatting of import lists on a single
# line. The only difference is single space after the initial
# parenthesis and a single space before the terminal parenthesis.
#
# - true: There is single space associated with the enclosing
# parenthesis.
#
# > import Data.Foo ( foo )
#
# - false: There is no space associated with the enclosing parenthesis
#
# > import Data.Foo (foo)
#
# Default: false
space_surround: false
# Language pragmas
- language_pragmas:
# We can generate different styles of language pragma lists.
#
# - vertical: Vertical-spaced language pragmas, one per line.
#
# - compact: A more compact style.
#
# - compact_line: Similar to compact, but wrap each line with
# `{-#LANGUAGE #-}'.
#
# Default: vertical.
style: vertical
# Align affects alignment of closing pragma brackets.
#
# - true: Brackets are aligned in same column.
#
# - false: Brackets are not aligned together. There is only one space
# between actual import and closing bracket.
#
# Default: true
align: true
# stylish-haskell can detect redundancy of some language pragmas. If this
# is set to true, it will remove those redundant pragmas. Default: true.
remove_redundant: true
# Replace tabs by spaces. This is disabled by default.
# - tabs:
# # Number of spaces to use for each tab. Default: 8, as specified by the
# # Haskell report.
# spaces: 8
# Remove trailing whitespace
- trailing_whitespace: {}
# A common setting is the number of columns (parts of) code will be wrapped
# to. Different steps take this into account. Default: 80.
columns: 160
# By default, line endings are converted according to the OS. You can override
# preferred format here.
#
# - native: Native newline format. CRLF on Windows, LF on other OSes.
#
# - lf: Convert to LF ("\n").
#
# - crlf: Convert to CRLF ("\r\n").
#
# Default: native.
newline: native
# Sometimes, language extensions are specified in a cabal file or from the
# command line instead of using language pragmas in the file. stylish-haskell
# needs to be aware of these, so it can parse the file correctly.
#
# No language extensions are enabled by default.
language_extensions:
- OverloadedStrings
- NoImplicitPrelude
- ImplicitParams
- Rank2Types
- DisambiguateRecordFields
- NamedFieldPuns
- TemplateHaskell
- QuasiQuotes
- DataKinds
- MultiParamTypeClasses
- RecordWildCards
- ScopedTypeVariables
- TypeSynonymInstances
- FlexibleInstances
- DuplicateRecordFields
- OverloadedLabels
- FlexibleContexts
created time in 2 months
issue commentjaspervdj/stylish-haskell
Support for visible type applications
I'd like to reopen this issue, I think I just got bitten by the bug when trying to format files in an IHP project. Example: https://github.com/digitallyinduced/ihp-blog-example-app/blob/master/Web/Controller/Comments.hs
Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc "<unknown>.hs" 38 9) "Parse error in expression: query@Idea"
stylish-haskell --version
stylish-haskell 0.9.2.1
My stylish-haskell.yaml:
# stylish-haskell configuration file
# ==================================
# The stylish-haskell tool is mainly configured by specifying steps. These steps
# are a list, so they have an order, and one specific step may appear more than
# once (if needed). Each file is processed by these steps in the given order.
steps:
# Convert some ASCII sequences to their Unicode equivalents. This is disabled
# by default.
# - unicode_syntax:
# # In order to make this work, we also need to insert the UnicodeSyntax
# # language pragma. If this flag is set to true, we insert it when it's
# # not already present. You may want to disable it if you configure
# # language extensions using some other method than pragmas. Default:
# # true.
# add_language_pragma: true
# Align the right hand side of some elements. This is quite conservative
# and only applies to statements where each element occupies a single
# line.
- simple_align:
cases: true
top_level_patterns: true
records: true
# Import cleanup
- imports:
# There are different ways we can align names and lists.
#
# - global: Align the import names and import list throughout the entire
# file.
#
# - file: Like global, but don't add padding when there are no qualified
# imports in the file.
#
# - group: Only align the imports per group (a group is formed by adjacent
# import lines).
#
# - none: Do not perform any alignment.
#
# Default: global.
align: global
# The following options affect only import list alignment.
#
# List align has following options:
#
# - after_alias: Import list is aligned with end of import including
# 'as' and 'hiding' keywords.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - with_alias: Import list is aligned with start of alias or hiding.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
# - new_line: Import list starts always on new line.
#
# > import qualified Data.List as List
# > (concat, foldl, foldr, head, init, last, length)
#
# Default: after_alias
list_align: after_alias
# Right-pad the module names to align imports in a group:
#
# - true: a little more readable
#
# > import qualified Data.List as List (concat, foldl, foldr,
# > init, last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# - false: diff-safe
#
# > import qualified Data.List as List (concat, foldl, foldr, init,
# > last, length)
# > import qualified Data.List.Extra as List (concat, foldl, foldr,
# > init, last, length)
#
# Default: true
pad_module_names: true
# Long list align style takes effect when import is too long. This is
# determined by 'columns' setting.
#
# - inline: This option will put as much specs on same line as possible.
#
# - new_line: Import list will start on new line.
#
# - new_line_multiline: Import list will start on new line when it's
# short enough to fit to single line. Otherwise it'll be multiline.
#
# - multiline: One line per import list entry.
# Type with constructor list acts like single import.
#
# > import qualified Data.Map as M
# > ( empty
# > , singleton
# > , ...
# > , delete
# > )
#
# Default: inline
long_list_align: inline
# Align empty list (importing instances)
#
# Empty list align has following options
#
# - inherit: inherit list_align setting
#
# - right_after: () is right after the module name:
#
# > import Vector.Instances ()
#
# Default: inherit
empty_list_align: inherit
# List padding determines indentation of import list on lines after import.
# This option affects 'long_list_align'.
#
# - <integer>: constant value
#
# - module_name: align under start of module name.
# Useful for 'file' and 'group' align settings.
list_padding: 4
# Separate lists option affects formatting of import list for type
# or class. The only difference is single space between type and list
# of constructors, selectors and class functions.
#
# - true: There is single space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable (fold, foldl, foldMap))
#
# - false: There is no space between Foldable type and list of it's
# functions.
#
# > import Data.Foldable (Foldable(fold, foldl, foldMap))
#
# Default: true
separate_lists: true
# Space surround option affects formatting of import lists on a single
# line. The only difference is single space after the initial
# parenthesis and a single space before the terminal parenthesis.
#
# - true: There is single space associated with the enclosing
# parenthesis.
#
# > import Data.Foo ( foo )
#
# - false: There is no space associated with the enclosing parenthesis
#
# > import Data.Foo (foo)
#
# Default: false
space_surround: false
# Language pragmas
- language_pragmas:
# We can generate different styles of language pragma lists.
#
# - vertical: Vertical-spaced language pragmas, one per line.
#
# - compact: A more compact style.
#
# - compact_line: Similar to compact, but wrap each line with
# `{-#LANGUAGE #-}'.
#
# Default: vertical.
style: vertical
# Align affects alignment of closing pragma brackets.
#
# - true: Brackets are aligned in same column.
#
# - false: Brackets are not aligned together. There is only one space
# between actual import and closing bracket.
#
# Default: true
align: true
# stylish-haskell can detect redundancy of some language pragmas. If this
# is set to true, it will remove those redundant pragmas. Default: true.
remove_redundant: true
# Replace tabs by spaces. This is disabled by default.
# - tabs:
# # Number of spaces to use for each tab. Default: 8, as specified by the
# # Haskell report.
# spaces: 8
# Remove trailing whitespace
- trailing_whitespace: {}
# A common setting is the number of columns (parts of) code will be wrapped
# to. Different steps take this into account. Default: 80.
columns: 160
# By default, line endings are converted according to the OS. You can override
# preferred format here.
#
# - native: Native newline format. CRLF on Windows, LF on other OSes.
#
# - lf: Convert to LF ("\n").
#
# - crlf: Convert to CRLF ("\r\n").
#
# Default: native.
newline: native
# Sometimes, language extensions are specified in a cabal file or from the
# command line instead of using language pragmas in the file. stylish-haskell
# needs to be aware of these, so it can parse the file correctly.
#
# No language extensions are enabled by default.
language_extensions:
- OverloadedStrings
- NoImplicitPrelude
- ImplicitParams
- Rank2Types
- DisambiguateRecordFields
- NamedFieldPuns
- TemplateHaskell
- QuasiQuotes
- DataKinds
- MultiParamTypeClasses
- RecordWildCards
- ScopedTypeVariables
- TypeSynonymInstances
- FlexibleInstances
- DuplicateRecordFields
- OverloadedLabels
- FlexibleContexts
comment created time in 2 months
issue commentCartoDB/bigquery-jslibs
ST_H3_POLYFILLFROMGEOG problem
Sorry, wasn't unable to submit the PR on Sunday as planned because there was an outage I got dragged into but here's my code:
CREATE OR REPLACE FUNCTION `....`.polyfillFromGeoJson(geojson STRING, resolution NUMERIC)
RETURNS ARRAY<STRING>
LANGUAGE js AS
"""
const featureGeometry = JSON.parse(geojson)
if (!['Polygon', 'MultiPolygon'].includes(featureGeometry.type)) {
throw new Error(`Unsupported geometry type ${featureGeometry.type}`);
}
const polygonCoordinates =
featureGeometry.type === 'MultiPolygon'
? featureGeometry.coordinates
: [featureGeometry.coordinates];
const hexes = polygonCoordinates.reduce(
(acc, coordinates) => acc.concat(h3.polyfill(coordinates, resolution, true)),
[]
);
return hexes;
"""
OPTIONS (
library=["gs://bigquery-jslibs/h3-js.umd.js"]
);
CREATE OR REPLACE FUNCTION `...`.ST_H3_POLYFILLFROMGEOG(geo GEOGRAPHY, resolution NUMERIC) AS (
polyfillFromGeoJson(ST_ASGEOJSON(geo),resolution)
);
comment created time in 2 months
issue commentCartoDB/bigquery-jslibs
ST_H3_POLYFILLFROMGEOG problem
I will over the weekend. Sorry got distracted by work. :P
comment created time in 2 months
push eventtooploox/oya
commit sha aa5cb755674bf953e0872f31a153e64b4c66d015
Make a method private.
push time in 2 months
issue openedsenny/rvm.el
Nice package. I found the package doesn't quite work with my setup, possibly because I'm using fish.
Here's what my PATH looks like:
λ printenv "PATH"
/Users/martinb/.rvm/gems/ruby-2.6.5/bin:/Users/martinb/.rvm/gems/ruby-2.6.5@global/bin:/Users/martinb/.rvm/rubies/ruby-2.6.5/bin:/Users/martinb/.rvm/bin:[..snip]
Notice the lack of a trailing slash. It makes the rvm--change-path function to fail because rvm/info returns a path to the binary, which you strip of the executable name using file-name-directory in the rvm-use function.
I patched it locally, can submit a PR if you don't think it's a particularly awful solution:
(defun rvm--normalize-dir (path)
(if (string-suffix-p "/" path)
(substring path 0 (- (length path) 1))
path))
(defun rvm--change-path (current-binary-var new-binaries)
(let ((current-binaries-for-path
(rvm--normalize-dir
(mapconcat 'identity (eval current-binary-var) ":")))
(new-binaries-for-path
(rvm--normalize-dir
(mapconcat 'identity new-binaries ":"))))
(if (and (eval current-binary-var)
(not (string= (first (eval current-binary-var)) "/bin")))
(progn
(setenv "PATH" (replace-regexp-in-string
(regexp-quote current-binaries-for-path)
new-binaries-for-path
(getenv "PATH")))
(dolist (binary (eval current-binary-var))
(setq exec-path (remove binary exec-path))))
(setenv "PATH" (concat new-binaries-for-path ":" (getenv "PATH"))))
(dolist (binary new-binaries)
(add-to-list 'exec-path binary))
(setq eshell-path-env (getenv "PATH"))
(set current-binary-var new-binaries)))
I could rewrite it using regexp if you insist. :) I haven't tested it with other shells but I believe it should work with slashes in PATH as well.
created time in 2 months
push eventbilus/bilus.dev
commit sha 799c27cc98e2b8937c0283173c9e5e52b5298c57
Initial version.
commit sha b88f7a79e0a69f5e2ba3470866c17f24e2bd257b
Add CNAME.
commit sha a96083e028f08e77b9e314d0d0c2014b3b72cb8e
Switch theme to master.
push time in 2 months