virb 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/virb/default.rb +6 -8
- data/lib/virb/version.rb +1 -1
- metadata +1 -1
data/lib/virb/default.rb
CHANGED
@@ -89,6 +89,12 @@ module IRB
|
|
89
89
|
|
90
90
|
# initialize IRB and start TOP_LEVEL irb
|
91
91
|
def IRB.start(ap_path = nil)
|
92
|
+
`rm -rf .virb`
|
93
|
+
`mkdir -p .virb`
|
94
|
+
unless File.exist?('.virb/fifo')
|
95
|
+
`mkfifo .virb/fifo`
|
96
|
+
end
|
97
|
+
`touch .virb/session`
|
92
98
|
|
93
99
|
vimscript = File.join(File.dirname(__FILE__), '..', 'virb.vim')
|
94
100
|
|
@@ -158,14 +164,6 @@ module IRB
|
|
158
164
|
class Irb
|
159
165
|
def initialize(workspace = nil, input_method = StdioInputMethod.new , output_method = nil)
|
160
166
|
|
161
|
-
`rm -rf .virb`
|
162
|
-
`mkdir -p .virb`
|
163
|
-
unless File.exist?('.virb/fifo')
|
164
|
-
`mkfifo .virb/fifo`
|
165
|
-
end
|
166
|
-
`touch .virb/session`
|
167
|
-
|
168
|
-
|
169
167
|
# input_method is hard to override
|
170
168
|
|
171
169
|
@context = Context.new(self, workspace, input_method, output_method)
|
data/lib/virb/version.rb
CHANGED