dev_commands 0.0.52 → 0.0.53

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.
Files changed (3) hide show
  1. data/lib/command.rb +1 -1
  2. data/spec/command_spec.rb +6 -1
  3. metadata +1 -1
data/lib/command.rb CHANGED
@@ -183,7 +183,7 @@ class Command < Hash
183
183
  cmd[:output]
184
184
  end
185
185
 
186
- def self.summary
186
+ def summary
187
187
  "#{self[:exit_code].to_s} #{self[:input]} (#{self[:directory]})"
188
188
  end
189
189
 
data/spec/command_spec.rb CHANGED
@@ -55,6 +55,8 @@ describe Command do
55
55
  cmd[:end_time]=Time.now
56
56
  expect(cmd[:end_time]).not_to eq(nil)
57
57
 
58
+ # summay
59
+ expect(cmd.summary.include?('ruby')).to eq(true)
58
60
  end
59
61
 
60
62
  it "should be able to write to/load from JSON" do
@@ -117,7 +119,10 @@ describe Command do
117
119
  cmd.execute
118
120
  expect(cmd[:exit_code]).not_to eq(0)
119
121
 
120
- FileUtils.rm_r("#{dir}")
122
+ begin
123
+ FileUtils.rm_r("#{dir}")
124
+ rescue
125
+ end
121
126
  end
122
127
 
123
128
  it "should be able to execute an array of commands" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.53
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: