command-runner 0.7.1 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 35d339b7a9ec8370365504412a82dfb2e18523b3
4
- data.tar.gz: 2ed783e009554db92e0374534ebe10dadc6e05de
5
- SHA512:
6
- metadata.gz: d038c4a0686d3dd7f484bc2a6f3f3eef464c6c1b1b2bab19d2a607ad21cc940d068229ce0af4f21380da9735f0d649f90dfee0ae88f2f8d7a212ab8f8dfff08f
7
- data.tar.gz: 7578cae4033ef1491a4d9c3534507d5bda162dcb81711325de219e447ab060610d5fcb0f9852d75cb540cad1578632034205a229efd5f7061393a8c963e0d732
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9c2621f1bb8bf6c57ea83aaaefaa8513f0498493
4
+ data.tar.gz: ece6a307c578b584d6885880a2af0c74d63262e7
5
+ SHA512:
6
+ metadata.gz: d2b68143080c04956b1288fbf871c83a064787ff59cb7fd8f4b311a49823ce6ea4ccec310de931f9367d2e8d066379abe97bb056da3a73d925465791b5d35f02
7
+ data.tar.gz: 0e20e6ec4c1a462e152a2d5d35aaab170bbb1164c3bb8cf097a00dae8d2b1db0d425e6f832346e764298dcbc50823c68a20d8033da130939302530ff48a2c777
@@ -67,6 +67,14 @@ module Command
67
67
  exit_code != 0
68
68
  end
69
69
 
70
+ # Returns if the command was successful or not. Success is
71
+ # defined as an exit code of 0.
72
+ #
73
+ # @return [Boolean]
74
+ def successful?
75
+ exit_code == 0
76
+ end
77
+
70
78
  # Whether or not the command existed; or, if the exit code
71
79
  # is 127.
72
80
  #
@@ -3,7 +3,7 @@ module Command
3
3
  class Runner
4
4
 
5
5
  # The current version of Runner.
6
- VERSION = "0.7.1".freeze
6
+ VERSION = "0.8.1".freeze
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,99 +1,116 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: command-runner
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Jeremy Rodi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-01-05 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: promise
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: "0.3"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
22
20
  type: :runtime
23
- version_requirements: *id001
24
- - !ruby/object:Gem::Dependency
25
- name: rspec
26
21
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - &id003
30
- - ">="
31
- - !ruby/object:Gem::Version
32
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2'
33
34
  type: :development
34
- version_requirements: *id002
35
- - !ruby/object:Gem::Dependency
36
- name: yard
37
35
  prerelease: false
38
- requirement: &id004 !ruby/object:Gem::Requirement
39
- requirements:
40
- - *id003
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.8'
41
48
  type: :development
42
- version_requirements: *id004
43
- - !ruby/object:Gem::Dependency
44
- name: fuubar
45
49
  prerelease: false
46
- requirement: &id005 !ruby/object:Gem::Requirement
47
- requirements:
48
- - *id003
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: fuubar
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1'
49
62
  type: :development
50
- version_requirements: *id005
51
- description: " Runs a command or two in the shell with arguments that can be\n interpolated with the interpolation syntax.\n"
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1'
69
+ description: |2
70
+ Runs a command or two in the shell with arguments that can be
71
+ interpolated with the interpolation syntax.
52
72
  email: redjazz96@gmail.com
53
73
  executables: []
54
-
55
74
  extensions: []
56
-
57
75
  extra_rdoc_files: []
58
-
59
- files:
76
+ files:
60
77
  - README.md
61
78
  - lib/command/runner.rb
62
- - lib/command/runner/message.rb
63
- - lib/command/runner/backends/posix_spawn.rb
64
- - lib/command/runner/backends/ssh.rb
79
+ - lib/command/runner/backends.rb
65
80
  - lib/command/runner/backends/backticks.rb
66
81
  - lib/command/runner/backends/fake.rb
82
+ - lib/command/runner/backends/posix_spawn.rb
67
83
  - lib/command/runner/backends/spawn.rb
84
+ - lib/command/runner/backends/ssh.rb
68
85
  - lib/command/runner/exceptions.rb
69
- - lib/command/runner/backends.rb
86
+ - lib/command/runner/message.rb
70
87
  - lib/command/runner/version.rb
71
- - spec/spawn_spec.rb
72
- - spec/messenger_spec.rb
73
88
  - spec/backticks_spec.rb
89
+ - spec/messenger_spec.rb
90
+ - spec/spawn_spec.rb
74
91
  homepage: http://github.com/redjazz96/command-runner
75
- licenses: []
76
-
92
+ licenses:
93
+ - MIT
77
94
  metadata: {}
78
-
79
95
  post_install_message:
80
96
  rdoc_options: []
81
-
82
- require_paths:
97
+ require_paths:
83
98
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
85
- requirements:
86
- - *id003
87
- required_rubygems_version: !ruby/object:Gem::Requirement
88
- requirements:
89
- - *id003
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
90
109
  requirements: []
91
-
92
110
  rubyforge_project:
93
- rubygems_version: 2.0.14
111
+ rubygems_version: 2.2.0
94
112
  signing_key:
95
113
  specification_version: 4
96
114
  summary: Runs commands.
97
115
  test_files: []
98
-
99
116
  has_rdoc: false