diftw 0.0.1 → 0.0.2

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: 621429df0a88505d46bff336d29bb4cf4196726d
4
- data.tar.gz: 52fbcdcc3013037ac707f08053fd8465a90f8bc6
3
+ metadata.gz: f25702b419277ffc7239774fb417f4c46dc86e40
4
+ data.tar.gz: 43f53a75ff8a5d0aff5fdc2f2db2d0bbf1aa53de
5
5
  SHA512:
6
- metadata.gz: e0ca2d926827c97501bbad7a38fc0ba2c7f0626b25a5e82a52161febe84ce02f759e3a04e84f61812ade709fcb6677de98802ff378ee3b4776fcb262227508e4
7
- data.tar.gz: 6cd4cf04d662607d0ecfce83396501dbe44c34096ad7329d70cc537d8e09cc0c4bbbb71d07c9c7c250bf3df6d57f1549d5cebadd7df76cb2ab0cd180d0eebe86
6
+ metadata.gz: deeaf6569abd8027ff19f4e21f13949d12033270d4cccd233177e61d538c16772af952894abd2695d87d0e78b41c390d5496ed82df854f746ed8f4a3c0996a56
7
+ data.tar.gz: 62218b71fae0e9753dbf25bcde9ee6fd8a01fe725703836691538d9df7f72dcfa88acb8e30e6728e1d6c3c0c78748b2b19a22e94541fea6962971d154c5d7bf4
@@ -62,6 +62,7 @@ module DiFtw
62
62
  # @return [Injector] returns the Injector object
63
63
  #
64
64
  def register(name, y = nil, &block)
65
+ instance_variable_set "@_singleton_#{name}", nil
65
66
  registry[name] = y || block
66
67
  mutexes[name] = Mutex.new if singleton
67
68
  self
data/lib/diftw/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module DiFtw
2
2
  # Library version
3
- VERSION = '0.0.1'.freeze
3
+ VERSION = '0.0.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diftw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A small dependency injection library for Ruby
14
14
  email: jordan.hollinger@gmail.com