shell_commands 1.0.1.pre → 1.0.1

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.0.1.pre"
18
+ gem.version = "1.0.1"
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}
@@ -10,3 +10,7 @@ def result_matches(regex)
10
10
  return !Regex.new(regex).match(ShellCommand.last_result).nil?
11
11
  end
12
12
 
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)
16
+ end
@@ -5,9 +5,9 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "shell_commands"
8
- s.version = "1.0.1.pre"
8
+ s.version = "1.0.1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["phildebus"]
12
12
  s.date = "2013-03-06"
13
13
  s.description = "Simple gem used to manage calling shell commands from ruby"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shell_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre
5
- prerelease: 6
4
+ version: 1.0.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - phildebus
@@ -125,13 +125,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 62238547
128
+ hash: -364707441
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
- - - '>'
132
+ - - '>='
133
133
  - !ruby/object:Gem::Version
134
- version: 1.3.1
134
+ version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
137
  rubygems_version: 1.8.25