redis-dump 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES.txt +4 -0
  2. data/README.rdoc +6 -0
  3. data/VERSION.yml +1 -1
  4. data/lib/redis/dump.rb +1 -1
  5. metadata +50 -56
data/CHANGES.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  REDIS-DUMP, CHANGES
2
2
 
3
+ #### 0.3.3 (2012-11-22) ###############################
4
+
5
+ * Fixed issue with return value from zrange in newer versions of redis lib (3.0+).
6
+
3
7
  #### 0.3.2 (2012-01-05) ###############################
4
8
 
5
9
  * ADDED: Support setting redis URI via REDIS_URI environment variable
data/README.rdoc CHANGED
@@ -22,6 +22,12 @@ There are two executables: <tt>redis-dump</tt> and <tt>redis-load</tt>.
22
22
  # You can specify the redis URI via an environment variable
23
23
  $ export REDIS_URI=127.0.0.1:6371
24
24
  $ redis-dump
25
+
26
+ # If your instance uses a password (such as on RedisToGo), you
27
+ # can specify the Redis URL as such:
28
+ # :<password>@<domain>:<port>
29
+ # Note the leading colon is important for specifying no username.
30
+ $ redis-dump -u :234288a830f009980e08@example.redistogo.com:9055
25
31
 
26
32
  == Output format
27
33
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :MAJOR: 0
3
3
  :MINOR: 3
4
- :PATCH: 2
4
+ :PATCH: 3
data/lib/redis/dump.rb CHANGED
@@ -224,7 +224,7 @@ class Redis
224
224
  def value_string(this_redis, key) this_redis.get key end
225
225
  def value_list (this_redis, key) this_redis.lrange key, 0, -1 end
226
226
  def value_set (this_redis, key) this_redis.smembers key end
227
- def value_zset (this_redis, key) this_redis.zrange(key, 0, -1, :with_scores => true).tuple end
227
+ def value_zset (this_redis, key) this_redis.zrange(key, 0, -1, :with_scores => true).flatten.tuple end
228
228
  def value_hash (this_redis, key) this_redis.hgetall(key) end
229
229
  def value_none (this_redis, key) '' end
230
230
  def stringify_string(this_redis, key, v=nil) (v || value_string(this_redis, key)) end
metadata CHANGED
@@ -1,73 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: redis-dump
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
4
5
  prerelease:
5
- version: 0.3.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Delano Mandelbaum
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-01-05 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: yajl-ruby
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70228764012240 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0.1"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0.1'
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: redis
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70228764012240
25
+ - !ruby/object:Gem::Dependency
26
+ name: redis
27
+ requirement: &70228764011740 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "2.0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
35
33
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: uri-redis
39
34
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70228764011740
36
+ - !ruby/object:Gem::Dependency
37
+ name: uri-redis
38
+ requirement: &70228764011260 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
45
43
  version: 0.4.0
46
44
  type: :runtime
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: drydock
50
45
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70228764011260
47
+ - !ruby/object:Gem::Dependency
48
+ name: drydock
49
+ requirement: &70228764010760 !ruby/object:Gem::Requirement
52
50
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
56
54
  version: 0.6.9
57
55
  type: :runtime
58
- version_requirements: *id004
56
+ prerelease: false
57
+ version_requirements: *70228764010760
59
58
  description: Backup and restore your Redis data to and from JSON.
60
59
  email: delano@solutious.com
61
- executables:
60
+ executables:
62
61
  - redis-dump
63
62
  - redis-load
64
63
  - redis-report
65
64
  extensions: []
66
-
67
- extra_rdoc_files:
65
+ extra_rdoc_files:
68
66
  - LICENSE.txt
69
67
  - README.rdoc
70
- files:
68
+ files:
71
69
  - CHANGES.txt
72
70
  - LICENSE.txt
73
71
  - README.rdoc
@@ -84,30 +82,26 @@ files:
84
82
  - try/redis-server.conf
85
83
  homepage: http://github.com/delano/redis-dump
86
84
  licenses: []
87
-
88
85
  post_install_message:
89
86
  rdoc_options: []
90
-
91
- require_paths:
87
+ require_paths:
92
88
  - lib
93
- required_ruby_version: !ruby/object:Gem::Requirement
89
+ required_ruby_version: !ruby/object:Gem::Requirement
94
90
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
96
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: "0"
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
105
101
  requirements: []
106
-
107
102
  rubyforge_project: redis-dump
108
103
  rubygems_version: 1.8.10
109
104
  signing_key:
110
105
  specification_version: 3
111
106
  summary: Backup and restore your Redis data to and from JSON.
112
107
  test_files: []
113
-