ruby-respoke:用于与Respoke API交互的Ruby库

时间:2021-05-06 15:19:19
【文件属性】:
文件名称:ruby-respoke:用于与Respoke API交互的Ruby库
文件大小:36KB
文件格式:ZIP
更新时间:2021-05-06 15:19:19
Ruby 重述 ruby-respoke是Respoke API的包装。 有关Respoke服务和API的更多信息,请参阅 。 安装 使用捆绑程序,将以下行添加到应用程序的Gemfile中: gem 'respoke' 然后执行: $ bundle 有关ruby-repoke API的详细信息,请参阅。 运行测试 该测试套件使用VCR记录一次API请求和响应。 第一次运行后,它会缓存它们并脱机工作。 这些缓存的文件被检入Git,可以在test/vcr_cassettes目录中找到。 要针对实时API运行测试,只需删除test/vcr_cassettes目录。 请注意,这将更改Travis使用的加密的test/test_config.yml.enc文件的预期输入,如果您打算提交新的VCR缓存,则需要对其进行更新。 否则,在进行测试时只需忽略新的缓存文件。 单位 请注意,单元测试不使用VCR缓存来
【文件预览】:
ruby-respoke-master
----.gitignore(94B)
----.simplecov(93B)
----.travis.yml(381B)
----respoke.gemspec(1KB)
----LICENSE(1KB)
----README.md(3KB)
----lib()
--------respoke.rb(133B)
--------respoke()
----Gemfile(92B)
----Rakefile(626B)
----test()
--------test_config.yml.enc(144B)
--------unit()
--------spec()
--------test_helper.rb(905B)
--------test_config.example.yml(162B)
--------vcr_cassettes()
----.editorconfig(353B)

网友评论