delicious-cli 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/delicious-cli/api.rb +5 -1
  2. metadata +4 -4
@@ -20,7 +20,11 @@ class Delicious
20
20
 
21
21
  def self.posts_all(options={})
22
22
  result = get('/posts/all', :query=>options)
23
- [result["posts"]["post"]].flatten # ensure it's an array
23
+ begin
24
+ [result["posts"]["post"]].flatten
25
+ rescue
26
+ []
27
+ end
24
28
  end
25
29
 
26
30
  def self.posts_since(time_string)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delicious-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
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: 2011-12-14 00:00:00.000000000 Z
12
+ date: 2011-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &68564890 !ruby/object:Gem::Requirement
16
+ requirement: &84893560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *68564890
24
+ version_requirements: *84893560
25
25
  description: A commandline tool which lets you download all your delicious.com links
26
26
  and search them (with pretty color-coded results).
27
27
  email: chris@ill-logic.com