git-si 0.2.2 → 0.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a331844ddac8b91cee51864cf1aec0d8b3272e48
4
- data.tar.gz: 39cacc944953ef4978aaa5f37aa58399ffc79105
3
+ metadata.gz: 5fa4cb1490e4fa174cd2b63a1b99891d81f9c62a
4
+ data.tar.gz: 411468912a2bb99f923e03eea0c60edb7876e727
5
5
  SHA512:
6
- metadata.gz: 71fb13f703ddf31985ffcfb89c3be05b9eaf645dcdaddba9a19c43475de2b6842c3642caaa9e1bfc004b3cb2d6a6170ba08f8732676f9f7244b42c3009bcba4a
7
- data.tar.gz: 3b42aa61cb749d92fac743f5b879c78dd007e1e685fd04128b0cb074a65bb030820009205311cba507531a6f2979b5a03c165c7243817309122efbcc20ae25f9
6
+ metadata.gz: a58ab96d2bcd37856541fed3b6e41b3a21c75690f995d78085507313e16c4b801426a94b8fd458dd3109e1d832e31ee450921d810f408725e22aaf467ac6193f
7
+ data.tar.gz: 2baf357e1ad7f4232daba0c2df746d4daf321c863438b33afea37c42f870519aedfbad676236a600c9b954265f2de3ecb4e0ddec44dd2b7629e84752a5f9dea1
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Si
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
data/lib/git/si.rb CHANGED
@@ -207,8 +207,10 @@ continue, it's wise to reset the master branch afterward."
207
207
  filename = $1
208
208
  file_in_git = `git ls-files #{filename}`
209
209
  raise GitError.new("Failed to list git files. I'm not sure why. Check for any errors above.") unless $?.success?
210
- files_to_add << filename if file_in_git
211
- say filename
210
+ if not file_in_git.empty?
211
+ files_to_add << filename if file_in_git
212
+ say filename
213
+ end
212
214
  end
213
215
  end
214
216
  end
@@ -253,7 +255,7 @@ continue, it's wise to reset the master branch afterward."
253
255
  end
254
256
 
255
257
  # check for existing .gitingore
256
- gitignore = [".svn", "*.sw?", ".config", "*.err", "*.pid", "*.log", "svn-commit.*"]
258
+ gitignore = [".svn", "*.sw?", ".config", "*.err", "*.pid", "*.log", "svn-commit.*", "*.orig"]
257
259
  command = "svn status --ignore-externals "
258
260
  svn_status = `#{command}`
259
261
  raise SvnError.new("Failed to get the svn status. I'm not sure why. Check for any errors above.") if ! $?.success?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-si
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Payton Swick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-31 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler