shirinji 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dc426a5294d566ede0acdf7b46568d09736ef05d044afbed686bb604cd48830
4
- data.tar.gz: 2fc85bcb5c7a1c5050cc6a29397e3b2380b89482442f64e119676c463670ffeb
3
+ metadata.gz: 901f38471c13f7176f8bb46ea613eb9ed0351f6fe8b146c80f4881f0b9ccc556
4
+ data.tar.gz: 13dfd002dfb228250aaea5035b0963939a1b1008de8c95ab7ec6f221ba7321d1
5
5
  SHA512:
6
- metadata.gz: 7f8cb9af67898e849acd3bc6c1885094dea834db218f5ab6a39b167ebb54d8ea3d6371c62692a83a27c62124714c2762087a7c79e55821717852f22835e0bad9
7
- data.tar.gz: 07e1eac7f60615db3ecd869d59d3a648c269d56926f09a8ca5897f618d3a69b2849508c9887623ac12e2f04957fed777b01ec77dd1cd666c674ad1bfd003f856
6
+ metadata.gz: 700b796bf1dda70bb37fcf5e7cfe555d12e4aa069ab9a4fbda395b0fa6f549333bcd58950b3c3e25b22d026e21146e3ad74a1096560d7ae6046e4753f0b67dd3
7
+ data.tar.gz: cda1854167ad803bf9bf3ea657fff773005277dff6df5299838bd890fca8ef24b12244a2a7a34e7c8ebb992ca809f929867854e4160fafd1de5dada6bfbc7e98
data/.travis.yml CHANGED
@@ -1,34 +1,6 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.0
5
- - 2.4.1
6
- - 2.4.2
7
- - 2.4.3
8
- - 2.4.4
9
- - 2.4.5
10
- - 2.4.6
11
- - 2.4.7
12
- - 2.4.8
13
- - 2.4.9
14
- - 2.5.0
15
- - 2.5.1
16
- - 2.5.2
17
- - 2.5.3
18
- - 2.5.4
19
- - 2.5.5
20
- - 2.5.6
21
- - 2.5.7
22
- - 2.5.8
23
- - 2.5.9
24
- - 2.6.0
25
- - 2.6.1
26
- - 2.6.2
27
- - 2.6.3
28
- - 2.6.4
29
- - 2.6.5
30
- - 2.6.6
31
- - 2.6.7
32
4
  - 2.7.0
33
5
  - 2.7.1
34
6
  - 2.7.2
data/README.md CHANGED
@@ -14,9 +14,6 @@ Dependencies Injection made clean and easy for Ruby.
14
14
 
15
15
  ## Supported ruby versions
16
16
 
17
- - 2.4.x
18
- - 2.5.x
19
- - 2.6.x
20
17
  - 2.7.x
21
18
  - 3.0.x
22
19
 
@@ -66,7 +66,8 @@ module Shirinji
66
66
 
67
67
  def resolve_attribute(bean, arg)
68
68
  return resolve(arg) unless (attr = bean.attributes[arg])
69
- return attr.value if attr.value
69
+ val = attr.value
70
+ return val.is_a?(Proc) ? val.call : val if val
70
71
 
71
72
  resolve(attr.reference)
72
73
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shirinji
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shirinji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Dutey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-15 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -72,7 +72,7 @@ files:
72
72
  homepage: https://github.com/fdutey/shirinji
73
73
  licenses: []
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.2.15
91
- signing_key:
90
+ rubygems_version: 3.0.3.1
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: Dependencies injection made easy
94
94
  test_files: []