I am trying to install the gem 'apartment' to my rails application, but similarly like this guy I am receiving an error.
build': undefined method new' for "Apartment::Reloader":String (NoMethodError)
Someone has posted a solution:
In order to use Rails 6 you have to use the development branch on github: gem "apartment", git: 'git@github.com:influitive/apartment.git', branch: "development"
but when I try and follow the solution I am receiving the following code:
Does anyone know what is going wrong here?
Kanes-MacBook-Pro:WOP kaneandrewgibson$ bundle install
Fetching git@github.com:influitive/apartment.git
Warning: Permanently added the RSA host key for IP address '140.82.118.3' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` in directory /Users/kaneandrewgibson/Desktop/Charlie/WOP has failed.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` in directory /Users/kaneandrewgibson/Desktop/Charlie/WOP has failed.
Retrying `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare --no-hardlinks --quiet` in directory /Users/kaneandrewgibson/Desktop/Charlie/WOP has failed.
Git error: command `git clone 'git@github.com:influitive/apartment.git' "/Users/kaneandrewgibson/.rvm/gems/ruby-2.7.0/cache/bundler/git/apartment-6709fa3e722fdd9cbc3cc58605f2356b6f881214" --bare
--no-hardlinks --quiet` in directory /Users/kaneandrewgibson/Desktop/Charlie/WOP has failed.