Title: hyperspec improperly parses block parameters · Issue #128 · hyperstack-org/hyperstack · GitHub
Open Graph Title: hyperspec improperly parses block parameters · Issue #128 · hyperstack-org/hyperstack
X Title: hyperspec improperly parses block parameters · Issue #128 · hyperstack-org/hyperstack
Description: i.e. [1, [], 2].each do |x| puts x end gets transmitted to the client side as [1, [], 2].each do |x, | puts x end The extra comma has no effect UNLESS the value being passed to a block is an array. (i.e. the second element in the example...
Open Graph Description: i.e. [1, [], 2].each do |x| puts x end gets transmitted to the client side as [1, [], 2].each do |x, | puts x end The extra comma has no effect UNLESS the value being passed to a block is an array....
X Description: i.e. [1, [], 2].each do |x| puts x end gets transmitted to the client side as [1, [], 2].each do |x, | puts x end The extra comma has no effect UNLESS the value being passed to a block is an array....
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/128
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hyperspec improperly parses block parameters","articleBody":"i.e.\r\n\r\n```ruby\r\n[1, [], 2].each do |x|\r\n puts x\r\nend\r\n```\r\n\r\ngets transmitted to the client side as\r\n\r\n```ruby\r\n[1, [], 2].each do |x, |\r\n puts x\r\nend\r\n```\r\n\r\nThe extra comma has no effect UNLESS the value being passed to a block is an array. (i.e. the second element in the example above)\r\n\r\nProblem is easily fixed by setting an opt-in flag when initializing the parser gem, which will produce the correct result.\r\n\r\nThe down side is that to process the resulting AST tree, we have to upgrade the unparser gem to latest which has a bug #127 but fortunately this problem produces an obvious error, and has an obvious work around.","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-02-16T16:45:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/128/hyperstack/issues/128"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:078db6e5-d21a-02f1-66de-cd87ee8fb3a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF9C:3C612:1AF6C0F:2215015:6991830B |
| html-safe-nonce | f495bc73767cf3c69753537dbd7994ed3336faf7a977b2725c2da7b0d5426f54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjlDOjNDNjEyOjFBRjZDMEY6MjIxNTAxNTo2OTkxODMwQiIsInZpc2l0b3JfaWQiOiI0MDQwNjA2Njk4NzA4MjM5MTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5969274c1ac6887e5c21d7330bcb33f9598c6ebfcfa16d11283745de39ed6744 |
| hovercard-subject-tag | issue:411089475 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hyperstack-org/hyperstack/128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/872340453d834b5140de851600379f35d3bed8e1a25e45c9308ec1dbe4b17fe6/hyperstack-org/hyperstack/issues/128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/872340453d834b5140de851600379f35d3bed8e1a25e45c9308ec1dbe4b17fe6/hyperstack-org/hyperstack/issues/128 |
| og:image:alt | i.e. [1, [], 2].each do |x| puts x end gets transmitted to the client side as [1, [], 2].each do |x, | puts x end The extra comma has no effect UNLESS the value being passed to a block is an array.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width