rack_injection 0.1.0 → 0.2.0
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 +4 -4
- data/README.md +11 -18
- data/lib/rack_injection.rb +3 -3
- data/rack_injection.gemspec +1 -1
- metadata +1 -2
- data/lib/rack_injection/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04e9109ec58bf6fd91f01748d38c67e0ef573a8
|
4
|
+
data.tar.gz: a8408754bdea64cfc4ba38f31e4ed54f2a3fe5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c131c3fef965bfd96f8bfbff83c1a6c354a9eadc87c8ea47dd66fc354bec07b0d2c368ef2ef49900ea301207c5757376ada2e807394ad06e604c269740a887
|
7
|
+
data.tar.gz: 7a0c5370b44a5c7a6b0902133d02e626111705bd579cc9a4d1fbb5cbcb0e12f3255e7963b25cc925cb1d9b12d075d6035a29886e5b228809cc5e82218c7cc0bb
|
data/README.md
CHANGED
@@ -1,29 +1,22 @@
|
|
1
1
|
# RackInjection
|
2
2
|
|
3
|
-
|
3
|
+
This very simple gem just provides a middleware named RackInjection that
|
4
|
+
allows you to inject arbitrary key-value pairs into the Rack env on every
|
5
|
+
request.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
gem 'rack_injection'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install rack_injection
|
9
|
+
You know how to install gems...
|
18
10
|
|
19
11
|
## Usage
|
20
12
|
|
21
|
-
|
13
|
+
In your config.ru file:
|
14
|
+
```ruby
|
15
|
+
use RackEnvInjector, 'rack.logger' => my_special_logger
|
16
|
+
```
|
17
|
+
Now env['rack.logger'] will refer to `my_special_logger` in every
|
18
|
+
request.
|
22
19
|
|
23
20
|
## Contributing
|
24
21
|
|
25
|
-
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create a new Pull Request
|
22
|
+
If send me a pull request, I promise I'll look at it.
|
data/lib/rack_injection.rb
CHANGED
data/rack_injection.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack_injection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Crosby
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
56
|
- lib/rack_injection.rb
|
57
|
-
- lib/rack_injection/version.rb
|
58
57
|
- rack_injection.gemspec
|
59
58
|
homepage: https://github.com/stevecrozz/rack_injection
|
60
59
|
licenses:
|