redis_vars 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ require "thor"
4
4
 
5
5
  module RedisVars
6
6
  class CLI < Thor
7
+ default_task :list
7
8
 
8
9
  desc "add KEY VALUE", "Add a new env var"
9
10
  def add(key, value)
@@ -26,8 +27,8 @@ module RedisVars
26
27
  end
27
28
 
28
29
  desc "exec", "Runs a command with the stored env vars"
29
- def exec(*commands)
30
- Kernel.exec "/bin/sh -c '#{store.exec} #{commands.join(' ')}'"
30
+ def exec(*args)
31
+ Kernel.exec(store.hash, *args)
31
32
  end
32
33
 
33
34
  desc "version", "Displays gem version"
@@ -24,10 +24,6 @@ module RedisVars
24
24
  map {|key, val| "export #{key.upcase}=#{val}"}.join("\n")
25
25
  end
26
26
 
27
- def exec
28
- map {|key, val| "#{key.upcase}=#{val}"}.join(" ")
29
- end
30
-
31
27
  private
32
28
 
33
29
  def map(&block)
@@ -1,3 +1,3 @@
1
1
  module RedisVars
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_vars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-27 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor