redis-ui 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,48 @@
1
- *{margin:0; padding:0;}
2
- body{font:normal 12px/18px Helvetica, arial, sans-serif;}
1
+ * {
2
+ margin: 0pt;
3
+ padding: 0pt;
4
+ }
5
+
6
+ body {
7
+ font: 12px/16px Helvetica,Arial,sans-serif;
8
+ }
9
+
10
+ #container {
11
+ margin: 1em;
12
+ }
13
+
14
+ h1{ color:#dc2f17; }
15
+ h2{margin:1em 0 0.5em 0;}
16
+
17
+ table {
18
+ border-collapse: collapse;
19
+ border-left:1px solid #ddd;
20
+ margin: 1em 0pt;
21
+ color:#777;
22
+ }
23
+
24
+ table td a{display:block; color:#333;}
25
+
26
+ table th {
27
+ text-align:left;
28
+ padding:0.5em;
29
+ border-right: 1px solid #CCCCCC;
30
+ border-top:1px solid #ddd;
31
+ border-bottom:1px solid #bbb;
32
+ color:#000;
33
+ }
34
+
35
+ table tr:nth-child(even) {
36
+ background: none repeat scroll 0% 0% #E7F0FD;
37
+ }
38
+
39
+ table td {
40
+ font: 12px/16px Helvetica,Arial,sans-serif;
41
+ min-width:5em;
42
+ border-right: 1px solid #CCCCCC;
43
+ margin: 0pt;
44
+ padding: 0.5em 1em 0.5em 0.5em;
45
+ }
46
+
47
+ ul{padding:0.5em; margin:1em;}
48
+ li{padding:0.5em 0;}
@@ -0,0 +1,18 @@
1
+ <table class="keys">
2
+ <tr>
3
+ <th>Key</th>
4
+ <th>Type</th>
5
+ </tr>
6
+ <tbody>
7
+ <% @keys.each do |key| %>
8
+ <tr class="key">
9
+ <td>
10
+ <a href="/keys/<%= key[:key] %>">
11
+ <%= key[:key] %>
12
+ </a>
13
+ </td>
14
+ <td><%= key[:type] %></td>
15
+ </tr>
16
+ <% end %>
17
+ </tbody>
18
+ </table>
@@ -0,0 +1,30 @@
1
+ <html>
2
+ <head>
3
+ <title>RedisUI</title>
4
+ <link rel="stylesheet" href="/stylesheets/redis-ui.css" type="text/css" media="screen" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div id="container">
8
+ <h1>RedisUI</h1>
9
+ <div id="main"></div>
10
+ <%= yield %>
11
+ </div>
12
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script>
13
+ <script src="/js/lib/underscore.js"></script>
14
+ <script src="/js/lib/backbone.js"></script>
15
+
16
+ <script src="/js/app/app.js"></script>
17
+ <script src="/js/app/models.js"></script>
18
+
19
+ <script type="text/javascript">
20
+ //RUI.view.app = new RUI.view.main({collection : RUI.data.keys})
21
+ //RUI.data.keys.fetch();
22
+
23
+ /*
24
+ setInterval(function() {
25
+ RUI.data.keys.fetch();
26
+ }, 1000);
27
+ */
28
+ </script>
29
+ </body>
30
+ </html>
File without changes
data/redis-ui.gemspec CHANGED
@@ -1,83 +1,30 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "redis-ui/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{redis-ui}
8
- s.version = "0.1.0"
6
+ s.name = "redis-ui"
7
+ s.version = Redis::Ui::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["supermatter", "jwelshiv"]
10
+ s.email = ["james@supermatter.com"]
11
+ s.homepage = "http://github.com/jwelshiv/redis-ui"
12
+ s.summary = "Sinatra backed redis ui"
13
+ s.description = "View and manage redis store"
9
14
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["jwelshiv"]
12
- s.date = %q{2011-03-26}
13
- s.default_executable = %q{redis-ui}
14
- s.description = %q{RedisUI is a redis db web accessible viewer}
15
- s.email = %q{james@supermatter.com}
16
- s.executables = ["redis-ui"]
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/redis-ui",
29
- "config.ru",
30
- "lib/redis-ui.rb",
31
- "lib/static/stylesheets/redis-ui.css",
32
- "lib/views/index.erb",
33
- "lib/views/layout.erb",
34
- "lib/views/show.erb",
35
- "pkg/redis-ui-0.1.0.gem",
36
- "redis-ui.gemspec",
37
- "test/helper.rb",
38
- "test/test_redis_ui.rb"
39
- ]
40
- s.homepage = %q{http://github.com/jwelshiv/redis-ui}
15
+ s.rubyforge_project = "redis-ui"
16
+
41
17
  s.licenses = ["MIT"]
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
42
21
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.4.1}
44
- s.summary = %q{Sinatra backed redis ui}
45
- s.test_files = [
46
- "test/helper.rb",
47
- "test/test_redis_ui.rb"
48
- ]
49
-
50
- if s.respond_to? :specification_version then
51
- s.specification_version = 3
52
-
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
55
- s.add_runtime_dependency(%q<redis>, [">= 0"])
56
- s.add_runtime_dependency(%q<sinatra>, [">= 0"])
57
- s.add_runtime_dependency(%q<rcov>, [">= 0"])
58
- s.add_development_dependency(%q<bacon>, [">= 0"])
59
- s.add_runtime_dependency(%q<redis>, [">= 0"])
60
- s.add_runtime_dependency(%q<sinatra>, [">= 1"])
61
- s.add_runtime_dependency(%q<json>, [">= 0"])
62
- else
63
- s.add_dependency(%q<jeweler>, [">= 0"])
64
- s.add_dependency(%q<redis>, [">= 0"])
65
- s.add_dependency(%q<sinatra>, [">= 0"])
66
- s.add_dependency(%q<rcov>, [">= 0"])
67
- s.add_dependency(%q<bacon>, [">= 0"])
68
- s.add_dependency(%q<redis>, [">= 0"])
69
- s.add_dependency(%q<sinatra>, [">= 1"])
70
- s.add_dependency(%q<json>, [">= 0"])
71
- end
72
- else
73
- s.add_dependency(%q<jeweler>, [">= 0"])
74
- s.add_dependency(%q<redis>, [">= 0"])
75
- s.add_dependency(%q<sinatra>, [">= 0"])
76
- s.add_dependency(%q<rcov>, [">= 0"])
77
- s.add_dependency(%q<bacon>, [">= 0"])
78
- s.add_dependency(%q<redis>, [">= 0"])
79
- s.add_dependency(%q<sinatra>, [">= 1"])
80
- s.add_dependency(%q<json>, [">= 0"])
81
- end
82
- end
83
-
22
+
23
+ s.add_development_dependency 'bacon'
24
+
25
+ s.add_runtime_dependency 'json'
26
+ s.add_runtime_dependency 'hiredis', '~> 0.3.1'
27
+ s.add_runtime_dependency 'redis-namespace', '~> 1.0.2'
28
+ s.add_runtime_dependency 'sinatra'
29
+ s.add_runtime_dependency 'sinatra-respond_to'
30
+ end
metadata CHANGED
@@ -1,40 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
+ - supermatter
13
14
  - jwelshiv
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-03-26 00:00:00 -07:00
19
- default_executable: redis-ui
19
+ date: 2011-05-23 00:00:00 -07:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- requirement: *id001
23
+ name: bacon
33
24
  prerelease: false
34
- name: jeweler
35
- - !ruby/object:Gem::Dependency
36
- type: :runtime
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
38
26
  none: false
39
27
  requirements:
40
28
  - - ">="
@@ -43,12 +31,12 @@ dependencies:
43
31
  segments:
44
32
  - 0
45
33
  version: "0"
46
- requirement: *id002
47
- prerelease: false
48
- name: redis
34
+ type: :development
35
+ version_requirements: *id001
49
36
  - !ruby/object:Gem::Dependency
50
- type: :runtime
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
37
+ name: json
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
52
40
  none: false
53
41
  requirements:
54
42
  - - ">="
@@ -57,40 +45,44 @@ dependencies:
57
45
  segments:
58
46
  - 0
59
47
  version: "0"
60
- requirement: *id003
61
- prerelease: false
62
- name: sinatra
63
- - !ruby/object:Gem::Dependency
64
48
  type: :runtime
65
- version_requirements: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: hiredis
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
66
54
  none: false
67
55
  requirements:
68
- - - ">="
56
+ - - ~>
69
57
  - !ruby/object:Gem::Version
70
- hash: 3
58
+ hash: 17
71
59
  segments:
72
60
  - 0
73
- version: "0"
74
- requirement: *id004
75
- prerelease: false
76
- name: rcov
61
+ - 3
62
+ - 1
63
+ version: 0.3.1
64
+ type: :runtime
65
+ version_requirements: *id003
77
66
  - !ruby/object:Gem::Dependency
78
- type: :development
79
- version_requirements: &id005 !ruby/object:Gem::Requirement
67
+ name: redis-namespace
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
80
70
  none: false
81
71
  requirements:
82
- - - ">="
72
+ - - ~>
83
73
  - !ruby/object:Gem::Version
84
- hash: 3
74
+ hash: 19
85
75
  segments:
76
+ - 1
86
77
  - 0
87
- version: "0"
88
- requirement: *id005
89
- prerelease: false
90
- name: bacon
91
- - !ruby/object:Gem::Dependency
78
+ - 2
79
+ version: 1.0.2
92
80
  type: :runtime
93
- version_requirements: &id006 !ruby/object:Gem::Requirement
81
+ version_requirements: *id004
82
+ - !ruby/object:Gem::Dependency
83
+ name: sinatra
84
+ prerelease: false
85
+ requirement: &id005 !ruby/object:Gem::Requirement
94
86
  none: false
95
87
  requirements:
96
88
  - - ">="
@@ -99,26 +91,12 @@ dependencies:
99
91
  segments:
100
92
  - 0
101
93
  version: "0"
102
- requirement: *id006
103
- prerelease: false
104
- name: redis
105
- - !ruby/object:Gem::Dependency
106
94
  type: :runtime
107
- version_requirements: &id007 !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 1
113
- segments:
114
- - 1
115
- version: "1"
116
- requirement: *id007
117
- prerelease: false
118
- name: sinatra
95
+ version_requirements: *id005
119
96
  - !ruby/object:Gem::Dependency
120
- type: :runtime
121
- version_requirements: &id008 !ruby/object:Gem::Requirement
97
+ name: sinatra-respond_to
98
+ prerelease: false
99
+ requirement: &id006 !ruby/object:Gem::Requirement
122
100
  none: false
123
101
  requirements:
124
102
  - - ">="
@@ -127,19 +105,19 @@ dependencies:
127
105
  segments:
128
106
  - 0
129
107
  version: "0"
130
- requirement: *id008
131
- prerelease: false
132
- name: json
133
- description: RedisUI is a redis db web accessible viewer
134
- email: james@supermatter.com
108
+ type: :runtime
109
+ version_requirements: *id006
110
+ description: View and manage redis store
111
+ email:
112
+ - james@supermatter.com
135
113
  executables:
136
114
  - redis-ui
137
115
  extensions: []
138
116
 
139
- extra_rdoc_files:
140
- - LICENSE.txt
141
- - README.rdoc
117
+ extra_rdoc_files: []
118
+
142
119
  files:
120
+ - .gitignore
143
121
  - Gemfile
144
122
  - Gemfile.lock
145
123
  - LICENSE.txt
@@ -149,11 +127,16 @@ files:
149
127
  - bin/redis-ui
150
128
  - config.ru
151
129
  - lib/redis-ui.rb
130
+ - lib/redis-ui/version.rb
131
+ - lib/static/js/.DS_Store
132
+ - lib/static/js/app/app.js
133
+ - lib/static/js/app/models.js
134
+ - lib/static/js/lib/backbone.js
135
+ - lib/static/js/lib/underscore.js
152
136
  - lib/static/stylesheets/redis-ui.css
153
- - lib/views/index.erb
154
- - lib/views/layout.erb
155
- - lib/views/show.erb
156
- - pkg/redis-ui-0.1.0.gem
137
+ - lib/views/index.html.erb
138
+ - lib/views/layout.html.erb
139
+ - lib/views/show.html.erb
157
140
  - redis-ui.gemspec
158
141
  - test/helper.rb
159
142
  - test/test_redis_ui.rb
@@ -186,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
169
  version: "0"
187
170
  requirements: []
188
171
 
189
- rubyforge_project:
172
+ rubyforge_project: redis-ui
190
173
  rubygems_version: 1.4.1
191
174
  signing_key:
192
175
  specification_version: 3
data/lib/views/index.erb DELETED
@@ -1,8 +0,0 @@
1
- <h2>Keys</h2>
2
- <ul>
3
- <% @keys.each do |key| %>
4
- <li>
5
- <a href="/<%= key %>" %><%= key %></a>
6
- </li>
7
- <% end %>
8
- </ul>
data/lib/views/layout.erb DELETED
@@ -1,10 +0,0 @@
1
- <html>
2
- <head>
3
- <title>RedisUI</title>
4
- <link rel="stylesheet" href="/stylesheets/redis-ui.css" type="text/css" media="screen" charset="utf-8">
5
- </head>
6
- <body>
7
- <h1>RedisUI</h1>
8
- <%= yield %>
9
- </body>
10
- </html>