dry-container 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +32 -0
- data/.travis.yml +1 -2
- data/Gemfile +5 -0
- data/README.md +13 -6
- data/lib/dry/container/mixin.rb +5 -4
- data/lib/dry/container/version.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e247b38c6467b612e9f91370863e0f480575e61
|
4
|
+
data.tar.gz: 7ae5ba11fa02be3f61ad865027251996e8ba5609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b056febb9992fb1ce6e13fe0208962d6da2ce27ab55fdbb43549fb0aba2dc2e0d1d321c810793b6b13a56099dda6baf5a678919d2533286cf8c70b22fbaaeaad
|
7
|
+
data.tar.gz: 903cc09aa85365a8d246e236b5f68990f45a1c529840c056efa9e66dc8ec56e64833c177136e2082b50cd39a73bd41e56ae8a73c340808b055b7cbe92cc89fe5
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
engines:
|
2
|
+
rubocop:
|
3
|
+
enabled: true
|
4
|
+
checks:
|
5
|
+
Rubocop/Metrics/LineLength:
|
6
|
+
enabled: true
|
7
|
+
max: 120
|
8
|
+
Rubocop/Style/Documentation:
|
9
|
+
enabled: false
|
10
|
+
Rubocop/Lint/HandleExceptions:
|
11
|
+
enabled: true
|
12
|
+
exclude:
|
13
|
+
- rakelib/*.rake
|
14
|
+
Rubocop/Lint/NestedMethodDefinition:
|
15
|
+
enabled: true
|
16
|
+
exclude:
|
17
|
+
- lib/dry/container/mixin.rb
|
18
|
+
Rubocop/Metrics/MethodLength:
|
19
|
+
enabled: true
|
20
|
+
exclude:
|
21
|
+
- lib/dry/container/mixin.rb
|
22
|
+
Rubocop/Style/FileName:
|
23
|
+
enabled: true
|
24
|
+
exclude:
|
25
|
+
- lib/dry-container.rb
|
26
|
+
|
27
|
+
ratings:
|
28
|
+
paths:
|
29
|
+
- lib/**/*.rb
|
30
|
+
exclude_paths:
|
31
|
+
- spec/**/*
|
32
|
+
- examples/**/*
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
|
1
|
+
[gitter]: https://gitter.im/dry-rb/chat
|
2
|
+
[gem]: https://rubygems.org/gems/dry-container
|
3
|
+
[travis]: https://travis-ci.org/dry-rb/dry-container
|
4
|
+
[code_climate]: https://codeclimate.com/github/dry-rb/dry-container
|
5
|
+
[inch]: http://inch-ci.org/github/dry-rb/dry-container
|
6
|
+
|
7
|
+
# dry-container [![Join the Gitter chat](https://badges.gitter.im/Join%20Chat.svg)][gitter]
|
8
|
+
|
9
|
+
[![Gem Version](https://img.shields.io/gem/v/dry-container.svg)][gem]
|
10
|
+
[![Build Status](https://img.shields.io/travis/dry-rb/dry-container.svg)][travis]
|
11
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/dry-rb/dry-container.svg)][code_climate]
|
12
|
+
[![Test Coverage](https://img.shields.io/codeclimate/coverage/github/dry-rb/dry-container.svg)][code_climate]
|
13
|
+
[![API Documentation Coverage](http://inch-ci.org/github/dry-rb/dry-container.svg)][inch]
|
2
14
|
|
3
|
-
<a href="https://rubygems.org/gems/dry-container" target="_blank">![Gem Version](https://badge.fury.io/rb/dry-container.svg)</a>
|
4
|
-
<a href="https://travis-ci.org/dry-rb/dry-container" target="_blank">![Build Status](https://travis-ci.org/dry-rb/dry-container.svg?branch=master)</a>
|
5
|
-
<a href="https://gemnasium.com/dry-rb/dry-container" target="_blank">![Dependency Status](https://gemnasium.com/dry-rb/dry-container.svg)</a>
|
6
|
-
<a href="https://codeclimate.com/github/dry-rb/dry-container" target="_blank">![Code Climate](https://codeclimate.com/github/dry-rb/dry-container/badges/gpa.svg)</a>
|
7
|
-
<a href="http://inch-ci.org/github/dry-rb/dry-container" target="_blank">![Documentation Status](http://inch-ci.org/github/dry-rb/dry-container.svg?branch=master&style=flat)</a>
|
8
15
|
|
9
16
|
A simple, configurable container implemented in Ruby
|
10
17
|
|
data/lib/dry/container/mixin.rb
CHANGED
@@ -26,8 +26,6 @@ module Dry
|
|
26
26
|
module Mixin
|
27
27
|
# @private
|
28
28
|
def self.extended(base)
|
29
|
-
attr_reader :_container
|
30
|
-
|
31
29
|
base.class_eval do
|
32
30
|
extend ::Dry::Configurable
|
33
31
|
|
@@ -53,8 +51,6 @@ module Dry
|
|
53
51
|
setting :resolver, ::Dry::Container::Resolver.new
|
54
52
|
setting :namespace_separator, '.'
|
55
53
|
|
56
|
-
attr_reader :_container
|
57
|
-
|
58
54
|
def initialize(*args, &block)
|
59
55
|
@_container = ::Concurrent::Hash.new
|
60
56
|
super(*args, &block)
|
@@ -185,6 +181,11 @@ module Dry
|
|
185
181
|
|
186
182
|
self
|
187
183
|
end
|
184
|
+
|
185
|
+
# @private no, really
|
186
|
+
def _container
|
187
|
+
@_container
|
188
|
+
end
|
188
189
|
end
|
189
190
|
end
|
190
191
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Holland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -93,6 +93,7 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
+
- ".codeclimate.yml"
|
96
97
|
- ".gitignore"
|
97
98
|
- ".rspec"
|
98
99
|
- ".rubocop.yml"
|