rack-serverinfo 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 +4 -4
- data/lib/rack/serverinfo.rb +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f150f2ecc9451acbabae163861c1e3d9c28bee7
|
4
|
+
data.tar.gz: 173bb565c2b9d0fdc363e48e07eaec6c51ba1927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c7da85be26ce13cca1968ef36ef6a44f29b67f3dbcccbd03a7fe3cce74db137695be1e733458fb01508327e74e988e57a11187548cff07cb6e81b096b490bbf
|
7
|
+
data.tar.gz: e61ddaf8cf561b8d71f97629aac0077080eba4d2d1ab57261c26073a5b8fe53acfadb9a0bbd6a55636cc69629abaf5bba0c45e17b97a20a724a8e89bd594730b
|
data/lib/rack/serverinfo.rb
CHANGED
@@ -22,7 +22,7 @@ module Rack
|
|
22
22
|
def server_info_text
|
23
23
|
@server_info_text ||= [
|
24
24
|
"Hostname: #{hostname}",
|
25
|
-
"User: #{user}",
|
25
|
+
"User: #{user.name}",
|
26
26
|
"Rails-Env: #{rails_env}",
|
27
27
|
]
|
28
28
|
end
|
@@ -43,7 +43,7 @@ module Rack
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def user
|
46
|
-
@user ||= Etc.
|
46
|
+
@user ||= Etc.getpwuid(Process.uid)
|
47
47
|
end
|
48
48
|
|
49
49
|
def rails_env
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-serverinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Simecek
|
@@ -14,42 +14,42 @@ dependencies:
|
|
14
14
|
name: rack-plastic
|
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: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.6'
|
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: '1.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.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: '10.0'
|
55
55
|
description: Display in a div the hostname, running user, rails env.
|
@@ -70,19 +70,18 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.4.1
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Show information of the app.
|
87
87
|
test_files: []
|
88
|
-
has_rdoc:
|