twinslash / redmine_omniauth_google

This plugin is used to authenticate in redmine through Google.
http://www.redmine.org/plugins/redmine_omniauth_google
94 stars 103 forks source link

errors when try to bundle install #18

Open hopewise opened 9 years ago

hopewise commented 9 years ago

When I tried to install the plugin I got the following errors:

( I am on redmine 2.6.0-3 using Bitnami )

The error:

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze 
by running `bundle install --no-deployment`.

You have added to the Gemfile:
* source: rubygems repository http://rubygems.org/, https://rubygems.org/
* roo
* iconv
* spreadsheet (~> 0.9.7)
* simplecov
* simplecov-rcov
* oauth2
* json

You have deleted from the Gemfile:
* source: rubygems repository https://rubygems.org/

Please advice

gotva commented 9 years ago

1) Note that only two gems are added through the plugin:

It looks that other gems come from another plugins

2) According to documentation you should run bundle install after you cloning the plugin. This should be done on server without using flag --deployment. Additionally you can setup skipped group (for example development, test) (official doc see section "Step 4 - Dependencies installation")

bundle install --without development test

Explanation: Redmine has own Gemfile. And Redmine allows plugins to add another gems. But the problem is that file Gemfile.lock is in gitignore. When you run bundle install --deployment bundle "Requires an up-to-date Gemfile.lock" (see this)

masaruyokoi commented 7 years ago

I want to request change the source URL in Gemfile to https://rubygems.org instead of http://rubygems.org.

In Gemfile of redmine-3.5, the gem source is set as 'source 'https://rubygems.org' . But in redmine_omniauth_google, the gem source is set as source 'http://rubygems.org'.