如何使用 rails-assets.org 包含一个带有 .在名字里?
How to include with rails-assets.org a package with a . in the name?
我正在使用 rails 4.1 和 https://rails-assets.org .
我想在我的 Rails 项目中包含这个 bower 包:
https://github.com/wysiwygjs/wysiwyg.js
他们说要像这样包含它:
source 'https://rails-assets.org' do
gem 'rails-assets-BOWER_PACKAGE_NAME'
end
所以我尝试了:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwyg.js"
end
并且:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwygjs"
end
还有:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwyg_js"
end
None 有效。怎么做?
我想知道它是否与 package/gem 本身有关?我刚刚尝试使用已经构建的 watch.js(也许所见即所得不是问题所在?)并且它工作得很好:
source 'https://rails-assets.org' do
gem 'rails-assets-watch.js'
end
bundle install
的输出:
Fetching gem metadata from https://rails-assets.org/..
Resolving dependencies...
Installing rails-assets-watch.js 0.1.0
Using bundler 1.7.11
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
我正在使用 rails 4.1 和 https://rails-assets.org .
我想在我的 Rails 项目中包含这个 bower 包:
https://github.com/wysiwygjs/wysiwyg.js
他们说要像这样包含它:
source 'https://rails-assets.org' do
gem 'rails-assets-BOWER_PACKAGE_NAME'
end
所以我尝试了:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwyg.js"
end
并且:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwygjs"
end
还有:
source 'https://rails-assets.org' do
gem "rails-assets-wysiwyg_js"
end
None 有效。怎么做?
我想知道它是否与 package/gem 本身有关?我刚刚尝试使用已经构建的 watch.js(也许所见即所得不是问题所在?)并且它工作得很好:
source 'https://rails-assets.org' do
gem 'rails-assets-watch.js'
end
bundle install
的输出:
Fetching gem metadata from https://rails-assets.org/..
Resolving dependencies...
Installing rails-assets-watch.js 0.1.0
Using bundler 1.7.11
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.