dry-container 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 8d4f9e38fad557846381e381d476b3d77b2a1526
4
- data.tar.gz: 047627971b6952d362239444bca9bf8da6b5dcf9
3
+ metadata.gz: 3e247b38c6467b612e9f91370863e0f480575e61
4
+ data.tar.gz: 7ae5ba11fa02be3f61ad865027251996e8ba5609
5
5
  SHA512:
6
- metadata.gz: 2baba42774a6c6baf3ea1a040ae74d1f0931789b00cfce9cfa288702a70b25bc17e344b45cd52a8d8c6269d6a5cb3f1a6735fe841e91e097a29b692e3a1e76bf
7
- data.tar.gz: 640c1be2570fe6fbdda1cf380cf76071d3b4ba1b9bb5d5b9ca5af45eed8e0c310eafb991178c6ece3913734ad8e1cc2bd911f8b4fad3337b60e31b9d0386f494
6
+ metadata.gz: b056febb9992fb1ce6e13fe0208962d6da2ce27ab55fdbb43549fb0aba2dc2e0d1d321c810793b6b13a56099dda6baf5a678919d2533286cf8c70b22fbaaeaad
7
+ data.tar.gz: 903cc09aa85365a8d246e236b5f68990f45a1c529840c056efa9e66dc8ec56e64833c177136e2082b50cd39a73bd41e56ae8a73c340808b055b7cbe92cc89fe5
@@ -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/**/*
@@ -3,8 +3,7 @@ sudo: false
3
3
  cache: bundler
4
4
  bundler_args: --without console
5
5
  script:
6
- - bundle exec rspec
7
- - bundle exec rubocop
6
+ - bundle exec rake spec
8
7
  rvm:
9
8
  - 2.0
10
9
  - 2.1
data/Gemfile CHANGED
@@ -2,9 +2,14 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ group :test do
6
+ gem 'codeclimate-test-reporter', platform: :rbx
7
+ end
8
+
5
9
  group :tools do
6
10
  gem 'rubocop'
7
11
  gem 'guard'
8
12
  gem 'guard-rspec'
9
13
  gem 'guard-rubocop'
14
+ gem 'listen', '3.0.6'
10
15
  end
data/README.md CHANGED
@@ -1,10 +1,17 @@
1
- # dry-container <a href="https://gitter.im/dry-rb/chat" target="_blank">![Join the chat at https://gitter.im/dry-rb/chat](https://badges.gitter.im/Join%20Chat.svg)</a>
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
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Dry
2
2
  class Container
3
3
  # @api public
4
- VERSION = '0.3.1'.freeze
4
+ VERSION = '0.3.2'.freeze
5
5
  end
6
6
  end
@@ -6,3 +6,8 @@ require 'dry/container/stub'
6
6
  Dir[Pathname(__FILE__).dirname.join('support/**/*.rb').to_s].each do |file|
7
7
  require file
8
8
  end
9
+
10
+ if RUBY_ENGINE == 'rbx'
11
+ require 'codeclimate-test-reporter'
12
+ CodeClimate::TestReporter.start
13
+ end
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.1
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-03-25 00:00:00.000000000 Z
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"