bin/console in github_api-v4-client-0.1.0 vs bin/console in github_api-v4-client-0.2.0
- old
+ new
@@ -1,14 +1,13 @@
#!/usr/bin/env ruby
-require "bundler/setup"
-require "github_api/v4/client"
+require 'bundler/setup'
+require 'github_api/v4/client'
+require 'pry'
-# You can add fixtures and/or initialization code here to make experimenting
-# with your gem easier. You can also use a different console, if you like.
-
-# (If you use this, don't forget to add pry to your Gemfile!)
-# require "pry"
-# Pry.start
-
-require "irb"
-IRB.start(__FILE__)
+module Console
+ def self.start
+ client = GithubApi::V4::Client.new(ENV.fetch('GITHUB_TOKEN'))
+ binding.pry
+ end
+end
+Console.start