ruby - Gemfile: Difference Between branch and ref in a github Reference -


It is possible to mention the gem hosted on github in

Gemfile

< '2-Stable' code: 'spree / spree_gateway', github: '2-3-static' gem; spree_gateway '; github:' spree / spree_gateway ', reference:' spree / spree ' >

GIT: describes three characteristics for branch , ref and tags . What's the difference between referee and branch ? And how does bundler handle jewels differently depending on the properties?

This is especially interesting because you can only use one of the features at a time.

with the branch , you simply specify the git branch to drag If you had a bundled up while targeting a branch & lt; Gem & gt; , then it will be updated in the tip of that branch.

Ref is actually a personal commitment to get it down. You do not name "human-readable", as you did in your question, you do something like this:

  Mani 'something', Gitub: 'some / some', ref: '832e76a 9'  

And now you have pinned it in the ref if you have made something , then it will not change that gem (though its reliance Can update).


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -