spitball 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/spitball/remote.rb +5 -6
- data/lib/spitball.rb +2 -2
- data/spitball.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/spitball/remote.rb
CHANGED
@@ -12,9 +12,8 @@ class Spitball::Remote
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def copy_to(path)
|
15
|
-
|
16
|
-
|
17
|
-
end
|
15
|
+
data = get_tarball_data
|
16
|
+
File.open(path, 'w') { |f| f.write data }
|
18
17
|
end
|
19
18
|
|
20
19
|
def get_tarball_data
|
@@ -34,12 +33,12 @@ class Spitball::Remote
|
|
34
33
|
return try.body
|
35
34
|
end
|
36
35
|
|
37
|
-
raise
|
36
|
+
raise Spitball::ServerFailure, "Spitball build timed out. The build failed or it's just taking a while..."
|
38
37
|
else
|
39
|
-
raise
|
38
|
+
raise Spitball::ServerFailure, "Expected 2xx response code. Got #{res.code}."
|
40
39
|
end
|
41
40
|
rescue URI::InvalidURIError => e
|
42
|
-
raise
|
41
|
+
raise Spitball::ClientError, e.message
|
43
42
|
end
|
44
43
|
|
45
44
|
end
|
data/lib/spitball.rb
CHANGED
@@ -6,8 +6,8 @@ class Spitball
|
|
6
6
|
require 'spitball/file_lock'
|
7
7
|
require 'spitball/remote'
|
8
8
|
|
9
|
-
class
|
10
|
-
class
|
9
|
+
class ServerFailure < StandardError; end
|
10
|
+
class ClientFailure < StandardError; end
|
11
11
|
class BundleCreationFailure < StandardError; end
|
12
12
|
|
13
13
|
VERSION = '1.0'
|
data/spitball.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{spitball}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Freels", "Brandon Mitchell"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-05}
|
13
13
|
s.description = %q{Use bundler to generate gem tarball packages.}
|
14
14
|
s.email = %q{freels@twitter.com}
|
15
15
|
s.executables = ["spitball", "spitball-server"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spitball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Freels
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-08-05 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|