Sha256: b5fd2817e52cfed4e83c6355e0d4f44eb51c0f18303487a5ce46899e804649f6
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
# Silkey-SDK for Ruby [logo] [slogan] ## 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. ## Deploy gem ``` rm -rf doc/ bundle exec rdoc --main README.rdoc -x Gemfile -x Gemfile.lock -x registry_contract_abi.json -x setup -x Rakefile -x DEVELOPMENT.md bundle exec gem build # RubyGems saves the credentials in ~/.gem/credentials bundle exec gem push silkey-sdk-...gem # remove gem bundle exec gem yank silkey-sdk -v 0.0.0 ``` 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](https://rubygems.org). ## Tests ### Interactive console To quickly test you code while developing you can do: ```sh ./bin/console ``` ```rb # config Silkey::Configuration.client_url = 'http://localhost:8545' Silkey::Configuration.registry_contract_address = '0x8858eeB3DfffA017D4BCE9801D340D36Cf895CCf' Silkey::RegistryContract.get_address('Name') ``` ### Tests and Linters ```bash bundle exec rspec bundle exec rubocop --fix ``` #### Init setup environment ``` https://github.com/rbenv/rbenv#installation echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc source ~/.zshrc # steps for fixing abort issue about ethereum.rb gem brew update & brew upgrade & brew install openssl cd /usr/local/opt/openssl@1.1/lib cp libssl.1.1.dylib libcrypto.1.1.dylib /usr/local/lib/ cd /usr/local/lib sudo ln -s libssl.1.1.dylib libssl.dylib sudo ln -s libcrypto.1.1.dylib libcrypto.dylib https://github.com/se3000/ruby-eth/issues/47 which ruby gem install bundler bundle config set path '.bundle' bundle install ``` ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
silkey-sdk-0.0.1 | DEVELOPMENT.md |