git-media 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/git-media.gemspec +1 -1
- data/lib/git-media/filter-smudge.rb +2 -2
- metadata +3 -3
data/git-media.gemspec
CHANGED
@@ -6,7 +6,7 @@ module GitMedia
|
|
6
6
|
can_download = false # TODO: read this from config and implement
|
7
7
|
|
8
8
|
# read checksum size
|
9
|
-
sha = STDIN.
|
9
|
+
sha = STDIN.gets.chomp # read no more than 64 bytes
|
10
10
|
if STDIN.eof? && sha.length == 40 && sha.match(/^[0-9a-fA-F]+$/) != nil
|
11
11
|
# this is a media file
|
12
12
|
media_file = File.join(media_buffer, sha.chomp)
|
@@ -35,4 +35,4 @@ module GitMedia
|
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
38
|
-
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-media
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Chacon
|