forked from JSONAPI-Resources/jsonapi-resources
-
Notifications
You must be signed in to change notification settings - Fork 4
Y25-318 Publish gem as sanger-jsonapi-resources #3
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
93ce889
update (gemspec): change gemspec name to sanger-jsonapi-resources and…
seenanair f04adaf
feature(sanger-jsonapi-resources): Add wrapper file for sanger-jsonap…
seenanair 576455c
Change version number to 0.1.1 in version.rb (0.1.0 was published alr…
seenanair 3f76a46
update README: change gem installation instructions to use sanger-jso…
seenanair 5174ea6
update Gemfile: upgrade sqlite3 to version >= 1.4 and railties to ~> …
seenanair c8bd96a
update (gemspec): modify bundler dependency to allow versions >= 1.5…
seenanair a7e0701
refactor(test_helper): remove redundant require and update fixture pa…
seenanair 8295025
fix(generators): add missing require statement for rails/generators i…
seenanair 3437f45
fix(schema): Update schema definitions to use syntax compatible with …
seenanair 1c3bb37
feat(ci): Add GitHub Actions configuration for continuous integration…
seenanair 3a64ede
fix(gemspec): Update authors and homepage to reflect current project …
seenanair File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Set update schedule for GitHub Actions | ||
|
|
||
| version: 2 | ||
| updates: | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| # Check for updates to GitHub Actions every weekday | ||
| interval: "daily" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'develop' ] | ||
| pull_request: | ||
| branches: ['**'] | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ruby: | ||
| - '3.3' | ||
| - '3.2' | ||
| rails: | ||
| - '7.1' | ||
| - '7.2' | ||
| database_url: | ||
| - sqlite3:test_db | ||
| env: | ||
| RAILS_VERSION: ${{ matrix.rails }} | ||
| DATABASE_URL: ${{ matrix.database_url }} | ||
| name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} DB ${{ matrix.database_url }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| bundler-cache: true | ||
| - name: Run tests | ||
| run: bundle exec rake test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| module JSONAPI | ||
| module Resources | ||
| VERSION = '0.9.0' | ||
| VERSION = '0.1.1' | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # As we are packaging 'sanger-jsonapi-resources' as a separate gem, RubyGems expects | ||
| # the main file to be 'lib/sanger-jsonapi-resources.rb' to match the gem name. | ||
| # Without this file, requiring the gem or Rails autoloading would fail, even if the internal code is unchanged. | ||
| # This file exists to ensure compatibility with RubyGems and Bundler. | ||
| # The easiest solution is to use this wrapper file, which simply requires the original 'jsonapi-resources' code, | ||
| # so all internal references and modules remain unchanged and compatible. | ||
| require_relative 'jsonapi-resources' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.