A feature for an internal Ruby project here at Quick Left necessitated parsing the domain from a URL. This seems like a problem for which there must already exist a solution, but it surprisingly turns out that there is no available solution for this seemingly simple task.
Building your first Ruby gem may seem like a daunting task, but it's actually not so bad. It's quite rewarding to not only release a gem, but to see its download count climb as others put your hard work to good use, and even still as others offer to contribute new features and bug fixes to your very own gem. And thanks to RubyGems.org and Bundler, the process of creating, releasing, and implementing gems couldn't be easier.
After reading through this post, get access to the 45 minute video tutorial complete with slide deck and instruction from Matt in our new Engineering Lunch series. Be a QLer for the day and see what we're teaching our engineers in our semi-monthly engineering lunch series. Sorry, we don't buy the lunch but you do get the tutorial for free!
Recently I was building a Single Sign-On feature for a client who wanted it for customers logging into their existing database (SAP). Basically, instead of giving their customers yet another username and password, Single Sign-On lets you reuse your first log in for another app. More recent versions of SAP use a standard named SAML for SSO, and there's already a Ruby gem for that. But in this case, we needed to us a different standard named SAP logon tickets. After building that integration, in my free time I repackaged it as a gem (a Ruby library) so that others can reuse my code later if they run into the same problem.
In the Fall of 2011, we had a client come to us because they wanted a way to produce iOS applications with minimal developer effort. They had an existing firm delivering apps, but they weren't pleased with the quality of the work or the ongoing cost to produce new apps.
Installing the syntax-highlighting ultraviolet gem can be a little tricky as it has system level dependencies that need to be installed. If you try to just run "gem install ultraviolet" you'll probably get an error that looks like "error: oniguruma.h: No such file or directory." So, the first step is to install the Oniguruma header files...
- ← Previous
- Next →