komachi-develop 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/komachi-develop/version.rb +1 -1
- metadata +2 -3
- data/lib/komachi-develop/pry-extension/hirb.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23312c64a25e8428ff969876a4f17120889aba5
|
4
|
+
data.tar.gz: 8611154da508e829a0860fc026b4ea1d6f4dea1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5756ce3ae3c920ff909d860675c01a6cc1d5e1df94366e01b23aafa8ed29024eb8a317eba8038c192f92f1dbb08689d590cb787155e4c36099fda5e6fff58551
|
7
|
+
data.tar.gz: 152258d2cca73bc1c34bcca2e30a24685e372e56a77058b7ff2e43a9876113d80e1fd1cf63ac232c6df04e8fa67182174b73b0412396c61f6e32cbced609e3f8
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komachi-develop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takumi MIURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- lib/komachi-develop/pry-extension.rb
|
169
169
|
- lib/komachi-develop/pry-extension/caller_method.rb
|
170
170
|
- lib/komachi-develop/pry-extension/copy.rb
|
171
|
-
- lib/komachi-develop/pry-extension/hirb.rb
|
172
171
|
- lib/komachi-develop/pry-extension/sql.rb
|
173
172
|
- lib/komachi-develop/railtie.rb
|
174
173
|
- lib/komachi-develop/version.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'hirb'
|
3
|
-
rescue LoadError
|
4
|
-
# Missing goodies, bummer
|
5
|
-
end
|
6
|
-
|
7
|
-
if defined? Hirb
|
8
|
-
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling
|
9
|
-
Hirb::View.instance_eval do
|
10
|
-
def enable_output_method
|
11
|
-
@output_method = true
|
12
|
-
@old_print = Pry.config.print
|
13
|
-
Pry.config.print = proc do |*args|
|
14
|
-
Hirb::View.view_or_page_output(args[1]) || @old_print.call(*args)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def disable_output_method
|
19
|
-
Pry.config.print = @old_print
|
20
|
-
@output_method = nil
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
Hirb.enable
|
25
|
-
end
|