redis_tools 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/rpush +2 -3
  2. data/lib/redis_tools/version.rb +1 -1
  3. metadata +1 -1
data/bin/rpush CHANGED
@@ -15,14 +15,13 @@ ARGV.options do |o|
15
15
 
16
16
  abort("Missing -l\n\n#{o}") unless opts[:list]
17
17
 
18
- redis = Redis.connect(url: opts[:url])
19
18
  input = ARGV.shift
20
19
 
21
20
  if input
22
- redis.rpush(opts[:list], input)
21
+ RedisTools.rpush(opts[:list], input)
23
22
  else
24
23
  ARGF.each_line do |input|
25
- redis.rpush(opts[:list], input)
24
+ RedisTools.rpush(opts[:list], input)
26
25
  end
27
26
  end
28
27
  end
@@ -1,3 +1,3 @@
1
1
  module RedisTools
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: