Skip to content
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

Ensure basic bundler rake tasks are loaded #2

Merged
merged 3 commits into from
Jan 4, 2022

Conversation

chrisbloom7
Copy link
Contributor

@chrisbloom7 chrisbloom7 commented Dec 20, 2021

The ruby contrib readme states we should be able to build the gem using bundle exec rake build, but as-is bundler errors with Don't know how to build task 'build' and rake -T shows only the locally defined tasks

$ bundle exec rake -T
rake clean         # Remove any temporary products
rake clobber       # Remove any generated files
rake compile       # Compile all the extensions
rake compile:cext  # Compile cext

Bundler 2.x gems typically include bundler/gem_tasks instead of bundler/gem_helper. Updating the Rakefile likewise gives us the bundler tasks for building the project

$ bundle exec rake -T
rake build            # Build trilogy-2.0.0.gem into the pkg directory
rake build:checksum   # Generate SHA512 checksum if trilogy-2.0.0.gem into the checksums directory
rake clean            # Remove any temporary products
rake clobber          # Remove any generated files
rake compile          # Compile all the extensions
rake compile:cext     # Compile cext
rake install          # Build and install trilogy-2.0.0.gem into system gems
rake install:local    # Build and install trilogy-2.0.0.gem into system gems without network access
rake release[remote]  # Create tag v2.0.0 and build and push trilogy-2.0.0.gem to rubygems.org

cc/ @eileencodes

@eileencodes
Copy link
Member

Thanks @chrisbloom7 - can you merge main? I added #5 so that the CI will run on your PR.

@chrisbloom7
Copy link
Contributor Author

@eileencodes all set!

@eileencodes eileencodes merged commit 52a1883 into trilogy-libraries:main Jan 4, 2022
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.

2 participants