shell_commands 1.1.1 → 1.1.2

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.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "shell_commands"
18
- gem.version = "1.1.1"
18
+ gem.version = "1.1.2"
19
19
  gem.homepage = "http://github.com/phildebus/shell_commands"
20
20
  gem.license = "MIT"
21
21
  gem.summary = %Q{Simple gem used to manage calling shell commands from ruby}
@@ -6,11 +6,11 @@ def do_command(command)
6
6
  end
7
7
 
8
8
  def result_matches(regex)
9
- return !regex.match(ShellCommand.last_result).nil? if regex.class = "Regex"
10
- return !Regex.new(regex).match(ShellCommand.last_result).nil?
9
+ return !regex.match(ShellCommand.last_result["result"]).nil? if regex.class == "Regexp"
10
+ return !Regexp.new(regex).match(ShellCommand.last_result["result"]).nil?
11
11
  end
12
12
 
13
13
  def regex_result(regex)
14
- return regex.match(ShellCommand.last_result) if regex.class = "Regex"
15
- return Regex.new(regex).match(ShellCommand.last_result)
14
+ return regex.match(ShellCommand.last_result["result"]) if regex.class == "Regexp"
15
+ return Regexp.new(regex).match(ShellCommand.last_result["result"])
16
16
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "shell_commands"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["phildebus"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shell_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 91248687
128
+ hash: -690997251
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements: