From 66ff65135a2ca0f54ef7b3b8b60ea8ce76f9a3b9 Mon Sep 17 00:00:00 2001 From: classicalliu Date: Thu, 21 Mar 2019 15:00:58 +0800 Subject: [PATCH 1/2] chore: replace console to pry --- Gemfile.lock | 6 ++++++ bin/console | 8 ++++---- ckb-sdk-ruby.gemspec | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 541d3026..dc1406c5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,11 +7,16 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.0) + coderay (1.1.2) diff-lcs (1.3) jaro_winkler (1.5.2) + method_source (0.9.2) parallel (1.14.0) parser (2.6.2.0) ast (~> 2.4.0) + pry (0.12.2) + coderay (~> 1.1.0) + method_source (~> 0.9.0) psych (3.1.0) rainbow (3.0.0) rake (10.5.0) @@ -45,6 +50,7 @@ PLATFORMS DEPENDENCIES bundler (~> 2.0) ckb-sdk-ruby! + pry (~> 0.12.2) rake (~> 10.0) rspec (~> 3.0) rubocop (~> 0.66.0) diff --git a/bin/console b/bin/console index 20a24757..417989dc 100755 --- a/bin/console +++ b/bin/console @@ -7,8 +7,8 @@ require "ckb" # 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 "pry" +Pry.start -require "irb" -IRB.start(__FILE__) +# require "irb" +# IRB.start(__FILE__) diff --git a/ckb-sdk-ruby.gemspec b/ckb-sdk-ruby.gemspec index c719e583..993af649 100644 --- a/ckb-sdk-ruby.gemspec +++ b/ckb-sdk-ruby.gemspec @@ -40,4 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "rubocop", "~> 0.66.0" + spec.add_development_dependency "pry", "~> 0.12.2" end From 3403aaaf64314b166abb4efb784cd71d53766d26 Mon Sep 17 00:00:00 2001 From: classicalliu Date: Thu, 21 Mar 2019 16:20:04 +0800 Subject: [PATCH 2/2] chore: delete useless comments --- bin/console | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/console b/bin/console index 417989dc..46ff4d45 100755 --- a/bin/console +++ b/bin/console @@ -9,6 +9,3 @@ require "ckb" # (If you use this, don't forget to add pry to your Gemfile!) require "pry" Pry.start - -# require "irb" -# IRB.start(__FILE__)