artifact 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/artifact.rb +5 -0
- data/lib/artifact/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719a51f999e705cae119974c8879e60e7dd64180
|
4
|
+
data.tar.gz: c32be0291f542afec30c81ebb0320641f25ed17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61041a7abe7fa3ed30a903dc0cbc1710a162a3a47854ba1cd2e8c49c6af4844e17e77d6f2fc659a6b43896b68203e987e72144121c896931aa020da991b28f25
|
7
|
+
data.tar.gz: eaed891f54a4fff5befd17177d979109e128d9d38b9e6c25c15db95f2fcfcb591d0ee6d76e070e4e1c7d184ab11076178dfbea4f751505571b717828864f3c3d
|
data/lib/artifact.rb
CHANGED
@@ -153,10 +153,15 @@ module Artifact
|
|
153
153
|
end
|
154
154
|
|
155
155
|
def save(path, author, check = true)
|
156
|
+
# index.add expects a clean path, without any leading ./
|
157
|
+
# so make sure we're passing a clean pathname
|
158
|
+
path = path.sub(/^\.\//, '')
|
159
|
+
|
156
160
|
if check && !new_file?(path) && !modified?(path)
|
157
161
|
raise "No changes in file: #{path}"
|
158
162
|
end
|
159
163
|
|
164
|
+
# puts "Adding to index: #{path}"
|
160
165
|
@git.index.add(path)
|
161
166
|
@git.index.write
|
162
167
|
write_commit("Saved #{path}", author)
|
data/lib/artifact/version.rb
CHANGED