rye 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGES.txt +4 -0
  2. data/lib/rye.rb +1 -1
  3. data/lib/rye/set.rb +3 -1
  4. data/rye.gemspec +1 -1
  5. metadata +3 -5
@@ -1,5 +1,9 @@
1
1
  RYE, CHANGES
2
2
 
3
+ #### 0.9.5 (2012-01-05) #############################
4
+
5
+ * FIXED: Bugfix for Sets to allow unsafe commands [vishnugopal]
6
+
3
7
  #### 0.9.4 (2011-02-14) #############################
4
8
 
5
9
  * FIXED: Box#method_missing fix for to_ary exception in Ruby 1.9.2
data/lib/rye.rb CHANGED
@@ -43,7 +43,7 @@ require 'esc'
43
43
  module Rye
44
44
  extend self
45
45
 
46
- VERSION = "0.9.4".freeze unless defined?(VERSION)
46
+ VERSION = "0.9.5".freeze unless defined?(VERSION)
47
47
 
48
48
  @@sysinfo = nil
49
49
  @@agent_env = Hash.new # holds ssh-agent env vars
@@ -143,7 +143,9 @@ module Rye
143
143
  # Ruby 1.8 populates Module.instance_methods with Strings. 1.9 uses Symbols.
144
144
  meth = (Rye.sysinfo.ruby[1] == 8) ? meth.to_s : meth.to_sym
145
145
  raise Rye::NoBoxes if @boxes.empty?
146
- raise Rye::CommandNotFound, meth.to_s unless Rye::Box.instance_methods.member?(meth)
146
+ if @safe
147
+ raise Rye::CommandNotFound, meth.to_s unless Rye::Box.instance_methods.member?(meth)
148
+ end
147
149
  run_command(meth, *args, &block)
148
150
  end
149
151
 
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rye"
3
3
  s.rubyforge_project = "rye"
4
- s.version = "0.9.4"
4
+ s.version = "0.9.5"
5
5
  s.summary = "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rye
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.4
5
+ version: 0.9.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Delano Mandelbaum
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-14 00:00:00 -05:00
14
- default_executable:
13
+ date: 2012-01-05 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: annoy
@@ -93,7 +92,6 @@ files:
93
92
  - lib/rye/set.rb
94
93
  - lib/rye/hop.rb
95
94
  - rye.gemspec
96
- has_rdoc: true
97
95
  homepage: http://github.com/delano/rye/
98
96
  licenses: []
99
97
 
@@ -121,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
119
  requirements: []
122
120
 
123
121
  rubyforge_project: rye
124
- rubygems_version: 1.5.2
122
+ rubygems_version: 1.8.10
125
123
  signing_key:
126
124
  specification_version: 2
127
125
  summary: "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."