没有合适的资源?快使用搜索试试~ 我知道了~
摄像机:录像机还不够? 记录任意方法调用以供以后播放
共27个文件
rb:14个
yml:7个
gitignore:1个
需积分: 9 1 下载量 104 浏览量
2021-03-02
00:48:08
上传
评论
收藏 16KB ZIP 举报
温馨提示
摄录机 除了http之外,还需要具有类似VCR的功能吗? 别再等了。 这个gem允许您记录来自任意对象的任意方法调用。 require 'camcorder' // Need recorder recorder = Camcorder :: Recorder . new ( 'recordings.json' ) imap = Camcorder :: Proxy . new ( recorder , Net :: IMAP , imap_host , imap_port , imap_ssl , nil , false ) imap . login ( username , decrypted_password ) imap . search ( query ) imap . disconnect 上面的代码将在第一次创建一个实际的Net::IMAP对象。 随后的调用将不会,而是使用
资源推荐
资源详情
资源评论
收起资源包目录
camcorder-master.zip (27个子文件)
camcorder-master
.gitignore 154B
LICENSE.txt 1KB
spec
support
test_object2.rb 120B
test_object.rb 262B
camcorder_spec.rb 2KB
camcorder
proxy_spec.rb 1KB
recorder_spec.rb 3KB
spec_helper.rb 210B
recordings
Camcorder_Proxy
when_recording_exists
should_re-raise_recorded_errors.yml 174B
should_not_call_methods_on_actual_instance.yml 144B
_methods_with_side_effects
should_re-record_for_each_invocation.yml 274B
Camcorder
constructor_interception
with_multiple_classes
_new
should_return_proxies.yml 285B
_new
should_return_a_proxy.yml 144B
fixtures
should_exist.yml 89B
haz_errorz.yml 132B
README.md 2KB
camcorder.gemspec 921B
lib
camcorder.rb 2KB
camcorder
proxy.rb 2KB
rspec.rb 1KB
recording.rb 792B
configuration.rb 211B
version.rb 41B
errors.rb 1KB
recorder.rb 2KB
Gemfile 183B
Rakefile 28B
共 27 条
- 1
资源评论
愛幻想的小水瓶
- 粉丝: 28
- 资源: 4547
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功