MyGpsdClient

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/my_gpsd_client. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'my_gpsd_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install my_gpsd_client

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

To build, load and run a gem (from my notes)

From the gem's main folder...

$ gem build my_gpsd_client.gemspec
$ gem install my_gpsd_client-[version].gem

$ irb
irb(main):001:0> require 'my_gpsd_client'
=> true
irb(main):002:0> gps = MyGpsdClient.new()
=> #<MyGpsdClient:0x00007fd8b98806a0...
irb(main):003:0> gps.version
=> "0.1.17"
irb(main):004:0>

To release to rubygems.org...

First: commit all changes to github

$ rake build; rake release
my_gpsd_client 0.1.10 built to pkg/my_gpsd_client-0.1.0.gem.
my_gpsd_client 0.1.10 built to pkg/my_gpsd_client-0.1.0.gem.
Tagged v0.1.10.
Pushed git commits and tags.
Pushed my_gpsd_client 0.1.10 to https://rubygems.org