delicious-cli 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +5 -0
- data/README.rdoc +3 -2
- data/Rakefile +18 -0
- data/VERSION +1 -0
- data/delicious-cli.gemspec +66 -0
- data/lib/delicious-cli/api.rb +14 -0
- data/test/delicious-cli_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +51 -23
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3ac122403257fb96396cb26804715906c80ad2c9
|
4
|
+
data.tar.gz: cd55b17775b4469ec4fc332669592ac226f18903
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ba228f4ee423851df4672df9612cba0f2734b119573403819ae185ba4eed97bab207ffb2b1ff5a1946dea4d59eb23d0fe9e3dea8a7f20888ab8ec4aabdd5f01d
|
7
|
+
data.tar.gz: 13f7a8ba5a69b83206116df30155497efb7d8b5ffe25b21400443f51d695eb193a37ef0d2aa9b9a0e2479be1cbde4f4ca00ceddd791889bdf11bb5df08c48a25
|
data/.document
ADDED
data/README.rdoc
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
= Delicious.com Command-line Interface
|
2
2
|
|
3
|
+
http://chris.ill-logic.com/images/delicious-cli.png
|
4
|
+
|
3
5
|
== Concept
|
4
6
|
|
5
7
|
This program lets you locally mirror your delicious links, and quickly search them (with pretty colour-coded results).
|
@@ -8,12 +10,11 @@ Usage:
|
|
8
10
|
|
9
11
|
delicious <search query>
|
10
12
|
or
|
11
|
-
dels <search query> (if you're into the brevity thing)
|
13
|
+
dels <search query> (if you're into the whole brevity thing)
|
12
14
|
|
13
15
|
|
14
16
|
== Installation
|
15
17
|
|
16
|
-
gem sources --add http://gemcutter.org
|
17
18
|
gem install delicious-cli
|
18
19
|
|
19
20
|
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
gem_version = File.read("VERSION").strip
|
2
|
+
gem_name = "delicious-cli"
|
3
|
+
|
4
|
+
task :build do
|
5
|
+
system "gem build #{gem_name}.gemspec"
|
6
|
+
end
|
7
|
+
|
8
|
+
task :release => :build do
|
9
|
+
system "gem push #{gem_name}-#{gem_version}.gem"
|
10
|
+
end
|
11
|
+
|
12
|
+
task :install => :build do
|
13
|
+
system "gem install #{gem_name}-#{gem_version}.gem"
|
14
|
+
end
|
15
|
+
|
16
|
+
task :pry do
|
17
|
+
system "pry --gem"
|
18
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.5.2
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "delicious-cli"
|
8
|
+
s.version = File.read("VERSION").strip
|
9
|
+
s.date = File.mtime("VERSION").strftime("%Y-%m-%d")
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
|
13
|
+
s.authors = ["epitron"]
|
14
|
+
s.date = "2011-12-14"
|
15
|
+
s.description = "A commandline tool which lets you download all your delicious.com links and search them (with pretty color-coded results)."
|
16
|
+
s.email = "chris@ill-logic.com"
|
17
|
+
|
18
|
+
s.executables = ["delicious", "dels"]
|
19
|
+
|
20
|
+
s.extra_rdoc_files = [
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc"
|
23
|
+
]
|
24
|
+
|
25
|
+
s.files = `git ls`.lines.map(&:strip)
|
26
|
+
s.licenses = ["WTFPL"]
|
27
|
+
|
28
|
+
s.homepage = "http://github.com/epitron/delicious-cli"
|
29
|
+
s.require_paths = ["lib"]
|
30
|
+
s.rubygems_version = "1.8.10"
|
31
|
+
s.summary = "Delicious.com commandline interface"
|
32
|
+
|
33
|
+
if s.respond_to? :specification_version then
|
34
|
+
s.specification_version = 3
|
35
|
+
|
36
|
+
s.add_dependency(%q<httparty>, ["~> 0"])
|
37
|
+
end
|
38
|
+
|
39
|
+
s.post_install_message = %{
|
40
|
+
========================================================================
|
41
|
+
Delicious-CLI installed!
|
42
|
+
------------------------------------------------------------------------
|
43
|
+
|
44
|
+
To configure your Delicious.com account, type:
|
45
|
+
|
46
|
+
$ dels
|
47
|
+
|
48
|
+
To search, type:
|
49
|
+
|
50
|
+
$ dels <search term(s)>
|
51
|
+
|
52
|
+
To pull new links from your delicious account, type:
|
53
|
+
|
54
|
+
$ dels -s
|
55
|
+
|
56
|
+
To add dels -s to your crontab, type:
|
57
|
+
|
58
|
+
$ crontab -e
|
59
|
+
|
60
|
+
That's all, folks!
|
61
|
+
|
62
|
+
========================================================================
|
63
|
+
}
|
64
|
+
|
65
|
+
end
|
66
|
+
|
data/lib/delicious-cli/api.rb
CHANGED
@@ -18,7 +18,21 @@ class Delicious
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
#
|
22
|
+
# posts_all options:
|
23
|
+
# (from: https://github.com/SciDevs/delicious-api/blob/master/api/posts.md#v1postsall)
|
24
|
+
#
|
25
|
+
# &tag_separator=comma (optional) - (Recommended) Returns tags separated by a comma, instead of a space character. A space separator is currently used by default to avoid breaking existing clients - these default may change in future API revisions.
|
26
|
+
# &tag={TAG} (optional) — Filter by this tag.
|
27
|
+
# &start={xx} (optional) — Start returning posts this many results into the set.
|
28
|
+
# &results={xx} (optional) — Return up to this many results. By default, up to 1000 bookmarks are returned, and a maximum of 100000 bookmarks is supported via this API.
|
29
|
+
# &fromdt={CCYY-MM-DDThh:mm:ssZ} (optional) — Filter for posts on this date or later.
|
30
|
+
# &todt={CCYY-MM-DDThh:mm:ssZ} (optional) — Filter for posts on this date or earlier.
|
31
|
+
# &meta=yes (optional) — Include change detection signatures on each item in a ‘meta’ attribute. Clients wishing to maintain a synchronized local store of bookmarks should retain the value of this attribute - its value will change when any significant field of the bookmark changes.
|
32
|
+
#
|
21
33
|
def self.posts_all(options={})
|
34
|
+
options = {:results => 100000}.merge(options)
|
35
|
+
|
22
36
|
result = get('/posts/all', :query=>options)
|
23
37
|
begin
|
24
38
|
[result["posts"]["post"]].flatten
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,27 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delicious-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- epitron
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
11
|
+
date: 2011-12-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: httparty
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
description: A commandline tool which lets you download all your delicious.com links
|
26
28
|
and search them (with pretty color-coded results).
|
27
29
|
email: chris@ill-logic.com
|
@@ -33,6 +35,15 @@ extra_rdoc_files:
|
|
33
35
|
- LICENSE
|
34
36
|
- README.rdoc
|
35
37
|
files:
|
38
|
+
- .document
|
39
|
+
- .gitignore
|
40
|
+
- LICENSE
|
41
|
+
- README.rdoc
|
42
|
+
- Rakefile
|
43
|
+
- VERSION
|
44
|
+
- bin/delicious
|
45
|
+
- bin/dels
|
46
|
+
- delicious-cli.gemspec
|
36
47
|
- lib/delicious-cli.rb
|
37
48
|
- lib/delicious-cli/api.rb
|
38
49
|
- lib/delicious-cli/blank.rb
|
@@ -41,36 +52,53 @@ files:
|
|
41
52
|
- lib/delicious-cli/display.rb
|
42
53
|
- lib/delicious-cli/log.rb
|
43
54
|
- lib/delicious-cli/settings.rb
|
44
|
-
-
|
45
|
-
-
|
46
|
-
- bin/delicious
|
47
|
-
- bin/dels
|
55
|
+
- test/delicious-cli_test.rb
|
56
|
+
- test/test_helper.rb
|
48
57
|
homepage: http://github.com/epitron/delicious-cli
|
49
|
-
licenses:
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
58
|
+
licenses:
|
59
|
+
- WTFPL
|
60
|
+
metadata: {}
|
61
|
+
post_install_message: |2
|
62
|
+
|
63
|
+
========================================================================
|
64
|
+
Delicious-CLI installed!
|
65
|
+
------------------------------------------------------------------------
|
66
|
+
|
67
|
+
To configure your Delicious.com account, type:
|
68
|
+
|
69
|
+
$ dels
|
70
|
+
|
71
|
+
To search, type:
|
72
|
+
|
73
|
+
$ dels <search term(s)>
|
74
|
+
|
75
|
+
To pull new links from your delicious account, type:
|
76
|
+
|
77
|
+
$ dels -s
|
78
|
+
|
79
|
+
To add dels -s to your crontab, type:
|
80
|
+
|
81
|
+
$ crontab -e
|
82
|
+
|
83
|
+
That's all, folks!
|
84
|
+
|
85
|
+
========================================================================
|
56
86
|
rdoc_options: []
|
57
87
|
require_paths:
|
58
88
|
- lib
|
59
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
90
|
requirements:
|
62
|
-
- -
|
91
|
+
- - '>='
|
63
92
|
- !ruby/object:Gem::Version
|
64
93
|
version: '0'
|
65
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
95
|
requirements:
|
68
|
-
- -
|
96
|
+
- - '>='
|
69
97
|
- !ruby/object:Gem::Version
|
70
98
|
version: '0'
|
71
99
|
requirements: []
|
72
100
|
rubyforge_project:
|
73
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.4.1
|
74
102
|
signing_key:
|
75
103
|
specification_version: 3
|
76
104
|
summary: Delicious.com commandline interface
|