http://blog.csdn.net/hexudong08/article/details/8020764
您还没有登录,请您登录后再发表评论
功能无需猴子打补丁-使用ActiveSupport :: Notifications和Mongo :: Monitoring到c DatabaseFlusher database_flusher是一个受database_cleaner和database_rewinder启发的小型且快速的数据库清理器。 功能无需猴子打...
YARD ActiveSupport::关注插件 这是一个扩展,它为使用ActiveSupport::Concern (在 Rails 项目中非常频繁)的模块提供支持。 这是此类模块的示例: module M extend ActiveSupport :: Concern included do # @!...
ActiveSupport::Notifications 向后移植 这是 ActiveSupport::Notifications for Rails 2.3 的后向移植。 就这样!
使用Mux::Client创建资产,并使用Mux::Notifications (基于ActiveSupport::Notifications API构建)来处理传入的Webhook请求。 安装 将此行添加到您的应用程序的Gemfile中: gem 'mux-rails' # config/routes.rb...
$ gem install activesupport 可以在GitHub上的Rails项目中下载源代码: 许可证 主动支持是根据MIT许可发布的: 支持 API文档位于: Ruby on Rails项目的错误报告可在此处提交: github.com/rails/rails/issues...
ActiveSupport::MessageEncryptor 是 Rails 基于 openssl 封装实现的一个类,可用于对一个对象进行加密、解密操作。例如: salt = SecureRandom.random_bytes(64) key = ActiveSupport::KeyGenerator.new('password...
riak-cache是ActiveSupport::Cache::Store一个实现, ActiveSupport::Cache::Store在 Riak 中存储缓存值。 如果您已将 Riak 配置为使用内存后端,这将特别有用。 依赖关系 riak riak-cache需要 ActiveSupport 3.x ...
超级模块1.4.1 (注意:尽管有高级版本号,但是super_module的想法是高度试验性的,并且在很大程度上依赖于元编程,因此,除非您确实需要它,否则在足够的情况下始终喜欢使用纯Ruby模块) 使开发人员即使想要继承...
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x164feb> Rack::Runtime Rack::MethodOverride ActionDispatch::RequestId Rails::Rack::Logger ActionDispatch::ShowExceptions ActionDispatch::...
Memoist是ActiveSupport :: Memoizable的提取。 从2011年6月开始,不推荐使用ActiveSupport :: Memoizable。 但是我喜欢它,因此我打算保持它的生命。 用法 只需使用Memoist模块进行扩展 require 'memoist' class ...
线束还从ActiveSupport::Notifications收集指标并将其转发给收集器。 线束只假设一件事:收集器可以执行适当的度量标准聚合和统计。 示例:使用statsd将计算第90个百分位数和平均值。 线束专为交通流量很大的应用...
用的ActiveSupport :: MessageVerifier安全API 此应用程序展示了如何使用 ActiveSupport::MessageVerifier 保护您的 API。 希望对你有帮助!
Activesupport :: Taggedlogging :: Json 欢迎使用您的新宝石! 在此目录中,您将找到能够将Ruby库打包为gem所需的文件。 将您的Ruby代码放在文件lib/activesupport/taggedlogging/json 。 要试验该代码,请运行bin...
ActiveSupport :: TestCase context "associations" do should have_many ( :posts ) end context "validations" do should validate_presence_of ( :email ) should allow_value ( "user@example.com" ) . ...
对Crystal的rails activesupport的端口。 安装 将其添加到Projectfile deps do github " dbackeus/activesupport " end 用法 require " activesupport " 待办事项:在此处写库用法 贡献 分叉( ) 创建功能分支...
重用查询结果提高开发环境速度。 插入更新和删除记录时重用查询结果并清除缓存。 没有更多的数据库请求。... # initializers/reuse_query_results.rbmemcache = ActiveSupport :: Cache . lookup_store ( :dalli_store
它通过强制ActiveSupport :: TestCase利用MiniTest :: Spec :: DSL来实现此目的。 用法 使用默认Rails测试结构的现有或新的Rails应用程序都可以简单地放入minitest-spec-gem并开始在新的规范DSL中编写其测试。 由于...
rails_log_autotruncator 是用于限制日志文件大小的 ActiveSupport::BufferedLogger 的简单(猴子)补丁。 如果您只是不希望 Rails 项目开发或测试日志文件变大,请使用它。 免责声明 对于 ruby 1.9.3 及更高...
DevHiringChallenge v1.0 这是一个针对ateliware招聘挑战的示例应用程序...: Unit和ActiveSupport :: TestCase下开发的可以通过以下方式创建测试数据库rails db:create RAILS_ENV=test并迁移使用rails db:migrate RAILS
ActiveSupport :: Inflector . underscore ( "supports IPv6 on iOS 14.4?" ) # => "supports i_pv6 on i_os 14.4?" 相反, Strings::Case旨在将任何字符串转换为预期的大小写: Strings :: Case . snakecase ( ...
相关推荐
功能无需猴子打补丁-使用ActiveSupport :: Notifications和Mongo :: Monitoring到c DatabaseFlusher database_flusher是一个受database_cleaner和database_rewinder启发的小型且快速的数据库清理器。 功能无需猴子打...
YARD ActiveSupport::关注插件 这是一个扩展,它为使用ActiveSupport::Concern (在 Rails 项目中非常频繁)的模块提供支持。 这是此类模块的示例: module M extend ActiveSupport :: Concern included do # @!...
ActiveSupport::Notifications 向后移植 这是 ActiveSupport::Notifications for Rails 2.3 的后向移植。 就这样!
使用Mux::Client创建资产,并使用Mux::Notifications (基于ActiveSupport::Notifications API构建)来处理传入的Webhook请求。 安装 将此行添加到您的应用程序的Gemfile中: gem 'mux-rails' # config/routes.rb...
$ gem install activesupport 可以在GitHub上的Rails项目中下载源代码: 许可证 主动支持是根据MIT许可发布的: 支持 API文档位于: Ruby on Rails项目的错误报告可在此处提交: github.com/rails/rails/issues...
ActiveSupport::MessageEncryptor 是 Rails 基于 openssl 封装实现的一个类,可用于对一个对象进行加密、解密操作。例如: salt = SecureRandom.random_bytes(64) key = ActiveSupport::KeyGenerator.new('password...
riak-cache是ActiveSupport::Cache::Store一个实现, ActiveSupport::Cache::Store在 Riak 中存储缓存值。 如果您已将 Riak 配置为使用内存后端,这将特别有用。 依赖关系 riak riak-cache需要 ActiveSupport 3.x ...
超级模块1.4.1 (注意:尽管有高级版本号,但是super_module的想法是高度试验性的,并且在很大程度上依赖于元编程,因此,除非您确实需要它,否则在足够的情况下始终喜欢使用纯Ruby模块) 使开发人员即使想要继承...
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x164feb> Rack::Runtime Rack::MethodOverride ActionDispatch::RequestId Rails::Rack::Logger ActionDispatch::ShowExceptions ActionDispatch::...
Memoist是ActiveSupport :: Memoizable的提取。 从2011年6月开始,不推荐使用ActiveSupport :: Memoizable。 但是我喜欢它,因此我打算保持它的生命。 用法 只需使用Memoist模块进行扩展 require 'memoist' class ...
线束还从ActiveSupport::Notifications收集指标并将其转发给收集器。 线束只假设一件事:收集器可以执行适当的度量标准聚合和统计。 示例:使用statsd将计算第90个百分位数和平均值。 线束专为交通流量很大的应用...
用的ActiveSupport :: MessageVerifier安全API 此应用程序展示了如何使用 ActiveSupport::MessageVerifier 保护您的 API。 希望对你有帮助!
Activesupport :: Taggedlogging :: Json 欢迎使用您的新宝石! 在此目录中,您将找到能够将Ruby库打包为gem所需的文件。 将您的Ruby代码放在文件lib/activesupport/taggedlogging/json 。 要试验该代码,请运行bin...
ActiveSupport :: TestCase context "associations" do should have_many ( :posts ) end context "validations" do should validate_presence_of ( :email ) should allow_value ( "user@example.com" ) . ...
对Crystal的rails activesupport的端口。 安装 将其添加到Projectfile deps do github " dbackeus/activesupport " end 用法 require " activesupport " 待办事项:在此处写库用法 贡献 分叉( ) 创建功能分支...
重用查询结果提高开发环境速度。 插入更新和删除记录时重用查询结果并清除缓存。 没有更多的数据库请求。... # initializers/reuse_query_results.rbmemcache = ActiveSupport :: Cache . lookup_store ( :dalli_store
它通过强制ActiveSupport :: TestCase利用MiniTest :: Spec :: DSL来实现此目的。 用法 使用默认Rails测试结构的现有或新的Rails应用程序都可以简单地放入minitest-spec-gem并开始在新的规范DSL中编写其测试。 由于...
rails_log_autotruncator 是用于限制日志文件大小的 ActiveSupport::BufferedLogger 的简单(猴子)补丁。 如果您只是不希望 Rails 项目开发或测试日志文件变大,请使用它。 免责声明 对于 ruby 1.9.3 及更高...
DevHiringChallenge v1.0 这是一个针对ateliware招聘挑战的示例应用程序...: Unit和ActiveSupport :: TestCase下开发的可以通过以下方式创建测试数据库rails db:create RAILS_ENV=test并迁移使用rails db:migrate RAILS
ActiveSupport :: Inflector . underscore ( "supports IPv6 on iOS 14.4?" ) # => "supports i_pv6 on i_os 14.4?" 相反, Strings::Case旨在将任何字符串转换为预期的大小写: Strings :: Case . snakecase ( ...