derelict 0.4.1.travis.116 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGZhZTk0NmQ4ZWUwZTAzOWZlOTc3NjlhM2Y2MGIxMTBjN2YwYWNlMQ==
5
- data.tar.gz: !binary |-
6
- ODVmY2E2MTEwYWI0YTdkYjdjNTZiZDI3MGE3MzJmYTc0NzcxZmY3OQ==
2
+ SHA1:
3
+ metadata.gz: 42ab76836b85f222732750b8ba6484b5f4da0429
4
+ data.tar.gz: 6c11428378b62de3a382926481d7a362fcd6240f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDI5NGExMzQyYjdmYmNmZjI0ZjU4MTQ0YTVlNTEwNzk0NTNhNTY2NDA5NDg3
10
- MWI4MzM0MjAwZWRkNmJlZTAzNjQyNjg1YzcwZjg0ZjY4NjlhY2FiYThkYzU5
11
- YTk5MjJmNjliZjIxZWQyNzM1ZTU4OTg5YmVjZTE0YjM0ZjRmNGU=
12
- data.tar.gz: !binary |-
13
- ZGQ4ZmNjOTE2ZTRhMTczMzRkNGQwZjdkMDQwODUyNWRjODA0Zjc3ZmVmOThh
14
- NTA4ODE3Y2E0MzU4MjNmZWQ2ODUwN2I1ZTliOTJhNmE1ZTRlODFhNDA4ZmI0
15
- ODUyMzJmMjA2NTExZDczNTc0ZmVkYTgwM2E2ZDg4NzQ2YWI2NDg=
6
+ metadata.gz: 7079ca72766e9586bf084d39101b33ea0635c2558f0eface3e9dc22dcb670e100a282079aded2089b0249f38a772a3f4f3c693550780e9bb2748346d6675c6fd
7
+ data.tar.gz: dc6fc0fd5243063a3911fed6ad91c14591e1a24bbf694f27f4609f6e41aa7fb124ee1e59ef6848c66acc839a9f851aa85bbf9d29aa3be3f3d5d0ec795b119173
@@ -4,7 +4,7 @@ module Derelict
4
4
  # The safety involved is mainly ensuring that the command is
5
5
  # gracefully terminated if this process is about to terminate.
6
6
  class Executer
7
- attr_reader :stdout, :stderr, :success
7
+ attr_reader :stdout, :stderr
8
8
 
9
9
  # Executes <tt>command</tt> and returns after execution
10
10
  #
@@ -69,6 +69,14 @@ module Derelict
69
69
  self
70
70
  end
71
71
 
72
+ # Determines whether the last command was successful or not
73
+ #
74
+ # If the command's exit status was zero, this will return true.
75
+ # If the command's exit status is anything else, this will return
76
+ # false. If a command is currently running, this will return nil.
77
+ def success?
78
+ @success
79
+ end
72
80
 
73
81
  private
74
82
  # Clears the variables relating to a particular command execution
@@ -1,3 +1,3 @@
1
1
  module Derelict
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -22,7 +22,7 @@ describe Derelict::Executer do
22
22
  it { should be_a described_class }
23
23
  its(:stdout) { should eq "" }
24
24
  its(:stderr) { should eq "" }
25
- its(:success) { should be_nil }
25
+ its(:success?) { should be_nil }
26
26
 
27
27
  context "with :chars mode specified" do
28
28
  let(:options) { {:mode => :chars} }
@@ -42,7 +42,7 @@ describe Derelict::Executer do
42
42
  let(:command) { "echo 'test 1'" }
43
43
  its(:stdout) { should eq "test 1\n" }
44
44
  its(:stderr) { should eq "" }
45
- its(:success) { should be_true }
45
+ its(:success?) { should be_true }
46
46
 
47
47
  context "with non-existent command" do
48
48
  let(:command) { "not_actually_a_command" }
@@ -53,7 +53,7 @@ describe Derelict::Executer do
53
53
 
54
54
  context "with unsuccessful command" do
55
55
  let(:command) { "false" }
56
- its(:success) { should be_false }
56
+ its(:success?) { should be_false }
57
57
  end
58
58
  end
59
59
 
@@ -69,7 +69,7 @@ describe Derelict::Executer do
69
69
 
70
70
  its(:stdout) { should eq "test 2\n" }
71
71
  its(:stderr) { should eq "" }
72
- its(:success) { should be_true }
72
+ its(:success?) { should be_true }
73
73
  specify "the block should get called" do
74
74
  subject; expect(@buffer).to eq executer.stdout
75
75
  end
@@ -87,7 +87,7 @@ describe Derelict::Executer do
87
87
 
88
88
  its(:stdout) { should eq "test 3\n" }
89
89
  its(:stderr) { should eq "test 4\n" }
90
- its(:success) { should be_true }
90
+ its(:success?) { should be_true }
91
91
  specify "the block should get called" do
92
92
  subject
93
93
  expect(@stdout).to eq executer.stdout
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derelict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.travis.116
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Feehan
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: log4r
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: memoist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: open4
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,84 +70,84 @@ dependencies:
70
70
  name: cane
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: its
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
@@ -164,16 +164,10 @@ dependencies:
164
164
  - - <
165
165
  - !ruby/object:Gem::Version
166
166
  version: '2.0'
167
- description: ! 'Provides a Ruby API to control Vagrant where Vagrant is installed
168
- via the Installer package on Mac OS X.
167
+ description: |-
168
+ Provides a Ruby API to control Vagrant where Vagrant is installed via the Installer package on Mac OS X.
169
169
 
170
-
171
- Vagrant was historically available as a gem, naturally providing a Ruby API to control
172
- Vagrant in other Ruby libraries and applications. However, since version 1.1.0,
173
- Vagrant is distributed exclusively using an Installer package. To control Vagrant
174
- when it''s installed this way, other Ruby libraries and applications typically need
175
- to invoke the Vagrant binary, which requires forking a new process and parsing its
176
- output using string manipulation.'
170
+ Vagrant was historically available as a gem, naturally providing a Ruby API to control Vagrant in other Ruby libraries and applications. However, since version 1.1.0, Vagrant is distributed exclusively using an Installer package. To control Vagrant when it's installed this way, other Ruby libraries and applications typically need to invoke the Vagrant binary, which requires forking a new process and parsing its output using string manipulation.
177
171
  email:
178
172
  - git@bradfeehan.com
179
173
  executables: []
@@ -274,17 +268,17 @@ require_paths:
274
268
  - lib
275
269
  required_ruby_version: !ruby/object:Gem::Requirement
276
270
  requirements:
277
- - - ! '>='
271
+ - - '>='
278
272
  - !ruby/object:Gem::Version
279
273
  version: '0'
280
274
  required_rubygems_version: !ruby/object:Gem::Requirement
281
275
  requirements:
282
- - - ! '>'
276
+ - - '>='
283
277
  - !ruby/object:Gem::Version
284
- version: 1.3.1
278
+ version: '0'
285
279
  requirements: []
286
280
  rubyforge_project:
287
- rubygems_version: 2.1.11
281
+ rubygems_version: 2.0.3
288
282
  signing_key:
289
283
  specification_version: 4
290
284
  summary: Ruby API for Vagrant installed via Installer package on Mac OS X.