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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94c9aab311c9ca001b5a2b6a77702e1de0d681a4
4
- data.tar.gz: e772c42c762f0c79daf8f32974457448a5eec1be
3
+ metadata.gz: f05f9e7118e331c1766ab1182d1315207751c6c1
4
+ data.tar.gz: 3845c44196e77a66cbb4a6115ffbd1a9aa6ed748
5
5
  SHA512:
6
- metadata.gz: f9fb31928b6d894869e507e90bb77385b6e83f0c9b8b430bf08779fcbfb6ec6e2b82ddde532e696bd59ddaeabe3f4ce286eb68d12ac99bc70aafc5e8c6eecda3
7
- data.tar.gz: e0b69295bb437b0a930a97369a6fd766d579c9006ad66d2a88cb94a9fcb2180d932bb5450ec57743519409139ab69156f17aa806d81693992a3aa35e2ddd1dc3
6
+ metadata.gz: 38f2c350e768192f53eb17d6f69e568aba5d655a6fa4c23073465e2aa30c01627302e626874581a0cc7632eab87615688666e7dfeaa753d7e0d6cd3d3539d8ad
7
+ data.tar.gz: fb82cbc71375ff1e3111391d7fb53b9746d9497485037fa106d0059973c915711ba6bd80ac594263d1856a447be57298c0a293c7974bccc2099018e2b1b338c7
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'hash_modern_inspect'
4
- spec.version = '0.1.0'
4
+ spec.version = '0.1.1'
5
5
  spec.authors = ['winebarrel']
6
6
  spec.email = ['sgwr_dts@yahoo.co.jp']
7
7
 
@@ -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.0
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-10 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler