Since upgrading to Rails 2.2, you might be seeing lots of messages like this:
config.gem: Unpacked gem blah-1.0.0 in vendor/gems
has no specification file. Run 'rake gems:refresh_specs' to fix this.
Running 'rake gems:refresh_specs" takes care of most of these, and upgrading any remaining gems will usually take care of the rest. But it seems like most of the projects I'm on still have one or three home-grown, really old, or really odd gems that just don't have specs. I should write specs for these, I know. So I let Rails complain... but...
But now, months later, I'm realizing there are just a few gems I'm never going to upgrade. And I'm seeing these messages... A LOT. Every time I run a test in TextMate. Every time I run tests from rake. Every time I run almost any rake task, period. It's driving me MAD!
So, if you've been a good boy or girl and taken care of most your gems, and a few are still hanging around, here's the magic to make those messages go away:
In your config/environment.rb file:
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
# Add this line at your own risk!
Rails::VendorGemSourceIndex.silence_spec_warnings = true
Rails::Initializer.run do |config|
url:http://tech.hickorywind.org/articles/2009/02/02/silencing-rails-2-2-gem-has-no-specification-messages
分享到:
相关推荐
Epigenetic Silencing of MicroRNA miR-107 Regulates Cyclin-Dependent Kinase 6 Expression in Pancreatic Cancer
黄瓜花叶病毒2b蛋白的沉默抑制子功能研究,李喜英,赵志敬,FRad35Leu2b-CMV是FRad352b-CMV的自然突变株,由2b蛋白第55位 氨基酸突变而来。与FRad352b-CMV不同,FRad352b-CMV可以引起寄主的高致病性和高的病毒�
Aberrant epigenetic silencing of tumor suppressor genes in human cancer The roles of DNA hypermethylation and the histone code
很好的说明!!!!!!!!!!!!!!!!!!!!!!!!!!
LeEIN2的沉默对番茄果实的发育和成熟的影响,朱鸿亮,朱本忠,拟南芥EIN2突变体的乙烯不敏感性表明了EIN2 在乙烯信号转到中的重要地位。最近,茄科的EIN2 (矮牵牛花的EIN2)已被克隆。但是,EIN2 在其�
牛LXRα基因mRNA重组慢病毒载体的构建及其对牛肌肉卫星细胞的干扰效果,刘永峰,赵璐,肝X受体α(LXRα)基因是核激素受体家族的成员,它可以调节参与胆固醇代谢基因的转录。近期研究发现LXRα被认为是一个调节巨噬...
Nature-Biotechnology-31--720---沉默---补充-软件 沉默方法的补充数据和代码 包括 3 个软件包 (ZIPPED)... Supplementary Software 3 – 该软件包再现了“Network link prediction by global silencing of direct cor
SIRT1的研究概况,杜文婷,刘戟,沉默信息调节因子2 相关酶1(sirtuin 1, Sirt1)是哺乳动物中与沉默信息调节蛋白2(silencing information regulator2,Sir2)高度同源的蛋白质,它是一�
病毒诱导的基因沉默载体及其在植物基因功能验证中的应用,李萃,李大伟,病毒诱导的基因沉默(Virus induced gene silencing , VIGS) 是指携带植物功能基因(片段)的重组病毒在侵染植物后, 可诱导植物内源的同源基因...
病毒诱导的基因沉默技术及其在植物基因功能研究中的应用,郭军,段迎辉,病毒诱导的基因沉默(Virus-induced gene silencing, VIGS)属于转录后的基因沉默,在动植物功能基因组学研究方面得到广泛应用。本文就VIGS技...
基因沉默可以分为转录后基因沉默(post-transcriptional gene silenciilg,PTGS)和转录基因沉默(tratlscliptional gene silencing,TGS).最近的研究发现,在植物中,TGS和PTGS都和RNAi有关。RNA介导的基因沉默为...
补充软件 1 – 代码(Matlab),SILENCING.m,用于执行沉默转换。 以方形链接预测矩阵 G_ij 作为输入,并产生一个静默的 S_ij 矩阵作为输出。 补充软件 2 - 用于重现对应图 1 中显示的结果所需的所有代码和数据。 ...
Are linker histones (histone H1) dispensable for survival? Are linker histones (histone H1) ...that histone H1 silencing results in an enhanced DNA accessibility to nucleases and an increase
Are linker histones (histone H1) dispensable for survival? Are linker histones (histone H1) ...that histone H1 silencing results in an enhanced DNA accessibility to nucleases and an increase