redis-browser 0.3.2 → 0.3.3

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: 99b7c6bb6e3f613f7d795e689698accdb1fef69e
4
- data.tar.gz: 859e24ac0dc1504d4f3b37ec6e9d1ba11b984f7b
3
+ metadata.gz: 76766da37af8816267b3c2d3cd404a146b346767
4
+ data.tar.gz: c3bb5eeb126502796fdb0e4cfafd12d0106ca00c
5
5
  SHA512:
6
- metadata.gz: 776d81b20e548c2ef801fd4a52c968d3e3f60a66d831d208cbe5d4ec39706054ae7c7ad0054844808cc6d5f990b0ffc9fac6395d2d05c8c9f130c13f83141091
7
- data.tar.gz: e0616f7bb435c82aeda0aaff94dbbeffbea91233d93916eb0f91b9cf2b0fcb5f8fdc0e96880aab48d21912ae715d0be335477bb0d156ae730b8abdddbc44ae0b
6
+ metadata.gz: c0d7de58abef04db2bd4b00d379588eb4247051e8e787fac8efe2b629a2fed2dc6b026c531490e51d3ee8f74749e966df6d5c030171131209bde660ff19ba311
7
+ data.tar.gz: b0787cde5332a3feae7f241674bfe8e1182a6a4594f02afc6560a10d96b68c143a91480c7c3cb7912fa2d7ecfb4cf53cb782a4421c3f655c807a99e8a8719b37
data/README.md CHANGED
@@ -40,7 +40,13 @@ connections:
40
40
  Then start with
41
41
 
42
42
  ```bash
43
- $ redis-browser -C path/to/config.yml
43
+ $ redis-browser --config path/to/config.yml
44
+ ```
45
+
46
+ Or quickly connect to a database without the hassle of creating custom configuration file
47
+
48
+ ```bash
49
+ $ redis-browser --url redis://hostname:6379
44
50
  ```
45
51
 
46
52
  Run with `--help` to see what other options are available.
@@ -67,6 +73,19 @@ settings = YAML.load(ERB.new(IO.read(config)).result)
67
73
  RedisBrowser.configure(settings)
68
74
  ```
69
75
 
76
+ ### Protect with HTTP Basic Auth
77
+
78
+ `RedisBrowser::Web` is a Sinatra app, so you can inject any Rack middleware into it.
79
+
80
+ ```ruby
81
+ # config/initializers/redis-browser.rb
82
+ RedisBrowser::Web.class_eval do
83
+ use Rack::Auth::Basic, "Protected Area" do |username, password|
84
+ username == 'foo' && password == 'bar'
85
+ end
86
+ end
87
+ ```
88
+
70
89
  ## Screenshots
71
90
 
72
91
  ![Browse keys](https://dl.dropboxusercontent.com/u/70986/redis-browser/2.png)
@@ -24,6 +24,12 @@ OptionParser.new do |opts|
24
24
  RedisBrowser.configure(config)
25
25
  end
26
26
 
27
+ opts.on("-U URL", "--url URL", "Connection URL. Defaults to redis://127.0.0.1:6379/0") do |v|
28
+ v = "redis://#{v}" unless v =~ /^redis:\/\//
29
+ config = { 'connections' => { 'default' => v } }
30
+ RedisBrowser.configure(config)
31
+ end
32
+
27
33
  opts.on("-B ADDRESS", "--bind ADDRESS", "Server hostname or IP address to listen on") do |v|
28
34
  options['bind'] = v
29
35
  end
@@ -1,3 +1,3 @@
1
1
  module RedisBrowser
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = ">=1.9.2"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.3"
22
24
  spec.add_development_dependency "rake"
23
25
 
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
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: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
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: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sinatra-contrib
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: slim
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sass
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: coffee-script
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: multi_json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: redis
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: Redis browser
@@ -144,7 +144,7 @@ executables:
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
- - ".gitignore"
147
+ - .gitignore
148
148
  - Gemfile
149
149
  - LICENSE.txt
150
150
  - README.md
@@ -178,17 +178,17 @@ require_paths:
178
178
  - lib
179
179
  required_ruby_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ">="
181
+ - - '>='
182
182
  - !ruby/object:Gem::Version
183
- version: '0'
183
+ version: 1.9.2
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ">="
186
+ - - '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
190
  rubyforge_project:
191
- rubygems_version: 2.2.2
191
+ rubygems_version: 2.4.8
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Redis browser