Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottrobertson/spectrocoin-ruby
https://github.com/scottrobertson/spectrocoin-ruby
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scottrobertson/spectrocoin-ruby
- Owner: scottrobertson
- License: mit
- Created: 2015-07-25T11:43:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-25T18:21:26.000Z (over 9 years ago)
- Last Synced: 2024-10-12T02:29:44.923Z (about 1 month ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Spectrocoin
Ruby client for spectrocoin.com
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'spectrocoin'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install spectrocoin
## Usage
### Generate SSL Certificates
```
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -outform PEM -out public.pem
```### Create order
```ruby
order = Spectrocoin::Order.new(6030, 34713, 'certs/private.pem', 'certs/public.pem')
response = order.create('BTC', 1, callback_url: 'https://example.com/callback')
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/scottrobertson/spectrocoin-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).