absolute 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/absolute.gemspec +1 -1
- data/lib/absolute.rb +22 -4
- metadata +22 -46
- data/lib/README.md +0 -3
- data/lib/absolute.gemspec +0 -8
- data/lib/app/example.rb +0 -4
- data/lib/config.ru +0 -3
data/absolute.gemspec
CHANGED
data/lib/absolute.rb
CHANGED
@@ -2,17 +2,35 @@ module Absolute
|
|
2
2
|
|
3
3
|
module App
|
4
4
|
|
5
|
+
module Response
|
6
|
+
|
7
|
+
class << self
|
8
|
+
|
9
|
+
def each( &block )
|
10
|
+
|
11
|
+
yield 'absolute'
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
def length
|
16
|
+
|
17
|
+
'absolute'.length
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
5
25
|
class << self
|
6
26
|
|
7
27
|
def call( env )
|
8
28
|
|
9
|
-
response = "absolute"
|
10
|
-
|
11
29
|
headers = {}
|
12
|
-
headers['Content-Length'] =
|
30
|
+
headers['Content-Length'] = Response.length.to_s
|
13
31
|
headers['Content-Type'] = "text/html"
|
14
32
|
|
15
|
-
[200, headers,
|
33
|
+
[200, headers, Response]
|
16
34
|
|
17
35
|
end
|
18
36
|
|
metadata
CHANGED
@@ -1,76 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: absolute
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- nomilous
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
9
|
+
- ''
|
10
|
+
- ''
|
11
|
+
- ''
|
17
12
|
autorequire:
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
|
-
|
21
|
-
date: 2012-10-18 00:00:00 Z
|
15
|
+
date: 2012-10-19 00:00:00.000000000 Z
|
22
16
|
dependencies: []
|
23
|
-
|
24
17
|
description:
|
25
18
|
email:
|
26
19
|
executables: []
|
27
|
-
|
28
20
|
extensions: []
|
29
|
-
|
30
21
|
extra_rdoc_files: []
|
31
|
-
|
32
|
-
files:
|
22
|
+
files:
|
33
23
|
- README.md
|
34
24
|
- absolute.gemspec
|
35
25
|
- app/example.rb
|
36
26
|
- config.ru
|
37
|
-
- lib/README.md
|
38
|
-
- lib/absolute.gemspec
|
39
27
|
- lib/absolute.rb
|
40
|
-
- lib/app/example.rb
|
41
|
-
- lib/config.ru
|
42
28
|
homepage:
|
43
29
|
licenses: []
|
44
|
-
|
45
30
|
post_install_message:
|
46
31
|
rdoc_options: []
|
47
|
-
|
48
|
-
require_paths:
|
32
|
+
require_paths:
|
49
33
|
- lib
|
50
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
35
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
57
|
-
- 0
|
58
|
-
version: "0"
|
59
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
41
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
version: "0"
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
68
46
|
requirements: []
|
69
|
-
|
70
47
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.8.
|
48
|
+
rubygems_version: 1.8.24
|
72
49
|
signing_key:
|
73
50
|
specification_version: 3
|
74
|
-
summary:
|
51
|
+
summary: ''
|
75
52
|
test_files: []
|
76
|
-
|
data/lib/README.md
DELETED
data/lib/absolute.gemspec
DELETED
data/lib/app/example.rb
DELETED
data/lib/config.ru
DELETED