A pretty basic Ruby gem to use to interact with a CGMiner (or compatible) Bitcoin/Litecoin mining application.
Add this line to your application's Gemfile:
gem 'cgminer-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cgminer-api
client = CGMiner::API::Client.new('localhost', 4028)
client.version
=> #<CGMiner::API::Response:0x000001011109c0
@status={"STATUS"=>"S", "When"=>1391460011, "Code"=>22,
"Msg"=>"CGMiner versions", "Description"=>"cgminer 3.7.2"},
@body=[{"CGMiner"=>"3.7.2", "API"=>"1.32"}]>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request