Dahistory 0.4.1 → 0.4.2

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.
@@ -1,3 +1,3 @@
1
1
  class Dahistory
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -93,11 +93,15 @@ describe "Dahistory :git_add_commit" do
93
93
 
94
94
  Dir.chdir(@proj) {
95
95
  File.write @file, @file
96
- Dahistory { |o|
97
- o.file @file
98
- o.git_add_commit
99
- target = "Backup: #{o.backup_file}"
100
- } rescue nil
96
+
97
+ begin
98
+ Dahistory { |o|
99
+ o.file @file
100
+ o.git_add_commit
101
+ target = "Backup: #{o.backup_file}"
102
+ }
103
+ rescue Dahistory::Pending => e
104
+ end
101
105
 
102
106
  Exit_Zero('git log -n 1 --oneline --decorate=short')
103
107
  .out[target].should == target
@@ -115,10 +119,14 @@ describe "Dahistory :git_add_commit_push" do
115
119
 
116
120
  Dir.chdir(@proj) {
117
121
  File.write @file, @file
118
- Dahistory { |o|
119
- o.file @file
120
- o.git_add_commit_push
121
- } rescue nil
122
+
123
+ begin
124
+ Dahistory { |o|
125
+ o.file @file
126
+ o.git_add_commit_push
127
+ }
128
+ rescue Dahistory::Pending => e
129
+ end
122
130
 
123
131
  Exit_Zero('git push 2>&1').out["Everything up-to-date"].should == "Everything up-to-date"
124
132
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dahistory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: