File tree Expand file tree Collapse file tree 6 files changed +38
-5
lines changed
Expand file tree Collapse file tree 6 files changed +38
-5
lines changed Original file line number Diff line number Diff line change 11* .gem
2- .byebug_history
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ source "https://rubygems.org"
33gemspec
44
55gem "rake"
6- gem "byebug "
6+ gem "debug" , ">= 1.0.0 "
Original file line number Diff line number Diff line change 6969 tzinfo (~> 2.0 )
7070 zeitwerk (~> 2.3 )
7171 builder (3.2.4 )
72- byebug (11.1.3 )
7372 concurrent-ruby (1.1.8 )
7473 connection_pool (2.4.1 )
7574 crass (1.0.6 )
75+ debug (1.8.0 )
76+ irb (>= 1.5.0 )
77+ reline (>= 0.3.1 )
7678 erubi (1.10.0 )
7779 globalid (0.4.2 )
7880 activesupport (>= 4.2.0 )
7981 i18n (1.8.10 )
8082 concurrent-ruby (~> 1.0 )
83+ io-console (0.6.0 )
84+ irb (1.7.1 )
85+ reline (>= 0.3.0 )
8186 loofah (2.9.0 )
8287 crass (~> 1.0.2 )
8388 nokogiri (>= 1.5.9 )
131136 redis-client (>= 0.9.0 )
132137 redis-client (0.14.1 )
133138 connection_pool
139+ reline (0.3.6 )
140+ io-console (~> 0.5 )
134141 sprockets (4.0.2 )
135142 concurrent-ruby (~> 1.0 )
136143 rack (> 1 , < 3 )
@@ -152,7 +159,7 @@ PLATFORMS
152159 x86_64-darwin
153160
154161DEPENDENCIES
155- byebug
162+ debug ( >= 1.0.0 )
156163 kredis !
157164 rails (>= 6.0.0 )
158165 rake
Original file line number Diff line number Diff line change @@ -259,6 +259,29 @@ config.kredis.connector = ->(config) { SomeRedisProxy.new(config) }
259259
260260By default Kredis will use ` Redis.new(config) ` .
261261
262+ ## Development
263+
264+ A development console is available by running ` bin/console ` .
265+
266+ From there, you can experiment with Kredis. e.g.
267+
268+ ``` rb
269+ >> str = Kredis .string " mystring"
270+ Kredis (0. 1ms) Connected to shared
271+ =>
272+ # <Kredis::Types::Scalar:0x0000000134c7d938
273+ ...
274+ >> str.value = " hello, world"
275+ Kredis Proxy (2. 4ms) SET mystring [" hello, world" ]
276+ => " hello, world"
277+ >> str.value
278+ ```
279+
280+ Run tests with ` bin/test ` .
281+
282+ [ ` debug ` ] ( https://github.com/ruby/debug ) can be used in the development console and in the test suite by inserting a
283+ breakpoint, e.g. ` debugger ` .
284+
262285## License
263286
264287Kredis is released under the [ MIT License] ( https://opensource.org/licenses/MIT ) .
Original file line number Diff line number Diff line change @@ -5,9 +5,13 @@ require "bundler/inline"
55
66gemfile do
77 source "https://rubygems.org"
8+
9+ gem "debug" , ">= 1.0.0"
10+
811 gem "kredis" , path : "../"
912end
1013
14+ require "debug"
1115
1216Kredis . configurator = Class . new { def config_for ( name ) { db : "2" } end } . new
1317ActiveSupport ::LogSubscriber . logger = ActiveSupport ::Logger . new ( STDOUT )
Original file line number Diff line number Diff line change 22require "active_support/test_case"
33require "active_support/testing/autorun"
44require "minitest/mock"
5- require "byebug "
5+ require "debug "
66
77require "kredis"
88
You can’t perform that action at this time.
0 commit comments