move code for gitHub api interaction outside fo ruby block
Merge pull request #25 from stevendgonzales/master

move code for gitHub api interaction outside fo ruby block