rack-noindex_https 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class NoindexHttps
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -11,13 +11,17 @@ module Rack
11
11
  end
12
12
 
13
13
  def _call(env)
14
+ puts "got here"
14
15
  @status, @headers, @body = @app.call(env)
16
+ puts env.inspect
15
17
  request = Rack::Request.new(env)
16
18
 
17
19
  if request.scheme == 'https' && (@headers['Content-Type'] =~ /application\/html/ || @headers['Content-Type'] =~ /text\/html/)
18
- @body = @body.collect {|fragement| fragement.gsub(%r{</head>}, '<meta name="robots" content="noindex"></head>') }
20
+ @body = @body.collect {|fragement| puts "updating"; fragement.gsub(%r{</head>}, '<meta name="robots" content="noindex"></head>') }
19
21
  end
20
22
 
23
+ puts 'finished'
24
+
21
25
  [@status, @headers, @body]
22
26
  end
23
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-noindex_https
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: