Skip to content

Commit

Permalink
Updated gems & imported JS - November 2022 (#15)
Browse files Browse the repository at this point in the history
* Minor updates on the dev script

* Updated gems

* Removes manual set of absolute path for cuprite

Co-authored-by: Guillermo Alvarez <[email protected]>
  • Loading branch information
vovimayhem and memoalv authored Nov 15, 2022
1 parent 9a95e21 commit ca1b82a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 79 deletions.
23 changes: 10 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -89,36 +89,34 @@ 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.
gem 'foreman', '~> 0.87.2', require: false
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'
Expand All @@ -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

110 changes: 48 additions & 62 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -208,57 +198,57 @@ 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)
rspec-core (~> 3.11)
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)
simplecov-html (~> 0.11)
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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -358,4 +344,4 @@ RUBY VERSION
ruby 3.1.2p20

BUNDLED WITH
2.3.22
2.3.25
7 changes: 3 additions & 4 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit ca1b82a

Please sign in to comment.