gpt4 book ai didi

ruby-on-rails - Rails : Gemspec is not valid. 请修复这个 gemspec

转载 作者:行者123 更新时间:2023-12-04 01:09:33 24 4
gpt4 key购买 nike

当我从 github 安装 gem 时,它给了我错误:

number_internationalizer at /usr/local/rvm/gems/ruby-1.9.3-p194@number_internationalizer/bundler/gems/number_internationalizer-c0d642b04e87 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
"FIXME" or "TODO" is not a description

gem 规范是:
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'number_internationalizer/version'

Gem::Specification.new do |gem|
gem.name = "number_internationalizer"
gem.version = NumberInternationalizer::VERSION
gem.authors = ["Myself"]
gem.email = ["myemail@email.com"]
gem.description = %q{Internationalize numbers adding normalization, validation and modifying the number field to restor the value to its original if validation fails}
gem.summary = gem.description
gem.homepage = ""

gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
end

我该如何修复该错误?

最佳答案

该错误似乎与您显示的 gemspec 不同步,错误指示 gem.descripton是无效的。根据错误,您正在使用来自 git 的 Gem,它有 commit fixing the invalid gem.description .

将 Bundler 更新到最新版 number_internationalizer犯罪:

bundle update

关于ruby-on-rails - Rails : Gemspec is not valid. 请修复这个 gemspec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13053882/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com