constructor_shortcut 0.2.0 → 0.3.0

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: 1a433906b27ea87cead7e40828953db05e31fb81
4
- data.tar.gz: 64ab688ee962d199dcdc19e81cd3ba1ff1a7a2ce
3
+ metadata.gz: 21d79b4c674c5667c3eb6bfdd4af31722ede45f0
4
+ data.tar.gz: 9a42f2c76c08fb9054a72648100ca69f98e443f6
5
5
  SHA512:
6
- metadata.gz: bf125943e74659342598d05908d1f583c3b503ade31d7c79fc9210f2c7e35e2483bb20afa1be25bcb32eb5aada34dd0040cc9bffad5829fef2aa46789faf3daa
7
- data.tar.gz: 82174cccccc68b63473ff9578faadff77aea3b22ebf254da13e3cfe755cc213c0696308794cdce4cb4f88d7bf66b5987c873105436c26c09236d5ffe843d8345
6
+ metadata.gz: 445ae2bfb722fcc9146c5928190acfd36e2f8acf58aa1fd78c431c5791a88decb295430826fb124d832c48a4759674ee4149d2eebeb32f474940bcb3ec1223ef
7
+ data.tar.gz: 45703c3c8036be719459f4e954da4fd180c128d47803b4245d277eae52b54d0f74ce417cb72ee3b658aa28088070d1dff14aa0479dfae2c9f2fc87a6473c78cb
@@ -1,3 +1,3 @@
1
1
  module ConstructorShortcut
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
@@ -8,9 +8,11 @@ module ConstructorShortcut
8
8
  @cache ||= {}
9
9
  @cache[name] ||=
10
10
  Module.new do
11
+ @key = name.inspect
12
+
11
13
  class << self
12
14
  def name
13
- "ConstructorShortcut[#{key}]"
15
+ "ConstructorShortcut[#{@key}]"
14
16
  end
15
17
  alias_method :to_s, :name
16
18
  alias_method :to_str, :name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor_shortcut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor Sokolov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2018-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler