Especificaciones no resueltas durante Gem:: Specification.restablecer:
Al lanzar Guard, obtengo esta salida:
$ guard
WARN: Unresolved specs during Gem::Specification.reset:
lumberjack (>= 1.0.2)
ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
¿Qué significa esto y cómo lo arreglo?
Contenido de Guardfile:
guard 'livereload' do
watch(%r{.+\.(css|js|html)$})
end
guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'
9 answers
Estaba viendo este problema simplemente ejecutando RSpec por su cuenta. Por lo que entiendo, esto significa que tiene más de una versión de las gemas listadas instaladas en su sistema, y RSpec no está seguro de cuál usar. Después de desinstalar la versión anterior de las gemas, las advertencias desaparecieron.
Puedes probar:
gem cleanup lumberjack
O:
gem list lumberjack
gem uninstall lumberjack
Si estás usando Bundler, puedes probar bundle exec guard
(o en mi caso bundle exec rspec
).
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-17 03:58:00
Usando el siguiente comando lo resolví para mí:
bundle clean --force
Ver especificaciones de protección y no resueltas para más información
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-01-07 06:01:51
Use Bundler. Llama bundle exec guard
, no guard
.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-08-24 02:46:39
PARA su información:
gem cleanup
Funcionó para mí.
$ gem cleanup
Cleaning up installed gems...
Attempting to uninstall builder-3.2.2
Successfully uninstalled builder-3.2.2
Attempting to uninstall amatch-0.3.0
Successfully uninstalled amatch-0.3.0
Attempting to uninstall tins-1.12.0
Successfully uninstalled tins-1.12.0
Clean Up Complete
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-01 06:01:08
Utilizo gem list gem-name; gem uninstall gem-name
para limpiar la gema una por una debido a la dependencia. Después de eso, el error no se vuelve a mostrar.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-11-07 08:43:26
Esto funcionó para mí:
bundle clean --force
Entonces
bundle install
Para reinstalar gemas.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-08 03:42:50
Añadir
'bunlde exec'
Antes de su orden.
Uso ruby 2.4 y tengo el mismo problema al implementar jekyll en Windows, se solucionó.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-26 17:56:39
Estaba recibiendo este mensaje mientras ejecutaba Rspec dentro de una gema de plugin Guard, usando bundle exec rspec
. Resultó ser una línea faltante en el archivo gemspec
:
$:.push File.expand_path("../lib", __FILE__)
Esta línea está normalmente en la parte superior del archivo (en muchas de las gemas en las que he estado trabajando recientemente) y lo había comentado para ver por qué.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-12-07 17:29:25
Recuerde, si desea usar guard, debe agregar gem guard al Gemfile.
group :developement, :test do
gem 'guard'
end
Entonces, ejecute
bundle install
Espero que esto pueda ayudarte.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-24 23:17:37