adapter-git:用于适配器gem的Git适配器

时间:2021-05-22 19:33:37
【文件属性】:
文件名称:adapter-git:用于适配器gem的Git适配器
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-22 19:33:37
Ruby adapter- 用于适配器gem的Git适配器。 require 'adapter/git' repo = Grit :: Repo . init ( 'path/to/repo' ) adapter = Adapter [ :git ]. new ( repo , :branch => 'data' , :path => 'db/records' ) adapter . clear adapter . write ( 'foo' , 'bar' ) puts 'Should be bar: ' + adapter . read ( 'foo' ). inspect adapter . delete ( 'foo' ) puts 'Should be nil: ' + adapter . read ( 'foo' ). inspect adapter . write ( 'foo'
【文件预览】:
adapter-git-master
----Rakefile(109B)
----LICENSE(1KB)
----README.rdoc(1KB)
----Gemfile(37B)
----examples()
--------git.rb(547B)
----spec()
--------git_spec.rb(3KB)
--------spec_helper.rb(373B)
----adapter-git.gemspec(784B)
----.gitignore(63B)
----lib()
--------adapter()
--------adapter-git.rb(22B)

网友评论