haste 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/haste.rb +2 -2
  2. data/lib/haste/version.rb +1 -1
  3. metadata +7 -7
@@ -33,7 +33,7 @@ module Haste
33
33
  else
34
34
  abort "failure uploading: #{response.code}"
35
35
  end
36
- rescue RuntimeError, JSON::ParserError => e
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
@@ -1,5 +1,5 @@
1
1
  module Haste
2
2
 
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
 
5
5
  end
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.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-01-28 00:00:00.000000000Z
12
+ date: 2012-04-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2156024600 !ruby/object:Gem::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: *2156024600
24
+ version_requirements: *70116037579920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &2156024100 !ruby/object:Gem::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: *2156024100
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.15
66
+ rubygems_version: 1.8.17
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Haste Client