httpng 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/httpng/app.rb CHANGED
@@ -94,8 +94,8 @@ module Httpng
94
94
  js = js.join("\n")
95
95
 
96
96
  # Insert into <head> if possible.
97
- if html.sub!('<head>') {|text| "#{text}\n#{js}"}.nil?
98
- html.sub!('<html>') {|text| "#{text}\n<head>\n#{js}</head>\n"}.nil?
97
+ if html.sub!(/<head>/i) {|text| "#{text}\n#{js}"}.nil?
98
+ html.sub!(/<html>/i) {|text| "#{text}\n<head>\n#{js}</head>\n"}.nil?
99
99
  end
100
100
 
101
101
  return html
@@ -1,5 +1,5 @@
1
1
  # encoding: binary
2
2
 
3
3
  module Httpng
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: OptionParser
16
- requirement: &70282067168060 !ruby/object:Gem::Requirement
16
+ requirement: &70225497859080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.5.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70282067168060
24
+ version_requirements: *70225497859080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sinatra
27
- requirement: &70282067167520 !ruby/object:Gem::Requirement
27
+ requirement: &70225497858540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.3.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70282067167520
35
+ version_requirements: *70225497858540
36
36
  description:
37
37
  email:
38
38
  - benbjohnson@yahoo.com