www-delicious 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +41 -0
- data/{MIT-LICENSE → MIT-LICENSE.rdoc} +0 -0
- data/Manifest +49 -0
- data/{README → README.rdoc} +13 -14
- data/Rakefile +36 -118
- data/TODO +4 -0
- data/lib/www/delicious.rb +527 -446
- data/lib/www/delicious/bundle.rb +41 -22
- data/lib/www/delicious/element.rb +72 -0
- data/lib/www/delicious/errors.rb +2 -2
- data/lib/www/delicious/post.rb +71 -61
- data/lib/www/delicious/tag.rb +43 -62
- data/lib/www/delicious/version.rb +1 -1
- data/test/fixtures/net_response_invalid_account.yml +25 -0
- data/test/fixtures/net_response_success.yml +23 -0
- data/test/helper.rb +19 -79
- data/test/test_all.rb +17 -0
- data/test/test_offline.rb +17 -0
- data/test/test_online.rb +19 -0
- data/test/testcases/element/bundle.xml +1 -0
- data/test/testcases/element/invalid_root.xml +2 -0
- data/test/testcases/element/post.xml +2 -0
- data/test/testcases/element/post_unshared.xml +2 -0
- data/test/testcases/element/tag.xml +1 -0
- data/test/testcases/response/bundles_all.xml +5 -0
- data/test/testcases/response/bundles_all_empty.xml +2 -0
- data/test/testcases/response/bundles_delete.xml +2 -0
- data/test/testcases/response/bundles_set.xml +2 -0
- data/test/testcases/response/bundles_set_error.xml +2 -0
- data/test/testcases/response/posts_add.xml +2 -0
- data/test/testcases/response/posts_all.xml +12 -0
- data/test/testcases/response/posts_dates.xml +14 -0
- data/test/testcases/response/posts_dates_with_tag.xml +14 -0
- data/test/testcases/response/posts_delete.xml +2 -0
- data/test/testcases/response/posts_get.xml +7 -0
- data/test/testcases/response/posts_get_with_tag.xml +6 -0
- data/test/testcases/response/posts_recent.xml +19 -0
- data/test/testcases/response/posts_recent_with_tag.xml +19 -0
- data/test/testcases/response/tags_get.xml +5 -0
- data/test/testcases/response/tags_get_empty.xml +2 -0
- data/test/testcases/response/tags_rename.xml +2 -0
- data/test/testcases/response/update.delicious1.xml +2 -0
- data/test/testcases/response/update.xml +3 -0
- data/test/unit/bundle_test.rb +62 -0
- data/test/unit/delicious_test.rb +186 -238
- data/test/unit/online/online_test.rb +147 -0
- data/test/unit/post_test.rb +67 -0
- data/test/unit/tag_test.rb +68 -0
- data/www-delicious.gemspec +146 -0
- metadata +85 -31
- data/CHANGELOG +0 -5
- data/test/unit/delicious_bundle_test.rb +0 -90
- data/test/unit/delicious_online_test.rb +0 -143
- data/test/unit/delicious_post_test.rb +0 -102
- data/test/unit/delicious_tag_test.rb +0 -140
@@ -0,0 +1,147 @@
|
|
1
|
+
#
|
2
|
+
# = WWW::Delicious
|
3
|
+
#
|
4
|
+
# Ruby client for del.icio.us API.
|
5
|
+
#
|
6
|
+
#
|
7
|
+
# Category:: WWW
|
8
|
+
# Package:: WWW::Delicious
|
9
|
+
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
+
#
|
11
|
+
#--
|
12
|
+
# SVN: $Id$
|
13
|
+
#++
|
14
|
+
|
15
|
+
|
16
|
+
require File.dirname(__FILE__) + '/../../helper'
|
17
|
+
|
18
|
+
|
19
|
+
# overwrite if file is called alone
|
20
|
+
RUN_ONLINE_TESTS = ($0 == __FILE__) unless defined? RUN_ONLINE_TESTS and RUN_ONLINE_TESTS
|
21
|
+
|
22
|
+
puts "Online test #{__FILE__} skipped.\n" +
|
23
|
+
"Use `ONLINE=1` to run online tests.\n" unless RUN_ONLINE_TESTS
|
24
|
+
|
25
|
+
|
26
|
+
class OnlineTest < Test::Unit::TestCase
|
27
|
+
|
28
|
+
def setup
|
29
|
+
init_account
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
def test_update
|
34
|
+
response = @delicious.update
|
35
|
+
assert_instance_of(Time, response)
|
36
|
+
end
|
37
|
+
|
38
|
+
|
39
|
+
def test_bundles_all
|
40
|
+
response = @delicious.bundles_all
|
41
|
+
assert_kind_of(Array, response)
|
42
|
+
|
43
|
+
response.each do |bundle|
|
44
|
+
assert_instance_of(WWW::Delicious::Bundle, bundle)
|
45
|
+
assert_instance_of(Array, bundle.tags)
|
46
|
+
assert_not_nil(bundle.name)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_bundles_set
|
51
|
+
bundle = WWW::Delicious::Bundle.new(:name => 'test_bundle', :tags => %w(ruby python).sort)
|
52
|
+
assert_nothing_raised() { @delicious.bundles_set(bundle) }
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_bundles_delete
|
56
|
+
bundle = WWW::Delicious::Bundle.new(:name => 'test_bundle')
|
57
|
+
assert_nothing_raised() { @delicious.bundles_delete(bundle) }
|
58
|
+
end
|
59
|
+
|
60
|
+
|
61
|
+
def test_tags_get
|
62
|
+
response = @delicious.tags_get
|
63
|
+
assert_kind_of(Array, response)
|
64
|
+
|
65
|
+
response.each do |tag|
|
66
|
+
assert_instance_of(WWW::Delicious::Tag, tag)
|
67
|
+
assert_not_nil(tag.name)
|
68
|
+
assert_not_nil(tag.count)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_tags_rename
|
73
|
+
ftag = WWW::Delicious::Tag.new(:name => 'old_tag')
|
74
|
+
otag = WWW::Delicious::Tag.new(:name => 'new_tag')
|
75
|
+
assert_nothing_raised() { @delicious.tags_rename(ftag, otag) }
|
76
|
+
end
|
77
|
+
|
78
|
+
|
79
|
+
def test_post_add
|
80
|
+
# TODO
|
81
|
+
end
|
82
|
+
|
83
|
+
def test_post_all
|
84
|
+
response = @delicious.posts_get
|
85
|
+
assert_kind_of(Array, response)
|
86
|
+
|
87
|
+
response.each do |post|
|
88
|
+
assert_kind_of(WWW::Delicious::Post, post)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_post_dates
|
93
|
+
response = @delicious.posts_dates
|
94
|
+
assert_kind_of(Hash, response)
|
95
|
+
|
96
|
+
response.each do |item, value|
|
97
|
+
assert_match(/[\d]{4}-[\d]{2}-[\d]{2}/, item)
|
98
|
+
assert_match(/[\d]+/, value.to_s)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
def test_post_delete
|
103
|
+
# TODO
|
104
|
+
end
|
105
|
+
|
106
|
+
def test_posts_get
|
107
|
+
response = @delicious.posts_get
|
108
|
+
assert_kind_of(Array, response)
|
109
|
+
|
110
|
+
response.each do |post|
|
111
|
+
assert_kind_of(WWW::Delicious::Post, post)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
def test_posts_recent
|
116
|
+
response = @delicious.posts_recent
|
117
|
+
assert_kind_of(Array, response)
|
118
|
+
|
119
|
+
response.each do |post|
|
120
|
+
assert_kind_of(WWW::Delicious::Post, post)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
protected
|
126
|
+
|
127
|
+
def init_account(options = {}, &block)
|
128
|
+
@delicious_username ||= ENV['DELICIOUS_USERNAME'] || self.class.prompt('Delicious Username') { |value| abort('Value cannot be blank') if value.blank?; value }
|
129
|
+
@delicious_password ||= ENV['DELICIOUS_PASSWORD'] || self.class.prompt('Delicious Password') { |value| abort('Value cannot be blank') if value.blank?; value }
|
130
|
+
@delicious = WWW::Delicious.new(@delicious_username, @delicious_password, options, &block)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Convenient method for collecting user input
|
134
|
+
def self.prompt(text, options = {}, &block)
|
135
|
+
default = options[:default] || ''
|
136
|
+
value = nil
|
137
|
+
while value.blank?
|
138
|
+
print "#{text} [#{default}]: "
|
139
|
+
value = STDIN.gets.chomp!
|
140
|
+
value = default if value.blank?
|
141
|
+
value = yield value if block_given?
|
142
|
+
value
|
143
|
+
end
|
144
|
+
value
|
145
|
+
end
|
146
|
+
|
147
|
+
end if RUN_ONLINE_TESTS
|
@@ -0,0 +1,67 @@
|
|
1
|
+
#
|
2
|
+
# = WWW::Delicious
|
3
|
+
#
|
4
|
+
# Ruby client for del.icio.us API.
|
5
|
+
#
|
6
|
+
#
|
7
|
+
# Category:: WWW
|
8
|
+
# Package:: WWW::Delicious
|
9
|
+
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
+
#
|
11
|
+
#--
|
12
|
+
# SVN: $Id$
|
13
|
+
#++
|
14
|
+
|
15
|
+
|
16
|
+
require File.dirname(__FILE__) + '/../helper'
|
17
|
+
require 'www/delicious/post'
|
18
|
+
|
19
|
+
|
20
|
+
class PostTest < Test::Unit::TestCase
|
21
|
+
|
22
|
+
def test_post
|
23
|
+
expected = { :title => 'JavaScript DOM reference', :url => URI.parse('http://www.howtocreate.co.uk/tutorials/texterise.php?dom=1') }
|
24
|
+
assert_attributes(instance(expected), expected)
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_post_shared_defaults_to_true
|
28
|
+
assert(instance(:title => 'Foo').shared)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_post_shared_is_false
|
32
|
+
assert(!instance(:title => 'Foo', :shared => false).shared)
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_post_from_rexml
|
36
|
+
dom = REXML::Document.new(File.read(TESTCASES_PATH + '/element/post.xml'))
|
37
|
+
element = WWW::Delicious::Post.from_rexml(dom.root)
|
38
|
+
|
39
|
+
assert_equal(URI.parse('http://www.howtocreate.co.uk/tutorials/texterise.php?dom=1'), element.url)
|
40
|
+
assert_equal("JavaScript DOM reference", element.title)
|
41
|
+
assert_equal("dom reference", element.notes)
|
42
|
+
assert_equal("c0238dc0c44f07daedd9a1fd9bbdeebd", element.uid)
|
43
|
+
assert_equal(55, element.others)
|
44
|
+
assert_equal(%w(dom javascript webdev), element.tags)
|
45
|
+
assert_equal(Time.parse("2005-11-28T05:26:09Z"), element.time)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_post_from_rexml_not_shared
|
49
|
+
dom = REXML::Document.new(File.read(TESTCASES_PATH + '/element/post_unshared.xml'))
|
50
|
+
element = WWW::Delicious::Post.from_rexml(dom.root)
|
51
|
+
|
52
|
+
assert(!element.shared)
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
# def test_valid
|
57
|
+
# end
|
58
|
+
|
59
|
+
|
60
|
+
protected
|
61
|
+
|
62
|
+
# returns a stub instance
|
63
|
+
def instance(values = {}, &block)
|
64
|
+
WWW::Delicious::Post.new(values)
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#
|
2
|
+
# = WWW::Delicious
|
3
|
+
#
|
4
|
+
# Ruby client for del.icio.us API.
|
5
|
+
#
|
6
|
+
#
|
7
|
+
# Category:: WWW
|
8
|
+
# Package:: WWW::Delicious
|
9
|
+
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
+
#
|
11
|
+
#--
|
12
|
+
# SVN: $Id$
|
13
|
+
#++
|
14
|
+
|
15
|
+
|
16
|
+
require File.dirname(__FILE__) + '/../helper'
|
17
|
+
require 'www/delicious/tag'
|
18
|
+
|
19
|
+
|
20
|
+
class TagTest < Test::Unit::TestCase
|
21
|
+
|
22
|
+
def test_tag
|
23
|
+
expected = { :name => 'MyTag', :count => 2 }
|
24
|
+
assert_attributes(instance(expected), expected)
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_tag_from_rexml
|
28
|
+
dom = REXML::Document.new(File.read(TESTCASES_PATH + '/element/tag.xml'))
|
29
|
+
expected = { :count => 1, :name => 'activedesktop' }
|
30
|
+
|
31
|
+
element = WWW::Delicious::Tag.from_rexml(dom.root)
|
32
|
+
assert_attributes(element, expected)
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
def test_tag_name_strips_whitespaces
|
37
|
+
[' foo ', 'foo ', ' foo ', ' foo'].each do |v|
|
38
|
+
assert_equal('foo', instance(:name => v).name) # => 'foo'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_to_s_returns_name_as_string
|
43
|
+
assert_equal('foobar', instance(:name => 'foobar', :count => 4).to_s)
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_to_s_returns_empty_string_with_name_nil
|
47
|
+
assert_equal('', instance(:name => nil).to_s)
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
# def test_api_valid
|
52
|
+
# ['foo', ' foo '].each do |v|
|
53
|
+
# assert(instance(v).api_valid?)
|
54
|
+
# end
|
55
|
+
# ['', ' '].each do |v|
|
56
|
+
# assert(!instance(v).api_valid?)
|
57
|
+
# end
|
58
|
+
# end
|
59
|
+
|
60
|
+
|
61
|
+
protected
|
62
|
+
|
63
|
+
# returns a stub instance
|
64
|
+
def instance(values = {}, &block)
|
65
|
+
WWW::Delicious::Tag.new(values)
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
|
2
|
+
# Gem::Specification for Www-delicious-0.2.0
|
3
|
+
# Originally generated by Echoe
|
4
|
+
|
5
|
+
--- !ruby/object:Gem::Specification
|
6
|
+
name: www-delicious
|
7
|
+
version: !ruby/object:Gem::Version
|
8
|
+
version: 0.2.0
|
9
|
+
platform: ruby
|
10
|
+
authors:
|
11
|
+
- Simone Carletti
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
|
15
|
+
date: 2008-08-11 00:00:00 +02:00
|
16
|
+
default_executable:
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: rake
|
20
|
+
type: :development
|
21
|
+
version_requirement:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: "0.8"
|
27
|
+
version:
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: echoe
|
30
|
+
type: :development
|
31
|
+
version_requirement:
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: "3"
|
37
|
+
version:
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: mocha
|
40
|
+
type: :development
|
41
|
+
version_requirement:
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0.9"
|
47
|
+
version:
|
48
|
+
description: WWW::Delicious is a del.icio.us API client implemented in Ruby. It provides access to all available del.icio.us API queries and returns the original XML response as a friendly Ruby object.
|
49
|
+
email: weppos@weppos.net
|
50
|
+
executables: []
|
51
|
+
|
52
|
+
extensions: []
|
53
|
+
|
54
|
+
extra_rdoc_files:
|
55
|
+
- CHANGELOG.rdoc
|
56
|
+
- lib/www/delicious/bundle.rb
|
57
|
+
- lib/www/delicious/element.rb
|
58
|
+
- lib/www/delicious/errors.rb
|
59
|
+
- lib/www/delicious/post.rb
|
60
|
+
- lib/www/delicious/tag.rb
|
61
|
+
- lib/www/delicious/version.rb
|
62
|
+
- lib/www/delicious.rb
|
63
|
+
- README.rdoc
|
64
|
+
files:
|
65
|
+
- CHANGELOG.rdoc
|
66
|
+
- lib/www/delicious/bundle.rb
|
67
|
+
- lib/www/delicious/element.rb
|
68
|
+
- lib/www/delicious/errors.rb
|
69
|
+
- lib/www/delicious/post.rb
|
70
|
+
- lib/www/delicious/tag.rb
|
71
|
+
- lib/www/delicious/version.rb
|
72
|
+
- lib/www/delicious.rb
|
73
|
+
- MIT-LICENSE.rdoc
|
74
|
+
- Rakefile
|
75
|
+
- README.rdoc
|
76
|
+
- setup.rb
|
77
|
+
- test/fixtures/net_response_invalid_account.yml
|
78
|
+
- test/fixtures/net_response_success.yml
|
79
|
+
- test/helper.rb
|
80
|
+
- test/test_all.rb
|
81
|
+
- test/test_offline.rb
|
82
|
+
- test/test_online.rb
|
83
|
+
- test/testcases/element/bundle.xml
|
84
|
+
- test/testcases/element/invalid_root.xml
|
85
|
+
- test/testcases/element/post.xml
|
86
|
+
- test/testcases/element/post_unshared.xml
|
87
|
+
- test/testcases/element/tag.xml
|
88
|
+
- test/testcases/response/bundles_all.xml
|
89
|
+
- test/testcases/response/bundles_all_empty.xml
|
90
|
+
- test/testcases/response/bundles_delete.xml
|
91
|
+
- test/testcases/response/bundles_set.xml
|
92
|
+
- test/testcases/response/bundles_set_error.xml
|
93
|
+
- test/testcases/response/posts_add.xml
|
94
|
+
- test/testcases/response/posts_all.xml
|
95
|
+
- test/testcases/response/posts_dates.xml
|
96
|
+
- test/testcases/response/posts_dates_with_tag.xml
|
97
|
+
- test/testcases/response/posts_delete.xml
|
98
|
+
- test/testcases/response/posts_get.xml
|
99
|
+
- test/testcases/response/posts_get_with_tag.xml
|
100
|
+
- test/testcases/response/posts_recent.xml
|
101
|
+
- test/testcases/response/posts_recent_with_tag.xml
|
102
|
+
- test/testcases/response/tags_get.xml
|
103
|
+
- test/testcases/response/tags_get_empty.xml
|
104
|
+
- test/testcases/response/tags_rename.xml
|
105
|
+
- test/testcases/response/update.delicious1.xml
|
106
|
+
- test/testcases/response/update.xml
|
107
|
+
- test/unit/bundle_test.rb
|
108
|
+
- test/unit/delicious_test.rb
|
109
|
+
- test/unit/online/online_test.rb
|
110
|
+
- test/unit/post_test.rb
|
111
|
+
- test/unit/tag_test.rb
|
112
|
+
- TODO
|
113
|
+
- Manifest
|
114
|
+
- www-delicious.gemspec
|
115
|
+
has_rdoc: true
|
116
|
+
homepage: http://code.simonecarletti.com/www-delicious
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options:
|
119
|
+
- --line-numbers
|
120
|
+
- --inline-source
|
121
|
+
- --title
|
122
|
+
- Www-delicious
|
123
|
+
- --main
|
124
|
+
- README.rdoc
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: "0"
|
132
|
+
version:
|
133
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: "1.2"
|
138
|
+
version:
|
139
|
+
requirements: []
|
140
|
+
|
141
|
+
rubyforge_project: www-delicious
|
142
|
+
rubygems_version: 1.2.0
|
143
|
+
specification_version: 2
|
144
|
+
summary: Ruby client for del.icio.us API.
|
145
|
+
test_files:
|
146
|
+
- test/test_all.rb
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: www-delicious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
@@ -9,82 +9,136 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-08-11 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
+
type: :development
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
23
|
+
version: "0.8"
|
23
24
|
version:
|
24
|
-
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: echoe
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "3"
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mocha
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0.9"
|
44
|
+
version:
|
45
|
+
description: WWW::Delicious is a del.icio.us API client implemented in Ruby. It provides access to all available del.icio.us API queries and returns the original XML response as a friendly Ruby object.
|
25
46
|
email: weppos@weppos.net
|
26
47
|
executables: []
|
27
48
|
|
28
49
|
extensions: []
|
29
50
|
|
30
51
|
extra_rdoc_files:
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
52
|
+
- CHANGELOG.rdoc
|
53
|
+
- lib/www/delicious/bundle.rb
|
54
|
+
- lib/www/delicious/element.rb
|
55
|
+
- lib/www/delicious/errors.rb
|
56
|
+
- lib/www/delicious/post.rb
|
57
|
+
- lib/www/delicious/tag.rb
|
58
|
+
- lib/www/delicious/version.rb
|
59
|
+
- lib/www/delicious.rb
|
60
|
+
- README.rdoc
|
34
61
|
files:
|
62
|
+
- CHANGELOG.rdoc
|
35
63
|
- lib/www/delicious/bundle.rb
|
64
|
+
- lib/www/delicious/element.rb
|
36
65
|
- lib/www/delicious/errors.rb
|
37
66
|
- lib/www/delicious/post.rb
|
38
67
|
- lib/www/delicious/tag.rb
|
39
68
|
- lib/www/delicious/version.rb
|
40
69
|
- lib/www/delicious.rb
|
41
|
-
-
|
42
|
-
- test/unit/delicious_bundle_test.rb
|
43
|
-
- test/unit/delicious_online_test.rb
|
44
|
-
- test/unit/delicious_post_test.rb
|
45
|
-
- test/unit/delicious_tag_test.rb
|
46
|
-
- test/unit/delicious_test.rb
|
47
|
-
- README
|
48
|
-
- CHANGELOG
|
49
|
-
- MIT-LICENSE
|
70
|
+
- MIT-LICENSE.rdoc
|
50
71
|
- Rakefile
|
72
|
+
- README.rdoc
|
51
73
|
- setup.rb
|
74
|
+
- test/fixtures/net_response_invalid_account.yml
|
75
|
+
- test/fixtures/net_response_success.yml
|
76
|
+
- test/helper.rb
|
77
|
+
- test/test_all.rb
|
78
|
+
- test/test_offline.rb
|
79
|
+
- test/test_online.rb
|
80
|
+
- test/testcases/element/bundle.xml
|
81
|
+
- test/testcases/element/invalid_root.xml
|
82
|
+
- test/testcases/element/post.xml
|
83
|
+
- test/testcases/element/post_unshared.xml
|
84
|
+
- test/testcases/element/tag.xml
|
85
|
+
- test/testcases/response/bundles_all.xml
|
86
|
+
- test/testcases/response/bundles_all_empty.xml
|
87
|
+
- test/testcases/response/bundles_delete.xml
|
88
|
+
- test/testcases/response/bundles_set.xml
|
89
|
+
- test/testcases/response/bundles_set_error.xml
|
90
|
+
- test/testcases/response/posts_add.xml
|
91
|
+
- test/testcases/response/posts_all.xml
|
92
|
+
- test/testcases/response/posts_dates.xml
|
93
|
+
- test/testcases/response/posts_dates_with_tag.xml
|
94
|
+
- test/testcases/response/posts_delete.xml
|
95
|
+
- test/testcases/response/posts_get.xml
|
96
|
+
- test/testcases/response/posts_get_with_tag.xml
|
97
|
+
- test/testcases/response/posts_recent.xml
|
98
|
+
- test/testcases/response/posts_recent_with_tag.xml
|
99
|
+
- test/testcases/response/tags_get.xml
|
100
|
+
- test/testcases/response/tags_get_empty.xml
|
101
|
+
- test/testcases/response/tags_rename.xml
|
102
|
+
- test/testcases/response/update.delicious1.xml
|
103
|
+
- test/testcases/response/update.xml
|
104
|
+
- test/unit/bundle_test.rb
|
105
|
+
- test/unit/delicious_test.rb
|
106
|
+
- test/unit/online/online_test.rb
|
107
|
+
- test/unit/post_test.rb
|
108
|
+
- test/unit/tag_test.rb
|
109
|
+
- TODO
|
110
|
+
- Manifest
|
111
|
+
- www-delicious.gemspec
|
52
112
|
has_rdoc: true
|
53
113
|
homepage: http://code.simonecarletti.com/www-delicious
|
54
114
|
post_install_message:
|
55
115
|
rdoc_options:
|
56
|
-
- --title
|
57
|
-
- www-delicious -- Ruby client for del.icio.us API.
|
58
|
-
- --inline-source
|
59
116
|
- --line-numbers
|
117
|
+
- --inline-source
|
118
|
+
- --title
|
119
|
+
- Www-delicious
|
60
120
|
- --main
|
61
|
-
- README
|
62
|
-
- --charset
|
63
|
-
- utf-8
|
121
|
+
- README.rdoc
|
64
122
|
require_paths:
|
65
123
|
- lib
|
66
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
125
|
requirements:
|
68
126
|
- - ">="
|
69
127
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
128
|
+
version: "0"
|
71
129
|
version:
|
72
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
131
|
requirements:
|
74
|
-
- - "
|
132
|
+
- - "="
|
75
133
|
- !ruby/object:Gem::Version
|
76
|
-
version: "
|
134
|
+
version: "1.2"
|
77
135
|
version:
|
78
136
|
requirements: []
|
79
137
|
|
80
138
|
rubyforge_project: www-delicious
|
81
|
-
rubygems_version: 1.0
|
139
|
+
rubygems_version: 1.2.0
|
82
140
|
signing_key:
|
83
141
|
specification_version: 2
|
84
142
|
summary: Ruby client for del.icio.us API.
|
85
143
|
test_files:
|
86
|
-
- test/
|
87
|
-
- test/unit/delicious_online_test.rb
|
88
|
-
- test/unit/delicious_post_test.rb
|
89
|
-
- test/unit/delicious_tag_test.rb
|
90
|
-
- test/unit/delicious_test.rb
|
144
|
+
- test/test_all.rb
|