delicious-cli 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/delicious-cli.rb +1 -0
- data/lib/delicious-cli/blank.rb +46 -0
- metadata +39 -52
- data/test/delicious-cli_test.rb +0 -7
- data/test/test_helper.rb +0 -10
data/lib/delicious-cli.rb
CHANGED
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# Gives all the Ruby base types (String, Hash, nil, etc.) a "blank?" method.
|
3
|
+
#
|
4
|
+
|
5
|
+
class Float
|
6
|
+
#
|
7
|
+
# 'true' if the float is 0.0
|
8
|
+
#
|
9
|
+
def blank?; self == 0.0; end
|
10
|
+
end
|
11
|
+
|
12
|
+
class NilClass
|
13
|
+
#
|
14
|
+
# Always 'true'; nil is considered blank.
|
15
|
+
#
|
16
|
+
def blank?; true; end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Symbol
|
20
|
+
#
|
21
|
+
# Symbols are never blank.
|
22
|
+
#
|
23
|
+
def blank?; false; end
|
24
|
+
end
|
25
|
+
|
26
|
+
class Integer
|
27
|
+
#
|
28
|
+
# 'true' if the integer is 0
|
29
|
+
#
|
30
|
+
def blank?; self == 0; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class String
|
34
|
+
#
|
35
|
+
# 'true' if the string's length is 0 (after whitespace has been stripped from the ends)
|
36
|
+
#
|
37
|
+
def blank?; strip.size == 0; end
|
38
|
+
end
|
39
|
+
|
40
|
+
module Enumerable
|
41
|
+
#
|
42
|
+
# 'true' if the Enumerable has no elements
|
43
|
+
#
|
44
|
+
def blank?; not any?; end
|
45
|
+
end
|
46
|
+
|
metadata
CHANGED
@@ -1,42 +1,41 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: delicious-cli
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.4.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- epitron
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-09-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: httparty
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &73716350 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
25
22
|
type: :runtime
|
26
|
-
|
27
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *73716350
|
25
|
+
description: A commandline tool which lets you download all your delicious.com links
|
26
|
+
and search them (with pretty color-coded results).
|
28
27
|
email: chris@ill-logic.com
|
29
|
-
executables:
|
28
|
+
executables:
|
30
29
|
- delicious
|
31
30
|
- dels
|
32
31
|
extensions: []
|
33
|
-
|
34
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
35
33
|
- LICENSE
|
36
34
|
- README.rdoc
|
37
|
-
files:
|
35
|
+
files:
|
38
36
|
- lib/delicious-cli.rb
|
39
37
|
- lib/delicious-cli/api.rb
|
38
|
+
- lib/delicious-cli/blank.rb
|
40
39
|
- lib/delicious-cli/colored.rb
|
41
40
|
- lib/delicious-cli/db.rb
|
42
41
|
- lib/delicious-cli/display.rb
|
@@ -44,47 +43,35 @@ files:
|
|
44
43
|
- lib/delicious-cli/settings.rb
|
45
44
|
- LICENSE
|
46
45
|
- README.rdoc
|
47
|
-
- test/delicious-cli_test.rb
|
48
|
-
- test/test_helper.rb
|
49
46
|
- bin/delicious
|
50
47
|
- bin/dels
|
51
|
-
has_rdoc: true
|
52
48
|
homepage: http://github.com/epitron/delicious-cli
|
53
49
|
licenses: []
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
To search, type:\n\n $ dels <search term(s)>\n\n\
|
61
|
-
To pull new links from your delicious account, type:\n\n $ dels -s\n \n\
|
62
|
-
To add dels -s to your crontab, type:\n\n $ crontab -e\n \n\
|
63
|
-
That's all, folks!\n \n\
|
64
|
-
========================================================================\n"
|
50
|
+
post_install_message: ! "\n========================================================================\nDelicious-CLI
|
51
|
+
installed!\n------------------------------------------------------------------------\n\nTo
|
52
|
+
configure your Delicious.com account, type:\n\n $ dels\n \nTo search, type:\n\n
|
53
|
+
\ $ dels <search term(s)>\n\nTo pull new links from your delicious account, type:\n\n
|
54
|
+
\ $ dels -s\n \nTo add dels -s to your crontab, type:\n\n $ crontab -e\n \nThat's
|
55
|
+
all, folks!\n \n========================================================================\n"
|
65
56
|
rdoc_options: []
|
66
|
-
|
67
|
-
require_paths:
|
57
|
+
require_paths:
|
68
58
|
- lib
|
69
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
60
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
66
|
none: false
|
77
|
-
requirements:
|
78
|
-
- -
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version:
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
81
71
|
requirements: []
|
82
|
-
|
83
72
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.8.6
|
85
74
|
signing_key:
|
86
75
|
specification_version: 3
|
87
76
|
summary: Delicious.com commandline interface
|
88
|
-
test_files:
|
89
|
-
- test/delicious-cli_test.rb
|
90
|
-
- test/test_helper.rb
|
77
|
+
test_files: []
|
data/test/delicious-cli_test.rb
DELETED
data/test/test_helper.rb
DELETED