git-media 0.1.2 → 0.1.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.
data/git-media.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{git-media}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Scott Chacon"]
@@ -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.readline(64).strip # read no more than 64 bytes
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Chacon