redis-browser 0.1.0 → 0.1.1

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: a40624909ff0f1775fbd8d4612e6fcc49842968e
4
- data.tar.gz: d75fbb485c52d04ea53b3def51b595102a39c029
3
+ metadata.gz: 76d831101d50f6182d172c2684f1e0e885c91aa2
4
+ data.tar.gz: 2b1b48244b3a7268f356f10855f06c24ab5e6855
5
5
  SHA512:
6
- metadata.gz: f56a3a0d143ea979ac5e73a855c0f3e343a23254148fab5908d1e78432eaf11072e79cdb2f674d51867d7153f7b8be224d90ba935d60fcd82adf239e7284091b
7
- data.tar.gz: ae8a5a390ad6cc79168f5b1f58e6d6b4a75e639f500b8b5ecc8e54eff0564398b8cf7d5b7cd76f7afec383989a5bd208e9abe5f622e4550cb1debc1abe390b81
6
+ metadata.gz: 1c10db24515f5c8a4e7811f7df508f6a99a0bae9116cd6190a5943055ddbe52c8d71b99a57ddc7b7c25a1c616c1fe15c4ef56d6fdf976dad103d433d858d9e3a
7
+ data.tar.gz: 4634eb41b043a1f7d7202916b2c79ffd865a3b9908cbe6819d9014fbe234aad42cca424d11e72b22a6f12141d87b5fe271eb4c027909bfb38c202b6013f7077e
data/README.md CHANGED
@@ -2,22 +2,33 @@
2
2
 
3
3
  ## Features
4
4
 
5
- * List all keys as tree (using customizable characters as namespace separator)
5
+ * List all keys as tree
6
6
  * See content of all redis types
7
7
  * List pagination
8
8
  * Pretty print json values
9
9
  * Search keys
10
10
 
11
11
 
12
+ ## Installation
13
+
14
+ ```bash
15
+ $ gem install redis-browser
16
+ ```
17
+
12
18
  ## Usage
13
19
 
14
20
  ```bash
15
- $ git clone git@github.com:teamon/redis-browser.git
16
- $ cd redis-browser
17
- $ bundle
18
- $ bundle exec ruby lib/redis-browser/app.rb
21
+ $ redis-browser
19
22
  ```
20
23
 
24
+ ## Screenshots
25
+
26
+ ![Browse keys](https://dl.dropboxusercontent.com/u/70986/redis-browser/2.png)
27
+ ![See list with pagination](https://dl.dropboxusercontent.com/u/70986/redis-browser/3.png)
28
+ ![ZSET support](https://dl.dropboxusercontent.com/u/70986/redis-browser/4.png)
29
+ ![JSON pretty print](https://dl.dropboxusercontent.com/u/70986/redis-browser/5.png)
30
+ ![Configuration](https://dl.dropboxusercontent.com/u/70986/redis-browser/6.png)
31
+
21
32
  ## Contributing
22
33
 
23
34
  1. Fork it
@@ -117,7 +117,8 @@ class Browser
117
117
  type = redis.type(key)
118
118
  data = case type
119
119
  when "string"
120
- {:value => redis.get(key)}
120
+ type, value = item_type(redis.get(key))
121
+ {:value => value, :type => type}
121
122
  when "list"
122
123
  get_list(key, opts)
123
124
  when "set"
@@ -84,6 +84,8 @@ html ng-app="browser"
84
84
  div ng-switch="key.type"
85
85
  pre ng-switch-when="string" {{ key.value }}
86
86
 
87
+ pre ng-switch-when="json" {{ key.value | json }}
88
+
87
89
  div ng-switch-when="set"
88
90
  table.table.table-striped.table-bordered.value-list
89
91
  tr ng-repeat="e in key.values"
@@ -1,3 +1,3 @@
1
1
  module RedisBrowser
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski