drbirb 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -19,7 +19,7 @@ debugging tool.
19
19
 
20
20
  == SYNOPSIS:
21
21
 
22
- Start the server:
22
+ Start the server on localhost:7777:
23
23
 
24
24
  require 'drbirb/loader'
25
25
 
@@ -27,9 +27,20 @@ Start the server:
27
27
  # interpreter from exiting
28
28
  Drbirb.server.thread.join
29
29
 
30
+ Start the server on a custom host/port:
31
+
32
+ require 'drbirb/server'
33
+ irb_host, irb_port = ...
34
+ server = DRb.start_service "druby://#{irb_host}:#{irb_port}", IRB::RemoteService.new
35
+
36
+ # join the thread unless you have some other code that prevents the
37
+ # interpreter from exiting
38
+ server.thread.join
39
+
30
40
  Start the client:
31
41
 
32
- ruby -S drbirbc
42
+ drbirbc
43
+ drbirbc druby://localhost:7777
33
44
 
34
45
  When intalled as a Rails plugin, the server is started automatically
35
46
  for you in the plugin's init.rb.
@@ -37,13 +48,16 @@ for you in the plugin's init.rb.
37
48
  == INSTALL:
38
49
 
39
50
  gem install drbirb
51
+
52
+ To use in a Rails app (legacy/plugin):
53
+
40
54
  script/plugin install http://github.com/nicksieger/drbirb.git
41
55
 
42
56
  == LICENSE:
43
57
 
44
58
  (The MIT License)
45
59
 
46
- Copyright (c) 2008-2010 Nick Sieger
60
+ Copyright (c) 2008-2012 Nick Sieger
47
61
 
48
62
  Permission is hereby granted, free of charge, to any person obtaining
49
63
  a copy of this software and associated documentation files (the
@@ -1,3 +1,3 @@
1
1
  module Drbirb
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -19,10 +19,11 @@ module IRB
19
19
  end
20
20
 
21
21
  def IRB.remote_url
22
- uri = ENV['IRB_URL'] || ARGV[0]
23
- unless uri =~ /^druby:/
22
+ uri = ARGV[0] || ENV['IRB_URL']
23
+ unless uri =~ /^dr(uby|b[a-z0-9]+):/
24
24
  uri = "druby://127.0.0.1:7777"
25
25
  end
26
+ uri
26
27
  end
27
28
  end
28
29
 
metadata CHANGED
@@ -3,10 +3,10 @@ name: drbirb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
+ - 1
6
7
  - 0
7
- - 2
8
8
  - 0
9
- version: 0.2.0
9
+ version: 1.0.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nick Sieger
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-04 00:00:00 -05:00
17
+ date: 2012-06-27 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency