modware 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/modware/stack.rb +1 -2
- data/lib/modware/version.rb +1 -1
- data/modware.gemspec +1 -1
- data/spec/support/factory.rb +2 -0
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc9ca6f4009322f99e3081bc3a82d5718adc31a6
|
4
|
+
data.tar.gz: c9dcae88e1a3c6a33a223863c8aa0b203a21c58d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a013edf5b514ad155fa1b706eae75f27381c1696ef9692592a4d747ce445b9a4792841e200c7a4a9f8dd504a4e74e480253029d74798a6f1754aeb6d09866b5
|
7
|
+
data.tar.gz: 1e48bddccf6db529eed0485cc2d01a8b07d80bcb5c19a711a617b65f66b15dd1cd287c1d98f86aa5091617aba7cce3efbbc4bb80293d1e5078979724596d332c
|
data/README.md
CHANGED
@@ -132,6 +132,7 @@ The [middleware](https://rubygems.org/gems/middleware) gem works well, following
|
|
132
132
|
|
133
133
|
## Change Log
|
134
134
|
|
135
|
+
* 0.1.3 - Remove its-it dependency :( #2
|
135
136
|
* 0.1.2 - More thread safety in Stack#start
|
136
137
|
* 0.1.1 - Thread safety in Stack#start
|
137
138
|
* 0.1.0 - Initial release
|
data/lib/modware/stack.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'its-it'
|
2
1
|
require 'key_struct'
|
3
2
|
|
4
3
|
module Modware
|
@@ -49,7 +48,7 @@ module Modware
|
|
49
48
|
end
|
50
49
|
|
51
50
|
def call_implementation(env, base_implementation)
|
52
|
-
if middleware = @middlewares.select
|
51
|
+
if middleware = @middlewares.select { |mw| mw.respond_to?(:implement) }.last
|
53
52
|
middleware.implement(env)
|
54
53
|
elsif base_implementation
|
55
54
|
base_implementation.call env
|
data/lib/modware/version.rb
CHANGED
data/modware.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.required_ruby_version = ">= 2.1.0"
|
21
21
|
spec.add_dependency "key_struct", "~> 0.4"
|
22
|
-
spec.add_dependency "its-it"
|
23
22
|
|
24
23
|
spec.add_development_dependency 'coveralls'
|
25
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
@@ -28,4 +27,5 @@ Gem::Specification.new do |spec|
|
|
28
27
|
spec.add_development_dependency "rspec-given"
|
29
28
|
spec.add_development_dependency "simplecov"
|
30
29
|
spec.add_development_dependency "simplecov-gem-profile"
|
30
|
+
spec.add_development_dependency "its-it"
|
31
31
|
end
|
data/spec/support/factory.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: key_struct
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.4'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: its-it
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: coveralls
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +122,20 @@ dependencies:
|
|
136
122
|
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: its-it
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
139
|
description:
|
140
140
|
email:
|
141
141
|
- ronen@barzel.org
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.
|
182
|
+
rubygems_version: 2.5.1
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: A middleware library, featuring a simple interface and "callback" style semantics
|