Skip to content

Commit 2db035d

Browse files
authored
Merge pull request #12 from TwilioDevEd/DEVEDSB-95-update-dependencies
Update Rails to 6.1
2 parents d220858 + a90958e commit 2db035d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+11508
-1989
lines changed

.env.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Your Twilio Account SID. Get a free account at twilio.com/try-twilio
2-
TWILIO_ACCOUNT_SID=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2+
TWILIO_ACCOUNT_SID=your_twilio_account_SID
33
# Your Twilio Auth Token. You can get it at twilio.com/console
4-
TWILIO_AUTH_TOKEN=yourAuthToken
4+
TWILIO_AUTH_TOKEN=your_twilio_auth_token
55
# The Twilio phone number you want to use to send SMS. Get one in the Twilio Console
6-
TWILIO_PHONE_NUMBER=+12223334444
6+
TWILIO_PHONE_NUMBER=your_twilio_phone_number

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
4+
# Mark the yarn lockfile as having been generated.
5+
yarn.lock linguist-generated
6+
7+
# Mark any vendored files as having been vendored.
8+
vendor/* linguist-vendored

.github/workflows/rails.yml renamed to .github/workflows/build.yml

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
name: Rails CI
1+
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
48

59
jobs:
610
build:
711
runs-on: ${{ matrix.os }}
812
strategy:
913
matrix:
1014
os: [ubuntu-latest, macos-latest, windows-latest]
11-
ruby: [ '3.0' ]
1215

1316
steps:
1417
- name: Checkout code
@@ -24,17 +27,11 @@ jobs:
2427
uses: crazy-max/ghaction-chocolatey@v1
2528
with:
2629
args: install sqlite
27-
- name: Setup Ruby ${{ matrix.ruby }}
28-
uses: actions/setup-ruby@v1
30+
- name: Setup Ruby
31+
uses: ruby/setup-ruby@v1
2932
with:
30-
ruby-version: ${{ matrix.ruby }}
31-
- name: Ruby gem cache
32-
uses: actions/cache@v1
33-
with:
34-
path: vendor/bundle
35-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
36-
restore-keys: |
37-
${{ runner.os }}-gems-
33+
bundler-cache: false
34+
ruby-version: '3.0'
3835
- name: Install SQLite gem (Windows)
3936
if: runner.os == 'Windows'
4037
run: gem install sqlite3 --platform=ruby -- --with-sqlite3-include=/c:/ProgramData/ProgramData/lib/SQLite/tools

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ yarn-debug.log*
3838
/vendor
3939
.env
4040
.env.test
41+
42+
/.vscode

.mergify.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pull_request_rules:
2+
- name: automatic merge for Dependabot pull requests
3+
conditions:
4+
- author~=^dependabot(|-preview)\[bot\]$
5+
- status-success=build
6+
actions:
7+
merge:
8+
method: squash

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14.15.4

.overcommit.yml

-33
This file was deleted.

.rubocop.yml

-45
This file was deleted.

.ruby-version

-1
This file was deleted.

CODE_OF_CONDUCT.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing to Twilio
2+
3+
All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

Gemfile

+18-35
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,53 @@
1-
# frozen_string_literal: true
2-
31
source 'https://rubygems.org'
42
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
53

6-
ruby '~> 2.6'
4+
ruby '~> 3.0'
75

86
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
9-
gem 'rails', '~> 6.0.2', '>= 6.0.2.1'
10-
# Use sqlite3 as the database for Active Record
11-
gem 'sqlite3', '~> 1.4'
7+
gem 'rails', '~> 6.1.1'
128
# Use Puma as the app server
13-
gem 'puma', '~> 4.1'
14-
# Use SCSS for stylesheets
15-
gem 'sass-rails', '>= 6'
9+
gem 'puma', '~> 5.0'
1610
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
17-
gem 'webpacker', '~> 4.0'
11+
gem 'webpacker', '~> 5.0'
1812
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
1913
gem 'turbolinks', '~> 5'
2014
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
2115
gem 'jbuilder', '~> 2.7'
22-
# Use Redis adapter to run Action Cable in production
23-
# gem 'redis', '~> 4.0'
2416
# Use Active Model has_secure_password
2517
# gem 'bcrypt', '~> 3.1.7'
2618

27-
# Use Active Storage variant
28-
# gem 'image_processing', '~> 1.2'
29-
3019
# Reduces boot times through caching; required in config/boot.rb
31-
gem 'bootsnap', '>= 1.4.2', require: false
20+
gem 'bootsnap', '>= 1.4.4', require: false
3221

3322
group :development, :test do
3423
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
35-
gem 'byebug', platforms: %i[mri mingw x64_mingw]
36-
37-
gem 'dotenv-rails', '~> 2.7'
38-
gem 'rspec-rails', '~> 3.9'
24+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
25+
gem 'rspec-rails'
26+
gem 'dotenv-rails'
3927
end
4028

4129
group :development do
4230
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
43-
gem 'listen', '>= 3.0.5', '< 3.2'
44-
gem 'web-console', '>= 3.3.0'
31+
gem 'web-console', '>= 4.1.0'
32+
# Display performance information such as SQL time and flame graphs for each request in your browser.
33+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
34+
gem 'rack-mini-profiler', '~> 2.0'
35+
gem 'listen', '~> 3.3'
4536
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
4637
gem 'spring'
47-
gem 'spring-watcher-listen', '~> 2.0.0'
48-
49-
gem 'overcommit', '~> 0.52.1', require: false
50-
gem 'rubocop', '~> 0.80.0', require: false
51-
gem 'rubocop-rails', '~> 2.4', require: false
52-
gem 'rubocop-rspec', require: false
5338
end
5439

5540
group :test do
5641
# Adds support for Capybara system testing and selenium driver
57-
gem 'capybara', '>= 2.15'
42+
gem 'capybara', '>= 3.26'
5843
gem 'selenium-webdriver'
5944
# Easy installation and use of web drivers to run system tests with browsers
60-
gem 'vcr'
6145
gem 'webdrivers'
6246
gem 'webmock'
47+
gem 'vcr'
6348
end
6449

6550
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
66-
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
67-
68-
gem 'twilio-ruby', '~> 5.31'
69-
70-
gem 'bootstrap', '~> 4.4'
51+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
52+
gem "twilio-ruby", "~> 5.46"
53+
gem "bootstrap", "~> 4.5"

0 commit comments

Comments
 (0)