hirber 0.8.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/lib/hirb/version.rb +1 -1
- data/lib/hirb/view.rb +14 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c748a794d48fe70eaa22e397f0c3dd472b463fc6fa5338fed4704574641c57d4
|
4
|
+
data.tar.gz: b77192021456b45baa5d0c38aa303399030ad65c8ddfa57e2f5c6d67746b3513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df29c0e669504c2ad444a6257802c14591cc82974a48ae9dedb7956a240d7e9dd88fe1bb4857eacee8313c0d8fd6f53e49cd5d94af6ff2d99ecbb620b170f316
|
7
|
+
data.tar.gz: 8f0cfcdd63cfc95e6b844de5fe7320ca1c66ecb85ead1a31c85e33679678b71dc2fa11b279a0d60d9ddd856512c384984d718df0ce84ea7f4e87f33c2babf681
|
data/lib/hirb/version.rb
CHANGED
data/lib/hirb/view.rb
CHANGED
@@ -183,8 +183,20 @@ module Hirb
|
|
183
183
|
@output_method = true
|
184
184
|
::IRB::Irb.class_eval do
|
185
185
|
alias_method :non_hirb_view_output, :output_value
|
186
|
-
|
187
|
-
|
186
|
+
|
187
|
+
def output_value(omit = false) #:nodoc:
|
188
|
+
Hirb::View.view_or_page_output(@context.last_value) ||
|
189
|
+
original_output_value(omit)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Do not pass the value if the default is given to keep backwards
|
193
|
+
# compatiblity for Ruby =< 2.7.1
|
194
|
+
def original_output_value(omit)
|
195
|
+
if omit
|
196
|
+
non_hirb_view_output(omit)
|
197
|
+
else
|
198
|
+
non_hirb_view_output
|
199
|
+
end
|
188
200
|
end
|
189
201
|
end
|
190
202
|
end
|