Title: Cannot use complex expressions like `hash['foo'] += 1` with hyper-spec · Issue #127 · hyperstack-org/hyperstack · GitHub
Open Graph Title: Cannot use complex expressions like `hash['foo'] += 1` with hyper-spec · Issue #127 · hyperstack-org/hyperstack
X Title: Cannot use complex expressions like `hash['foo'] += 1` with hyper-spec · Issue #127 · hyperstack-org/hyperstack
Description: This is due to an issue in the current unparser gem: mbj/unparser#117 You may get an error like this when running a spec: (string):1:20: error: unexpected token tOP_ASGN (string):1: hash.[]("foo") += 1 (string):1: The problem is the unpa...
Open Graph Description: This is due to an issue in the current unparser gem: mbj/unparser#117 You may get an error like this when running a spec: (string):1:20: error: unexpected token tOP_ASGN (string):1: hash.[]("foo") ...
X Description: This is due to an issue in the current unparser gem: mbj/unparser#117 You may get an error like this when running a spec: (string):1:20: error: unexpected token tOP_ASGN (string):1: hash.[]("f...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot use complex expressions like `hash['foo'] += 1` with hyper-spec","articleBody":"This is due to an issue in the current unparser gem: https://github.com/mbj/unparser/issues/117\r\n\r\nYou may get an error like this when running a spec:\r\n\r\n```text\r\n(string):1:20: error: unexpected token tOP_ASGN\r\n(string):1: hash.[](\"foo\") += 1\r\n(string):1: \r\n```\r\n\r\nThe problem is the unparser incorrectly generates `hash.[](\"foo\") += 1` instead of `hash['foo'] += 1`.\r\n\r\nThe good news its pretty easy to find such expressions and replace them with something like \r\n\r\n`hash[\"foo\"] = hash[\"foo\"] + 1`\r\n\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-02-16T16:40:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/127/hyperstack/issues/127"}
| 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:ce77c6ed-a6de-cc26-5b33-94e7f8e52433 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B480:15B55:1B9D6D5:232C43C:6991BBA5 |
| html-safe-nonce | da93afcc91c2757310169af680e9678aec8b4001f69b389596b6acbfae82bc3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDgwOjE1QjU1OjFCOUQ2RDU6MjMyQzQzQzo2OTkxQkJBNSIsInZpc2l0b3JfaWQiOiIxNDAxMjkwNzc2Mzg2ODQ1NjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1c3bb0ab53175d0f8640fff4789835fe8060f7fcdc2834aedd82243c7a52e6bc |
| hovercard-subject-tag | issue:411089002 |
| 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/127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d6949b62b5a5309922e5baab0e0f6d70fef8dc5eaa2f31a22c785eec78400a6/hyperstack-org/hyperstack/issues/127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d6949b62b5a5309922e5baab0e0f6d70fef8dc5eaa2f31a22c785eec78400a6/hyperstack-org/hyperstack/issues/127 |
| og:image:alt | This is due to an issue in the current unparser gem: mbj/unparser#117 You may get an error like this when running a spec: (string):1:20: error: unexpected token tOP_ASGN (string):1: hash.[]("foo") ... |
| 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