pinball 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +0 -0
- data/.gitignore +0 -0
- data/.ruby-gemset +0 -0
- data/.ruby-version +0 -0
- data/.travis.yml +6 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/pinball.rb +0 -0
- data/lib/pinball/class.rb +0 -0
- data/lib/pinball/container.rb +0 -0
- data/lib/pinball/container_item.rb +0 -0
- data/lib/pinball/version.rb +1 -1
- data/pinball.gemspec +4 -4
- data/spec/lib/pinball/class_spec.rb +2 -2
- data/spec/lib/pinball/container_spec.rb +3 -3
- data/spec/spec_helper.rb +0 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7f3ffd8eaa6849d496aebe19959eec042d7483
|
4
|
+
data.tar.gz: b522e4b9e69f57cd330f68c8c73c1643e314226c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec4a1bcd71d9fa842aadde3a9e262377a5683072a0fb5c31e832128ba8dfbc87bba4645b858f65213385dbe15b1f2a18301ea8bf019a8ff07e649df88518fa9
|
7
|
+
data.tar.gz: 4661efa9eee81891d27b3fe00388649936aef118566b433a27aeda75803aa3b789e91d64ad8771b40faa099eb3badd9f1f1979b2ddd9e8704799ca5a3f7ad9ac
|
data/.coveralls.yml
CHANGED
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/.ruby-gemset
CHANGED
File without changes
|
data/.ruby-version
CHANGED
File without changes
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/lib/pinball.rb
CHANGED
File without changes
|
data/lib/pinball/class.rb
CHANGED
File without changes
|
data/lib/pinball/container.rb
CHANGED
File without changes
|
File without changes
|
data/lib/pinball/version.rb
CHANGED
data/pinball.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = `git ls-files spec`.split($/)
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.6'
|
22
|
-
spec.add_development_dependency 'rake', '~> 10.
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.6', '> 1.6'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
23
23
|
|
24
|
-
spec.add_development_dependency 'coveralls', '~> 0.
|
25
|
-
spec.add_development_dependency 'rspec', '~>
|
24
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.3'
|
26
26
|
end
|
@@ -17,7 +17,7 @@ describe Class do
|
|
17
17
|
|
18
18
|
describe '::inject' do
|
19
19
|
it 'responds to ::inject method' do
|
20
|
-
expect(foo.respond_to?(:inject)).to
|
20
|
+
expect(foo.respond_to?(:inject)).to be_truthy
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'creates @dependencies array' do
|
@@ -57,7 +57,7 @@ describe Class do
|
|
57
57
|
describe '::class_inject' do
|
58
58
|
it 'defines new method' do
|
59
59
|
foo.class_inject :baz
|
60
|
-
expect(foo.respond_to?(:baz)).to
|
60
|
+
expect(foo.respond_to?(:baz)).to be_truthy
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'injects valid dependency' do
|
@@ -108,9 +108,9 @@ describe Pinball::Container do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
it 'automatically injects dependencies to class' do
|
111
|
-
expect(foo.new.respond_to?(:baz)).to
|
112
|
-
expect(foo.new.respond_to?(:bar)).to
|
113
|
-
expect(foo.new.respond_to?(:spam)).to
|
111
|
+
expect(foo.new.respond_to?(:baz)).to be_truthy
|
112
|
+
expect(foo.new.respond_to?(:bar)).to be_truthy
|
113
|
+
expect(foo.new.respond_to?(:spam)).to be_truthy
|
114
114
|
end
|
115
115
|
|
116
116
|
it 'injects valid dependencies' do
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Sinyavsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
|
+
- - ">"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.6'
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,48 +27,51 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.6'
|
30
|
+
- - ">"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.6'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10.
|
39
|
+
version: '10.4'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '10.
|
46
|
+
version: '10.4'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: coveralls
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
53
|
+
version: '0.8'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
60
|
+
version: '0.8'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rspec
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '3.3'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
74
|
+
version: '3.3'
|
69
75
|
description: Simple and stupid IOC container and dependency injection tool for ruby
|
70
76
|
email:
|
71
77
|
- zhulik.gleb@gmail.com
|
@@ -112,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
118
|
version: '0'
|
113
119
|
requirements: []
|
114
120
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.4.8
|
116
122
|
signing_key:
|
117
123
|
specification_version: 4
|
118
124
|
summary: Simple dependency injection for ruby
|