made pry console startup with just a pb object for easy experimentation with the methods
This commit is contained in:
parent
d713b509d2
commit
46526a21e9
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue