mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
Merge pull request #380 from mohnish/master
Clean up stripe-console and use the IRB API
This commit is contained in:
commit
3e9cba3afd
@ -1,7 +1,14 @@
|
||||
#!/usr/bin/env ruby
|
||||
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
||||
|
||||
libs = " -r irb/completion"
|
||||
libs << " -r #{File.dirname(__FILE__) + '/../lib/stripe'}"
|
||||
require 'irb'
|
||||
require 'irb/completion'
|
||||
|
||||
require "#{File.dirname(__FILE__)}/../lib/stripe"
|
||||
|
||||
# Config IRB to enable --simple-prompt and auto indent
|
||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||
IRB.conf[:AUTO_INDENT] = true
|
||||
|
||||
puts "Loading stripe gem"
|
||||
exec "#{irb} #{libs} --simple-prompt"
|
||||
|
||||
IRB.start
|
||||
|
Loading…
x
Reference in New Issue
Block a user