exvo_warez 0.2.30 → 0.2.31

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,16 +1,7 @@
1
- GIT
2
- remote: git://github.com/seku/rack-useragent.git
3
- revision: 1740099e78b67599c414f305a260d0eeb63f5b21
4
- specs:
5
- rack-useragent-filter (0.1.10)
6
- rack (>= 0.9.1)
7
- tilt (>= 1.0.0)
8
- useragent (>= 0.1.5)
9
-
10
1
  PATH
11
2
  remote: .
12
3
  specs:
13
- exvo_warez (0.3.1)
4
+ exvo_warez (0.2.30)
14
5
  exvo-auth (> 0.9.6)
15
6
  rack-useragent-filter (>= 0.1.9)
16
7
  rack_referral (= 0.0.1)
@@ -34,7 +25,7 @@ GEM
34
25
  builder (~> 2.1.2)
35
26
  i18n (~> 0.4)
36
27
  activesupport (3.0.5)
37
- addressable (2.2.4)
28
+ addressable (2.2.5)
38
29
  builder (2.1.2)
39
30
  crack (0.1.8)
40
31
  erubis (2.6.6)
@@ -69,9 +60,13 @@ GEM
69
60
  rack (>= 1.0.0)
70
61
  rack-test (0.5.7)
71
62
  rack (>= 1.0)
63
+ rack-useragent-filter (0.2.0)
64
+ rack (>= 0.9.1)
65
+ tilt (>= 1.0.0)
66
+ useragent (>= 0.1.5)
72
67
  rack_referral (0.0.1)
73
- tilt (1.2.2)
74
- tzinfo (0.3.25)
68
+ tilt (1.3)
69
+ tzinfo (0.3.27)
75
70
  useragent (0.3.1)
76
71
 
77
72
  PLATFORMS
@@ -79,4 +74,3 @@ PLATFORMS
79
74
 
80
75
  DEPENDENCIES
81
76
  exvo_warez!
82
- rack-useragent-filter!
data/lib/exvo_warez.rb CHANGED
@@ -13,7 +13,9 @@ module Rack
13
13
 
14
14
  def apply_middlewares
15
15
  if env == "development"
16
+ apply_referral
16
17
  apply_useragent_filter
18
+ apply_seo
17
19
  end
18
20
 
19
21
  if env == "staging"
data/lib/rack/exvo/seo.rb CHANGED
@@ -29,7 +29,13 @@ module Rack
29
29
  end
30
30
 
31
31
  def each
32
- @body.to_s.split.each do |chunk|
32
+ if @body.is_a?(String)
33
+ resp = ActionDispatch::Response.new
34
+ resp.write(@body)
35
+ @body = resp
36
+ end
37
+
38
+ @body.each do |chunk|
33
39
  yield(end_of_body?(chunk) ? with_payload(chunk) : chunk)
34
40
  end
35
41
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ExvoWarez
2
- VERSION = "0.2.30"
2
+ VERSION = "0.2.31"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_warez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 30
10
- version: 0.2.30
9
+ - 31
10
+ version: 0.2.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomasz Mazur