pg_meta 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 639796a952d70d81145a60347703f86b76ad212b000ad3ee4f960149fc339d24
4
- data.tar.gz: 708a09c0e74d73810c58857b6234a24f20243fecce5bc4f39d6f7ec503ea6e8f
3
+ metadata.gz: 41bfef6f94d3f36e05970e1e7894f7cbf31a5658d424186caa10deb6b14adc5d
4
+ data.tar.gz: 2c2b1e00874ee2d7c33ca83fd22a10a6367b21656ef0d4653a6289b3e2874814
5
5
  SHA512:
6
- metadata.gz: 42d3961c683c059659a7ede8264906ac2fb6767019d0878bc5d89ed86e0461a0f04c4185bca884bbcab300ca296d087e63e07c8176c4b56629f8c05c451ab374
7
- data.tar.gz: 19ef7dc2f2f23efd49ddb7391f3816bbc639cce626b953d28b31d167ad55e2f7661e0d8fcf9106b6d1c266ce48f54a448f989c97a290070d4b5ceab00e79610a
6
+ metadata.gz: c7815f55fea97137928df544fb2456ab4c7aa10e4eee0727491ed18904c63ed9c48c4a024e56db48e5c669b9e6c3fecb83bcfacb13ff6a0dfe8bd8eb57a4a0b3
7
+ data.tar.gz: 022334e098b1f5cd42ea2a503421a46c5ced08637ff4d50414e9e77e8b482fac9fe976b5e507224828b4ae0fc9e2dba46e1559b8b5d7332a7197e8db9cbd10e3
data/lib/pg_meta/meta.rb CHANGED
@@ -35,8 +35,9 @@ module PgMeta
35
35
  parent && parent.root.send(:add_node, self) # Add object to global database lookup
36
36
  end
37
37
 
38
- def to_h() raise StandardError, "Undefined method" end
39
- def to_yaml() to_h.to_yaml end
38
+ def to_s = name.to_s
39
+ def to_h = raise StandardError, "Undefined method"
40
+ def to_yaml = to_h.to_yaml
40
41
 
41
42
  def inspect() "#<#{self.class}:#{guid}>" end
42
43
 
@@ -1,3 +1,3 @@
1
1
  module PgMeta
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen