File tree Expand file tree Collapse file tree 6 files changed +27
-24
lines changed Expand file tree Collapse file tree 6 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- ruby-version : ['2.7 ']
22
+ ruby-version : ['3.1 ']
23
23
24
24
steps :
25
25
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1
- 2.7.6
1
+ 3.1.1
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- smart_ioc (0.3.9 )
4
+ smart_ioc (0.4.0 )
5
5
6
6
GEM
7
7
remote: https://rubygems.org/
8
8
specs:
9
9
byebug (11.1.3 )
10
10
coderay (1.1.3 )
11
- diff-lcs (1.4.4 )
12
- docile (1.3.2 )
13
- method_source (1.0 .0 )
11
+ diff-lcs (1.5.1 )
12
+ docile (1.4.1 )
13
+ method_source (1.1 .0 )
14
14
pry (0.14.2 )
15
15
coderay (~> 1.1 )
16
16
method_source (~> 1.0 )
17
- rake (13.0 .1 )
18
- rspec (3.9 .0 )
19
- rspec-core (~> 3.9 .0 )
20
- rspec-expectations (~> 3.9 .0 )
21
- rspec-mocks (~> 3.9 .0 )
22
- rspec-core (3.9.2 )
23
- rspec-support (~> 3.9.3 )
24
- rspec-expectations (3.9 .2 )
17
+ rake (13.2 .1 )
18
+ rspec (3.13 .0 )
19
+ rspec-core (~> 3.13 .0 )
20
+ rspec-expectations (~> 3.13 .0 )
21
+ rspec-mocks (~> 3.13 .0 )
22
+ rspec-core (3.13.0 )
23
+ rspec-support (~> 3.13.0 )
24
+ rspec-expectations (3.13 .2 )
25
25
diff-lcs (>= 1.2.0 , < 2.0 )
26
- rspec-support (~> 3.9 .0 )
27
- rspec-mocks (3.9 .1 )
26
+ rspec-support (~> 3.13 .0 )
27
+ rspec-mocks (3.13 .1 )
28
28
diff-lcs (>= 1.2.0 , < 2.0 )
29
- rspec-support (~> 3.9 .0 )
30
- rspec-support (3.9.3 )
31
- simplecov (0.18.5 )
29
+ rspec-support (~> 3.13 .0 )
30
+ rspec-support (3.13.1 )
31
+ simplecov (0.22.0 )
32
32
docile (~> 1.1 )
33
33
simplecov-html (~> 0.11 )
34
+ simplecov_json_formatter (~> 0.1 )
34
35
simplecov-html (0.12.3 )
36
+ simplecov_json_formatter (0.1.4 )
35
37
36
38
PLATFORMS
37
39
ruby
40
+ x86_64-darwin-23
38
41
39
42
DEPENDENCIES
40
43
bundler
@@ -47,4 +50,4 @@ DEPENDENCIES
47
50
smart_ioc !
48
51
49
52
BUNDLED WITH
50
- 2.3.25
53
+ 2.5.14
Original file line number Diff line number Diff line change 1
1
require 'smart_ioc/version'
2
2
require 'benchmark'
3
+ require 'forwardable'
3
4
4
5
module SmartIoC
5
6
autoload :Args , 'smart_ioc/args'
@@ -78,12 +79,12 @@ def container
78
79
79
80
container_methods = [
80
81
:register_bean ,
82
+ :get_bean_definition ,
81
83
:set_extra_context_for_package ,
82
84
:get_bean ,
83
85
:clear_scopes ,
84
86
:force_clear_scopes ,
85
- :set_load_proc ,
86
- :get_bean_definition
87
+ :set_load_proc
87
88
]
88
89
89
90
def_delegators :container , *container_methods
Original file line number Diff line number Diff line change 1
1
module SmartIoC
2
- VERSION = "0.3.9 "
2
+ VERSION = "0.4.0 "
3
3
end
Original file line number Diff line number Diff line change 13
13
locations = SmartIoC ::BeanLocations . get_bean_locations ( :repository )
14
14
15
15
expect ( locations [ :test ] . size ) . to eq ( 3 )
16
-
17
16
expect ( locations [ :test ] [ 0 ] ) . to match ( /example\/ admins\/ repository\/ admins_repository.rb/ )
18
17
expect ( locations [ :test ] [ 1 ] ) . to match ( /example\/ admins\/ repository\/ test\/ admins_repository.rb/ )
19
18
expect ( locations [ :test ] [ 2 ] ) . to match ( /example\/ users\/ repository\/ users_repository.rb/ )
You can’t perform that action at this time.
0 commit comments