peeky 0.0.47 → 0.0.48

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: bd2714ca018026119c093e7920cd6de4202f809add8780595dc1bc2d77fa4c33
4
- data.tar.gz: dfd1dfc025023e32c2b2892b3880c2be63a54bbc347d269cee0e19533a72fa4b
3
+ metadata.gz: b101eb2cf5f68f0a26a46579ddc1b87df3f8b2edbfefa9aa8301a8efe1b6f44a
4
+ data.tar.gz: 56e16cec9351212f107137cb1efda57c0221a8ffac84945b36a51231f66536c4
5
5
  SHA512:
6
- metadata.gz: 359c0c49597ed2154c73d6db25c5a0b6c6d33dc1f6a3f464d594558ef31143a278f1428c58f0319c1205b8bbe6eb703300ff17daa9f1d89df8613e041d08a80a
7
- data.tar.gz: c1b259ebbd335fdb71e907dd9bef8c8fb1dd63bbfd1ca767be83e7a2879aebb7485d3ec18b4cc067e074ebf4a4407ccefdaf33670fe4231b09b8cee4fbbae6e0
6
+ metadata.gz: 8bef9b277830666604a788bdc0f1dc242b5d58c15d1c44d83a58ad559fc883d6888b1fbfde996514af27b4e90729d65a69c5b49ce81df7c79685ce89f7d953b1
7
+ data.tar.gz: 8c650d21456723d845c994d117a30ca9a6dcb5dbc26bb35a12b50bf33805f4ba863f8de665b8265a0d58cf5ee1eb17f2aa035b00c3ba1044624661becc6e24c9
@@ -86,7 +86,13 @@ module Peeky
86
86
 
87
87
  # Module name
88
88
  def module_name
89
- @module_name ||= class_full_name.to_s.gsub(/(.*)::.*/, '\1')
89
+ return @module_name if defined? @module_name
90
+
91
+ @module_name = if class_full_name.include?('::')
92
+ class_full_name.to_s.gsub(/(.*)::.*/, '\1')
93
+ else
94
+ ''
95
+ end
90
96
  end
91
97
 
92
98
  # Get a list of :attr_accessor on the class
data/lib/peeky/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peeky
4
- VERSION = '0.0.47'
4
+ VERSION = '0.0.48'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peeky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.47
4
+ version: 0.0.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys