diff --git a/bin/console b/bin/console index 6ca962f..4171496 100755 --- a/bin/console +++ b/bin/console @@ -1,11 +1,11 @@ #!/usr/bin/env ruby -require "bundler/setup" -require "pastebinner" +require "../lib/pastebinner" # 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 +pb = Pastebinner.new(ENV['pastebin_api_key'], ENV['pastebin_username'], ENV['pastebin_password']) +binding.pry diff --git a/pastebinner.gemspec b/pastebinner.gemspec index 4641e21..43bfa05 100644 --- a/pastebinner.gemspec +++ b/pastebinner.gemspec @@ -1,4 +1,3 @@ - lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "pastebinner/version" @@ -31,10 +30,11 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.16" + spec.add_development_dependency "bundler", "~> 2.0" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_runtime_dependency "rest-client", "~> 2.0" spec.add_runtime_dependency "json", "~> 2.0" spec.add_runtime_dependency "pry", "~> 0.11" end +