strudel 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +8 -11
- data/lib/strudel/version.rb +5 -1
- data/lib/strudel.rb +15 -13
- metadata +11 -92
- data/.gitignore +0 -6
- data/.rspec +0 -2
- data/.rubocop.yml +0 -21
- data/.travis.yml +0 -37
- data/Gemfile +0 -6
- data/Rakefile +0 -13
- data/bin/check-version +0 -6
- data/bin/rake +0 -18
- data/bin/rspec +0 -18
- data/bin/rubocop +0 -18
- data/bin/yard +0 -18
- data/bin/yardoc +0 -18
- data/bin/yri +0 -18
- data/strudel.gemspec +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f72dc8360ab8b2426177e2632f489493f40f11ada7d5c0d07687352b8f0d4b
|
4
|
+
data.tar.gz: df5170a8bf84b727cd13f4f25b3c73a9eba520cf789420752c2b091ff54022df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32f6acfb31a208a35f17fdcc852d783cab8bc79d9d9476e66be8d8deb88faf223d2b3b494beaaae7a3ca3fb609a573a425fa4c19cccd11bd5f9f163b95194c5e
|
7
|
+
data.tar.gz: eb1501d262cab00fe9a38f25fe2df686a161cd89dc1ec978c9f2b550ae3be998bc54f71273ce6a38ab2ef0f66ba186a7b2cf7532e9593237c09ecbed9c95fbda
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## Release v1.0.2
|
2
|
+
|
3
|
+
* Remove rake development dependency
|
4
|
+
* Add Strudel.version method
|
5
|
+
* Add support for Ruby 2.7
|
6
|
+
|
7
|
+
## Release v1.0.0
|
8
|
+
|
9
|
+
Update dependencies and first stable release
|
10
|
+
|
11
|
+
## Release v0.1.3
|
12
|
+
|
13
|
+
Add support for Ruby 2.3
|
14
|
+
|
15
|
+
## Release v0.1.2
|
16
|
+
|
17
|
+
Add versions to all dev dependencies
|
18
|
+
|
19
|
+
## Release v0.1.1
|
20
|
+
|
21
|
+
Clean up development dependencies
|
22
|
+
|
23
|
+
## Release v0.1.0
|
24
|
+
|
25
|
+
Initial release
|
data/README.md
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
# Strudel
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/strudel.svg)](https://badge.fury.io/rb/strudel)
|
4
|
-
[![
|
5
|
-
[![Code
|
6
|
-
[![
|
7
|
-
[![
|
4
|
+
[![CI](https://github.com/justinhoward/strudel/workflows/CI/badge.svg)](https://github.com/justinhoward/strudel/actions?query=workflow%3ACI+branch%3Amaster)
|
5
|
+
[![Code Quality](https://app.codacy.com/project/badge/Grade/79b0e9d0f90c44f2baca0ea4f076ae3a)](https://www.codacy.com/gh/justinhoward/strudel/dashboard?utm_source=github.com&utm_medium=referral&utm_content=justinhoward/strudel&utm_campaign=Badge_Grade)
|
6
|
+
[![Code Coverage](https://codecov.io/github/justinhoward/strudel/graph/badge.svg?token=gDRBH8xZ8e)](https://codecov.io/github/justinhoward/strudel)
|
7
|
+
[![Online docs](https://img.shields.io/badge/docs-✓-green.svg)](https://www.rubydoc.info/github/justinhoward/strudel)
|
8
8
|
|
9
9
|
Strudel is a dependency injection container for Ruby. It's a way to organize
|
10
|
-
your Ruby application to take advantage of the [dependency inversion
|
11
|
-
principle][ioc].
|
10
|
+
your Ruby application to take advantage of the [dependency inversion principle][ioc].
|
12
11
|
|
13
12
|
## Why another DI framework?
|
14
13
|
|
15
14
|
Strudel is not a framework. It's one class that serves as a container only. No
|
16
|
-
auto-injection. That means no polluting your classes with
|
15
|
+
auto-injection. That means no polluting your classes with injection
|
17
16
|
metaprogramming. You have full, explicit control over how your services
|
18
17
|
are constructed.
|
19
18
|
|
@@ -26,9 +25,8 @@ dependencies in one place.
|
|
26
25
|
|
27
26
|
You may have read [this post][dhh] by David Heineimer Hansson. However he
|
28
27
|
didn't address the primary benefit of DI, explicitly defining dependencies.
|
29
|
-
I also happen to think that patching code at runtime for testing is an
|
30
|
-
anti-pattern
|
31
|
-
[great post][piotr] by Piotr Solnica.
|
28
|
+
I also happen to think that patching code at runtime for testing is an
|
29
|
+
anti-pattern worth avoiding.
|
32
30
|
|
33
31
|
## Installation
|
34
32
|
|
@@ -112,7 +110,6 @@ License][mit].
|
|
112
110
|
|
113
111
|
[ioc]: https://en.wikipedia.org/wiki/Dependency_inversion_principle
|
114
112
|
[dhh]: http://david.heinemeierhansson.com/2012/dependency-injection-is-not-a-virtue.html
|
115
|
-
[piotr]: http://solnic.eu/2013/12/17/the-world-needs-another-post-about-dependency-injection-in-ruby.html
|
116
113
|
[papaya]: https://github.com/justinhoward/papaya
|
117
114
|
[justin]: https://github.com/justinhoward
|
118
115
|
[pimple]: http://pimple.sensiolabs.org
|
data/lib/strudel/version.rb
CHANGED
data/lib/strudel.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'strudel/version'
|
4
|
+
|
3
5
|
# Strudel
|
4
6
|
#
|
5
7
|
# A tiny dependency injection container
|
@@ -35,7 +37,7 @@ class Strudel
|
|
35
37
|
#
|
36
38
|
# If `service` is a Proc, its return value will be treated as a
|
37
39
|
# singleton service meaning it will be initialized the first time it is
|
38
|
-
# requested and its
|
40
|
+
# requested and its value will be cached for subsequent requests.
|
39
41
|
#
|
40
42
|
# Use the `set` method to allow using a block instead of a Proc argument.
|
41
43
|
#
|
@@ -57,8 +59,8 @@ class Strudel
|
|
57
59
|
# service
|
58
60
|
# @yield [self]
|
59
61
|
# @return [self]
|
60
|
-
def set(key, service = nil)
|
61
|
-
create(key, service ||
|
62
|
+
def set(key, service = nil, &block)
|
63
|
+
create(key, service || block, @procs)
|
62
64
|
end
|
63
65
|
|
64
66
|
# Set a factory service by key and value
|
@@ -73,8 +75,8 @@ class Strudel
|
|
73
75
|
# @param [Proc, block] factory The service factory Proc or static service
|
74
76
|
# @yield [self]
|
75
77
|
# @return [self]
|
76
|
-
def factory(key, factory = nil)
|
77
|
-
create(key, factory ||
|
78
|
+
def factory(key, factory = nil, &block)
|
79
|
+
create(key, factory || block, @factories)
|
78
80
|
end
|
79
81
|
|
80
82
|
# Set a protected service by name and value
|
@@ -89,8 +91,8 @@ class Strudel
|
|
89
91
|
# @param [Proc, value, nil] service The service function.
|
90
92
|
# @yield [self]
|
91
93
|
# @return [self]
|
92
|
-
def protect(key, service = nil)
|
93
|
-
create(key, service ||
|
94
|
+
def protect(key, service = nil, &block)
|
95
|
+
create(key, service || block)
|
94
96
|
end
|
95
97
|
|
96
98
|
# Extends an existing service and overrides it.
|
@@ -116,8 +118,8 @@ class Strudel
|
|
116
118
|
# @param [Proc, value, nil] extender
|
117
119
|
# @yield [old_value, self]
|
118
120
|
# @return [self]
|
119
|
-
def extend(key, extender = nil)
|
120
|
-
extender ||=
|
121
|
+
def extend(key, extender = nil, &block)
|
122
|
+
extender ||= block
|
121
123
|
return set(key, extender) unless extender.is_a?(Proc) && @services.key?(key)
|
122
124
|
|
123
125
|
extended = @services[key]
|
@@ -136,10 +138,10 @@ class Strudel
|
|
136
138
|
#
|
137
139
|
# @yield [key] Gives the key
|
138
140
|
# @return [Enumerable, nil]
|
139
|
-
def each
|
140
|
-
return @services.each_key unless
|
141
|
+
def each(&block)
|
142
|
+
return @services.each_key unless block
|
141
143
|
|
142
|
-
@services.each_key
|
144
|
+
@services.each_key(&block)
|
143
145
|
end
|
144
146
|
|
145
147
|
# Checks if a service for `key` exists.
|
@@ -155,7 +157,7 @@ class Strudel
|
|
155
157
|
#
|
156
158
|
# @param [key] key The service key
|
157
159
|
# @param [value] service The service value or factory
|
158
|
-
# @param [Hash] registry If the service is a proc, the
|
160
|
+
# @param [Hash] registry If the service is a proc, the registry
|
159
161
|
def create(key, service, registry = nil)
|
160
162
|
[@procs, @factories].each { |reg| reg.delete key }
|
161
163
|
registry[key] = true if registry && service.is_a?(Proc)
|
metadata
CHANGED
@@ -1,99 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strudel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '10.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '10.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: redcarpet
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.4'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.4'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: rspec
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
44
16
|
requirements:
|
45
17
|
- - "~>"
|
46
18
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.4'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.61'
|
19
|
+
version: '3.12'
|
62
20
|
type: :development
|
63
21
|
prerelease: false
|
64
22
|
version_requirements: !ruby/object:Gem::Requirement
|
65
23
|
requirements:
|
66
24
|
- - "~>"
|
67
25
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.11'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.11'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: yard
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.9.11
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.9.11
|
26
|
+
version: '3.12'
|
97
27
|
description:
|
98
28
|
email:
|
99
29
|
- jmhoward0@gmail.com
|
@@ -101,29 +31,19 @@ executables: []
|
|
101
31
|
extensions: []
|
102
32
|
extra_rdoc_files: []
|
103
33
|
files:
|
104
|
-
- ".gitignore"
|
105
|
-
- ".rspec"
|
106
|
-
- ".rubocop.yml"
|
107
|
-
- ".travis.yml"
|
108
34
|
- ".yardopts"
|
109
|
-
-
|
35
|
+
- CHANGELOG.md
|
110
36
|
- LICENSE.txt
|
111
37
|
- README.md
|
112
|
-
- Rakefile
|
113
|
-
- bin/check-version
|
114
|
-
- bin/rake
|
115
|
-
- bin/rspec
|
116
|
-
- bin/rubocop
|
117
|
-
- bin/yard
|
118
|
-
- bin/yardoc
|
119
|
-
- bin/yri
|
120
38
|
- lib/strudel.rb
|
121
39
|
- lib/strudel/version.rb
|
122
|
-
- strudel.gemspec
|
123
40
|
homepage: https://github.com/justinhoward/strudel
|
124
41
|
licenses:
|
125
42
|
- MIT
|
126
|
-
metadata:
|
43
|
+
metadata:
|
44
|
+
rubygems_mfa_required: 'true'
|
45
|
+
changelog_uri: https://github.com/justinhoward/strudel/blob/master/CHANGELOG.md
|
46
|
+
documentation_uri: https://www.rubydoc.info/gems/strudel/1.0.3
|
127
47
|
post_install_message:
|
128
48
|
rdoc_options: []
|
129
49
|
require_paths:
|
@@ -132,15 +52,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
52
|
requirements:
|
133
53
|
- - ">="
|
134
54
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
55
|
+
version: '2.3'
|
136
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
57
|
requirements:
|
138
58
|
- - ">="
|
139
59
|
- !ruby/object:Gem::Version
|
140
60
|
version: '0'
|
141
61
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.7
|
62
|
+
rubygems_version: 3.3.5
|
144
63
|
signing_key:
|
145
64
|
specification_version: 4
|
146
65
|
summary: A tiny dependency injection container
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
AllCops:
|
3
|
-
TargetRubyVersion: 2.3
|
4
|
-
|
5
|
-
Layout/EndAlignment:
|
6
|
-
EnforcedStyleAlignWith: variable
|
7
|
-
|
8
|
-
Layout/AlignParameters:
|
9
|
-
EnforcedStyle: with_fixed_indentation
|
10
|
-
|
11
|
-
Layout/IndentArray:
|
12
|
-
EnforcedStyle: consistent
|
13
|
-
|
14
|
-
Layout/IndentHash:
|
15
|
-
EnforcedStyle: consistent
|
16
|
-
|
17
|
-
Layout/MultilineMethodCallIndentation:
|
18
|
-
EnforcedStyle: indented
|
19
|
-
|
20
|
-
Lint/MissingCopEnableDirective:
|
21
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3
|
5
|
-
- 2.4
|
6
|
-
- 2.5
|
7
|
-
env:
|
8
|
-
global:
|
9
|
-
- COVERAGE=1
|
10
|
-
- secure: 'O3/v5fgksUZyzVDj/I0nLOwFba9UWXjIiqXguE0gMb1t2qofeI/cEJ/2RWnUpvxuF8mbuPwJG2rU3OLK+2q2pwWpMnVbScc0G8l1mVfG6IlLdkuDWWxjtieKvAbRvcfPLaai0u4V/equs1L5izOreNhc2bp0a7+0ZMHx5SgKxg5OjglcoMIIZgSixpkqITZbPmWDFYSj812lLed1MkP6zkpUsNlxOHrAhw6e3uEPTYwCPgqr2Q08ghgxZgvJP2qbD37Ei1s/fXKmsT6nsXo6y1/mb6jnIjoPkPtykRb3sp1xfFRQMER7jJy4e6ZFCz6nIbNX+7LBzE/5xPywViZ34NrzAnNaLka15w4OxVVQM9kp6mYjZ7FwtZVY6vri40DhbrtCmWOjftRsDP42gkQB51VCMYXTYOkPaeTIJeU4kkrihc5LRDCL8ZqssdW26bLw7NJmlCgedzJV1Bzfz7VfbNi2NRp4wRB9C7vtRK4+YvqFmCu+zu8hyEcE3aqwaYBZQaERZkb6TPgifZor0Kb/uS9y31FxbYlquaLukyN298kWktktP5F+y670066OPNgAoI65Clu7PI3tE9ekUBcK1lO4b25PrVWnOz2WKGVpEhTewZ+nU3Or1oKoFTPObAdbynP080CPx1WNP+CDRphyq3yJfSb7lhw98aGKVeRVVho='
|
11
|
-
|
12
|
-
before_script:
|
13
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
14
|
-
- chmod +x ./cc-test-reporter
|
15
|
-
- ./cc-test-reporter before-build
|
16
|
-
|
17
|
-
script:
|
18
|
-
- bin/rubocop
|
19
|
-
- bin/rspec --format doc
|
20
|
-
|
21
|
-
after_script:
|
22
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
23
|
-
|
24
|
-
jobs:
|
25
|
-
include:
|
26
|
-
- stage: release
|
27
|
-
rvm: 2.3
|
28
|
-
script: skip
|
29
|
-
deploy:
|
30
|
-
provider: rubygems
|
31
|
-
api_key:
|
32
|
-
secure: 'tcEf3gBUUPOVkDFjvKhBX44cYghbFLXA5BEtmBPwqDXbWaoMVSDcsBRCddLLJts2k1tmYyGVSLP7FR8zE7tfJy40iqSqQRTtdB58SxAoMdU02+x0D8uCgMwdX7qLJePoxW4WVryMo8bql7N4ydtXwlV9POJiDKK47R21G7KvIplMGvav0/SYFFfI21BzCc6Pt8X6a0EuJXJNvqFhJAEvyp+7T8M83owIXwEIsarVc3VTTmefjAJ6zAvpLlRKYU63qN1hOqdzDfGhynNAYhIgstpDwmbwSqxkn4vxmn2OQSXwCeajLiB+nDMpevPGgE9KoeKKGWmv/N0qsgLohR9HziCBl1rolhjfYKshgN18iBBOW1iKBr0sb3EeWU2EDcnDGRvCx6vqD6LTj2TkFI0/nQYuIdPK8eWogpH3hpDwQWcC970bFDWrPFnuQ/jy2wS43y+Q8eAY3cbi07qzc5dMtA/YHkl/PpXM/VjPSWz95clcKc9tSgZN6Vy9dEfYhsTbtbY32SSBw+54N9g1dBaLgeA0T5J/HfNRRldLsZmoolNpeQ11ZLD/afL0Va4rR+qgKG3Hx8Yglp34NzZhSZ0wkrw/RPE2cSCBvknwL/thw+9PKqbSiao9GGFadVJt5KajIP501Bn8oBzoHqU9OuGG8i95MNLZSktnemMbYIgBsDc='
|
33
|
-
gem: uncsv
|
34
|
-
on:
|
35
|
-
tags: true
|
36
|
-
condition: bin/check-version
|
37
|
-
repo: justinhoward/strudel
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
require 'yard'
|
7
|
-
|
8
|
-
RSpec::Core::RakeTask.new(:spec)
|
9
|
-
RuboCop::RakeTask.new
|
10
|
-
YARD::Rake::YardocTask.new
|
11
|
-
|
12
|
-
task default: :check
|
13
|
-
task check: %i[rubocop spec]
|
data/bin/check-version
DELETED
data/bin/rake
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rake' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('rake', 'rake')
|
data/bin/rspec
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rspec' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('rspec-core', 'rspec')
|
data/bin/rubocop
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'rubocop' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('rubocop', 'rubocop')
|
data/bin/yard
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'yard' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('yard', 'yard')
|
data/bin/yardoc
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'yardoc' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('yard', 'yardoc')
|
data/bin/yri
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'yri' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
require 'rubygems'
|
16
|
-
require 'bundler/setup'
|
17
|
-
|
18
|
-
load Gem.bin_path('yard', 'yri')
|
data/strudel.gemspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'strudel/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'strudel'
|
9
|
-
spec.version = Strudel::VERSION
|
10
|
-
spec.authors = ['Justin Howard']
|
11
|
-
spec.email = ['jmhoward0@gmail.com']
|
12
|
-
|
13
|
-
spec.summary = 'A tiny dependency injection container'
|
14
|
-
spec.homepage = 'https://github.com/justinhoward/strudel'
|
15
|
-
spec.license = 'MIT'
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(spec)/})
|
19
|
-
end
|
20
|
-
spec.require_paths = ['lib']
|
21
|
-
|
22
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
23
|
-
spec.add_development_dependency 'redcarpet', '~> 3.4'
|
24
|
-
spec.add_development_dependency 'rspec', '~> 3.4'
|
25
|
-
spec.add_development_dependency 'rubocop', '~> 0.61'
|
26
|
-
spec.add_development_dependency 'simplecov', '~> 0.11'
|
27
|
-
spec.add_development_dependency 'yard', '>= 0.9.11'
|
28
|
-
end
|