Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

btc_price

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btc_price

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

BTC Price

Because bitcoin is awesome!

What does it do?

From within your Code (or really any) directory, run:

git clone git@github.com:mecampbellsoup/btc_price.git;

then:

cd btc_price.

If you do not have the memcached gem, go get it:

gem install memcached.

Next, start (and immediately background) your cache process with:

memcached -p 11211 &;

and finally you can run the gem's executable:

btc_price.

You should see some content in STDOUT like this:

External services status: Good.
Current BTC price: $622.21.

If you run the executable again (btc_price), you'll notice it's much faster. This is because the library uses memcached to cache the BTC price and avoid making redundant API requests.

Why did I write this library?

I wrote this small library initially to learn about caching and how to implement it in Ruby.

We started using a text file for caching and later on switched to Memcached.

I like to hack on this on the weekends in order to improve my OOP and design skills.

FAQs

Package last updated on 21 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc