haste 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/haste.rb +2 -2
- data/lib/haste/version.rb +1 -1
- metadata +7 -7
data/lib/haste.rb
CHANGED
@@ -33,7 +33,7 @@ module Haste
|
|
33
33
|
else
|
34
34
|
abort "failure uploading: #{response.code}"
|
35
35
|
end
|
36
|
-
rescue
|
36
|
+
rescue JSON::ParserError => e
|
37
37
|
abort "failure uploading: #{response.code}"
|
38
38
|
rescue Errno::ECONNREFUSED => e
|
39
39
|
abort "failure connecting: #{e.message}"
|
@@ -43,7 +43,7 @@ module Haste
|
|
43
43
|
|
44
44
|
def server
|
45
45
|
return @server if @server
|
46
|
-
@server = ENV['HASTE_SERVER'] || Haste::DEFAULT_URL
|
46
|
+
@server = ENV['HASTE_SERVER'].dup || Haste::DEFAULT_URL
|
47
47
|
@server.chop! if server.end_with?('/')
|
48
48
|
@server
|
49
49
|
end
|
data/lib/haste/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haste
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70116037579920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70116037579920
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70116037579500 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70116037579500
|
36
36
|
description: CLI Haste Client
|
37
37
|
email: john.crepezzi@gmail.com
|
38
38
|
executables:
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.8.
|
66
|
+
rubygems_version: 1.8.17
|
67
67
|
signing_key:
|
68
68
|
specification_version: 3
|
69
69
|
summary: Haste Client
|