shell_commands 1.0.0.pre → 1.0.1.pre

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.0.pre"
18
+ gem.version = "1.0.1.pre"
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}
@@ -1,4 +1,3 @@
1
- require 'shell_command_failure'
2
1
 
3
2
  class ShellCommand
4
3
  @@results = []
@@ -19,8 +18,12 @@ class ShellCommand
19
18
  @@last_result = %x[#{command} 2>&1]
20
19
  while not $?.exited? do
21
20
  end
22
- @@results << [@@last_result, $?.succcess?]
23
- return $?.succcess?
21
+ @@results << {
22
+ :command => command,
23
+ :result => @@last_result,
24
+ :success => $?.success?
25
+ }
26
+ return $?.success?
24
27
  end
25
28
 
26
29
  def self.do_command(command)
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "shell_commands"
8
+ s.version = "1.0.1.pre"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["phildebus"]
12
+ s.date = "2013-03-06"
13
+ s.description = "Simple gem used to manage calling shell commands from ruby"
14
+ s.email = "debus.phil@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "LICENSE.txt",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "lib/shell_commands.rb",
26
+ "lib/shell_commands/shell_command.rb",
27
+ "lib/shell_commands/shell_command_failure.rb",
28
+ "shell_commands.gemspec",
29
+ "test/helper.rb",
30
+ "test/test_shell_commands.rb"
31
+ ]
32
+ s.homepage = "http://github.com/phildebus/shell_commands"
33
+ s.licenses = ["MIT"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = "1.8.25"
36
+ s.summary = "Simple gem used to manage calling shell commands from ruby"
37
+
38
+ if s.respond_to? :specification_version then
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
43
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
44
+ s.add_development_dependency(%q<bundler>, [">= 0"])
45
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
46
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
47
+ else
48
+ s.add_dependency(%q<shoulda>, [">= 0"])
49
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
50
+ s.add_dependency(%q<bundler>, [">= 0"])
51
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
52
+ s.add_dependency(%q<simplecov>, [">= 0"])
53
+ end
54
+ else
55
+ s.add_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
+ s.add_dependency(%q<bundler>, [">= 0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
59
+ s.add_dependency(%q<simplecov>, [">= 0"])
60
+ end
61
+ end
62
+
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.0.0.pre
4
+ version: 1.0.1.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -107,6 +107,7 @@ files:
107
107
  - lib/shell_commands.rb
108
108
  - lib/shell_commands/shell_command.rb
109
109
  - lib/shell_commands/shell_command_failure.rb
110
+ - shell_commands.gemspec
110
111
  - test/helper.rb
111
112
  - test/test_shell_commands.rb
112
113
  homepage: http://github.com/phildebus/shell_commands
@@ -124,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  segments:
126
127
  - 0
127
- hash: 906457491
128
+ hash: 62238547
128
129
  required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  none: false
130
131
  requirements: