Skip to content

Commit fd0f09a

Browse files
committed
Merge branch 'master' into tree_shaking
2 parents 0a20305 + 817d377 commit fd0f09a

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
lines changed

.github/workflows/rspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['2.7']
22+
ruby-version: ['3.1']
2323

2424
steps:
2525
- uses: actions/checkout@v2

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.1.1

Gemfile.lock

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
11
PATH
22
remote: .
33
specs:
4-
smart_ioc (0.3.9)
4+
smart_ioc (0.4.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
byebug (11.1.3)
1010
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)
1414
pry (0.14.2)
1515
coderay (~> 1.1)
1616
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)
2525
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)
2828
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)
3232
docile (~> 1.1)
3333
simplecov-html (~> 0.11)
34+
simplecov_json_formatter (~> 0.1)
3435
simplecov-html (0.12.3)
36+
simplecov_json_formatter (0.1.4)
3537

3638
PLATFORMS
3739
ruby
40+
x86_64-darwin-23
3841

3942
DEPENDENCIES
4043
bundler
@@ -47,4 +50,4 @@ DEPENDENCIES
4750
smart_ioc!
4851

4952
BUNDLED WITH
50-
2.3.25
53+
2.5.14

lib/smart_ioc.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'smart_ioc/version'
22
require 'benchmark'
3+
require 'forwardable'
34

45
module SmartIoC
56
autoload :Args, 'smart_ioc/args'
@@ -78,12 +79,12 @@ def container
7879

7980
container_methods = [
8081
:register_bean,
82+
:get_bean_definition,
8183
:set_extra_context_for_package,
8284
:get_bean,
8385
:clear_scopes,
8486
:force_clear_scopes,
85-
:set_load_proc,
86-
:get_bean_definition
87+
:set_load_proc
8788
]
8889

8990
def_delegators :container, *container_methods

lib/smart_ioc/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SmartIoC
2-
VERSION = "0.3.9"
2+
VERSION = "0.4.0"
33
end

spec/smart_ioc/bean_locator_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
locations = SmartIoC::BeanLocations.get_bean_locations(:repository)
1414

1515
expect(locations[:test].size).to eq(3)
16-
1716
expect(locations[:test][0]).to match(/example\/admins\/repository\/admins_repository.rb/)
1817
expect(locations[:test][1]).to match(/example\/admins\/repository\/test\/admins_repository.rb/)
1918
expect(locations[:test][2]).to match(/example\/users\/repository\/users_repository.rb/)

0 commit comments

Comments
 (0)