diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 4695273..e66f6b6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: [ "3.0.1", "2.6.7" ] + ruby-version: [ "3.4.1", "2.6.7" ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby-version }} - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies diff --git a/.gitignore b/.gitignore index de6e3f8..01e864f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ vendor/ coverage/ cuffsert-*.gem .byebug_history +Gemfile.lock diff --git a/.ruby-version b/.ruby-version index fd2a018..47b322c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.0 +3.4.1 diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 5bf8c66..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,82 +0,0 @@ -PATH - remote: . - specs: - cuffsert (0.14.2) - aws-sdk-cloudformation (~> 1.67.0) - aws-sdk-s3 (~> 1.112.0) - colorize - hashdiff (~> 1.0) - nokogiri - ruby-termios - rx - -GEM - remote: https://rubygems.org/ - specs: - aws-eventstream (1.2.0) - aws-partitions (1.554.0) - aws-sdk-cloudformation (1.67.0) - aws-sdk-core (~> 3, >= 3.126.0) - aws-sigv4 (~> 1.1) - aws-sdk-core (3.126.0) - aws-eventstream (~> 1, >= 1.0.2) - aws-partitions (~> 1, >= 1.525.0) - aws-sigv4 (~> 1.1) - jmespath (~> 1.0) - aws-sdk-kms (1.54.0) - aws-sdk-core (~> 3, >= 3.126.0) - aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.112.0) - aws-sdk-core (~> 3, >= 3.126.0) - aws-sdk-kms (~> 1) - aws-sigv4 (~> 1.4) - aws-sigv4 (1.4.0) - aws-eventstream (~> 1, >= 1.0.2) - byebug (11.1.3) - colorize (0.8.1) - diff-lcs (1.5.0) - docile (1.4.0) - hashdiff (1.0.1) - jmespath (1.5.0) - mini_portile2 (2.7.1) - nokogiri (1.13.1) - mini_portile2 (~> 2.7.0) - racc (~> 1.4) - racc (1.6.0) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-support (3.11.0) - ruby-termios (1.1.0) - rx (0.0.3) - rx-rspec (0.4.3) - rx - simplecov (0.21.2) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) - simplecov_json_formatter (0.1.3) - -PLATFORMS - ruby - -DEPENDENCIES - bundler (~> 2.3) - byebug - cuffsert! - rspec (~> 3.0) - rx-rspec (~> 0.4.3) - simplecov - -BUNDLED WITH - 2.3.7 diff --git a/cuffsert.gemspec b/cuffsert.gemspec index 4ef5919..92774d4 100644 --- a/cuffsert.gemspec +++ b/cuffsert.gemspec @@ -15,16 +15,18 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.0.0' - spec.add_runtime_dependency 'aws-sdk-cloudformation', '~> 1.67.0' - spec.add_runtime_dependency 'aws-sdk-s3', '~> 1.112.0' + spec.add_runtime_dependency 'aws-sdk-cloudformation', '~> 1.67' + spec.add_runtime_dependency 'aws-sdk-s3', '~> 1.112' spec.add_runtime_dependency 'colorize' spec.add_runtime_dependency 'hashdiff', '~> 1.0' spec.add_runtime_dependency 'nokogiri' spec.add_runtime_dependency 'ruby-termios' spec.add_runtime_dependency 'rx' + spec.add_development_dependency 'base64' spec.add_development_dependency 'bundler', '~> 2.3' spec.add_development_dependency 'byebug' + spec.add_development_dependency 'logger' spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'rx-rspec', '~> 0.4.3' spec.add_development_dependency 'simplecov' diff --git a/lib/cuffsert/metadata.rb b/lib/cuffsert/metadata.rb index 39d7b3b..74f266f 100644 --- a/lib/cuffsert/metadata.rb +++ b/lib/cuffsert/metadata.rb @@ -84,7 +84,7 @@ def self.build_meta(cli_args) def self.meta_defaults(cli_args) stack_path = (cli_args[:stack_path] || [])[0] - if stack_path && File.exists?(stack_path) + if stack_path && File.exist?(stack_path) nil_params = CuffBase.empty_from_template(open(stack_path)) else nil_params = {}