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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69f274970332a9e8b996853befecaee2a5d386c4
4
- data.tar.gz: 6f4274479fb7fbe02d085e9e468960bb078f65b7
3
+ metadata.gz: bc9ca6f4009322f99e3081bc3a82d5718adc31a6
4
+ data.tar.gz: c9dcae88e1a3c6a33a223863c8aa0b203a21c58d
5
5
  SHA512:
6
- metadata.gz: 29a50dfea8185c607d62cc677516eb4109b762dc190cb41c070a0a30a8919691148e93b4b3c68e508b94623754a9b26a127553f7a0cca88547340dc9146f9636
7
- data.tar.gz: 2296664bee1116d4b0a201a93f0b88d4c37b811da374c540588cfb309a297838bef4a91ca2c7c9a9b9740ba5c29fdf35469bffa530a5e311c2a36759e4eb3e6d
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
@@ -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(&it.respond_to?(:implement)).last
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
@@ -1,3 +1,3 @@
1
1
  module Modware
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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
@@ -1,3 +1,5 @@
1
+ require 'its-it'
2
+
1
3
  module Factory
2
4
  def self.middleware(n=nil, before: true, after: true, around: true, implement: true, other: nil)
3
5
 
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.2
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: 2015-03-26 00:00:00.000000000 Z
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.4.5
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