...
Expand | ||
---|---|---|
| ||
|
...
...
Creating GEMs
Create GEM from scratch
In directory: __DEVELOPMENT__/__RAILS/__GEMS
Code Block | ||
---|---|---|
| ||
# bundle gem <gem_name> $ bundle gem ld4l–foaf–rdf |
Releasing GEMs
Build GEM
Code Block | ||
---|---|---|
| ||
# gem build <gem_name>.gemspec $ gem build ld4l-foaf_rdf.gemspec |
...
NOTE: Will want to create a corresponding release of code in GitHub.
Using
...
GEMs
Using Released GEMs
Refs to released versions
...
More examples in API Dock. Also see Pessimistic Version Constraint.
Using
...
GEMs from GitHub
Code Block | ||||
---|---|---|---|---|
| ||||
# github syntax to get master branch of the same respository gem "active-triples", :github => 'no-reply/ActiveTriples' # github syntax to get a specific branch of the repository gem "active-triples", :github => 'no-reply/ActiveTriples', :branch => 'patch-1' # github syntax to get a specific commit of the repository gem "active-triples", :github => 'no-reply/ActiveTriples', :tag => '4e9fbd3bade894d20ebf67170033128f31c54208' |
NOTE: Cannot reference a github pull request. To do that, comment out the dependency for the versioned gem in gemspec, AND add the github version in Gemfile.
Using local code for a
...
GEM
Code Block | ||||
---|---|---|---|---|
| ||||
gem "active_triples-local_name", :path => "/Users/elr37/Documents/__DEVELOPMENT__/__CLEAN_TESTS/active_triples-local_name_minter" |
...