Jamie Gaskins

Results 87 issues of Jamie Gaskins

This lets you fork an action in testing so you don't overwrite its actual store for integration tests. Here is a simple example: ```ruby Action = GrandCentral::Action.create SetName = Action.with_attributes(:name)...

This can allow them to be stored in `localStorage`, sent to the server, etc. It's a start to add support for #4.

Given that current state is a reduction of the list of all actions performed on the initial state, making actions serializable could allow a store to send bug reports automatically....

I've got a DB model with some metadata and an arbitrary JSON payload (event data from webhooks) that looks something like this: ```crystal struct Event(T) < Model getter id :...

## Feature Request ### Is your feature request related to a problem? Please describe clearly and concisely what is it. `Enum`s provide only a single string representation, based on the...

kind:feature
topic:stdlib

## Discussion ### What aspect of the language would you like to see improved? The `IO` abstract class is great in a lot of ways, giving us a common interface...

status:discussion
topic:stdlib:files

I need these in enums all the time. A lot of times, enum values are serialized in other systems (databases, third-party services, etc) differently, so I usually implement these methods...

I haven't added have any specs because this started as just a proof of concept, and I think I broke existing specs, but I did include [an example app](https://github.com/cable-cr/cable/compare/master...jgaskins:multi-backend#diff-820673dc8ac2170578106f2624fdff9e032f0a444a1444445c1eed944c41c8f5) that...

The `ReplicationClient` sends read-only commands to replicas by default and all other commands to the primary/master. You can override the decision by calling `on_primary` or `on_replica`. This is useful for...

See discussion starting [here](https://github.com/jgaskins/redis/issues/27#issuecomment-1529065057). This PR does not resolve everything in that issue, but does allow getting non-`String` data as discussed in some of the comments. Turns out accepting `String...