From ca1b82a7252e5711dc89c96e61e4234632feb309 Mon Sep 17 00:00:00 2001 From: Roberto Quintanilla <1915931+vovimayhem@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:15:48 -0600 Subject: [PATCH] Updated gems & imported JS - November 2022 (#15) * Minor updates on the dev script * Updated gems * Removes manual set of absolute path for cuprite Co-authored-by: Guillermo Alvarez <43304616+memoalv@users.noreply.github.com> --- Gemfile | 23 +++++------ Gemfile.lock | 110 ++++++++++++++++++++++----------------------------- bin/dev | 7 ++-- 3 files changed, 61 insertions(+), 79 deletions(-) diff --git a/Gemfile b/Gemfile index 9542935..42e04db 100644 --- a/Gemfile +++ b/Gemfile @@ -67,7 +67,7 @@ group :development, :test do gem 'debug', platforms: %i[mri mingw x64_mingw] # We'll use RSpec as the testing framework for Rails - gem 'rspec-rails', '~> 6.0.0.rc1' + gem 'rspec-rails', '~> 6.0', '>= 6.0.1' # A framework and DSL for defining and using test factories - more explicit, # and all-around easier to work with than fixtures. @@ -89,10 +89,10 @@ group :development do # Ruby code style checking and code formatting tool. It aims to enforce the # community-driven Ruby Style Guide. - gem 'rubocop', '~> 1.36', require: false + gem 'rubocop', '~> 1.38', require: false # IDE tools for code completion, inline documentation, and static analysis - gem 'solargraph', '~> 0.46.0', require: false + gem 'solargraph', '~> 0.47.2', require: false # Process manager for applications with multiple components - we'll use it to # launch both Rails and TailwindCSS processes in one go. @@ -100,25 +100,23 @@ group :development do end group :test do + # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] + gem 'capybara' + # Provides RSpec- and Minitest-compatible one-liners to test common Rails # functionality that, if written by hand, would be much longer, more complex, # and error-prone. - gem 'shoulda-matchers', '~> 5.1' - - # An integration testing tool for rack based web applications. It simulates - # how a user would interact with a website. - # Used for Rails system testing [https://guides.rubyonrails.org/testing.html#system-testing] - gem 'capybara', '~> 3.37', '>= 3.37.1' + gem 'shoulda-matchers', '~> 5.2' # A driver for Capybara that allows you to run your tests on a headless Chrome # browser - gem 'cuprite', '~> 0.13' + gem 'cuprite', '~> 0.14.3' # Ruby applications tests profiling tools. Contains tools to analyze factories # usage, integrate with Ruby profilers, profile your examples using # ActiveSupport notifications (if any) and statically analyze your code with # custom RuboCop cops: - gem 'test-prof', '~> 1.0', '>= 1.0.10' + gem 'test-prof', '~> 1.0', '>= 1.0.11' # Allows stubbing HTTP requests and setting expectations on HTTP requests. gem 'webmock', '~> 3.18', '>= 3.18.1' @@ -127,6 +125,5 @@ group :test do gem 'simplecov', '~> 0.21.2', require: false # We'll use sinatra to implement our mock servers for testing: - gem 'sinatra', '~> 2.2', '>= 2.2.2', require: false + gem 'sinatra', '~> 3.0', '>= 3.0.2', require: false end - diff --git a/Gemfile.lock b/Gemfile.lock index c4de95b..77d7ac5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,7 +75,7 @@ GEM bootsnap (1.13.0) msgpack (~> 1.2) builder (3.2.4) - capybara (3.37.1) + capybara (3.38.0) addressable matrix mini_mime (>= 0.1.3) @@ -84,19 +84,17 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - cliver (0.3.2) concurrent-ruby (1.1.10) crack (0.4.5) rexml crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) - debug (1.6.2) + cuprite (0.14.2) + capybara (~> 3.0) + ferrum (~> 0.12.0) + debug (1.6.3) irb (>= 1.3.6) reline (>= 0.3.1) diff-lcs (1.5.0) - digest (3.1.0) docile (1.4.0) e2mmap (0.1.0) erubi (1.11.0) @@ -105,10 +103,10 @@ GEM factory_bot_rails (6.2.0) factory_bot (~> 6.2.0) railties (>= 5.0.0) - ferrum (0.11) + ferrum (0.12) addressable (~> 2.5) - cliver (~> 0.3) concurrent-ruby (~> 1.1) + webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) foreman (0.87.2) globalid (1.0.0) @@ -121,7 +119,7 @@ GEM actionpack (>= 6.0.0) railties (>= 6.0.0) io-console (0.5.11) - irb (1.4.1) + irb (1.4.2) reline (>= 0.3.0) jaro_winkler (1.5.4) jbuilder (2.11.5) @@ -143,40 +141,32 @@ GEM method_source (1.0.0) mini_mime (1.1.2) minitest (5.16.3) - msgpack (1.5.6) - mustermann (2.0.2) + msgpack (1.6.0) + mustermann (3.0.0) ruby2_keywords (~> 0.0.1) - net-imap (0.2.3) - digest + net-imap (0.3.1) net-protocol - strscan - net-pop (0.1.1) - digest + net-pop (0.1.2) net-protocol - timeout net-protocol (0.1.3) timeout - net-smtp (0.3.1) - digest + net-smtp (0.3.3) net-protocol - timeout nio4r (2.5.8) - nokogiri (1.13.8-aarch64-linux) - racc (~> 1.4) - nokogiri (1.13.8-x86_64-linux) + nokogiri (1.13.9-aarch64-linux) racc (~> 1.4) on_container (0.0.17) activesupport (>= 4) parallel (1.22.1) parser (3.1.2.1) ast (~> 2.4.1) - pg (1.4.3) + pg (1.4.4) public_suffix (5.0.0) puma (5.6.5) nio4r (~> 2.0) racc (1.6.0) rack (2.2.4) - rack-protection (2.2.2) + rack-protection (3.0.2) rack rack-test (2.0.2) rack (>= 1.3) @@ -208,21 +198,21 @@ GEM zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.5.0) + regexp_parser (2.6.0) reline (0.3.1) io-console (~> 0.5) reverse_markdown (2.1.1) nokogiri rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.1) + rspec-core (3.12.0) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (6.0.0.rc1) + rspec-support (~> 3.12.0) + rspec-rails (6.0.1) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) @@ -230,22 +220,22 @@ GEM rspec-expectations (~> 3.11) rspec-mocks (~> 3.11) rspec-support (~> 3.11) - rspec-support (3.11.1) - rubocop (1.36.0) + rspec-support (3.12.0) + rubocop (1.38.0) json (~> 2.3) parallel (~> 1.10) parser (>= 3.1.2.1) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.20.1, < 2.0) + rubocop-ast (>= 1.23.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.21.0) + rubocop-ast (1.23.0) parser (>= 3.1.1.0) ruby-progressbar (1.11.0) ruby2_keywords (0.0.5) - shoulda-matchers (5.1.0) + shoulda-matchers (5.2.0) activesupport (>= 5.2.0) simplecov (0.21.2) docile (~> 1.1) @@ -253,12 +243,12 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - sinatra (2.2.2) - mustermann (~> 2.0) - rack (~> 2.2) - rack-protection (= 2.2.2) + sinatra (3.0.2) + mustermann (~> 3.0) + rack (~> 2.2, >= 2.2.4) + rack-protection (= 3.0.2) tilt (~> 2.0) - solargraph (0.46.0) + solargraph (0.47.2) backport (~> 1.2) benchmark bundler (>= 1.17.2) @@ -280,18 +270,15 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - stimulus-rails (1.1.0) - railties (>= 6.0.0) - strscan (3.0.4) - tailwindcss-rails (2.0.13-aarch64-linux) + stimulus-rails (1.1.1) railties (>= 6.0.0) - tailwindcss-rails (2.0.13-x86_64-linux) + tailwindcss-rails (2.0.20-aarch64-linux) railties (>= 6.0.0) - test-prof (1.0.10) + test-prof (1.0.11) thor (1.2.1) tilt (2.0.11) timeout (0.3.0) - turbo-rails (1.1.1) + turbo-rails (1.3.2) actionpack (>= 6.0.0) activejob (>= 6.0.0) railties (>= 6.0.0) @@ -317,16 +304,15 @@ GEM nokogiri (~> 1.8) yard (0.9.28) webrick (~> 1.7.0) - zeitwerk (2.6.0) + zeitwerk (2.6.6) PLATFORMS aarch64-linux - x86_64-linux DEPENDENCIES bootsnap - capybara (~> 3.37, >= 3.37.1) - cuprite (~> 0.13) + capybara + cuprite (~> 0.14.2) debug factory_bot_rails (~> 6.2) foreman (~> 0.87.2) @@ -338,16 +324,16 @@ DEPENDENCIES pg (~> 1.1) puma (~> 5.0) rails (~> 7.0.4) - rspec-rails (~> 6.0.0.rc1) - rubocop (~> 1.36) - shoulda-matchers (~> 5.1) + rspec-rails (~> 6.0, >= 6.0.1) + rubocop (~> 1.38) + shoulda-matchers (~> 5.2) simplecov (~> 0.21.2) - sinatra (~> 2.2, >= 2.2.2) - solargraph (~> 0.46.0) + sinatra (~> 3.0, >= 3.0.2) + solargraph (~> 0.47.2) sprockets-rails stimulus-rails tailwindcss-rails - test-prof (~> 1.0, >= 1.0.10) + test-prof (~> 1.0, >= 1.0.11) turbo-rails tzinfo-data warden (~> 1.2, >= 1.2.9) @@ -358,4 +344,4 @@ RUBY VERSION ruby 3.1.2p20 BUNDLED WITH - 2.3.22 + 2.3.25 diff --git a/bin/dev b/bin/dev index 2daf776..74ade16 100755 --- a/bin/dev +++ b/bin/dev @@ -1,9 +1,8 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh -if ! command -v foreman &> /dev/null -then +if ! gem list foreman -i --silent; then echo "Installing foreman..." gem install foreman fi -foreman start -f Procfile.dev +exec foreman start -f Procfile.dev "$@"