rack-metadata 0.0.1 → 0.0.2

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: 0771f809c465c5e1fe652ee6719f7f4bd4e6b7ff
4
- data.tar.gz: 123ef81e8ab84f6a76f51d8853660bb964848c29
3
+ metadata.gz: 777343c48a93e6c7679c1cfc78de852b04b58dec
4
+ data.tar.gz: cfdb6c9219229cc7a90867b8825faed81281dbec
5
5
  SHA512:
6
- metadata.gz: 7cf501d143e7ead98b4a42b4990b6c47adc18cf1d0d4f95cd5ac83cb4427541e0bd4e658bb5a6992d0c39a79a66f5d227c70fb02d3191ec7fcd649d92ff6b7a9
7
- data.tar.gz: 6372585c026f693a07e67567271092dbb3bea4994f27cb577f5e469bc1685cbe17d5bc39445cbe1010de31f241186e28a22db4d47ac83444ecdb8f1fa9f9ab96
6
+ metadata.gz: 9ff8930dfd9f792d79777b64ff6de74e93f3cdadd9e6615bd3df9f0972948db7191d45d56bbfab8d11bc7724de6ac2268fb73ae394a0ff5af5a91b6947bd88f5
7
+ data.tar.gz: 6046825542351053745cc7bf1dcd6f72d1132fc73381c014eef9ab2a3a3b602d48908e6be701ed18f4a2f9b01bd4ee986d6e944f03f144ee2e8946728310e245
data/lib/rack/metadata.rb CHANGED
@@ -16,7 +16,7 @@ module Rack
16
16
  index = body.rindex("</head>")
17
17
  if index
18
18
  body.insert(index, env['rack.metadata'].map{|k,v| message(k,v)}.join(""))
19
- headers["Content-Length"] = body.length.to_s
19
+ headers["Content-Length"] = body.bytesize.to_s
20
20
  response = [body]
21
21
  end
22
22
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rack-metadata"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.description = "Add metadata tags to the header"
5
5
  s.summary = "Add metadata tags to the html header"
6
6
  s.add_dependency "rack"
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Ching
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-21 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack-test
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Add metadata tags to the header
@@ -58,7 +58,7 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
- - .gitignore
61
+ - ".gitignore"
62
62
  - Gemfile
63
63
  - LICENSE
64
64
  - README.md
@@ -78,20 +78,21 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.0.3
91
+ rubygems_version: 2.2.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Add metadata tags to the html header
95
95
  test_files:
96
96
  - test/metadata_test.rb
97
97
  - test/test_helper.rb
98
+ has_rdoc: