hash_modern_inspect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hash_modern_inspect.gemspec +1 -1
- data/lib/hash_modern_inspect.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f05f9e7118e331c1766ab1182d1315207751c6c1
|
4
|
+
data.tar.gz: 3845c44196e77a66cbb4a6115ffbd1a9aa6ed748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38f2c350e768192f53eb17d6f69e568aba5d655a6fa4c23073465e2aa30c01627302e626874581a0cc7632eab87615688666e7dfeaa753d7e0d6cd3d3539d8ad
|
7
|
+
data.tar.gz: fb82cbc71375ff1e3111391d7fb53b9746d9497485037fa106d0059973c915711ba6bd80ac594263d1856a447be57298c0a293c7974bccc2099018e2b1b338c7
|
data/hash_modern_inspect.gemspec
CHANGED
data/lib/hash_modern_inspect.rb
CHANGED
@@ -3,11 +3,11 @@ module HashModernInspect
|
|
3
3
|
modern_inspect0(self)
|
4
4
|
end
|
5
5
|
|
6
|
-
def modern_inspect_without_brace
|
7
|
-
if self.empty?
|
6
|
+
def modern_inspect_without_brace(options = {})
|
7
|
+
if self.empty? and not options[:allow_empty]
|
8
8
|
self.inspect
|
9
9
|
else
|
10
|
-
modern_inspect.sub(/\A\{/, '').sub(/\}\z/, '')
|
10
|
+
modern_inspect.sub(/\A\{/, '').sub(/\}\z/, '').strip
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_modern_inspect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|