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 +5 -5
- data/.travis.yml +3 -1
- data/README.md +15 -8
- data/canister.gemspec +1 -1
- data/lib/canister/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5d114b43d3e9ee866a97c45b52153345d9ce2008360f4510ff6852276a74ed8a
|
4
|
+
data.tar.gz: 66fffaf9a4c45c7980c038e8142365eac794ea93d8e7b1627749e3a9e4c77f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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=
|
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/
|
5
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/
|
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
|
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.
|
30
|
-
|
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 [
|
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 [
|
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"
|
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"
|
data/lib/canister/version.rb
CHANGED
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.
|
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:
|
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: '
|
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: '
|
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
|
-
|
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.
|