Skip to content

Commit

Permalink
Update Ruby & Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Feb 10, 2022
1 parent 568cf3c commit d2b0457
Show file tree
Hide file tree
Showing 41 changed files with 875 additions and 262 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
3.1.0
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

source "http://rubygems.org"

ruby "2.6.5"
ruby "3.1.0"

gem "rails", "~> 6.1"
gem "rails", "~> 7.0"
gem "doorkeeper", "~> 5.5.4"
gem "devise", "~> 4.8"
gem "sprockets-rails", require: "sprockets/railtie"

gem "faker"
gem "jquery-rails"
Expand Down
182 changes: 104 additions & 78 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,65 +1,71 @@
GEM
remote: http://rubygems.org/
specs:
actioncable (6.1.4.4)
actionpack (= 6.1.4.4)
activesupport (= 6.1.4.4)
actioncable (7.0.2)
actionpack (= 7.0.2)
activesupport (= 7.0.2)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.1.4.4)
actionpack (= 6.1.4.4)
activejob (= 6.1.4.4)
activerecord (= 6.1.4.4)
activestorage (= 6.1.4.4)
activesupport (= 6.1.4.4)
actionmailbox (7.0.2)
actionpack (= 7.0.2)
activejob (= 7.0.2)
activerecord (= 7.0.2)
activestorage (= 7.0.2)
activesupport (= 7.0.2)
mail (>= 2.7.1)
actionmailer (6.1.4.4)
actionpack (= 6.1.4.4)
actionview (= 6.1.4.4)
activejob (= 6.1.4.4)
activesupport (= 6.1.4.4)
net-imap
net-pop
net-smtp
actionmailer (7.0.2)
actionpack (= 7.0.2)
actionview (= 7.0.2)
activejob (= 7.0.2)
activesupport (= 7.0.2)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0)
actionpack (6.1.4.4)
actionview (= 6.1.4.4)
activesupport (= 6.1.4.4)
rack (~> 2.0, >= 2.0.9)
actionpack (7.0.2)
actionview (= 7.0.2)
activesupport (= 7.0.2)
rack (~> 2.0, >= 2.2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.4.4)
actionpack (= 6.1.4.4)
activerecord (= 6.1.4.4)
activestorage (= 6.1.4.4)
activesupport (= 6.1.4.4)
actiontext (7.0.2)
actionpack (= 7.0.2)
activerecord (= 7.0.2)
activestorage (= 7.0.2)
activesupport (= 7.0.2)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (6.1.4.4)
activesupport (= 6.1.4.4)
actionview (7.0.2)
activesupport (= 7.0.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.1.4.4)
activesupport (= 6.1.4.4)
activejob (7.0.2)
activesupport (= 7.0.2)
globalid (>= 0.3.6)
activemodel (6.1.4.4)
activesupport (= 6.1.4.4)
activerecord (6.1.4.4)
activemodel (= 6.1.4.4)
activesupport (= 6.1.4.4)
activestorage (6.1.4.4)
actionpack (= 6.1.4.4)
activejob (= 6.1.4.4)
activerecord (= 6.1.4.4)
activesupport (= 6.1.4.4)
marcel (~> 1.0.0)
activemodel (7.0.2)
activesupport (= 7.0.2)
activerecord (7.0.2)
activemodel (= 7.0.2)
activesupport (= 7.0.2)
activestorage (7.0.2)
actionpack (= 7.0.2)
activejob (= 7.0.2)
activerecord (= 7.0.2)
activesupport (= 7.0.2)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (6.1.4.4)
activesupport (7.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
ast (2.4.2)
bcrypt (3.1.16)
builder (3.2.4)
Expand All @@ -68,7 +74,7 @@ GEM
crass (1.0.6)
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
database_cleaner-active_record (2.0.0)
database_cleaner-active_record (2.0.1)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
Expand All @@ -79,10 +85,11 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.0)
digest (3.1.0)
doorkeeper (5.5.4)
railties (>= 5)
erubi (1.10.0)
execjs (2.7.0)
execjs (2.8.1)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
Expand All @@ -95,6 +102,7 @@ GEM
activesupport (>= 5.0)
i18n (1.9.1)
concurrent-ruby (~> 1.0)
io-wait (0.2.1)
jquery-rails (4.4.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
Expand All @@ -108,10 +116,25 @@ GEM
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.2)
method_source (0.9.2)
method_source (1.0.0)
mini_mime (1.1.2)
mini_portile2 (2.7.1)
minitest (5.15.0)
net-imap (0.2.3)
digest
net-protocol
strscan
net-pop (0.1.1)
digest
net-protocol
timeout
net-protocol (0.1.2)
io-wait
timeout
net-smtp (0.3.1)
digest
net-protocol
timeout
nio4r (2.5.8)
nokogiri (1.13.1)
mini_portile2 (~> 2.7.0)
Expand All @@ -121,9 +144,9 @@ GEM
parser (3.1.0.0)
ast (~> 2.4.1)
pg (1.3.1)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-rails (0.3.9)
pry (>= 0.10.4)
puma (5.6.1)
Expand All @@ -133,35 +156,35 @@ GEM
rack-test (1.1.0)
rack (>= 1.0, < 3)
rack-timeout (0.6.0)
rails (6.1.4.4)
actioncable (= 6.1.4.4)
actionmailbox (= 6.1.4.4)
actionmailer (= 6.1.4.4)
actionpack (= 6.1.4.4)
actiontext (= 6.1.4.4)
actionview (= 6.1.4.4)
activejob (= 6.1.4.4)
activemodel (= 6.1.4.4)
activerecord (= 6.1.4.4)
activestorage (= 6.1.4.4)
activesupport (= 6.1.4.4)
rails (7.0.2)
actioncable (= 7.0.2)
actionmailbox (= 7.0.2)
actionmailer (= 7.0.2)
actionpack (= 7.0.2)
actiontext (= 7.0.2)
actionview (= 7.0.2)
activejob (= 7.0.2)
activemodel (= 7.0.2)
activerecord (= 7.0.2)
activestorage (= 7.0.2)
activesupport (= 7.0.2)
bundler (>= 1.15.0)
railties (= 6.1.4.4)
sprockets-rails (>= 2.0.0)
railties (= 7.0.2)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
railties (6.1.4.4)
actionpack (= 6.1.4.4)
activesupport (= 6.1.4.4)
railties (7.0.2)
actionpack (= 7.0.2)
activesupport (= 7.0.2)
method_source
rake (>= 0.13)
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.0)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.5.1)
Expand All @@ -171,14 +194,14 @@ GEM
railties (>= 5.0)
rexml (3.2.5)
rollbar (3.3.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.2)
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.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (~> 3.11.0)
rspec-rails (5.1.0)
actionpack (>= 5.2)
activesupport (>= 5.2)
Expand All @@ -187,8 +210,8 @@ GEM
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.3)
rubocop (1.25.0)
rspec-support (3.11.0)
rubocop (1.25.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand All @@ -199,7 +222,7 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.15.1)
parser (>= 3.0.1.1)
rubocop-minitest (0.17.0)
rubocop-minitest (0.17.1)
rubocop (>= 0.90, < 2.0)
rubocop-packaging (0.5.1)
rubocop (>= 0.89, < 2.0)
Expand All @@ -210,7 +233,7 @@ GEM
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-rails_config (1.8.1)
rubocop-rails_config (1.8.2)
railties (>= 5.0)
rubocop (>= 1.19)
rubocop-ast (>= 1.0.1)
Expand All @@ -227,7 +250,9 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
strscan (3.0.1)
thor (1.2.1)
timeout (0.2.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
Expand Down Expand Up @@ -256,17 +281,18 @@ DEPENDENCIES
pry-rails
puma
rack-timeout
rails (~> 6.1)
rails (~> 7.0)
redcarpet
rollbar
rspec-rails
rubocop-performance
rubocop-rails_config
sprockets-rails
sqlite3
uglifier

RUBY VERSION
ruby 2.6.5p114
ruby 3.1.0p0

BUNDLED WITH
2.2.33
2.3.7
Empty file modified app/assets/images/rails.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ApplicationHelper
MARKDOWN_OPTIONS = { autolink: true, space_after_headers: true, fenced_code_blocks: true }

def markdown(text)
markdown = Redcarpet::Markdown.new(HTMLWithCoderay, MARKDOWN_OPTIONS)
markdown = Redcarpet::Markdown.new(::HtmlWithCoderay, MARKDOWN_OPTIONS)
markdown.render(text).html_safe
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class HTMLWithCoderay < Redcarpet::Render::HTML
puts "!!"
class HtmlWithCoderay < Redcarpet::Render::HTML
def block_code(code, language)
language = language.blank? ? "text" : language
CodeRay.scan(code, language).div
Expand Down
14 changes: 7 additions & 7 deletions bin/bundle
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ m = Module.new do
Regexp.last_match(1)
end

def bundler_version
@bundler_version ||=
def bundler_requirement
@bundler_requirement ||=
env_var_version || cli_arg_version ||
lockfile_version
bundler_requirement_for(lockfile_version)
end

def bundler_requirement
return "#{Gem::Requirement.default}.a" unless bundler_version
def bundler_requirement_for(version)
return "#{Gem::Requirement.default}.a" unless version

bundler_gem_version = Gem::Version.new(bundler_version)
bundler_gem_version = Gem::Version.new(version)

requirement = bundler_gem_version.approximate_recommendation

return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
return requirement unless Gem.rubygems_version < Gem::Version.new("2.7.0")

requirement += ".a" if bundler_gem_version.prerelease?

Expand Down
Loading

0 comments on commit d2b0457

Please sign in to comment.