Skip to content

Create a ruby gem package "action_text-trix" #1234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2025

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented May 12, 2025

ref: rails/rails#54148

Directory "action_text-trix" contains a gem that is a Rails engine providing Trix assets (js and css files).

When cutting a release, there is a rake task "sync" provided by action_text-trix/Rakefile to copy Trix files from the build directory into the gem directory. See action_text-trix/README.md for more information.

A note on naming: "trix" is already taken, as is "trix-rails", "trix_rails", "trix_on_rails", and "trix-gem". But also, this gem should really only ever be used as an implicit dependency of Rails and Action Text, so naming is less important than it otherwise might be.

I've emailed the owner of "trix" to see if they would be willing to give up the name, but at this point I think I've decided it doesn't matter a whole lot.

The accompanying Rails PR will look something like this: flavorjones/rails#1

@flavorjones flavorjones requested review from a team and Copilot May 12, 2025 17:06
Copilot

This comment was marked as off-topic.

@flavorjones flavorjones force-pushed the flavorjones/package-in-ruby-gem branch from c897168 to e3edf34 Compare May 12, 2025 17:14
@djmb
Copy link
Contributor

djmb commented May 13, 2025

Looks great @flavorjones!

Could we update the release script to sync, build and push the gem? I guess either by adding a command to the release script in package.json, or adding bin/release?

@flavorjones
Copy link
Member Author

@djmb Done!

Directory "action_text-trix" contains a gem that is a Rails engine
providing Trix assets (js and css files).

When cutting a release, there is a rake task "sync" provided by
action_text-trix/Rakefile to copy Trix files from the build directory
into the gem directory. See action_text-trix/README.md for more
information.
@flavorjones flavorjones force-pushed the flavorjones/package-in-ruby-gem branch from cc78c4e to 8994151 Compare May 13, 2025 12:26
@flavorjones
Copy link
Member Author

In a later commit, I'll add an integration test of action text (once this is being used upstream).

@flavorjones flavorjones merged commit 213cb1d into main May 13, 2025
4 checks passed
@flavorjones flavorjones deleted the flavorjones/package-in-ruby-gem branch May 13, 2025 12:37
@zzak
Copy link
Contributor

zzak commented May 13, 2025

👏 Nice work! I would have went with actiontext-trix since the gems don't use underscores or dashes (e.g. actiontext or actionpack, but as you put not that important.

@flavorjones
Copy link
Member Author

Rails PR is rails/rails#55058

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.

3 participants