visage-app 0.1.0 → 0.1.5
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/README.md +7 -13
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/visage +23 -2
- data/features/support/env.rb +1 -1
- data/{config.ru → lib/visage/config.ru} +0 -0
- metadata +52 -26
data/README.md
CHANGED
@@ -70,31 +70,25 @@ with the `c['rrddir']` key.
|
|
70
70
|
Deploying
|
71
71
|
---------
|
72
72
|
|
73
|
-
|
74
|
-
`public/` directory of where you have deployed the checked out code, e.g.
|
73
|
+
Visage can attempt to generate an Apache vhost config for use with Passenger:
|
75
74
|
|
75
|
+
$ visage genapache
|
76
76
|
<VirtualHost *>
|
77
|
-
ServerName
|
78
|
-
ServerAdmin
|
77
|
+
ServerName ubuntu.localdomain
|
78
|
+
ServerAdmin root@ubuntu.localdomain
|
79
79
|
|
80
|
-
DocumentRoot /
|
80
|
+
DocumentRoot /home/user/.gem/ruby/1.8/gems/visage-app-0.1.0/lib/visage-app/public
|
81
81
|
|
82
|
-
<Directory "/
|
82
|
+
<Directory "/home/user/.gem/ruby/1.8/gems/visage-app-0.1.0/lib/visage-app/public">
|
83
83
|
Options FollowSymLinks Indexes
|
84
84
|
AllowOverride None
|
85
85
|
Order allow,deny
|
86
86
|
Allow from all
|
87
87
|
</Directory>
|
88
88
|
|
89
|
-
ErrorLog /srv/www/visage.example.org/log/apache_errors_log
|
90
|
-
CustomLog /srv/www/visage.example.org/log/apache_app_log combined
|
91
|
-
|
92
89
|
</VirtualHost>
|
93
90
|
|
94
|
-
|
95
|
-
|
96
|
-
If you don't want to use Apache + Passenger, you can install the `thin` or
|
97
|
-
`mongrel` gems and run up a web server yourself.
|
91
|
+
Copypasta this into your system's Apache config structure and tune to taste.
|
98
92
|
|
99
93
|
Ubuntu users looking for Passenger packages should add John Ferlito's
|
100
94
|
[mod-passenger PPA](https://launchpad.net/~johnf-inodes/+archive/mod-passenger)
|
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ begin
|
|
19
19
|
gemspec.summary = "a web (interface | service) for viewing collectd statistics"
|
20
20
|
gemspec.description = "Visage is a web interface for viewing collectd statistics. It also provides a JSON interface onto collectd's RRD data, giving you an easy way to mash up the data."
|
21
21
|
gemspec.email = "lindsay@holmwood.id.au"
|
22
|
-
gemspec.homepage = "http://github.com/
|
22
|
+
gemspec.homepage = "http://auxesis.github.com/visage"
|
23
23
|
gemspec.authors = ["Lindsay Holmwood"]
|
24
24
|
|
25
25
|
gemspec.add_dependency "sinatra", "1.0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/bin/visage
CHANGED
@@ -9,9 +9,30 @@ case action
|
|
9
9
|
when "start"
|
10
10
|
require 'rubygems'
|
11
11
|
require 'rack'
|
12
|
-
config = @root.join('config.ru').to_s
|
12
|
+
config = @root.join('lib/visage/config.ru').to_s
|
13
13
|
Rack::Server.start(:config => config, :Port => 9292)
|
14
|
+
when "genapache"
|
15
|
+
require 'socket'
|
16
|
+
fqdn = Socket.gethostbyname(Socket.gethostname).first
|
17
|
+
public_dir = @root.join('lib/visage-app/public')
|
18
|
+
|
19
|
+
puts <<-CONFIG
|
20
|
+
<VirtualHost *>
|
21
|
+
ServerName #{fqdn}
|
22
|
+
ServerAdmin root@#{fqdn}
|
23
|
+
|
24
|
+
DocumentRoot #{public_dir}
|
25
|
+
|
26
|
+
<Directory "#{public_dir}">
|
27
|
+
Options FollowSymLinks Indexes
|
28
|
+
AllowOverride None
|
29
|
+
Order allow,deny
|
30
|
+
Allow from all
|
31
|
+
</Directory>
|
32
|
+
|
33
|
+
</VirtualHost>
|
34
|
+
CONFIG
|
14
35
|
else
|
15
|
-
puts "Usage: visage start"
|
36
|
+
puts "Usage: visage <start|genapache>"
|
16
37
|
end
|
17
38
|
|
data/features/support/env.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visage-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 5
|
9
|
+
version: 0.1.5
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Lindsay Holmwood
|
@@ -14,54 +19,73 @@ default_executable: visage
|
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: sinatra
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - "="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
23
30
|
version: "1.0"
|
24
|
-
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
25
33
|
- !ruby/object:Gem::Dependency
|
26
34
|
name: tilt
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
37
|
requirements:
|
31
38
|
- - "="
|
32
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 1
|
42
|
+
- 0
|
43
|
+
- 1
|
33
44
|
version: 1.0.1
|
34
|
-
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id002
|
35
47
|
- !ruby/object:Gem::Dependency
|
36
48
|
name: haml
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
prerelease: false
|
50
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
51
|
requirements:
|
41
52
|
- - "="
|
42
53
|
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 3
|
56
|
+
- 0
|
57
|
+
- 13
|
43
58
|
version: 3.0.13
|
44
|
-
|
59
|
+
type: :runtime
|
60
|
+
version_requirements: *id003
|
45
61
|
- !ruby/object:Gem::Dependency
|
46
62
|
name: errand
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
prerelease: false
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
65
|
requirements:
|
51
66
|
- - "="
|
52
67
|
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
- 7
|
71
|
+
- 2
|
53
72
|
version: 0.7.2
|
54
|
-
|
73
|
+
type: :runtime
|
74
|
+
version_requirements: *id004
|
55
75
|
- !ruby/object:Gem::Dependency
|
56
76
|
name: yajl-ruby
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
prerelease: false
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
60
79
|
requirements:
|
61
80
|
- - "="
|
62
81
|
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
- 7
|
85
|
+
- 6
|
63
86
|
version: 0.7.6
|
64
|
-
|
87
|
+
type: :runtime
|
88
|
+
version_requirements: *id005
|
65
89
|
description: Visage is a web interface for viewing collectd statistics. It also provides a JSON interface onto collectd's RRD data, giving you an easy way to mash up the data.
|
66
90
|
email: lindsay@holmwood.id.au
|
67
91
|
executables:
|
@@ -76,7 +100,6 @@ files:
|
|
76
100
|
- Rakefile
|
77
101
|
- VERSION
|
78
102
|
- bin/visage
|
79
|
-
- config.ru
|
80
103
|
- features/json.feature
|
81
104
|
- features/site.feature
|
82
105
|
- features/step_definitions/form_steps.rb
|
@@ -91,6 +114,7 @@ files:
|
|
91
114
|
- lib/visage/collectd/json.rb
|
92
115
|
- lib/visage/collectd/profile.rb
|
93
116
|
- lib/visage/config.rb
|
117
|
+
- lib/visage/config.ru
|
94
118
|
- lib/visage/config/fallback-colors.yaml
|
95
119
|
- lib/visage/config/init.rb
|
96
120
|
- lib/visage/config/plugin-colors.yaml
|
@@ -111,7 +135,7 @@ files:
|
|
111
135
|
- lib/visage/views/layout.haml
|
112
136
|
- lib/visage/views/single.haml
|
113
137
|
has_rdoc: true
|
114
|
-
homepage: http://github.com/
|
138
|
+
homepage: http://auxesis.github.com/visage
|
115
139
|
licenses: []
|
116
140
|
|
117
141
|
post_install_message:
|
@@ -123,18 +147,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
147
|
requirements:
|
124
148
|
- - ">="
|
125
149
|
- !ruby/object:Gem::Version
|
150
|
+
segments:
|
151
|
+
- 0
|
126
152
|
version: "0"
|
127
|
-
version:
|
128
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
154
|
requirements:
|
130
155
|
- - ">="
|
131
156
|
- !ruby/object:Gem::Version
|
157
|
+
segments:
|
158
|
+
- 0
|
132
159
|
version: "0"
|
133
|
-
version:
|
134
160
|
requirements: []
|
135
161
|
|
136
162
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.3.
|
163
|
+
rubygems_version: 1.3.6
|
138
164
|
signing_key:
|
139
165
|
specification_version: 3
|
140
166
|
summary: a web (interface | service) for viewing collectd statistics
|