ruby - Rails 4 - Adding JS assets via gem -
I am using a gem that was written to serve someone else. Mani is using an old version of the library (1.3) and I want to use 1.4 (latest version). I have not got any other gem using this version. My question is, is this the best way to load the property, or is there any more preferred method? And, if so, how do I prepare this gem with the latest version of this library?
In my opinion, it is good to do this in most cases.
In your situation, depending on how much time you have, you may want to do one of the following:
Contribute to 1 Gem
If The gem is open source, so you can crop it, update to the latest version, and request the bridge.
In this way, you also contribute that the entire rail and others have to face the same problem.
Below it takes time you need to wait for the author to accept the bridge request and wait for the next version of the gem. But until the new version is finished, you can use your desired version of Jefffile;)
2 Write your gem
Rails providing property For writing a gem is not really difficult you can follow the structure of other existing gems and should be easy to understand.
A good example
Below you have to maintain the gem; otherwise if the fabric comes out 1.5, then another question will ask you again as it is.
Keep the property in the directory of your seller
Rail projects by default is a seller directory
My preferred method of managing external assets is by default.
Comments
Post a Comment