rubygems.org | The Ruby community 's gem hosting service | Collaboration library

 by   rubygems Ruby Version: Current License: MIT

kandi X-RAY | rubygems.org Summary

rubygems.org is a Ruby library typically used in Web Site, Collaboration, Ruby On Rails applications. rubygems.org has a Permissive License and it has medium support. However rubygems.org has 317 bugs and it has 16 vulnerabilities. You can download it from GitHub.
The Ruby community's gem host.
    Support
      Quality
        Security
          License
            Reuse
            Support
              Quality
                Security
                  License
                    Reuse

                      kandi-support Support

                        summary
                        rubygems.org has a medium active ecosystem.
                        summary
                        It has 2150 star(s) with 897 fork(s). There are 105 watchers for this library.
                        summary
                        It had no major release in the last 6 months.
                        summary
                        There are 49 open issues and 954 have been closed. On average issues are closed in 825 days. There are 26 open pull requests and 0 closed requests.
                        summary
                        It has a neutral sentiment in the developer community.
                        summary
                        The latest version of rubygems.org is current.
                        rubygems.org Support
                          Best in #Collaboration
                            Average in #Collaboration
                            rubygems.org Support
                              Best in #Collaboration
                                Average in #Collaboration

                                  kandi-Quality Quality

                                    summary
                                    rubygems.org has 317 bugs (0 blocker, 0 critical, 155 major, 162 minor) and 776 code smells.
                                    rubygems.org Quality
                                      Best in #Collaboration
                                        Average in #Collaboration
                                        rubygems.org Quality
                                          Best in #Collaboration
                                            Average in #Collaboration

                                              kandi-Security Security

                                                summary
                                                rubygems.org has 2 vulnerability issues reported (0 critical, 2 high, 0 medium, 0 low).
                                                summary
                                                rubygems.org code analysis shows 14 unresolved vulnerabilities (14 blocker, 0 critical, 0 major, 0 minor).
                                                summary
                                                There are 12 security hotspots that need review.
                                                rubygems.org Security
                                                  Best in #Collaboration
                                                    Average in #Collaboration
                                                    rubygems.org Security
                                                      Best in #Collaboration
                                                        Average in #Collaboration

                                                          kandi-License License

                                                            summary
                                                            rubygems.org is licensed under the MIT License. This license is Permissive.
                                                            summary
                                                            Permissive licenses have the least restrictions, and you can use them in most projects.
                                                            rubygems.org License
                                                              Best in #Collaboration
                                                                Average in #Collaboration
                                                                rubygems.org License
                                                                  Best in #Collaboration
                                                                    Average in #Collaboration

                                                                      kandi-Reuse Reuse

                                                                        summary
                                                                        rubygems.org releases are not available. You will need to build from source code and install.
                                                                        summary
                                                                        rubygems.org saves you 13227 person hours of effort in developing the same functionality from scratch.
                                                                        summary
                                                                        It has 26579 lines of code, 931 functions and 495 files.
                                                                        summary
                                                                        It has low code complexity. Code complexity directly impacts maintainability of the code.
                                                                        rubygems.org Reuse
                                                                          Best in #Collaboration
                                                                            Average in #Collaboration
                                                                            rubygems.org Reuse
                                                                              Best in #Collaboration
                                                                                Average in #Collaboration
                                                                                  Top functions reviewed by kandi - BETA
                                                                                  kandi has reviewed rubygems.org and discovered the below as its top functions. This is intended to give you an instant insight into rubygems.org implemented functionality, and help decide if they suit your requirements.
                                                                                  • Handles the download .
                                                                                    • Reads all checksum .
                                                                                      • Stores the content of an object .
                                                                                        • Restores the current version of an object .
                                                                                          • Retrieves the key from the cache .
                                                                                            • Remove a key from the cache
                                                                                              • Redirect to the specified url
                                                                                                • Determine if the file is available .
                                                                                                  • Get a path from a gem file
                                                                                                    Get all kandi verified functions for this library.
                                                                                                    Get all kandi verified functions for this library.

                                                                                                    rubygems.org Key Features

                                                                                                    Provide a better API for dealing with gems
                                                                                                    Create more transparent and accessible project pages
                                                                                                    Enable the community to improve and enhance the site

                                                                                                    rubygems.org Examples and Code Snippets

                                                                                                    No Code Snippets are available at this moment for rubygems.org.
                                                                                                    Community Discussions

                                                                                                    Trending Discussions on rubygems.org

                                                                                                    bundle exec jekyll serve: cannot load such file
                                                                                                    chevron right
                                                                                                    updating to rails 6, but "activerecord-session_store (~> 2.0) was resolved to 2.0.0, which depends on actionpack (>= 5.2.4.1)"
                                                                                                    chevron right
                                                                                                    "Precompiling assets failed" error when pushing to heroku
                                                                                                    chevron right
                                                                                                    Bundler::GemNotFound: Could not find mimemagic-0.3.5 in any of the sources on Rails project with Docker
                                                                                                    chevron right
                                                                                                    Bundler config to either look for gems in custom path or download from custom source
                                                                                                    chevron right
                                                                                                    How to annotate rails engine models with the annotate gem?
                                                                                                    chevron right
                                                                                                    How to execute a published Ruby Gem CLI app
                                                                                                    chevron right
                                                                                                    Ruby on Rails 'pg' gem installation error Windows 10
                                                                                                    chevron right
                                                                                                    Bundler could not find rake in any of the resources
                                                                                                    chevron right
                                                                                                    How to update a gem in a ruby script
                                                                                                    chevron right

                                                                                                    QUESTION

                                                                                                    bundle exec jekyll serve: cannot load such file
                                                                                                    Asked 2021-Jun-15 at 08:37

                                                                                                    I am trying to contribute to a Github Page/Jekyll site and want to be able to visualise changes locally but when I run bundle exec jekyll serve but I get this output:

                                                                                                    bundler: failed to load command: jekyll (/usr/local/lib/ruby/gems/3.0.0/bin/jekyll)
                                                                                                    /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:60:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:19:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:17:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll/converters/smartypants.rb:3:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll/converters/smartypants.rb:3:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:13:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:13:in `block in require_all'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:12:in `each'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:12:in `require_all'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:194:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/exe/jekyll:8:in `require'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/exe/jekyll:8:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `load'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:63:in `load'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:28:in `run'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli.rb:494:in `exec'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli.rb:30:in `dispatch'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/cli.rb:24:in `start'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/exe/bundle:49:in `block in '
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
                                                                                                            from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.5/exe/bundle:37:in `'
                                                                                                            from /usr/local/opt/ruby/bin/bundle:23:in `load'
                                                                                                            from /usr/local/opt/ruby/bin/bundle:23:in `'
                                                                                                    

                                                                                                    I did bundle update and this the result:

                                                                                                    Using concurrent-ruby 1.1.8 (was 1.1.7)
                                                                                                    Using multi_json 1.15.0
                                                                                                    Using public_suffix 3.1.1
                                                                                                    Using latex-decode 0.3.2
                                                                                                    Using bundler 2.2.5
                                                                                                    Using coffee-script-source 1.11.1
                                                                                                    Using execjs 2.7.0
                                                                                                    Using colorator 1.1.0
                                                                                                    Using namae 1.0.2 (was 1.0.1)
                                                                                                    Using unf_ext 0.0.7.7
                                                                                                    Using http_parser.rb 0.6.0
                                                                                                    Using faraday-net_http 1.0.1
                                                                                                    Using multipart-post 2.1.1
                                                                                                    Using ruby2_keywords 0.0.4
                                                                                                    Using forwardable-extended 2.6.0
                                                                                                    Using gemoji 3.0.1
                                                                                                    Using rb-fsevent 0.10.4
                                                                                                    Using kramdown 1.17.0
                                                                                                    Using liquid 4.0.3
                                                                                                    Using mercenary 0.3.6
                                                                                                    Using rouge 3.13.0
                                                                                                    Using safe_yaml 1.0.5
                                                                                                    Using racc 1.5.2
                                                                                                    Using jekyll-paginate 1.1.0
                                                                                                    Using rubyzip 2.3.0
                                                                                                    Using jekyll-swiss 1.0.0
                                                                                                    Using unicode-display_width 1.7.0
                                                                                                    Using i18n 0.9.5
                                                                                                    Using coffee-script 2.4.1
                                                                                                    Using citeproc 1.0.10
                                                                                                    Using csl 1.5.2
                                                                                                    Using unf 0.1.4
                                                                                                    Using eventmachine 1.2.7
                                                                                                    Using citeproc-ruby 1.1.13 (was 1.1.12)
                                                                                                    Using activesupport 3.2.22.5
                                                                                                    Using csl-styles 1.0.1.10
                                                                                                    Using simpleidn 0.2.1 (was 0.1.1)
                                                                                                    Using faraday 1.3.0 (was 1.0.1)
                                                                                                    Using addressable 2.7.0
                                                                                                    Using pathutil 0.16.2
                                                                                                    Using jekyll-coffeescript 1.1.1
                                                                                                    Using nokogiri 1.11.1 (x86_64-darwin) (was 1.10.10)
                                                                                                    Using terminal-table 1.8.0
                                                                                                    Using bibtex-ruby 4.4.7
                                                                                                    Using em-websocket 0.5.2
                                                                                                    Using dnsruby 1.61.5 (was 1.61.4)
                                                                                                    Using html-pipeline 2.14.0
                                                                                                    Using ffi 1.14.2 (was 1.13.1)
                                                                                                    Using sawyer 0.8.2
                                                                                                    Using ethon 0.12.0
                                                                                                    Fetching ruby-enum 0.9.0 (was 0.8.0)
                                                                                                    Using typhoeus 1.4.0
                                                                                                    Using octokit 4.20.0 (was 4.18.0)
                                                                                                    Using rb-inotify 0.10.1
                                                                                                    Using github-pages-health-check 1.16.1
                                                                                                    Using sass-listen 4.0.0
                                                                                                    Using listen 3.4.1 (was 3.2.1)
                                                                                                    Using jekyll-gist 1.5.0
                                                                                                    Using sass 3.7.4
                                                                                                    Using jekyll-watch 2.2.1
                                                                                                    Using jekyll-sass-converter 1.5.2
                                                                                                    Using jekyll 3.8.5
                                                                                                    Using jekyll-avatar 0.7.0
                                                                                                    Using jekyll-github-metadata 2.13.0
                                                                                                    Using jekyll-mentions 1.5.1
                                                                                                    Using jekyll-optional-front-matter 0.3.2
                                                                                                    Using jekyll-readme-index 0.3.0
                                                                                                    Using jekyll-redirect-from 0.15.0
                                                                                                    Using jekyll-relative-links 0.6.1
                                                                                                    Using jekyll-remote-theme 0.4.1
                                                                                                    Using jekyll-seo-tag 2.6.1
                                                                                                    Using jekyll-sitemap 1.4.0
                                                                                                    Using jekyll-titles-from-headings 0.5.3
                                                                                                    Using jemoji 0.11.1
                                                                                                    Using jekyll-scholar 5.16.0
                                                                                                    Using jekyll-feed 0.13.0
                                                                                                    Using jekyll-theme-cayman 0.1.1
                                                                                                    Using jekyll-theme-dinky 0.1.1
                                                                                                    Using jekyll-theme-hacker 0.1.1
                                                                                                    Using jekyll-theme-leap-day 0.1.1
                                                                                                    Using jekyll-theme-merlot 0.1.1
                                                                                                    Using jekyll-default-layout 0.1.4
                                                                                                    Using jekyll-theme-minimal 0.1.1
                                                                                                    Using jekyll-theme-midnight 0.1.1
                                                                                                    Using jekyll-theme-primer 0.5.4
                                                                                                    Using jekyll-theme-slate 0.1.1
                                                                                                    Using jekyll-theme-tactile 0.1.1
                                                                                                    Using jekyll-theme-modernist 0.1.1
                                                                                                    Using jekyll-theme-time-machine 0.1.1
                                                                                                    Using minima 2.5.1
                                                                                                    Using jekyll-theme-architect 0.1.1
                                                                                                    Installing ruby-enum 0.9.0 (was 0.8.0)
                                                                                                    Using commonmarker 0.17.13
                                                                                                    Using jekyll-commonmark 1.3.1
                                                                                                    Using jekyll-commonmark-ghpages 0.1.6
                                                                                                    Using github-pages 204
                                                                                                    Bundle updated!
                                                                                                    

                                                                                                    Also, this is what the gemfile looks like:

                                                                                                    source "https://rubygems.org"
                                                                                                    gem 'jekyll-scholar', group: :jekyll_plugins
                                                                                                    
                                                                                                    # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
                                                                                                    # uncomment the line below. To upgrade, run `bundle update github-pages`.
                                                                                                    gem "github-pages", "~> 204", group: :jekyll_plugins
                                                                                                    
                                                                                                    # If you have any plugins, put them here!
                                                                                                    group :jekyll_plugins do
                                                                                                      gem "jekyll-feed", "~> 0.6"
                                                                                                    end
                                                                                                    
                                                                                                    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
                                                                                                    gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
                                                                                                    
                                                                                                    # Performance-booster for watching directories on Windows
                                                                                                    gem "wdm", "~> 0.1.0" if Gem.win_platform?
                                                                                                    

                                                                                                    Why doesn'it work? I am fairly new to ruby and jekyll/github pages but I created another Github Page's website and this commands without a problem...

                                                                                                    ANSWER

                                                                                                    Answered 2021-Feb-02 at 16:29

                                                                                                    I had the same problem and I found a workaround here at https://github.com/jekyll/jekyll/issues/8523

                                                                                                    Add gem "webrick" to the Gemfile in your website. Than run bundle install

                                                                                                    At this point you can run bundle exec jekyll serve

                                                                                                    For me it works!

                                                                                                    Source https://stackoverflow.com/questions/65989040

                                                                                                    QUESTION

                                                                                                    updating to rails 6, but "activerecord-session_store (~> 2.0) was resolved to 2.0.0, which depends on actionpack (>= 5.2.4.1)"
                                                                                                    Asked 2021-Jun-14 at 23:35

                                                                                                    I ran bundle update rails and got this. I'm stumped. If activerecord-session_store 2.0 depends on a version of actionpack between 5.2.4.1 and above, and if actionpack is a dependency of Rails 6, shouldn't this be ok?

                                                                                                    Bundler could not find compatible versions for gem "actionpack":
                                                                                                     In Gemfile:
                                                                                                      activerecord-session_store (~> 2.0) was resolved to 2.0.0, which depends on
                                                                                                       actionpack (>= 5.2.4.1)
                                                                                                    
                                                                                                     rails (~> 6.0.3.6) was resolved to 6.0.3.6, which depends on
                                                                                                      actionpack (= 6.0.3.6)
                                                                                                    
                                                                                                     devise (~> 4.2) was resolved to 4.8.0, which depends on
                                                                                                      responders was resolved to 3.0.1, which depends on
                                                                                                       actionpack (>= 5.0)
                                                                                                    

                                                                                                    My gemfile is:

                                                                                                    source 'https://rubygems.org'
                                                                                                    ruby '2.5.0'
                                                                                                    
                                                                                                    gem 'rails', '~> 6.0.3.6'
                                                                                                    gem 'pg', ' 0.18.3'
                                                                                                    gem 'devise', '~> 4.2'
                                                                                                    gem 'aws-sdk-s3', '~> 1.75', require: false
                                                                                                    gem 'friendly_id', '~> 5.1'
                                                                                                    gem 'pagy', '~> 3.7', '>= 3.7.2'
                                                                                                    gem 'activerecord-session_store', '~> 2.0'
                                                                                                    gem 'sprockets', '3.7.2'
                                                                                                    gem 'aasm', '~> 5.0'
                                                                                                    gem 'redis', '~> 4.1', '>= 4.1.3'
                                                                                                    gem 'sidekiq', '~> 6.0', '>= 6.0.4'
                                                                                                    gem 'local_time', '~> 2.1'
                                                                                                    gem 'stripe', '~> 5.11'
                                                                                                    gem 'stripe_event', '~> 2.3'
                                                                                                    gem 'lockbox', '~> 0.4.8'
                                                                                                    gem 'mailgunner', '~> 2.4'
                                                                                                    gem 'rack-attack'
                                                                                                    gem 'honeypot-captcha', '~> 1.0', '>= 1.0.1'
                                                                                                    gem 'rack-timeout', '~> 0.6.0'
                                                                                                    gem 'pry', '0.13.1'
                                                                                                    gem 'image_processing', '~> 1.11'
                                                                                                    gem 'shrine', '~> 3.3.0'
                                                                                                    gem 'marcel', '~> 0.3.3'
                                                                                                    gem 'webpacker', '~> 5.2', '>= 5.2.1'
                                                                                                    gem 'json', '~> 2.3', '>= 2.3.1'
                                                                                                    

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-14 at 23:35

                                                                                                    Hmm; if I try bundle install with your Gemfile I get

                                                                                                    Bundler could not find compatible versions for gem "marcel":
                                                                                                      In Gemfile:
                                                                                                        marcel (~> 0.3.3)
                                                                                                    
                                                                                                        rails (~> 6.0.3.6) was resolved to 6.0.3.6, which depends on
                                                                                                          activestorage (= 6.0.3.6) was resolved to 6.0.3.6, which depends on
                                                                                                            marcel (~> 1.0.0)
                                                                                                    

                                                                                                    So try updating the version of marcel in your Gemfile to "~> 1.0.0" and then bundle update rails marcel.

                                                                                                    Source https://stackoverflow.com/questions/67977850

                                                                                                    QUESTION

                                                                                                    "Precompiling assets failed" error when pushing to heroku
                                                                                                    Asked 2021-Jun-10 at 07:21

                                                                                                    Looked through past posts on SO but couldn't find the solution.

                                                                                                    Environment:

                                                                                                    1. Mac OS Big Sur
                                                                                                    2. Rails 6.1.3.2
                                                                                                    3. ruby 3.0.1p64

                                                                                                    Github repo https://github.com/tenzan/ruby-bootcamp

                                                                                                    Added Bootsrtap 5 according to https://blog.corsego.com/rails-6-install-bootstrap-with-webpacker-tldr

                                                                                                    To push to heroku I ran git push heroku main

                                                                                                    Output:

                                                                                                    Enumerating objects: 109, done.
                                                                                                    Counting objects: 100% (109/109), done.
                                                                                                    Delta compression using up to 8 threads
                                                                                                    Compressing objects: 100% (94/94), done.
                                                                                                    Writing objects: 100% (109/109), 141.43 KiB | 4.16 MiB/s, done.
                                                                                                    Total 109 (delta 5), reused 0 (delta 0), pack-reused 0
                                                                                                    remote: Compressing source files... done.
                                                                                                    remote: Building source:
                                                                                                    remote: 
                                                                                                    remote: -----> Building on the Heroku-20 stack
                                                                                                    remote: -----> Determining which buildpack to use for this app
                                                                                                    remote:  !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
                                                                                                    remote:                         Detected buildpacks: Ruby,Node.js
                                                                                                    remote:                         See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
                                                                                                    remote: -----> Ruby app detected
                                                                                                    remote: -----> Installing bundler 2.2.16
                                                                                                    remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
                                                                                                    remote: -----> Compiling Ruby/Rails
                                                                                                    remote: -----> Using Ruby version: ruby-3.0.1
                                                                                                    remote: -----> Installing dependencies using bundler 2.2.16
                                                                                                    remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
                                                                                                    remote:        Fetching gem metadata from https://rubygems.org/............
                                                                                                    remote:        Fetching rake 13.0.3
                                                                                                    remote:        Installing rake 13.0.3
                                                                                                    remote:        Fetching concurrent-ruby 1.1.9
                                                                                                    remote:        Fetching minitest 5.14.4
                                                                                                    remote:        Fetching builder 3.2.4
                                                                                                    remote:        Fetching zeitwerk 2.4.2
                                                                                                    remote:        Installing builder 3.2.4
                                                                                                    remote:        Installing zeitwerk 2.4.2
                                                                                                    remote:        Installing minitest 5.14.4
                                                                                                    remote:        Installing concurrent-ruby 1.1.9
                                                                                                    remote:        Fetching erubi 1.10.0
                                                                                                    remote:        Fetching racc 1.5.2
                                                                                                    remote:        Fetching crass 1.0.6
                                                                                                    remote:        Installing erubi 1.10.0
                                                                                                    remote:        Installing crass 1.0.6
                                                                                                    remote:        Fetching rack 2.2.3
                                                                                                    remote:        Fetching nio4r 2.5.7
                                                                                                    remote:        Installing rack 2.2.3
                                                                                                    remote:        Installing racc 1.5.2 with native extensions
                                                                                                    remote:        Installing nio4r 2.5.7 with native extensions
                                                                                                    remote:        Fetching websocket-extensions 0.1.5
                                                                                                    remote:        Installing websocket-extensions 0.1.5
                                                                                                    remote:        Fetching marcel 1.0.1
                                                                                                    remote:        Installing marcel 1.0.1
                                                                                                    remote:        Fetching mini_mime 1.0.3
                                                                                                    remote:        Fetching msgpack 1.4.2
                                                                                                    remote:        Installing mini_mime 1.0.3
                                                                                                    remote:        Installing msgpack 1.4.2 with native extensions
                                                                                                    remote:        Using bundler 2.2.16
                                                                                                    remote:        Fetching ffi 1.15.1
                                                                                                    remote:        Installing ffi 1.15.1 with native extensions
                                                                                                    remote:        Fetching method_source 1.0.0
                                                                                                    remote:        Installing method_source 1.0.0
                                                                                                    remote:        Fetching pg 1.2.3
                                                                                                    remote:        Installing pg 1.2.3 with native extensions
                                                                                                    remote:        Fetching thor 1.1.0
                                                                                                    remote:        Installing thor 1.1.0
                                                                                                    remote:        Fetching tilt 2.0.10
                                                                                                    remote:        Installing tilt 2.0.10
                                                                                                    remote:        Fetching semantic_range 3.0.0
                                                                                                    remote:        Installing semantic_range 3.0.0
                                                                                                    remote:        Fetching turbolinks-source 5.2.0
                                                                                                    remote:        Installing turbolinks-source 5.2.0
                                                                                                    remote:        Fetching i18n 1.8.10
                                                                                                    remote:        Installing i18n 1.8.10
                                                                                                    remote:        Fetching tzinfo 2.0.4
                                                                                                    remote:        Installing tzinfo 2.0.4
                                                                                                    remote:        Fetching websocket-driver 0.7.4
                                                                                                    remote:        Installing websocket-driver 0.7.4 with native extensions
                                                                                                    remote:        Fetching rack-test 1.1.0
                                                                                                    remote:        Installing rack-test 1.1.0
                                                                                                    remote:        Fetching rack-proxy 0.7.0
                                                                                                    remote:        Installing rack-proxy 0.7.0
                                                                                                    remote:        Fetching sprockets 4.0.2
                                                                                                    remote:        Installing sprockets 4.0.2
                                                                                                    remote:        Fetching mail 2.7.1
                                                                                                    remote:        Installing mail 2.7.1
                                                                                                    remote:        Fetching nokogiri 1.11.7 (x86_64-linux)
                                                                                                    remote:        Installing nokogiri 1.11.7 (x86_64-linux)
                                                                                                    remote:        Fetching puma 5.3.2
                                                                                                    remote:        Installing puma 5.3.2 with native extensions
                                                                                                    remote:        Fetching turbolinks 5.2.1
                                                                                                    remote:        Installing turbolinks 5.2.1
                                                                                                    remote:        Fetching activesupport 6.1.3.2
                                                                                                    remote:        Installing activesupport 6.1.3.2
                                                                                                    remote:        Fetching loofah 2.10.0
                                                                                                    remote:        Installing loofah 2.10.0
                                                                                                    remote:        Fetching bootsnap 1.7.5
                                                                                                    remote:        Installing bootsnap 1.7.5 with native extensions
                                                                                                    remote:        Fetching rails-dom-testing 2.0.3
                                                                                                    remote:        Installing rails-dom-testing 2.0.3
                                                                                                    remote:        Fetching globalid 0.4.2
                                                                                                    remote:        Installing globalid 0.4.2
                                                                                                    remote:        Fetching activemodel 6.1.3.2
                                                                                                    remote:        Installing activemodel 6.1.3.2
                                                                                                    remote:        Fetching jbuilder 2.11.2
                                                                                                    remote:        Installing jbuilder 2.11.2
                                                                                                    remote:        Fetching rails-html-sanitizer 1.3.0
                                                                                                    remote:        Installing rails-html-sanitizer 1.3.0
                                                                                                    remote:        Fetching activejob 6.1.3.2
                                                                                                    remote:        Installing activejob 6.1.3.2
                                                                                                    remote:        Fetching activerecord 6.1.3.2
                                                                                                    remote:        Installing activerecord 6.1.3.2
                                                                                                    remote:        Fetching actionview 6.1.3.2
                                                                                                    remote:        Installing actionview 6.1.3.2
                                                                                                    remote:        Fetching actionpack 6.1.3.2
                                                                                                    remote:        Installing actionpack 6.1.3.2
                                                                                                    remote:        Fetching actioncable 6.1.3.2
                                                                                                    remote:        Installing actioncable 6.1.3.2
                                                                                                    remote:        Fetching activestorage 6.1.3.2
                                                                                                    remote:        Installing activestorage 6.1.3.2
                                                                                                    remote:        Fetching actionmailer 6.1.3.2
                                                                                                    remote:        Installing actionmailer 6.1.3.2
                                                                                                    remote:        Fetching railties 6.1.3.2
                                                                                                    remote:        Installing railties 6.1.3.2
                                                                                                    remote:        Fetching sprockets-rails 3.2.2
                                                                                                    remote:        Installing sprockets-rails 3.2.2
                                                                                                    remote:        Fetching actionmailbox 6.1.3.2
                                                                                                    remote:        Installing actionmailbox 6.1.3.2
                                                                                                    remote:        Fetching actiontext 6.1.3.2
                                                                                                    remote:        Installing actiontext 6.1.3.2
                                                                                                    remote:        Fetching webpacker 5.4.0
                                                                                                    remote:        Installing webpacker 5.4.0
                                                                                                    remote:        Fetching rails 6.1.3.2
                                                                                                    remote:        Installing rails 6.1.3.2
                                                                                                    remote:        Fetching sassc 2.4.0
                                                                                                    remote:        Installing sassc 2.4.0 with native extensions
                                                                                                    remote:        Fetching sassc-rails 2.1.2
                                                                                                    remote:        Installing sassc-rails 2.1.2
                                                                                                    remote:        Fetching sass-rails 6.0.0
                                                                                                    remote:        Installing sass-rails 6.0.0
                                                                                                    remote:        Bundle complete! 15 Gemfile dependencies, 56 gems now installed.
                                                                                                    remote:        Gems in the groups 'development' and 'test' were not installed.
                                                                                                    remote:        Bundled gems are installed into `./vendor/bundle`
                                                                                                    remote:        Bundle completed (146.80s)
                                                                                                    remote:        Cleaning up the bundler cache.
                                                                                                    remote: -----> Installing node-v12.16.2-linux-x64
                                                                                                    remote: -----> Installing yarn-v1.22.4
                                                                                                    remote: -----> Detecting rake tasks
                                                                                                    remote: -----> Preparing app for Rails asset pipeline
                                                                                                    remote:        Running: rake assets:precompile
                                                                                                    remote:        yarn install v1.22.4
                                                                                                    remote:        [1/4] Resolving packages...
                                                                                                    remote:        [2/4] Fetching packages...
                                                                                                    remote:        info fsevents@2.3.2: The platform "linux" is incompatible with this module.
                                                                                                    remote:        info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
                                                                                                    remote:        info fsevents@1.2.13: The platform "linux" is incompatible with this module.
                                                                                                    remote:        info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
                                                                                                    remote:        [3/4] Linking dependencies...
                                                                                                    remote:        warning " > bootstrap@5.0.1" has unmet peer dependency "@popperjs/core@^2.9.2".
                                                                                                    remote:        [4/4] Building fresh packages...
                                                                                                    remote:        Done in 24.91s.
                                                                                                    remote:        I, [2021-06-09T23:24:38.397155 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js
                                                                                                    remote:        I, [2021-06-09T23:24:38.397546 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz
                                                                                                    remote:        I, [2021-06-09T23:24:38.397826 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
                                                                                                    remote:        I, [2021-06-09T23:24:38.398005 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
                                                                                                    remote:        I, [2021-06-09T23:24:38.398268 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/static_pages-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
                                                                                                    remote:        I, [2021-06-09T23:24:38.398458 #1355]  INFO -- : Writing /tmp/build_c3bdb2fc/public/assets/static_pages-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
                                                                                                    remote:        Compiling...
                                                                                                    remote:        Compilation failed:
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        ModuleNotFoundError: Module not found: Error: Can't resolve '@popperjs/core' in '/tmp/build_c3bdb2fc/node_modules/bootstrap/dist/js'
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/webpack/lib/Compilation.js:925:10
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/webpack/lib/NormalModuleFactory.js:401:22
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/webpack/lib/NormalModuleFactory.js:130:21
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/webpack/lib/NormalModuleFactory.js:224:22
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/neo-async/async.js:2830:7
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/neo-async/async.js:6877:13
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/webpack/lib/NormalModuleFactory.js:214:25
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:213:14
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :25:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :41:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:30:40
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :14:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/forEachBail.js:30:14
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :25:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/Resolver.js:285:5
                                                                                                    remote:            at eval (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :14:1)
                                                                                                    remote:            at /tmp/build_c3bdb2fc/node_modules/enhanced-resolve/lib/RootPlugin.js:37:38
                                                                                                    remote:            at _next42 (eval at create (/tmp/build_c3bdb2fc/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
                                                                                                    remote:        resolve '@popperjs/core' in '/tmp/build_c3bdb2fc/node_modules/bootstrap/dist/js'
                                                                                                    remote:          Parsed request is a module
                                                                                                    remote:          using description file: /tmp/build_c3bdb2fc/node_modules/bootstrap/package.json (relative path: ./dist/js)
                                                                                                    remote:            Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:            resolve as module
                                                                                                    remote:              looking for modules in /tmp/build_c3bdb2fc/app/javascript
                                                                                                    remote:                using description file: /tmp/build_c3bdb2fc/package.json (relative path: ./app/javascript)
                                                                                                    remote:                  Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                  using description file: /tmp/build_c3bdb2fc/package.json (relative path: ./app/javascript/@popperjs/core)
                                                                                                    remote:                    no extension
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core doesn't exist
                                                                                                    remote:                    .mjs
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.mjs doesn't exist
                                                                                                    remote:                    .js
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.js doesn't exist
                                                                                                    remote:                    .sass
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.sass doesn't exist
                                                                                                    remote:                    .scss
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.scss doesn't exist
                                                                                                    remote:                    .css
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.css doesn't exist
                                                                                                    remote:                    .module.sass
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.module.sass doesn't exist
                                                                                                    remote:                    .module.scss
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.module.scss doesn't exist
                                                                                                    remote:                    .module.css
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.module.css doesn't exist
                                                                                                    remote:                    .png
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.png doesn't exist
                                                                                                    remote:                    .svg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.svg doesn't exist
                                                                                                    remote:                    .gif
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.gif doesn't exist
                                                                                                    remote:                    .jpeg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.jpeg doesn't exist
                                                                                                    remote:                    .jpg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core.jpg doesn't exist
                                                                                                    remote:                    as directory
                                                                                                    remote:                      /tmp/build_c3bdb2fc/app/javascript/@popperjs/core doesn't exist
                                                                                                    remote:              /tmp/build_c3bdb2fc/node_modules/bootstrap/dist/js/node_modules doesn't exist or is not a directory
                                                                                                    remote:              /tmp/build_c3bdb2fc/node_modules/bootstrap/dist/node_modules doesn't exist or is not a directory
                                                                                                    remote:              /tmp/build_c3bdb2fc/node_modules/bootstrap/node_modules doesn't exist or is not a directory
                                                                                                    remote:              /tmp/build_c3bdb2fc/node_modules/node_modules doesn't exist or is not a directory
                                                                                                    remote:              /tmp/node_modules doesn't exist or is not a directory
                                                                                                    remote:              /node_modules doesn't exist or is not a directory
                                                                                                    remote:              looking for modules in /tmp/build_c3bdb2fc/node_modules
                                                                                                    remote:                using description file: /tmp/build_c3bdb2fc/package.json (relative path: ./node_modules)
                                                                                                    remote:                  Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                  using description file: /tmp/build_c3bdb2fc/package.json (relative path: ./node_modules/@popperjs/core)
                                                                                                    remote:                    no extension
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core doesn't exist
                                                                                                    remote:                    .mjs
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.mjs doesn't exist
                                                                                                    remote:                    .js
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.js doesn't exist
                                                                                                    remote:                    .sass
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.sass doesn't exist
                                                                                                    remote:                    .scss
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.scss doesn't exist
                                                                                                    remote:                    .css
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.css doesn't exist
                                                                                                    remote:                    .module.sass
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.module.sass doesn't exist
                                                                                                    remote:                    .module.scss
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.module.scss doesn't exist
                                                                                                    remote:                    .module.css
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.module.css doesn't exist
                                                                                                    remote:                    .png
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.png doesn't exist
                                                                                                    remote:                    .svg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.svg doesn't exist
                                                                                                    remote:                    .gif
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.gif doesn't exist
                                                                                                    remote:                    .jpeg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.jpeg doesn't exist
                                                                                                    remote:                    .jpg
                                                                                                    remote:                      Field 'browser' doesn't contain a valid alias configuration
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core.jpg doesn't exist
                                                                                                    remote:                    as directory
                                                                                                    remote:                      /tmp/build_c3bdb2fc/node_modules/@popperjs/core doesn't exist
                                                                                                    remote:        Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
                                                                                                    remote:        The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
                                                                                                    remote:         ["@babel/plugin-proposal-private-methods", { "loose": true }]
                                                                                                    remote:        to the "plugins" section of your Babel config.
                                                                                                    remote:        
                                                                                                    remote: 
                                                                                                    remote:  !
                                                                                                    remote:  !     Precompiling assets failed.
                                                                                                    remote:  !
                                                                                                    remote:  !     Push rejected, failed to compile Ruby app.
                                                                                                    remote: 
                                                                                                    remote:  !     Push failed
                                                                                                    remote: Verifying deploy...
                                                                                                    remote: 
                                                                                                    remote: !       Push rejected to ruby-bootcamp-askar.
                                                                                                    remote: 
                                                                                                    To https://git.heroku.com/ruby-bootcamp-askar.git
                                                                                                     ! [remote rejected] main -> main (pre-receive hook declined)
                                                                                                    error: failed to push some refs to 'https://git.heroku.com/ruby-bootcamp-askar.git'
                                                                                                    

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-10 at 00:32

                                                                                                    ModuleNotFoundError: Module not found: Error: Can't resolve '@popperjs/core' suggests that you need to install @popperjs/core.

                                                                                                    Source https://stackoverflow.com/questions/67912854

                                                                                                    QUESTION

                                                                                                    Bundler::GemNotFound: Could not find mimemagic-0.3.5 in any of the sources on Rails project with Docker
                                                                                                    Asked 2021-Jun-10 at 00:24

                                                                                                    I'm aware of the recent mimemagic issues, which I managed to resolve on one of my Rails projects by bundle updating to 0.3.7 - but for some reason, I can't resolve it on the project below.

                                                                                                    I have a Rails 6 project which I'm setting up for the first time on a new laptop. My laptop doesn't have the correct Ruby setup, so I've added a Dockerfile to my project like so:-

                                                                                                    Dockerfile

                                                                                                    FROM ruby:2.7
                                                                                                    RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
                                                                                                    WORKDIR /radius
                                                                                                    COPY Gemfile /myapp/Gemfile
                                                                                                    COPY Gemfile.lock /myapp/Gemfile.lock
                                                                                                    RUN bundle update mimemagic
                                                                                                    RUN bundle install
                                                                                                    COPY . /myapp
                                                                                                    
                                                                                                    
                                                                                                    COPY entrypoint.sh /usr/bin/
                                                                                                    RUN chmod +x /usr/bin/entrypoint.sh
                                                                                                    ENTRYPOINT ["entrypoint.sh"]
                                                                                                    EXPOSE 3000
                                                                                                    
                                                                                                    
                                                                                                    CMD ["rails", "server", "-b", "0.0.0.0"]
                                                                                                    

                                                                                                    Gemfile

                                                                                                    # frozen_string_literal: true
                                                                                                    
                                                                                                    source 'https://rubygems.org'
                                                                                                    git_source(:github) { |repo| "https://github.com/#{repo}.git" }
                                                                                                    
                                                                                                    ruby '2.7.2'
                                                                                                    gem 'airbrake'
                                                                                                    
                                                                                                    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
                                                                                                    gem 'dotenv-rails'
                                                                                                    gem 'rails', '~> 6.0.3.6'
                                                                                                    # Use postgresql as the database for Active Record
                                                                                                    gem 'pg', '>= 0.18', '< 2.0'
                                                                                                    # Use Puma as the app server
                                                                                                    gem 'puma', '~> 3.11'
                                                                                                    # Use SCSS for stylesheets
                                                                                                    gem 'sass-rails', '~> 5'
                                                                                                    gem 'shortener'
                                                                                                    
                                                                                                    # Use Honeybadger for error reporting/monitoring
                                                                                                    gem 'honeybadger', '~> 4.0'
                                                                                                    # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
                                                                                                    gem 'webpacker', '~> 4.0'
                                                                                                    # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
                                                                                                    gem 'turbolinks', '~> 5'
                                                                                                    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
                                                                                                    gem 'jbuilder', '~> 2.5'
                                                                                                    # Use Redis adapter to run Action Cable in production
                                                                                                    # gem 'redis', '~> 4.0'
                                                                                                    # Use Active Model has_secure_password
                                                                                                    # gem 'bcrypt', '~> 3.1.7'
                                                                                                    gem 'newrelic_rpm'
                                                                                                    
                                                                                                    # Use Active Storage variant
                                                                                                    # gem 'image_processing', '~> 1.2'
                                                                                                    
                                                                                                    # Reduces boot times through caching; required in config/boot.rb
                                                                                                    gem 'bootsnap', '>= 1.4.2', require: false
                                                                                                    
                                                                                                    group :development, :test do
                                                                                                      gem 'awesome_print'
                                                                                                      gem 'byebug', platforms: %i[mri mingw x64_mingw]
                                                                                                      gem 'pry-byebug'
                                                                                                      # Version specified as workaround for this issue https://github.com/rails/rails/issues/35417
                                                                                                      gem 'rspec-rails', '~> 4.0.0.beta2'
                                                                                                    end
                                                                                                    
                                                                                                    group :development do
                                                                                                      gem 'factory_bot_rails', '~> 4.0'
                                                                                                      gem 'fasterer'
                                                                                                      gem 'haml_lint', require: false
                                                                                                      gem 'listen', '>= 3.0.5', '< 3.2'
                                                                                                      gem 'rails_best_practices'
                                                                                                      gem 'reek'
                                                                                                      gem 'rubocop'
                                                                                                      gem 'scss_lint', require: false
                                                                                                      gem 'spring'
                                                                                                      gem 'spring-watcher-listen', '~> 2.0.0'
                                                                                                      gem 'web-console', '>= 3.3.0'
                                                                                                    end
                                                                                                    
                                                                                                    group :test do
                                                                                                      # Adds support for Capybara system testing and selenium driver
                                                                                                      gem 'capybara', '>= 2.15'
                                                                                                      gem 'rspec_junit_formatter'
                                                                                                      gem 'selenium-webdriver'
                                                                                                      # Easy installation and use of web drivers to run system tests with browsers
                                                                                                      gem 'webdrivers'
                                                                                                      gem 'webmock'
                                                                                                    end
                                                                                                    
                                                                                                    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
                                                                                                    gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
                                                                                                    
                                                                                                    gem 'administrate', '0.12.0'
                                                                                                    gem 'bootstrap', '~> 4.3', '>= 4.3.1'
                                                                                                    gem 'devise', '~> 4.6', '>= 4.6.1'
                                                                                                    gem 'devise-bootstrapped',  github: 'excid3/devise-bootstrapped',
                                                                                                                                branch: 'bootstrap4'
                                                                                                    gem 'devise_masquerade', '~> 0.6.2'
                                                                                                    gem 'font-awesome-sass', '~> 5.6', '>= 5.6.1'
                                                                                                    gem 'friendly_id', '~> 5.2', '>= 5.2.5'
                                                                                                    gem 'gibbon'
                                                                                                    gem 'gmaps4rails'
                                                                                                    gem 'gravatar_image_tag', github: 'mdeering/gravatar_image_tag'
                                                                                                    gem 'httparty'
                                                                                                    gem 'mini_magick', '~> 4.9', '>= 4.9.2'
                                                                                                    gem 'name_of_person', '~> 1.1'
                                                                                                    gem 'omniauth-facebook', '~> 5.0'
                                                                                                    gem 'omniauth-github', '~> 1.3'
                                                                                                    gem 'omniauth-twitter', '~> 1.4'
                                                                                                    gem 'pundit', '~> 1.1.0'
                                                                                                    gem 'sidekiq', '~> 5.2', '>= 5.2.5'
                                                                                                    gem 'sitemap_generator', '~> 6.0', '>= 6.0.1'
                                                                                                    gem 'underscore-rails'
                                                                                                    gem 'whenever', require: false
                                                                                                    
                                                                                                    

                                                                                                    I then try:-

                                                                                                    docker-compose build
                                                                                                    docker-compose up
                                                                                                    

                                                                                                    Along with every combination of the following:-

                                                                                                    • Using bundle update mimemagic in my dockerfile
                                                                                                    • Adding the gem specifically to my Gemfile with gem 'mimemagic', '~> 0.3.7'
                                                                                                    • Manually changing my Gemfile.lock mimemagic version from 0.3.5 to 0.3.7
                                                                                                    • Adding RUN apt-get install shared-mime-info to my Dockefile

                                                                                                    and I simply get one of the below:-

                                                                                                    Could not find mimemagic-0.3.x in any of the sources
                                                                                                    
                                                                                                    web_1  | Bundler::GemNotFound: You have requested:
                                                                                                    web_1  |   mimemagic ~> 0.3.7
                                                                                                    web_1  | 
                                                                                                    web_1  | The bundle currently has mimemagic locked at 0.3.5.
                                                                                                    web_1  | Try running `bundle update mimemagic`
                                                                                                    
                                                                                                    

                                                                                                    I've also tried bumping rails to 6.0.3.6 and running the docker build again, which gives me activesupport issues:-

                                                                                                    web_1  | Bundler::VersionConflict: Bundler could not find compatible versions for gem "activesupport":
                                                                                                    web_1  |   In snapshot (Gemfile.lock):
                                                                                                    web_1  |     activesupport (= 6.0.3.5)
                                                                                                    web_1  | 
                                                                                                    web_1  |   In Gemfile:
                                                                                                    web_1  |     rails (~> 6.0.3.6) was resolved to 6.0.3.6, which depends on
                                                                                                    web_1  |       activesupport (= 6.0.3.6)
                                                                                                    web_1  | 
                                                                                                    web_1  |     dotenv-rails was resolved to 2.7.6, which depends on
                                                                                                    web_1  |       railties (>= 3.2) was resolved to 6.0.3.5, which depends on
                                                                                                    web_1  |         activesupport (= 6.0.3.5)
                                                                                                    web_1  | 
                                                                                                    web_1  | Running `bundle update` will rebuild your snapshot from scratch, using only
                                                                                                    web_1  | the gems in your Gemfile, which may resolve the conflict.
                                                                                                    
                                                                                                    

                                                                                                    What exactly do I need to do to get this gem to install?

                                                                                                    ANSWER

                                                                                                    Answered 2021-Mar-28 at 23:41
                                                                                                    bundle update --conservative mimemagic 
                                                                                                    

                                                                                                    also try with newer version rather than locking it. it worked for us with 0.3.9, but now there is 0.3.10(have not tried it),

                                                                                                    Source https://stackoverflow.com/questions/66844316

                                                                                                    QUESTION

                                                                                                    Bundler config to either look for gems in custom path or download from custom source
                                                                                                    Asked 2021-Jun-08 at 13:11

                                                                                                    How do I configure bundler so that when I run bundle install it looks for gems under /my/custom/path first and if it doesn't find there then try to fetch them from a ruby gem remote repository hosted under https://a.nice.host and downloads those into ./local/relative/path (relative to cwd for example). I would like to avoid the bundler looking at default gem installation system path or rubygems.org

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-08 at 13:11

                                                                                                    The syntax for sourcing a gem from a local folder is:

                                                                                                    gem 'some-gem-name', path: '/my/custom/path'
                                                                                                    

                                                                                                    And the syntax for specifying a custom source is:

                                                                                                    gem 'another-gem-name', source: 'https://a.nice.host'
                                                                                                    

                                                                                                    And to install gems into a specific local folder, you can run:

                                                                                                    bundle install --path ./local/relative/path
                                                                                                    

                                                                                                    Now, that's probably all the tools you need, in truth... (And in fact, especially for that last requirement, you may instead wish to look into rvm gemsets, or using bundle install --deployment.)

                                                                                                    But you did also ask about "looking in a local folder first, and only falling back to a remote source if it doesn't exist". That's quite an odd requirement (usually you'd only want to explicitly opt-in to fetching gems from a local path?!), but to answer this question as you've asked it...

                                                                                                    A Gemfile is literally just ruby code! So you can define this logic using... You guessed it, ruby! For example:

                                                                                                    if File.exists?('/my/custom/path')
                                                                                                      gem 'some-gem-name', path: '/my/custom/path'
                                                                                                    else
                                                                                                      gem 'some-gem-name', source: 'https://a.nice.host'
                                                                                                    end
                                                                                                    

                                                                                                    If this (unusual) pattern needs to be repeated in multiple places, you could wrap it into some helper method.

                                                                                                    For more information on the configuration options of bundler, please see the documentation.

                                                                                                    Source https://stackoverflow.com/questions/67887101

                                                                                                    QUESTION

                                                                                                    How to annotate rails engine models with the annotate gem?
                                                                                                    Asked 2021-Jun-08 at 04:40

                                                                                                    I am trying to annotate my engines inside of a rails 6 project.

                                                                                                    on the root app in the gem file I have

                                                                                                    group :development do
                                                                                                      gem 'annotate'
                                                                                                    end
                                                                                                    

                                                                                                    and this works just as expected. When every I run migrations all my models annotate perfectly

                                                                                                    now my engine Gemfile path is components/engine_mame/Gemfile

                                                                                                    and I have

                                                                                                    source 'https://rubygems.org'
                                                                                                    git_source(:github) { |repo| "https://github.com/#{repo}.git" }
                                                                                                    
                                                                                                    # Specify your gem's dependencies in engine_mame.gemspec.
                                                                                                    gemspec
                                                                                                    
                                                                                                    group :development do
                                                                                                      gem 'annotate'
                                                                                                      gem 'pg'
                                                                                                    end
                                                                                                    

                                                                                                    but when I look at the models in my engine I do not have any annotations. I am not sure what I am doing wrong

                                                                                                    Thanks

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-08 at 04:40

                                                                                                    method 1: set paths to models using generated rake task (rails g annotate:install), look for model_dir there and set paths using comma separator, e.g.

                                                                                                    Annotate.set_defaults(
                                                                                                      'model_dir' => 'app/models, engine_mame/app/models',
                                                                                                    )
                                                                                                    

                                                                                                    method 2: set paths manually on each call (comma-seeparated, without space)

                                                                                                    bundle exec annotate --model-dir app/models,engine_mame/app/models
                                                                                                    

                                                                                                    Source https://stackoverflow.com/questions/67878904

                                                                                                    QUESTION

                                                                                                    How to execute a published Ruby Gem CLI app
                                                                                                    Asked 2021-Jun-02 at 17:03

                                                                                                    I created a CLI Ruby Gem several months ago and have just gotten around to publishing it. How can I test out executing the gem to ensure it was set-up/published correctly? Typically, I run bin/run in the terminal from the gem's root directory but I'm not sure how to run it from a Rails directory with the gem installed, for example. Basically just want to make sure I did everything right and it's working as expected.

                                                                                                    Here's the gem for reference: https://rubygems.org/gems/phl-covid-testing

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-02 at 17:03

                                                                                                    I see some problems with this. But first, let me address your original question.

                                                                                                    To test it on the command line (terminal):

                                                                                                    $ gem install phl-covid-testing
                                                                                                    $ which run
                                                                                                    $ run
                                                                                                    

                                                                                                    To test it in your Bundler project, add phl-covid-testing to your Gemspec/Gemfile. Then do this:

                                                                                                    $ bundle install
                                                                                                    $ bundle exec run
                                                                                                    

                                                                                                    Now for the problems. The first problem you can see above is that you named your script run. This will be put on the user's path. It'd be better to rename your bin/run script to bin/phl-covid-testing or something else.

                                                                                                    Next, I don't know if you did chmod +x on your script file in bin/, but I'll assume you did. However looking at the contents of the file, you have this:

                                                                                                    #!/usr/bin/env ruby
                                                                                                    
                                                                                                    require "bundler/setup"
                                                                                                    require "./lib/environment"
                                                                                                    
                                                                                                    PHLCovidTesting::CLI.new.call
                                                                                                    

                                                                                                    You shouldn't use ./lib/environment, instead just do require 'environment'. You also don't need require "bundler/setup". If you're testing locally, just use bundle exec bin/run.

                                                                                                    Next, don't use the name environment.rb. I suggest renaming this file to the name of your Gem, so it would be phl-covid-testing.rb.

                                                                                                    Lastly, your repo has a lot of unnecessary files. Remove .DS_Store and phl-covid-testing-0.1.0.gem and also add these to .gitignore:

                                                                                                    # .gitignore
                                                                                                    .DS_Store
                                                                                                    *.gem
                                                                                                    

                                                                                                    There might be more files that you need to ignore or more problems, but these are the major ones that I see at a glance.

                                                                                                    EDIT:

                                                                                                    I decided to add how you can test this without uploading to RubyGems.org.

                                                                                                    If you're using bundler and rake and you have require 'bundler/gem_tasks' in your Rakefile, then you can do this:

                                                                                                    $ bundle exec rake install:local
                                                                                                    

                                                                                                    This will build and install the Gem locally.

                                                                                                    Else, you can also do this using the gem command manually:

                                                                                                    ## Remove old gems (optional).
                                                                                                    $ rm -v *.gem
                                                                                                    
                                                                                                    $ gem build phl_covid_testing.gemspec
                                                                                                    $ gem install *.gem
                                                                                                    

                                                                                                    See the official doc for more information.

                                                                                                    Then try to run the script as I mentioned earlier:

                                                                                                    $ phl_covid_testing
                                                                                                    ## Or with bundler:
                                                                                                    $ bundle exec phl_covid_testing
                                                                                                    

                                                                                                    Source https://stackoverflow.com/questions/67798009

                                                                                                    QUESTION

                                                                                                    Ruby on Rails 'pg' gem installation error Windows 10
                                                                                                    Asked 2021-Jun-01 at 01:05

                                                                                                    does anyone know why the error

                                                                                                    "ERROR: While executing gem ... (Errno::EACCES)

                                                                                                    Permission denied @ rb_sysopen - C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/2.7/pg_ext.so"

                                                                                                    appears while trying to install pg gem in Windows 10?
                                                                                                    I tried running gem install pg with admin privileges in command prompt in my application folder, but it throws this error.. I also checked out site https://rubygems.org/gems/pg and there copied how to install pg via command line, and what to include in Gemfile.
                                                                                                    Here is my gem file:

                                                                                                    source 'https://rubygems.org'
                                                                                                    git_source(:github) { |repo| "https://github.com/#{repo}.git" }
                                                                                                    
                                                                                                    # ruby '2.5.7'
                                                                                                    
                                                                                                    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
                                                                                                    gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
                                                                                                    # Use postgresql as the database for Active Record
                                                                                                    gem 'pg', '~> 1.2', '>= 1.2.3'
                                                                                                    # Use Puma as the app server
                                                                                                    gem 'puma', '~> 4.1'
                                                                                                    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
                                                                                                    # gem 'jbuilder', '~> 2.7'
                                                                                                    # Use Redis adapter to run Action Cable in production
                                                                                                    # gem 'redis', '~> 4.0'
                                                                                                    # Use Active Model has_secure_password
                                                                                                    # gem 'bcrypt', '~> 3.1.7'
                                                                                                    
                                                                                                    # Use Active Storage variant
                                                                                                    # gem 'image_processing', '~> 1.2'
                                                                                                    
                                                                                                    # Reduces boot times through caching; required in config/boot.rb
                                                                                                    gem 'bootsnap', '>= 1.4.2', require: false
                                                                                                    gem 'turbolinks'
                                                                                                    gem 'sass-rails'
                                                                                                    gem 'uglifier'
                                                                                                    gem 'coffee-rails'
                                                                                                    gem 'coffee-script-source'
                                                                                                    gem 'execjs'
                                                                                                    gem 'jquery-rails'
                                                                                                    gem 'jbuilder'
                                                                                                    gem 'bootstrap-sass', '~> 3.4.1'
                                                                                                    
                                                                                                    # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
                                                                                                    gem 'rack-attack'
                                                                                                    gem 'rack-cors'
                                                                                                    gem 'jwt'
                                                                                                    # gem 'acts_as_paranoid', '~> 0.6.0'
                                                                                                    gem 'active_model_serializers'
                                                                                                    gem 'pagy'
                                                                                                    gem 'pager_api'
                                                                                                    gem "pundit"
                                                                                                    gem "administrate", git: "https://github.com/thoughtbot/administrate"
                                                                                                    gem "figaro"
                                                                                                    gem 'faker'
                                                                                                    gem 'carrierwave'
                                                                                                    gem 'fog-aws'
                                                                                                    
                                                                                                    group :development, :test do
                                                                                                      # Call 'byebug' anywhere in the code to stop execution and get a debugger console
                                                                                                      gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
                                                                                                      gem 'wdm', '>= 0.1.0' if Gem.win_platform?
                                                                                                      gem "pry"
                                                                                                    end
                                                                                                    
                                                                                                    group :development do
                                                                                                    gem 'tzinfo-data'
                                                                                                    gem 'annotate'
                                                                                                    gem 'listen'
                                                                                                    end
                                                                                                    
                                                                                                    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
                                                                                                    # gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
                                                                                                    gem "auth0", "~> 5.0"
                                                                                                    

                                                                                                    Thank you very much reading this. (p.s. i am pretty new at ruby on rails, and so far i did 2 apps where i haven't used pg gem, installation of other gems all went well :/)

                                                                                                    ANSWER

                                                                                                    Answered 2021-Jun-01 at 01:05

                                                                                                    I'm assuming you've downloaded and installed PostgreSQL on your system. Use the following to point the gem to where postgres is installed. This is an example of what it'd look like on my system.

                                                                                                    gem install pg -- --with-pg-config='C:\Program Files\PostgreSQL\13\bin\pg_config.exe'
                                                                                                    

                                                                                                    Source https://stackoverflow.com/questions/67774112

                                                                                                    QUESTION

                                                                                                    Bundler could not find rake in any of the resources
                                                                                                    Asked 2021-May-23 at 12:27

                                                                                                    Im running ruby version 2.6.1 with docker. Rake gem is version 13.0.1.
                                                                                                    Whenever I tried docker-compose up, it always fails and throws this error everytime:
                                                                                                    This error did not exist before.

                                                                                                    redis_1  | WARNING: no logs are available with the 'none' log driver
                                                                                                    db_1     | WARNING: no logs are available with the 'none' log driver
                                                                                                    web_1    | bundler: failed to load command: rails (/bundle/bin/rails)
                                                                                                    web_1    | Bundler::GemNotFound: Could not find rake-13.0.1 in any of the sources
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/spec_set.rb:91:in `block in materialize'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/spec_set.rb:85:in `map!'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/spec_set.rb:85:in `materialize'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/definition.rb:170:in `specs'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/definition.rb:237:in `specs_for'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/definition.rb:226:in `requested_specs'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/runtime.rb:108:in `block in definition_method'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/runtime.rb:20:in `setup'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler.rb:107:in `setup'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/bundler/setup.rb:20:in `'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
                                                                                                    web_1    |   /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
                                                                                                    

                                                                                                    Here is my Gemfile:

                                                                                                    source 'https://rubygems.org'
                                                                                                    git_source(:github) { |repo| "https://github.com/#{repo}.git" }
                                                                                                    
                                                                                                    ruby '~> 2.6.1'
                                                                                                    
                                                                                                    gem 'rails', '~> 5.2.2'
                                                                                                    gem 'mysql2'
                                                                                                    gem 'puma', '~> 3.11'
                                                                                                    gem 'sass-rails', '~> 5.0'
                                                                                                    gem 'uglifier', '>= 1.3.0'
                                                                                                    gem 'webpacker'
                                                                                                    
                                                                                                    gem 'coffee-rails', '~> 4.2'
                                                                                                    gem 'turbolinks', '~> 5'
                                                                                                    gem 'jbuilder', '~> 2.5'
                                                                                                    # gem 'redis', '~> 4.0'
                                                                                                    # Use ActiveModel has_secure_password
                                                                                                    # gem 'bcrypt', '~> 3.1.7'
                                                                                                    gem 'rake'
                                                                                                    
                                                                                                    # Use ActiveStorage variant
                                                                                                    # gem 'mini_magick', '~> 4.8'
                                                                                                    
                                                                                                    # Use Capistrano for deployment
                                                                                                    # gem 'capistrano-rails', group: :development
                                                                                                    
                                                                                                    gem 'active_hash'
                                                                                                    gem 'active_hash-like'
                                                                                                    
                                                                                                    gem 'devise'
                                                                                                    gem 'devise-i18n'
                                                                                                    gem 'devise_invitable' # deviseに招待機能を追加
                                                                                                    
                                                                                                    gem 'simple_form'
                                                                                                    gem 'kaminari'
                                                                                                    gem 'paperclip'
                                                                                                    gem 'ransack'      
                                                                                                    gem 'active_link_to'
                                                                                                    gem 'gretel'      
                                                                                                    gem 'whenever'     
                                                                                                    gem 'meta-tags'    
                                                                                                    gem 'kakurenbo-puti'
                                                                                                    gem 'jpmobile'
                                                                                                    # gem 'geokit' # 測地系
                                                                                                    gem 'slim-rails'
                                                                                                    gem 'sitemap_generator'
                                                                                                    # gem 'font-awesome-rails'#railsでfont-awesome仕様
                                                                                                    gem 'exception_notification'
                                                                                                    gem 'slack-notifier'
                                                                                                    gem 'easy_settings'
                                                                                                    gem 'enum_help'
                                                                                                    gem 'i18n_generators' 
                                                                                                    gem 'inline_svg'
                                                                                                    # gem 'select2-rails'
                                                                                                    gem 'draper' 
                                                                                                    # gem 'cancancan'#権限管理(パックラインユーザーなど)
                                                                                                    # gem 'cocoon' # nested form
                                                                                                    # gem 'wicked_pdf'#キャプチャ用gem3
                                                                                                    # gem 'wkhtmltopdf-binary'#キャプチャ用gem2
                                                                                                    
                                                                                                    # AWS S3など用
                                                                                                    # gem 'aws-sdk', '~> 3'
                                                                                                    gem 'aws-sdk-s3', '~> 1'
                                                                                                    gem 'aws-ses', '~> 0.6'
                                                                                                    # 並列処理用
                                                                                                    gem 'parallel'
                                                                                                    gem 'ruby-progressbar'
                                                                                                    # gem 'rambulance' # このGemのBugが多いので、廃止
                                                                                                    
                                                                                                    gem 'premailer-rails' 
                                                                                                    
                                                                                                    gem 'maxminddb' 
                                                                                                    
                                                                                                    gem 'counter_culture', '~> 2.0'
                                                                                                    gem 'recaptcha'
                                                                                                    gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f' 
                                                                                                    
                                                                                                    group :development do
                                                                                                      gem 'letter_opener' # dev mail
                                                                                                      gem 'letter_opener_web' # http://localhost:8001/letter_opener
                                                                                                      gem 'rubocop', require: false
                                                                                                      gem 'rubocop-airbnb'
                                                                                                    end
                                                                                                    
                                                                                                    group :development do
                                                                                                      gem 'foreman' 
                                                                                                    end
                                                                                                    
                                                                                                    group :development, :test, :staging do
                                                                                                      gem 'pry-rails'  
                                                                                                      gem 'pry-doc'    
                                                                                                      gem 'pry-byebug' 
                                                                                                      gem 'pry-stack_explorer' 
                                                                                                    end
                                                                                                    
                                                                                                    # Reduces boot times through caching; required in config/boot.rb
                                                                                                    gem 'bootsnap', '>= 1.1.0', require: false
                                                                                                    
                                                                                                    group :development, :test do
                                                                                                      # Call 'byebug' anywhere in the code to stop execution and get a debugger console
                                                                                                      gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
                                                                                                      gem 'dotenv-rails'
                                                                                                    end
                                                                                                    
                                                                                                    # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
                                                                                                    gem 'web-console', '>= 3.3.0', group: :development
                                                                                                    
                                                                                                    group :development, :staging do
                                                                                                      gem 'listen', '>= 3.0.5', '< 3.2'
                                                                                                      gem 'spring'
                                                                                                      gem 'spring-watcher-listen', '~> 2.0.0'
                                                                                                    end
                                                                                                    
                                                                                                    group :test do
                                                                                                      # Adds support for Capybara system testing and selenium driver
                                                                                                      gem 'capybara', '>= 2.15'
                                                                                                      gem 'selenium-webdriver'
                                                                                                      # Easy installation and use of chromedriver to run system tests with Chrome
                                                                                                      gem 'webdrivers'
                                                                                                    end
                                                                                                    
                                                                                                    # TEST Tools
                                                                                                    group :development, :test do
                                                                                                      gem 'rspec'                  
                                                                                                      gem 'rspec-rails'            
                                                                                                      gem 'factory_bot_rails'     
                                                                                                      gem 'faker'                  
                                                                                                      gem 'database_cleaner'       
                                                                                                      gem 'timecop'                
                                                                                                      gem 'spring-commands-rspec'  
                                                                                                      gem 'launchy'
                                                                                                    end
                                                                                                    
                                                                                                    
                                                                                                    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
                                                                                                    

                                                                                                    Here is my lockfile:

                                                                                                    GIT
                                                                                                      remote: https://github.com/mimemagicrb/mimemagic.git
                                                                                                      revision: 01f92d86d15d85cfd0f20dabd025dcbd36a8a60f
                                                                                                      ref: 01f92d86d15d85cfd0f20dabd025dcbd36a8a60f
                                                                                                      specs:
                                                                                                        mimemagic (0.3.5)
                                                                                                    
                                                                                                    GEM
                                                                                                      remote: https://rubygems.org/
                                                                                                      specs:
                                                                                                        actioncable (5.2.4.3)
                                                                                                          actionpack (= 5.2.4.3)
                                                                                                          nio4r (~> 2.0)
                                                                                                          websocket-driver (>= 0.6.1)
                                                                                                        actionmailer (5.2.4.3)
                                                                                                          actionpack (= 5.2.4.3)
                                                                                                          actionview (= 5.2.4.3)
                                                                                                          activejob (= 5.2.4.3)
                                                                                                          mail (~> 2.5, >= 2.5.4)
                                                                                                          rails-dom-testing (~> 2.0)
                                                                                                        actionpack (5.2.4.3)
                                                                                                          actionview (= 5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          rack (~> 2.0, >= 2.0.8)
                                                                                                          rack-test (>= 0.6.3)
                                                                                                          rails-dom-testing (~> 2.0)
                                                                                                          rails-html-sanitizer (~> 1.0, >= 1.0.2)
                                                                                                        actionview (5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          builder (~> 3.1)
                                                                                                          erubi (~> 1.4)
                                                                                                          rails-dom-testing (~> 2.0)
                                                                                                          rails-html-sanitizer (~> 1.0, >= 1.0.3)
                                                                                                        active_hash (3.1.0)
                                                                                                          activesupport (>= 5.0.0)
                                                                                                        active_hash-like (0.1.0)
                                                                                                          active_hash
                                                                                                        active_link_to (1.0.5)
                                                                                                          actionpack
                                                                                                          addressable
                                                                                                        activejob (5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          globalid (>= 0.3.6)
                                                                                                        activemodel (5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                        activemodel-serializers-xml (1.0.2)
                                                                                                          activemodel (> 5.x)
                                                                                                          activesupport (> 5.x)
                                                                                                          builder (~> 3.1)
                                                                                                        activerecord (5.2.4.3)
                                                                                                          activemodel (= 5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          arel (>= 9.0)
                                                                                                        activestorage (5.2.4.3)
                                                                                                          actionpack (= 5.2.4.3)
                                                                                                          activerecord (= 5.2.4.3)
                                                                                                          marcel (~> 0.3.1)
                                                                                                        activesupport (5.2.4.3)
                                                                                                          concurrent-ruby (~> 1.0, >= 1.0.2)
                                                                                                          i18n (>= 0.7, < 2)
                                                                                                          minitest (~> 5.1)
                                                                                                          tzinfo (~> 1.1)
                                                                                                        addressable (2.7.0)
                                                                                                          public_suffix (>= 2.0.2, < 5.0)
                                                                                                        after_commit_action (1.1.0)
                                                                                                          activerecord (>= 3.0.0)
                                                                                                          activesupport (>= 3.0.0)
                                                                                                        arel (9.0.0)
                                                                                                        ast (2.4.1)
                                                                                                        aws-eventstream (1.1.0)
                                                                                                        aws-partitions (1.360.0)
                                                                                                        aws-sdk-core (3.105.0)
                                                                                                          aws-eventstream (~> 1, >= 1.0.2)
                                                                                                          aws-partitions (~> 1, >= 1.239.0)
                                                                                                          aws-sigv4 (~> 1.1)
                                                                                                          jmespath (~> 1.0)
                                                                                                        aws-sdk-kms (1.37.0)
                                                                                                          aws-sdk-core (~> 3, >= 3.99.0)
                                                                                                          aws-sigv4 (~> 1.1)
                                                                                                        aws-sdk-s3 (1.79.1)
                                                                                                          aws-sdk-core (~> 3, >= 3.104.3)
                                                                                                          aws-sdk-kms (~> 1)
                                                                                                          aws-sigv4 (~> 1.1)
                                                                                                        aws-ses (0.6.0)
                                                                                                          builder
                                                                                                          mail (> 2.2.5)
                                                                                                          mime-types
                                                                                                          xml-simple
                                                                                                        aws-sigv4 (1.2.2)
                                                                                                          aws-eventstream (~> 1, >= 1.0.2)
                                                                                                        bcrypt (3.1.15)
                                                                                                        bindex (0.8.1)
                                                                                                        binding_of_caller (0.8.0)
                                                                                                          debug_inspector (>= 0.0.1)
                                                                                                        bootsnap (1.4.8)
                                                                                                          msgpack (~> 1.0)
                                                                                                        builder (3.2.4)
                                                                                                        byebug (11.1.3)
                                                                                                        capybara (3.33.0)
                                                                                                          addressable
                                                                                                          mini_mime (>= 0.1.3)
                                                                                                          nokogiri (~> 1.8)
                                                                                                          rack (>= 1.6.0)
                                                                                                          rack-test (>= 0.6.3)
                                                                                                          regexp_parser (~> 1.5)
                                                                                                          xpath (~> 3.2)
                                                                                                        childprocess (3.0.0)
                                                                                                        chronic (0.10.2)
                                                                                                        climate_control (0.2.0)
                                                                                                        coderay (1.1.3)
                                                                                                        coffee-rails (4.2.2)
                                                                                                          coffee-script (>= 2.2.0)
                                                                                                          railties (>= 4.0.0)
                                                                                                        coffee-script (2.4.1)
                                                                                                          coffee-script-source
                                                                                                          execjs
                                                                                                        coffee-script-source (1.12.2)
                                                                                                        concurrent-ruby (1.1.7)
                                                                                                        counter_culture (2.6.0)
                                                                                                          activerecord (>= 4.2)
                                                                                                          activesupport (>= 4.2)
                                                                                                          after_commit_action (~> 1.0)
                                                                                                        crass (1.0.6)
                                                                                                        css_parser (1.7.1)
                                                                                                          addressable
                                                                                                        database_cleaner (1.8.5)
                                                                                                        debug_inspector (0.0.3)
                                                                                                        devise (4.7.2)
                                                                                                          bcrypt (~> 3.0)
                                                                                                          orm_adapter (~> 0.1)
                                                                                                          railties (>= 4.1.0)
                                                                                                          responders
                                                                                                          warden (~> 1.2.3)
                                                                                                        devise-i18n (1.9.2)
                                                                                                          devise (>= 4.7.1)
                                                                                                        devise_invitable (2.0.2)
                                                                                                          actionmailer (>= 5.0)
                                                                                                          devise (>= 4.6)
                                                                                                        diff-lcs (1.4.4)
                                                                                                        dotenv (2.7.6)
                                                                                                        dotenv-rails (2.7.6)
                                                                                                          dotenv (= 2.7.6)
                                                                                                          railties (>= 3.2)
                                                                                                        draper (4.0.1)
                                                                                                          actionpack (>= 5.0)
                                                                                                          activemodel (>= 5.0)
                                                                                                          activemodel-serializers-xml (>= 1.0)
                                                                                                          activesupport (>= 5.0)
                                                                                                          request_store (>= 1.0)
                                                                                                        easy_settings (0.1.2)
                                                                                                          hashie (~> 3.4.3)
                                                                                                        enum_help (0.0.17)
                                                                                                          activesupport (>= 3.0.0)
                                                                                                        erubi (1.9.0)
                                                                                                        exception_notification (4.4.3)
                                                                                                          actionmailer (>= 4.0, < 7)
                                                                                                          activesupport (>= 4.0, < 7)
                                                                                                        execjs (2.7.0)
                                                                                                        factory_bot (6.1.0)
                                                                                                          activesupport (>= 5.0.0)
                                                                                                        factory_bot_rails (6.1.0)
                                                                                                          factory_bot (~> 6.1.0)
                                                                                                          railties (>= 5.0.0)
                                                                                                        faker (2.13.0)
                                                                                                          i18n (>= 1.6, < 2)
                                                                                                        ffi (1.13.1)
                                                                                                        ffi (1.13.1-x86-mingw32)
                                                                                                        foreman (0.87.2)
                                                                                                        globalid (0.4.2)
                                                                                                          activesupport (>= 4.2.0)
                                                                                                        gretel (4.0.2)
                                                                                                          rails (>= 5.1)
                                                                                                        hashie (3.4.6)
                                                                                                        htmlentities (4.3.4)
                                                                                                        i18n (1.8.5)
                                                                                                          concurrent-ruby (~> 1.0)
                                                                                                        i18n_generators (2.2.2)
                                                                                                          activerecord (>= 3.0.0)
                                                                                                          railties (>= 3.0.0)
                                                                                                        inline_svg (1.7.1)
                                                                                                          activesupport (>= 3.0)
                                                                                                          nokogiri (>= 1.6)
                                                                                                        jaro_winkler (1.5.4)
                                                                                                        jbuilder (2.10.0)
                                                                                                          activesupport (>= 5.0.0)
                                                                                                        jmespath (1.4.0)
                                                                                                        jpmobile (6.0.0)
                                                                                                          mail (~> 2.7.0)
                                                                                                        json (2.3.1)
                                                                                                        kakurenbo-puti (0.5.0)
                                                                                                          activerecord (>= 4.1.0)
                                                                                                        kaminari (1.2.1)
                                                                                                          activesupport (>= 4.1.0)
                                                                                                          kaminari-actionview (= 1.2.1)
                                                                                                          kaminari-activerecord (= 1.2.1)
                                                                                                          kaminari-core (= 1.2.1)
                                                                                                        kaminari-actionview (1.2.1)
                                                                                                          actionview
                                                                                                          kaminari-core (= 1.2.1)
                                                                                                        kaminari-activerecord (1.2.1)
                                                                                                          activerecord
                                                                                                          kaminari-core (= 1.2.1)
                                                                                                        kaminari-core (1.2.1)
                                                                                                        launchy (2.5.0)
                                                                                                          addressable (~> 2.7)
                                                                                                        letter_opener (1.7.0)
                                                                                                          launchy (~> 2.2)
                                                                                                        letter_opener_web (1.4.0)
                                                                                                          actionmailer (>= 3.2)
                                                                                                          letter_opener (~> 1.0)
                                                                                                          railties (>= 3.2)
                                                                                                        listen (3.1.5)
                                                                                                          rb-fsevent (~> 0.9, >= 0.9.4)
                                                                                                          rb-inotify (~> 0.9, >= 0.9.7)
                                                                                                          ruby_dep (~> 1.2)
                                                                                                        loofah (2.7.0)
                                                                                                          crass (~> 1.0.2)
                                                                                                          nokogiri (>= 1.5.9)
                                                                                                        mail (2.7.1)
                                                                                                          mini_mime (>= 0.1.1)
                                                                                                        marcel (0.3.3)
                                                                                                          mimemagic (~> 0.3.2)
                                                                                                        maxminddb (0.1.22)
                                                                                                        meta-tags (2.13.0)
                                                                                                          actionpack (>= 3.2.0, < 6.1)
                                                                                                        method_source (1.0.0)
                                                                                                        mime-types (3.3.1)
                                                                                                          mime-types-data (~> 3.2015)
                                                                                                        mime-types-data (3.2020.0512)
                                                                                                        mini_mime (1.0.2)
                                                                                                        mini_portile2 (2.4.0)
                                                                                                        minitest (5.14.1)
                                                                                                        msgpack (1.3.3)
                                                                                                        msgpack (1.3.3-x86-mingw32)
                                                                                                        mysql2 (0.5.3)
                                                                                                        mysql2 (0.5.3-x86-mingw32)
                                                                                                        nio4r (2.5.2)
                                                                                                        nokogiri (1.10.10)
                                                                                                          mini_portile2 (~> 2.4.0)
                                                                                                        nokogiri (1.10.10-x86-mingw32)
                                                                                                          mini_portile2 (~> 2.4.0)
                                                                                                        orm_adapter (0.5.0)
                                                                                                        paperclip (6.1.0)
                                                                                                          activemodel (>= 4.2.0)
                                                                                                          activesupport (>= 4.2.0)
                                                                                                          mime-types
                                                                                                          mimemagic (~> 0.3.0)
                                                                                                          terrapin (~> 0.6.0)
                                                                                                        parallel (1.19.2)
                                                                                                        parser (2.7.1.4)
                                                                                                          ast (~> 2.4.1)
                                                                                                        polyamorous (2.3.2)
                                                                                                          activerecord (>= 5.2.1)
                                                                                                        premailer (1.13.1)
                                                                                                          addressable
                                                                                                          css_parser (>= 1.6.0)
                                                                                                          htmlentities (>= 4.0.0)
                                                                                                        premailer-rails (1.11.1)
                                                                                                          actionmailer (>= 3)
                                                                                                          premailer (~> 1.7, >= 1.7.9)
                                                                                                        pry (0.13.1)
                                                                                                          coderay (~> 1.1)
                                                                                                          method_source (~> 1.0)
                                                                                                        pry-byebug (3.9.0)
                                                                                                          byebug (~> 11.0)
                                                                                                          pry (~> 0.13.0)
                                                                                                        pry-doc (1.1.0)
                                                                                                          pry (~> 0.11)
                                                                                                          yard (~> 0.9.11)
                                                                                                        pry-rails (0.3.9)
                                                                                                          pry (>= 0.10.4)
                                                                                                        pry-stack_explorer (0.5.1)
                                                                                                          binding_of_caller (~> 0.7)
                                                                                                          pry (~> 0.13)
                                                                                                        public_suffix (4.0.5)
                                                                                                        puma (3.12.6)
                                                                                                        rack (2.2.3)
                                                                                                        rack-proxy (0.6.5)
                                                                                                          rack
                                                                                                        rack-test (1.1.0)
                                                                                                          rack (>= 1.0, < 3)
                                                                                                        rails (5.2.4.3)
                                                                                                          actioncable (= 5.2.4.3)
                                                                                                          actionmailer (= 5.2.4.3)
                                                                                                          actionpack (= 5.2.4.3)
                                                                                                          actionview (= 5.2.4.3)
                                                                                                          activejob (= 5.2.4.3)
                                                                                                          activemodel (= 5.2.4.3)
                                                                                                          activerecord (= 5.2.4.3)
                                                                                                          activestorage (= 5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          bundler (>= 1.3.0)
                                                                                                          railties (= 5.2.4.3)
                                                                                                          sprockets-rails (>= 2.0.0)
                                                                                                        rails-dom-testing (2.0.3)
                                                                                                          activesupport (>= 4.2.0)
                                                                                                          nokogiri (>= 1.6)
                                                                                                        rails-html-sanitizer (1.3.0)
                                                                                                          loofah (~> 2.3)
                                                                                                        railties (5.2.4.3)
                                                                                                          actionpack (= 5.2.4.3)
                                                                                                          activesupport (= 5.2.4.3)
                                                                                                          method_source
                                                                                                          rake (>= 0.8.7)
                                                                                                          thor (>= 0.19.0, < 2.0)
                                                                                                        rainbow (3.0.0)
                                                                                                        rake (13.0.1)
                                                                                                        ransack (2.3.2)
                                                                                                          activerecord (>= 5.2.1)
                                                                                                          activesupport (>= 5.2.1)
                                                                                                          i18n
                                                                                                          polyamorous (= 2.3.2)
                                                                                                        rb-fsevent (0.10.4)
                                                                                                        rb-inotify (0.10.1)
                                                                                                          ffi (~> 1.0)
                                                                                                        recaptcha (5.5.0)
                                                                                                          json
                                                                                                        regexp_parser (1.7.1)
                                                                                                        request_store (1.5.0)
                                                                                                          rack (>= 1.4)
                                                                                                        responders (3.0.1)
                                                                                                          actionpack (>= 5.0)
                                                                                                          railties (>= 5.0)
                                                                                                        rspec (3.9.0)
                                                                                                          rspec-core (~> 3.9.0)
                                                                                                          rspec-expectations (~> 3.9.0)
                                                                                                          rspec-mocks (~> 3.9.0)
                                                                                                        rspec-core (3.9.2)
                                                                                                          rspec-support (~> 3.9.3)
                                                                                                        rspec-expectations (3.9.2)
                                                                                                          diff-lcs (>= 1.2.0, < 2.0)
                                                                                                          rspec-support (~> 3.9.0)
                                                                                                        rspec-mocks (3.9.1)
                                                                                                          diff-lcs (>= 1.2.0, < 2.0)
                                                                                                          rspec-support (~> 3.9.0)
                                                                                                        rspec-rails (4.0.1)
                                                                                                          actionpack (>= 4.2)
                                                                                                          activesupport (>= 4.2)
                                                                                                          railties (>= 4.2)
                                                                                                          rspec-core (~> 3.9)
                                                                                                          rspec-expectations (~> 3.9)
                                                                                                          rspec-mocks (~> 3.9)
                                                                                                          rspec-support (~> 3.9)
                                                                                                        rspec-support (3.9.3)
                                                                                                        rubocop (0.76.0)
                                                                                                          jaro_winkler (~> 1.5.1)
                                                                                                          parallel (~> 1.10)
                                                                                                          parser (>= 2.6)
                                                                                                          rainbow (>= 2.2.2, < 4.0)
                                                                                                          ruby-progressbar (~> 1.7)
                                                                                                          unicode-display_width (>= 1.4.0, < 1.7)
                                                                                                        rubocop-airbnb (3.0.2)
                                                                                                          rubocop (~> 0.76.0)
                                                                                                          rubocop-performance (~> 1.5.0)
                                                                                                          rubocop-rails (~> 2.3.2)
                                                                                                          rubocop-rspec (~> 1.30.0)
                                                                                                        rubocop-performance (1.5.2)
                                                                                                          rubocop (>= 0.71.0)
                                                                                                        rubocop-rails (2.3.2)
                                                                                                          rack (>= 1.1)
                                                                                                          rubocop (>= 0.72.0)
                                                                                                        rubocop-rspec (1.30.1)
                                                                                                          rubocop (>= 0.60.0)
                                                                                                        ruby-progressbar (1.10.1)
                                                                                                        ruby_dep (1.5.0)
                                                                                                        rubyzip (2.3.0)
                                                                                                        sass (3.7.4)
                                                                                                          sass-listen (~> 4.0.0)
                                                                                                        sass-listen (4.0.0)
                                                                                                          rb-fsevent (~> 0.9, >= 0.9.4)
                                                                                                          rb-inotify (~> 0.9, >= 0.9.7)
                                                                                                        sass-rails (5.1.0)
                                                                                                          railties (>= 5.2.0)
                                                                                                          sass (~> 3.1)
                                                                                                          sprockets (>= 2.8, < 4.0)
                                                                                                          sprockets-rails (>= 2.0, < 4.0)
                                                                                                          tilt (>= 1.1, < 3)
                                                                                                        selenium-webdriver (3.142.7)
                                                                                                          childprocess (>= 0.5, < 4.0)
                                                                                                          rubyzip (>= 1.2.2)
                                                                                                        semantic_range (2.3.0)
                                                                                                        simple_form (5.0.2)
                                                                                                          actionpack (>= 5.0)
                                                                                                          activemodel (>= 5.0)
                                                                                                        sitemap_generator (6.1.2)
                                                                                                          builder (~> 3.0)
                                                                                                        slack-notifier (2.3.2)
                                                                                                        slim (4.1.0)
                                                                                                          temple (>= 0.7.6, < 0.9)
                                                                                                          tilt (>= 2.0.6, < 2.1)
                                                                                                        slim-rails (3.2.0)
                                                                                                          actionpack (>= 3.1)
                                                                                                          railties (>= 3.1)
                                                                                                          slim (>= 3.0, < 5.0)
                                                                                                        spring (2.1.1)
                                                                                                        spring-commands-rspec (1.0.4)
                                                                                                          spring (>= 0.9.1)
                                                                                                        spring-watcher-listen (2.0.1)
                                                                                                          listen (>= 2.7, < 4.0)
                                                                                                          spring (>= 1.2, < 3.0)
                                                                                                        sprockets (3.7.2)
                                                                                                          concurrent-ruby (~> 1.0)
                                                                                                          rack (> 1, < 3)
                                                                                                        sprockets-rails (3.2.1)
                                                                                                          actionpack (>= 4.0)
                                                                                                          activesupport (>= 4.0)
                                                                                                          sprockets (>= 3.0.0)
                                                                                                        temple (0.8.2)
                                                                                                        terrapin (0.6.0)
                                                                                                          climate_control (>= 0.0.3, < 1.0)
                                                                                                        thor (1.0.1)
                                                                                                        thread_safe (0.3.6)
                                                                                                        tilt (2.0.10)
                                                                                                        timecop (0.9.1)
                                                                                                        turbolinks (5.2.1)
                                                                                                          turbolinks-source (~> 5.2)
                                                                                                        turbolinks-source (5.2.0)
                                                                                                        tzinfo (1.2.7)
                                                                                                          thread_safe (~> 0.1)
                                                                                                        tzinfo-data (1.2021.1)
                                                                                                          tzinfo (>= 1.0.0)
                                                                                                        uglifier (4.2.0)
                                                                                                          execjs (>= 0.3.0, < 3)
                                                                                                        unicode-display_width (1.6.1)
                                                                                                        warden (1.2.8)
                                                                                                          rack (>= 2.0.6)
                                                                                                        web-console (3.7.0)
                                                                                                          actionview (>= 5.0)
                                                                                                          activemodel (>= 5.0)
                                                                                                          bindex (>= 0.4.0)
                                                                                                          railties (>= 5.0)
                                                                                                        webdrivers (4.4.1)
                                                                                                          nokogiri (~> 1.6)
                                                                                                          rubyzip (>= 1.3.0)
                                                                                                          selenium-webdriver (>= 3.0, < 4.0)
                                                                                                        webpacker (5.2.1)
                                                                                                          activesupport (>= 5.2)
                                                                                                          rack-proxy (>= 0.6.1)
                                                                                                          railties (>= 5.2)
                                                                                                          semantic_range (>= 2.3.0)
                                                                                                        websocket-driver (0.7.3)
                                                                                                          websocket-extensions (>= 0.1.0)
                                                                                                        websocket-extensions (0.1.5)
                                                                                                        whenever (1.0.0)
                                                                                                          chronic (>= 0.6.3)
                                                                                                        xml-simple (1.1.5)
                                                                                                        xpath (3.2.0)
                                                                                                          nokogiri (~> 1.8)
                                                                                                        yard (0.9.25)
                                                                                                    
                                                                                                    PLATFORMS
                                                                                                      ruby
                                                                                                      x86-mingw32
                                                                                                    
                                                                                                    DEPENDENCIES
                                                                                                      active_hash
                                                                                                      active_hash-like
                                                                                                      active_link_to
                                                                                                      aws-sdk-s3 (~> 1)
                                                                                                      aws-ses (~> 0.6)
                                                                                                      bootsnap (>= 1.1.0)
                                                                                                      byebug
                                                                                                      capybara (>= 2.15)
                                                                                                      coffee-rails (~> 4.2)
                                                                                                      counter_culture (~> 2.0)
                                                                                                      database_cleaner
                                                                                                      devise
                                                                                                      devise-i18n
                                                                                                      devise_invitable
                                                                                                      dotenv-rails
                                                                                                      draper
                                                                                                      easy_settings
                                                                                                      enum_help
                                                                                                      exception_notification
                                                                                                      factory_bot_rails
                                                                                                      faker
                                                                                                      foreman
                                                                                                      gretel
                                                                                                      i18n_generators
                                                                                                      inline_svg
                                                                                                      jbuilder (~> 2.5)
                                                                                                      jpmobile
                                                                                                      kakurenbo-puti
                                                                                                      kaminari
                                                                                                      launchy
                                                                                                      letter_opener
                                                                                                      letter_opener_web
                                                                                                      listen (>= 3.0.5, < 3.2)
                                                                                                      maxminddb
                                                                                                      meta-tags
                                                                                                      mimemagic!
                                                                                                      mysql2
                                                                                                      paperclip
                                                                                                      parallel
                                                                                                      premailer-rails
                                                                                                      pry-byebug
                                                                                                      pry-doc
                                                                                                      pry-rails
                                                                                                      pry-stack_explorer
                                                                                                      puma (~> 3.11)
                                                                                                      rails (~> 5.2.2)
                                                                                                      rake
                                                                                                      ransack
                                                                                                      recaptcha
                                                                                                      rspec
                                                                                                      rspec-rails
                                                                                                      rubocop
                                                                                                      rubocop-airbnb
                                                                                                      ruby-progressbar
                                                                                                      sass-rails (~> 5.0)
                                                                                                      selenium-webdriver
                                                                                                      simple_form
                                                                                                      sitemap_generator
                                                                                                      slack-notifier
                                                                                                      slim-rails
                                                                                                      spring
                                                                                                      spring-commands-rspec
                                                                                                      spring-watcher-listen (~> 2.0.0)
                                                                                                      timecop
                                                                                                      turbolinks (~> 5)
                                                                                                      tzinfo-data
                                                                                                      uglifier (>= 1.3.0)
                                                                                                      web-console (>= 3.3.0)
                                                                                                      webdrivers
                                                                                                      webpacker
                                                                                                      whenever
                                                                                                    
                                                                                                    RUBY VERSION
                                                                                                       ruby 2.6.1p33
                                                                                                    
                                                                                                    BUNDLED WITH
                                                                                                       1.17.3
                                                                                                    

                                                                                                    I have tried removing my lockfile then running bundle install and docker-compose up but still won't work. I have tried almost all of the solutions I found online and they are the following:

                                                                                                    1. bundle --full-index
                                                                                                    2. gem install bundler
                                                                                                    3. bundle install --path vendor/cache
                                                                                                    4. bundle install --system
                                                                                                    5. gem install rake && bundle install
                                                                                                    6. gem update --system && bundle install
                                                                                                    7. bundle install --path vendor/bundle
                                                                                                    8. bundle update rake
                                                                                                    9. gem install rack command and run bundle update rake
                                                                                                    10. gem uninstall rake then gem install rake -v 13.0.1
                                                                                                    11. I even tried deleting my docker container then creating a new one.

                                                                                                    But none of them works for me and its kind of frustrating.
                                                                                                    It would be nice if someone can finally have a solution for this.

                                                                                                    Thanks in advance.

                                                                                                    UPDATE: Here is my docker-compose.yml

                                                                                                    version: "3.7"
                                                                                                    services:
                                                                                                      db:
                                                                                                        image: "mysql:5.7"
                                                                                                        restart: always
                                                                                                        environment:
                                                                                                         MYSQL_ROOT_PASSWORD: root
                                                                                                         MYSQL_USERNAME: root
                                                                                                         MYSQL_PASSWORD: root
                                                                                                            - '3308:3306'
                                                                                                        expose:
                                                                                                          - '3306'
                                                                                                        volumes:
                                                                                                          - db:/var/run/mysqld
                                                                                                        logging:
                                                                                                                driver: none
                                                                                                        ports:
                                                                                                          - "3307:3306"
                                                                                                      redis:
                                                                                                        image: redis:4.0-alpine
                                                                                                        command: redis-server
                                                                                                        volumes:
                                                                                                          - redis:/data
                                                                                                        ports:
                                                                                                          - 6379
                                                                                                        logging:
                                                                                                                driver: none
                                                                                                      web:
                                                                                                        build:
                                                                                                          context: ../
                                                                                                          dockerfile: Dockerfile
                                                                                                        command: bundle exec rails s -p 3000 -e development -b '0.0.0.0'
                                                                                                        environment:
                                                                                                         DB_USERNAME: root
                                                                                                         DB_PASSWORD: root
                                                                                                         DB_NAME: rs_db_dev
                                                                                                         DB_PORT: 3306
                                                                                                         DB_HOST: db
                                                                                                         RAILS_ENV: development
                                                                                                         RAILS_MAX_THREADS: 5
                                                                                                         REDIS_HOST: redis
                                                                                                         REDIS_PORT: 6379
                                                                                                         BUNDLE_PATH: /bundle
                                                                                                        volumes:
                                                                                                          - ../:/project
                                                                                                          - bundle:/bundle
                                                                                                        ports:
                                                                                                          - "3002:3000"
                                                                                                        depends_on:
                                                                                                          - "db"
                                                                                                          - "redis"
                                                                                                    volumes:
                                                                                                      db:
                                                                                                      bundle:
                                                                                                      redis:
                                                                                                    

                                                                                                    ANSWER

                                                                                                    Answered 2021-May-23 at 12:27

                                                                                                    I'm not really sure what happened and why but I tried doing this on my rails container and I was no longer receiving the said error.

                                                                                                    1. docker-compose run --rm bash
                                                                                                    2. cd to project directory
                                                                                                    3. bundle install

                                                                                                    Source https://stackoverflow.com/questions/67656501

                                                                                                    QUESTION

                                                                                                    How to update a gem in a ruby script
                                                                                                    Asked 2021-May-19 at 05:08

                                                                                                    I have a ruby script with the requisite gems specified within it e.g

                                                                                                    #!/usr/bin/env ruby
                                                                                                    require 'bundler/inline'
                                                                                                    require 'matrix'
                                                                                                    gemfile do
                                                                                                      source 'https://rubygems.org'
                                                                                                      ruby '2.7.3'
                                                                                                      gem 'colorize'
                                                                                                      gem 'pry'
                                                                                                    end
                                                                                                    
                                                                                                    puts "warning".colorize(:red)
                                                                                                    

                                                                                                    Normally to update a gem, I would type something like bundle update colorize, but this returns an error

                                                                                                    Could not locate Gemfile 
                                                                                                    

                                                                                                    So how do I update a gem in this script. Is there an equivalent of a Gemfile.lock that I can list?

                                                                                                    ANSWER

                                                                                                    Answered 2021-May-19 at 05:08

                                                                                                    Because using bundler in a single-file ruby script uses the latest constrained gem installed, in order to update one of the gems, you just have to run this (according to your example)

                                                                                                    gem update colorize
                                                                                                    

                                                                                                    Now your script will use the latest colorize gem version.

                                                                                                    Source https://stackoverflow.com/questions/67596504

                                                                                                    Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                                                                                                    Vulnerabilities

                                                                                                    No vulnerabilities reported

                                                                                                    Install rubygems.org

                                                                                                    You can download it from GitHub.
                                                                                                    On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

                                                                                                    Support

                                                                                                    RubyGems.org is managed by Ruby Central, a community-funded organization supported by conference participation for RailsConf and RubyConf through tickets and sponsorships. Hosting fees are paid by Ruby Central and CDN fees are generously donated by Fastly. Additionally, RubyTogether sponsors individuals to work on development and operations work for RubyGems.org which augments volunteer efforts from the Ruby community.
                                                                                                    Find more information at:
                                                                                                    Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                                    Find more libraries
                                                                                                    Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                                    Save this library and start creating your kit
                                                                                                    CLONE
                                                                                                  • HTTPS

                                                                                                    https://github.com/rubygems/rubygems.org.git

                                                                                                  • CLI

                                                                                                    gh repo clone rubygems/rubygems.org

                                                                                                  • sshUrl

                                                                                                    git@github.com:rubygems/rubygems.org.git

                                                                                                  • Share this Page

                                                                                                    share link

                                                                                                    Reuse Pre-built Kits with rubygems.org

                                                                                                    Consider Popular Collaboration Libraries

                                                                                                    discourse

                                                                                                    by discourse

                                                                                                    excalidraw

                                                                                                    by excalidraw

                                                                                                    forem

                                                                                                    by forem

                                                                                                    flarum

                                                                                                    by flarum

                                                                                                    community

                                                                                                    by kubernetes

                                                                                                    Try Top Libraries by rubygems

                                                                                                    bundler

                                                                                                    by rubygemsRuby

                                                                                                    rubygems

                                                                                                    by rubygemsRuby

                                                                                                    gemstash

                                                                                                    by rubygemsRuby

                                                                                                    rubygems-mirror

                                                                                                    by rubygemsRuby

                                                                                                    gems

                                                                                                    by rubygemsRuby

                                                                                                    Compare Collaboration Libraries with Highest Support

                                                                                                    element-web

                                                                                                    by vector-im

                                                                                                    humhub

                                                                                                    by humhub

                                                                                                    excalidraw

                                                                                                    by excalidraw

                                                                                                    discourse

                                                                                                    by discourse

                                                                                                    GitLab FOSS

                                                                                                    by gitlab-org

                                                                                                    Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                                    Find more libraries
                                                                                                    Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                                    Save this library and start creating your kit