unity-dependency-container 1.1.2 → 1.1.3

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: 7a83bf465acfb55c0bee367904a600cfe6faba2dbd915407ba572126a5617035
4
- data.tar.gz: 25acaee0d86a24f95705fcdab7de8ef9121ffe289d0fe1cc3706b4e2fcbf2a9f
3
+ metadata.gz: 64a41cb06239b5e0006d60573236917a9cd001aaa26c23b4eef3a45920930a4b
4
+ data.tar.gz: 54725fce7a0e0d09acf0cb05b02c3a7f3919eda3fda145bd4850270faeb841b3
5
5
  SHA512:
6
- metadata.gz: 4722d4da1cb80d8366d92650f8bce4c76c460b76390d6d5b719dae79fd9ce5771f51d9ea90bc619a5d92adc7ff72151ac47c4714401d6f24c97fc126c84e7475
7
- data.tar.gz: '0391a5b0c302773ea8b61bce20bb0b8d8060800e3a701b2a802d09235cb9cac9131d3dff869c2f2c1686971aea887fa4509dce7f88cce73f1c5243c90b47572d'
6
+ metadata.gz: 279d96f3e43cd3c0c945447afe093d3daf762b3f6e064fdd2d45a7ef6a63b61c9bdab576d8d52144f22d14a685335fb29a07cdd7849941d76a8500dea5a4ef1a
7
+ data.tar.gz: a3b818184c02be5ee67e077c08f55e40ea415602fd4d25ccd9d87b9659889ed4ec819a8ea8fbc798643d755695372437a2260983c4bc12617ada0d4e6071f8c9
data/.solargraph.yml ADDED
@@ -0,0 +1,23 @@
1
+ ---
2
+ include:
3
+ - "**/*.rb"
4
+ exclude:
5
+ - spec/**/*
6
+ - test/**/*
7
+ - vendor/**/*
8
+ - ".bundle/**/*"
9
+ require: []
10
+ domains: []
11
+ reporters:
12
+ - rubocop
13
+ - require_not_found
14
+ - typecheck:strong
15
+ formatter:
16
+ rubocop:
17
+ cops: safe
18
+ except: []
19
+ only: []
20
+ extra_args: []
21
+ require_paths: []
22
+ plugins: []
23
+ max_files: 5000
data/Gemfile CHANGED
@@ -6,3 +6,4 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
+ gem "solargraph"
data/Gemfile.lock CHANGED
@@ -1,20 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unity-dependency-container (1.1.1)
4
+ unity-dependency-container (1.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ ast (2.4.2)
10
+ backport (1.2.0)
11
+ benchmark (0.2.1)
12
+ diff-lcs (1.5.0)
13
+ e2mmap (0.1.0)
14
+ jaro_winkler (1.5.4)
15
+ json (2.6.3)
16
+ kramdown (2.4.0)
17
+ rexml
18
+ kramdown-parser-gfm (1.1.0)
19
+ kramdown (~> 2.0)
20
+ mini_portile2 (2.8.1)
21
+ nokogiri (1.13.10)
22
+ mini_portile2 (~> 2.8.0)
23
+ racc (~> 1.4)
24
+ parallel (1.22.1)
25
+ parser (3.1.3.0)
26
+ ast (~> 2.4.1)
27
+ racc (1.6.2)
28
+ rainbow (3.1.1)
9
29
  rake (13.0.6)
30
+ regexp_parser (2.6.1)
31
+ reverse_markdown (2.1.1)
32
+ nokogiri
33
+ rexml (3.2.5)
34
+ rubocop (1.41.1)
35
+ json (~> 2.3)
36
+ parallel (~> 1.10)
37
+ parser (>= 3.1.2.1)
38
+ rainbow (>= 2.2.2, < 4.0)
39
+ regexp_parser (>= 1.8, < 3.0)
40
+ rexml (>= 3.2.5, < 4.0)
41
+ rubocop-ast (>= 1.23.0, < 2.0)
42
+ ruby-progressbar (~> 1.7)
43
+ unicode-display_width (>= 1.4.0, < 3.0)
44
+ rubocop-ast (1.24.0)
45
+ parser (>= 3.1.1.0)
46
+ ruby-progressbar (1.11.0)
47
+ solargraph (0.48.0)
48
+ backport (~> 1.2)
49
+ benchmark
50
+ bundler (>= 1.17.2)
51
+ diff-lcs (~> 1.4)
52
+ e2mmap
53
+ jaro_winkler (~> 1.5)
54
+ kramdown (~> 2.3)
55
+ kramdown-parser-gfm (~> 1.1)
56
+ parser (~> 3.0)
57
+ reverse_markdown (>= 1.0.5, < 3)
58
+ rubocop (>= 0.52)
59
+ thor (~> 1.0)
60
+ tilt (~> 2.0)
61
+ yard (~> 0.9, >= 0.9.24)
62
+ thor (1.2.1)
63
+ tilt (2.0.11)
64
+ unicode-display_width (2.4.2)
65
+ webrick (1.7.0)
66
+ yard (0.9.28)
67
+ webrick (~> 1.7.0)
10
68
 
11
69
  PLATFORMS
12
70
  arm64-darwin-21
71
+ arm64-darwin-22
13
72
  x86_64-darwin-20
14
73
 
15
74
  DEPENDENCIES
16
75
  rake (~> 13.0)
76
+ solargraph
17
77
  unity-dependency-container!
18
78
 
19
79
  BUNDLED WITH
20
- 2.3.3
80
+ 2.3.7
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Unity
4
4
  module DependencyContainer
5
- VERSION = '1.1.2'
5
+ VERSION = '1.1.3'
6
6
  end
7
7
  end
@@ -14,6 +14,10 @@ module Unity
14
14
  Thread.current[:di_instances]
15
15
  end
16
16
 
17
+ # @sg-ignore
18
+ # @!macro [attach] di
19
+ # @param name [Object]
20
+ # @return [$1]
17
21
  def di(name)
18
22
  instances = Thread.current[:di_instances]
19
23
  return instances[name] if !instances.nil? && instances.key?(name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unity-dependency-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - saluzafa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Extend module/class abilities to provide dependencies container/injection
14
14
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".solargraph.yml"
20
21
  - CHANGELOG.md
21
22
  - Gemfile
22
23
  - Gemfile.lock
@@ -49,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
50
  - !ruby/object:Gem::Version
50
51
  version: '0'
51
52
  requirements: []
52
- rubygems_version: 3.3.3
53
+ rubygems_version: 3.4.1
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: Unity - Dependencies container utility