canister 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8d69f8befb7b0da9e4d982db5a64988fcc6d540e
4
- data.tar.gz: e4cd5da5bfc6cfad289ede2651b55ccaeb165f8e
2
+ SHA256:
3
+ metadata.gz: 5d114b43d3e9ee866a97c45b52153345d9ce2008360f4510ff6852276a74ed8a
4
+ data.tar.gz: 66fffaf9a4c45c7980c038e8142365eac794ea93d8e7b1627749e3a9e4c77f00
5
5
  SHA512:
6
- metadata.gz: ece48adf544fa81cae520ded5e0ec262090d257ada284449c4b59702a8e20c34c1e4e55c8273f57905be2e8791d4032ac03feb94c22dfe01f06e0ec46b84e775
7
- data.tar.gz: cea1b3678cd466155d63e3ab6bff4b4ea0fd82eeda8e22a0a36a660f9b5e1cf046cd8e3ecdc8f17db32021c0c3752e843d4102cc4c9f99d5f626610c83d3efb7
6
+ metadata.gz: 2a5908fdc9d394850275fcdb1f30f24e6d6dbb5e088cddf74965bacc562191d15c0eec3367b98218b6daa911d564d2f74ce019f29639223ab0e572e3903ffd25
7
+ data.tar.gz: 580c0a3e95ada241f4f8d4d56f14eb5557ee29073810c33b0e7ed42d695ee1ef9aad85e51fde8c5f577ba3f8efde7ba62766104409539e16a8f2bb2503552971
data/.travis.yml CHANGED
@@ -1,6 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.6
5
+ - 2.5
4
6
  - 2.4
5
7
  - 2.3
6
8
 
@@ -11,7 +13,7 @@ branches:
11
13
 
12
14
  env:
13
15
  global:
14
- - CC_TEST_REPORTER_ID=a492448053c934b2a3cfa2f86f3357491d11beda5499db7884ae13859870fd29
16
+ - CC_TEST_REPORTER_ID=65e5bfcf0bfc99d25884678a632843ef1c294493b2581c2cf72b1cebfdc9d9fb
15
17
 
16
18
  before_install: gem install bundler
17
19
 
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Canister
2
2
 
3
3
  [![Build Status](https://travis-ci.org/mlibrary/canister.svg?branch=master)](https://travis-ci.org/mlibrary/canister)
4
- [![Maintainability](https://api.codeclimate.com/v1/badges/590e17334ea92100e297/maintainability)](https://codeclimate.com/github/mlibrary/canister/maintainability)
5
- [![Test Coverage](https://api.codeclimate.com/v1/badges/590e17334ea92100e297/test_coverage)](https://codeclimate.com/github/mlibrary/canister/test_coverage)
6
-
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/1768a558bf69d2f40681/maintainability)](https://codeclimate.com/github/mlibrary/canister/maintainability)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/1768a558bf69d2f40681/test_coverage)](https://codeclimate.com/github/mlibrary/canister/test_coverage)
7
6
 
8
7
  ## Summary
9
8
 
@@ -20,19 +19,25 @@ It provides:
20
19
 
21
20
  ## Why do I need this? Especially in ruby?
22
21
 
23
- Canister was created to make it easier to declare our setup for our application's
22
+ Canister was created to make it easier to declare the setup for an application's
24
23
  production and test environments in a single place, without needing to know
25
24
  when exactly those objects were created.
26
25
 
27
26
  *Canister is not a replacement for
28
27
  dependency injection.* Rather, it is useful when you have designed your objects
29
- to have their dependencies injected. For example, it would be a *mistake* to write
30
- all of your classes such that they except a single parameter called `container`.
28
+ to have their dependencies injected.
29
+
30
+ The domain of your application is not concerned with the design
31
+ patterns you use to implement it; therefore, the domain entities within in it should
32
+ represent the domain, not the patterns.
33
+ For example, it would be a *mistake* to write all of your classes such that they
34
+ accept a single parameter called `container`. `Car.new(container)` is undesirable
35
+ when what your application really calls for is `Car.new(make, model, year)`.
31
36
 
32
37
  For more information on dependency injection and inversion of control containers in
33
38
  ruby, please see
34
39
  [this excellent article](https://gist.github.com/malakai97/b1d3bdf6d80c6f99a875930981243f9d)
35
- by [Blair Anderson](https://github.com/blairanderson) that both sums up the issue
40
+ by [Jim Weirich](https://en.wikipedia.org/wiki/Jim_Weirich) that both sums up the issue
36
41
  and was the inspiration for this gem.
37
42
 
38
43
 
@@ -79,6 +84,8 @@ Standard rules apply.
79
84
 
80
85
  * ruby 2.3.x
81
86
  * ruby 2.4.x
87
+ * ruby 2.5.x
88
+ * ruby 2.6.x
82
89
 
83
90
  As Canister does not rely on any specific runtime environment other than
84
91
  the ruby core, it is compatible with every ruby library and framework.
@@ -88,7 +95,7 @@ the ruby core, it is compatible with every ruby library and framework.
88
95
  * The author and maintainer is [Bryan Hockey](https://github.com/malakai97)
89
96
  * This project was inspired by
90
97
  [this excellent article](https://gist.github.com/malakai97/b1d3bdf6d80c6f99a875930981243f9d)
91
- by [Blair Anderson](https://github.com/blairanderson). (We are not affiliated, so
98
+ by [Jim Weirich](https://en.wikipedia.org/wiki/Jim_Weirich). (We are not affiliated, so
92
99
  don't blame him if this breaks.)
93
100
 
94
101
  ## License
data/canister.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.add_development_dependency "bundler", "~> 1.16"
28
+ spec.add_development_dependency "bundler"
29
29
  spec.add_development_dependency "rake", "~> 10.0"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
31
  spec.add_development_dependency "rubocop"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Canister
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canister
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Hockey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-07 00:00:00.000000000 Z
11
+ date: 2019-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.6.13
124
+ rubygems_version: 3.0.2
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: A simple IoC container for ruby.