sinject 1.1.1 → 1.1.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
  SHA256:
3
- metadata.gz: 74d73c7073d972685d7102f6760e326669637d897330058adec4d32acf28e192
4
- data.tar.gz: 92c467b5781f2893261c602b676c3cc84263886e5f44ddf7cb1540d18b8d0602
3
+ metadata.gz: 3edbc8d8d45459398accc9ab178eb4c8b64d880d5ac89bdd11fc8cf1e45e76cb
4
+ data.tar.gz: dc1ff233957369c0d4130d0855a4fc246e25ae5545ed12a8b02d1dae9e9e66a2
5
5
  SHA512:
6
- metadata.gz: cdfdd548a9ac9befbfeb94f0a9ac7ff5456b68746af2183764cb4593656c03f42c5bdb81cf108c6aaacf5129a0bc1ef3fe82505d24ff5c79e43a4aeabdf4f4b9
7
- data.tar.gz: aa2b989d31dc8ad7939e7d20228cdabb05adc68c694198391364e675e53b820beba258e3e68d9fb7b4199c7fed51d9ee09a7e3b56899cf2fcc5fa061dfe462e2
6
+ metadata.gz: 64541a1e30b79465398cebc50d1ec309fd4bf3a8093d00542e1e6a3cb0cc043dbf6d0538319b69919b4fbe6b08ffc128b09a4b3ac3bc92803f18aaa87f81cd93
7
+ data.tar.gz: 991702915f1c163ce60a55e94ef9c74179d334e5d3c1ff1ff59fe10c7cf6145d527c72066fc84e671b8cdf0ee84fbcfaf6808741f3593246731ea75b41e8611b
@@ -163,14 +163,9 @@ module Sinject
163
163
  def match?(contract, dependency)
164
164
  return true if contract[:type] == dependency[:type]
165
165
  return true if contract[:type] == :req && dependency[:type] == :opt
166
- return true if contract[:type] == :keyreq && dependency[:type] == :key
167
- return false
168
- end
166
+ return true if [:keyreq, :keyrest].include?(contract[:type]) && dependency[:type] == :key
169
167
 
170
- # this method is called to get a standard param type for comparison purposes
171
- def param_type(type)
172
- return :arg if type == :opt || type == :req
173
- return :key if type == :keyreq || type == :key
168
+ false
174
169
  end
175
170
 
176
171
  def create_instance(item)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinject
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sage One
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-11 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,30 @@ dependencies:
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.21.2
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov_json_formatter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 0.21.2
82
+ version: '0'
69
83
  description: A simple dependency injection framework.
70
84
  email:
71
85
  - vaughan.britton@sage.com
@@ -81,7 +95,6 @@ files:
81
95
  - lib/sinject/container_item.rb
82
96
  - lib/sinject/dependency_group.rb
83
97
  - lib/sinject/exceptions.rb
84
- - lib/sinject/version.rb
85
98
  homepage: https://github.com/sage/sinject
86
99
  licenses:
87
100
  - MIT
@@ -101,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
114
  - !ruby/object:Gem::Version
102
115
  version: '0'
103
116
  requirements: []
104
- rubygems_version: 3.0.8
117
+ rubygems_version: 3.5.3
105
118
  signing_key:
106
119
  specification_version: 4
107
120
  summary: Simple Dependency Injection.
@@ -1,5 +0,0 @@
1
- # Namespace
2
- module Sinject
3
- # :nodoc:
4
- VERSION = '1.1.1'.freeze
5
- end