unsavory 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/unsavory +5 -4
  3. metadata +16 -21
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f94dd0d22cd104bf58503457cb03993b95e37b8d
4
+ data.tar.gz: b237ef4131de0ea556563ba85e93018cee3a89aa
5
+ SHA512:
6
+ metadata.gz: aa0cc5f8e791aefbcf0b80e100d2a7cfe6cc7fb89701fbe7bd593cbff829aaacaf81fc46ec8eb39caf27c9dbde974ac700734b14a8b4fe7c3b36cc2327589f15
7
+ data.tar.gz: df18888218d3e7d375e72dbaebda03cd67a8f6e9248f6d957956110bf711eca7518bbd571bc060451432c810ff1259593eb4ed9dd91d9264bb701524aca35bba
data/bin/unsavory CHANGED
@@ -21,7 +21,7 @@ elsif highline
21
21
  pass = hl.ask('Enter Pinboard password: ') { |q| q.echo = "*" }
22
22
  else
23
23
  puts %{
24
- Can't find config file '#{CFG_FILE}' and you
24
+ Can't find config file '#{CFG_FILE}' and you
25
25
  don't seem to have HighLine installed. Aborting!
26
26
  }
27
27
  exit 1
@@ -58,8 +58,9 @@ urls.each_with_index do |url, idx|
58
58
  Net::HTTP.start(uri.host, uri.port) do |http|
59
59
  response = http.head(uri.path.size > 0 ? uri.path : "/")
60
60
  end
61
- rescue => e
62
- logger.error "#{e.message} - #{url}"
61
+ # In 1.8, TimeoutError does not inherit from StandardError
62
+ rescue StandardError, Timeout::Error => e
63
+ logger.error "#{e.message} - #{url}"
63
64
  next
64
65
  end
65
66
 
@@ -74,7 +75,7 @@ urls.each_with_index do |url, idx|
74
75
  if response.code == '404'
75
76
  pinboard.delete(url)
76
77
  logger.info "Deleted #{url}"
77
- elsif response.code != '200'
78
+ elsif response.code != '200'
78
79
  logger.info "#{response.code}: #{url}"
79
80
  end
80
81
  end
metadata CHANGED
@@ -1,48 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unsavory
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.0.1
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Kohl
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
11
+ date: 2013-09-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
14
  name: httparty
17
- prerelease: false
18
15
  requirement: !ruby/object:Gem::Requirement
19
16
  requirements:
20
- - - ! '>='
17
+ - - '>='
21
18
  - !ruby/object:Gem::Version
22
19
  version: 0.4.3
23
- none: false
20
+ type: :runtime
21
+ prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
23
  requirements:
26
- - - ! '>='
24
+ - - '>='
27
25
  - !ruby/object:Gem::Version
28
26
  version: 0.4.3
29
- none: false
30
27
  - !ruby/object:Gem::Dependency
31
- type: :runtime
32
28
  name: progressbar
33
- prerelease: false
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
- - - ! '>='
31
+ - - '>='
37
32
  - !ruby/object:Gem::Version
38
33
  version: 0.9.0
39
- none: false
34
+ type: :runtime
35
+ prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
37
  requirements:
42
- - - ! '>='
38
+ - - '>='
43
39
  - !ruby/object:Gem::Version
44
40
  version: 0.9.0
45
- none: false
46
41
  description:
47
42
  email: citizen428@gmail.com
48
43
  executables:
@@ -56,26 +51,26 @@ files:
56
51
  - ./README.rdoc
57
52
  homepage: http://github.com/citizen428/unsavory
58
53
  licenses: []
54
+ metadata: {}
59
55
  post_install_message:
60
56
  rdoc_options: []
61
57
  require_paths:
62
58
  - lib
63
59
  required_ruby_version: !ruby/object:Gem::Requirement
64
60
  requirements:
65
- - - ! '>='
61
+ - - '>='
66
62
  - !ruby/object:Gem::Version
67
63
  version: '0'
68
- none: false
69
64
  required_rubygems_version: !ruby/object:Gem::Requirement
70
65
  requirements:
71
- - - ! '>='
66
+ - - '>='
72
67
  - !ruby/object:Gem::Version
73
68
  version: '0'
74
- none: false
75
69
  requirements: []
76
70
  rubyforge_project:
77
- rubygems_version: 1.8.23
71
+ rubygems_version: 2.0.0
78
72
  signing_key:
79
- specification_version: 3
73
+ specification_version: 4
80
74
  summary: Removes outdated links from your Pinboard bookmarks
81
75
  test_files: []
76
+ has_rdoc: false