Skip to content

Commit

Permalink
Prepare aws-sdk-rails 4.2 modularization
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Nov 17, 2024
1 parent 2e7243a commit ef85338
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 95 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,20 @@ jobs:
- rails: main
ruby: jruby-9.4

env:
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@v4

- name: Set RAILS_VERSION
run: echo "RAILS_VERSION=${{ matrix.rails }}" >> $GITHUB_ENV

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- uses: actions/checkout@v4

- name: Install gems
run: bundle install
env:
BUNDLE_GEMFILE: gemfiles/rails-${{ matrix.rails }}.gemfile

- name: Test
run: bundle exec rake spec
env:
BUNDLE_GEMFILE: gemfiles/rails-${{ matrix.rails }}.gemfile

rubocop:
runs-on: ubuntu-latest
Expand Down
34 changes: 13 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
.DS_Store

.idea/
.byebug_history
/.bundle
/.yardoc
/doc

Gemfile.lock
/coverage
*.gem
/.release

.idea/
coverage/
.yardoc/
doc/
docs.zip
.release/

gemfiles/*.gemfile.lock
sample-app/Gemfile.lock
sample-app/log
sample-app/tmp
sample-app.zip

test/dummy/db/migrate
test/dummy/log/

spec/dummy/db/test.db-shm
spec/dummy/db/test.db-wal
spec/dummy/db/test.db
spec/dummy/db/schema.rb
spec/dummy/log/
spec/dummy/tmp/
spec/dummy/storage/

sample-app/Gemfile.lock
sample-app/log/
sample-app/tmp/
sample-app.zip
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Metrics/MethodLength:

Naming/FileName:
Exclude:
- 'gemfiles/*.gemfile'
- 'lib/aws-sdk-rails.rb'

Style/BlockComments:
Expand Down
29 changes: 0 additions & 29 deletions .rubocop_todo.yml

This file was deleted.

25 changes: 13 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,27 @@ source 'https://rubygems.org'

gemspec

gem 'aws-actiondispatch-dynamodb', git: 'https://github.com/aws/aws-actiondispatch-dynamodb-ruby'
gem 'aws-actionmailbox-ses', git: 'https://github.com/aws/aws-actionmailbox-ses-ruby'
gem 'aws-actionmailer-ses', git: 'https://github.com/aws/aws-actionmailer-ses-ruby'
gem 'aws-activejob-sqs', git: 'https://github.com/aws/aws-activejob-sqs-ruby'
gem 'aws-record-rails', git: 'https://github.com/aws/aws-record-rails'

group :development, :test do
gem 'pry'
gem 'rake', require: false

case ENV.fetch('RAILS_VERSION', nil)
when '7.1'
gem 'rails', '~> 7.1.0'
when '7.2'
gem 'rails', '~> 7.2.0'
when '8.0'
gem 'rails', '~> 8.0.0'
else
gem 'rails', github: 'rails/rails'
end

group :development do
gem 'byebug', platforms: :ruby
gem 'pry'
gem 'rubocop'
end

group :test do
gem 'bcrypt'
gem 'minitest-spec-rails'
gem 'rspec-rails'
gem 'webmock'
gem 'rspec'
end

group :docs do
Expand Down
5 changes: 0 additions & 5 deletions gemfiles/rails-7.1.gemfile

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/rails-7.2.gemfile

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/rails-8.0.gemfile

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/rails-main.gemfile

This file was deleted.

0 comments on commit ef85338

Please sign in to comment.