ideaoforder-www-delicious 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +6 -0
- data/LICENSE.rdoc +25 -0
- data/Manifest +34 -35
- data/README.rdoc +40 -43
- data/Rakefile +10 -10
- data/init.rb +1 -0
- data/lib/www/delicious/version.rb +5 -1
- data/lib/www/delicious.rb +1 -8
- data/test/{unit/bundle_test.rb → bundle_test.rb} +1 -1
- data/test/{unit/delicious_test.rb → delicious_test.rb} +10 -10
- data/test/{unit/online/online_test.rb → online_test.rb} +2 -3
- data/test/{unit/post_test.rb → post_test.rb} +1 -1
- data/test/{unit/tag_test.rb → tag_test.rb} +1 -1
- data/test/test_all.rb +3 -2
- data/test/{helper.rb → test_helper.rb} +12 -18
- data/test/testcases/response/posts_all.xml +2 -2
- data/test/testcases/response/posts_get.xml +2 -2
- data/test/testcases/response/posts_recent.xml +2 -2
- data/www-delicious.gemspec +44 -146
- metadata +53 -48
- data/test/test_offline.rb +0 -18
- data/test/test_online.rb +0 -20
data/CHANGELOG.rdoc
CHANGED
@@ -3,8 +3,14 @@
|
|
3
3
|
|
4
4
|
== development
|
5
5
|
|
6
|
+
* FIXED: Compatibility fixes for Ruby 1.9. WWW::Delicious is now 100% compatible with 1.9. You should remember to define the proper content encoding with magic comments when working with UTF-8/MultiByte XML or Ruby files, see http://redmine.ruby-lang.org/wiki/ruby-19/ScriptEncoding (closes #142).
|
7
|
+
|
6
8
|
* CHANGED: Don't use File.dirname(__FILE__) in require statement to prevent recursive inclusions.
|
7
9
|
|
10
|
+
== Release 0.2.1 by Luca G.Soave
|
11
|
+
|
12
|
+
* ADDED: plugin install ability : ruby ./script/plugin install git://github.com/lgs/www-delicious.git
|
13
|
+
* FIXED: Error installing ideaoforder-www-delicious gem : ideaoforder-www-delicious requires RubyGems version = 1.2
|
8
14
|
|
9
15
|
== Release 0.2.0
|
10
16
|
|
data/LICENSE.rdoc
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
= License
|
2
|
+
|
3
|
+
(The MIT License)
|
4
|
+
|
5
|
+
Copyright (c) 2008 Simone Carletti <weppos@weppos.net>
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
a copy of this software and associated documentation files (the
|
9
|
+
"Software"), to deal in the Software without restriction, including
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
|
data/Manifest
CHANGED
@@ -1,49 +1,48 @@
|
|
1
|
-
CHANGELOG.rdoc
|
2
1
|
lib/www/delicious/bundle.rb
|
3
|
-
lib/www/delicious/element.rb
|
4
|
-
lib/www/delicious/errors.rb
|
5
|
-
lib/www/delicious/post.rb
|
6
2
|
lib/www/delicious/tag.rb
|
3
|
+
lib/www/delicious/element.rb
|
7
4
|
lib/www/delicious/version.rb
|
5
|
+
lib/www/delicious/post.rb
|
6
|
+
lib/www/delicious/errors.rb
|
8
7
|
lib/www/delicious.rb
|
9
|
-
|
10
|
-
Rakefile
|
11
|
-
README.rdoc
|
12
|
-
setup.rb
|
13
|
-
test/fixtures/net_response_invalid_account.yml
|
14
|
-
test/fixtures/net_response_success.yml
|
15
|
-
test/helper.rb
|
8
|
+
test/post_test.rb
|
16
9
|
test/test_all.rb
|
17
|
-
test/
|
18
|
-
test/
|
19
|
-
test/
|
20
|
-
test/
|
21
|
-
test/
|
22
|
-
test/
|
23
|
-
test/
|
24
|
-
test/testcases/response/
|
25
|
-
test/testcases/response/
|
26
|
-
test/testcases/response/
|
10
|
+
test/fixtures/net_response_success.yml
|
11
|
+
test/fixtures/net_response_invalid_account.yml
|
12
|
+
test/delicious_test.rb
|
13
|
+
test/online_test.rb
|
14
|
+
test/test_helper.rb
|
15
|
+
test/bundle_test.rb
|
16
|
+
test/tag_test.rb
|
17
|
+
test/testcases/response/posts_get_with_tag.xml
|
18
|
+
test/testcases/response/tags_get_empty.xml
|
19
|
+
test/testcases/response/update.xml
|
27
20
|
test/testcases/response/bundles_set.xml
|
28
|
-
test/testcases/response/
|
21
|
+
test/testcases/response/bundles_delete.xml
|
22
|
+
test/testcases/response/posts_get.xml
|
29
23
|
test/testcases/response/posts_add.xml
|
24
|
+
test/testcases/response/bundles_set_error.xml
|
30
25
|
test/testcases/response/posts_all.xml
|
31
|
-
test/testcases/response/posts_dates.xml
|
32
26
|
test/testcases/response/posts_dates_with_tag.xml
|
27
|
+
test/testcases/response/posts_dates.xml
|
28
|
+
test/testcases/response/bundles_all.xml
|
33
29
|
test/testcases/response/posts_delete.xml
|
34
|
-
test/testcases/response/posts_get.xml
|
35
|
-
test/testcases/response/posts_get_with_tag.xml
|
36
|
-
test/testcases/response/posts_recent.xml
|
37
30
|
test/testcases/response/posts_recent_with_tag.xml
|
38
31
|
test/testcases/response/tags_get.xml
|
39
|
-
test/testcases/response/
|
40
|
-
test/testcases/response/
|
32
|
+
test/testcases/response/bundles_all_empty.xml
|
33
|
+
test/testcases/response/posts_recent.xml
|
41
34
|
test/testcases/response/update.delicious1.xml
|
42
|
-
test/testcases/response/
|
43
|
-
test/
|
44
|
-
test/
|
45
|
-
test/
|
46
|
-
test/
|
47
|
-
test/
|
48
|
-
TODO
|
35
|
+
test/testcases/response/tags_rename.xml
|
36
|
+
test/testcases/element/invalid_root.xml
|
37
|
+
test/testcases/element/tag.xml
|
38
|
+
test/testcases/element/post.xml
|
39
|
+
test/testcases/element/bundle.xml
|
40
|
+
test/testcases/element/post_unshared.xml
|
49
41
|
Manifest
|
42
|
+
Rakefile
|
43
|
+
LICENSE.rdoc
|
44
|
+
CHANGELOG.rdoc
|
45
|
+
www-delicious.gemspec
|
46
|
+
setup.rb
|
47
|
+
README.rdoc
|
48
|
+
init.rb
|
data/README.rdoc
CHANGED
@@ -1,33 +1,24 @@
|
|
1
1
|
= WWW::Delicious
|
2
2
|
|
3
|
-
http://www-delicious.rubyforge.org/
|
4
|
-
http://code.simonecarletti.com/www-delicious
|
5
|
-
|
6
|
-
|
7
|
-
== Description
|
8
|
-
|
9
3
|
WWW::Delicious is a Ruby client for http://del.icio.us XML API.
|
10
4
|
|
11
5
|
It provides both read and write functionality. You can read user Posts, Tags
|
12
6
|
and Bundles but you can create new Posts, Tags and Bundles as well.
|
13
7
|
|
14
8
|
|
15
|
-
==
|
16
|
-
|
17
|
-
* {Simone Carletti}[http://www.simonecarletti.com/] <weppos@weppos.net>
|
18
|
-
If you like this software, consider to {recommend me}[http://www.workingwithrails.com/person/11967-simone-carletti] at Working with Rails.
|
19
|
-
|
20
|
-
|
21
|
-
== Website
|
22
|
-
|
23
|
-
* {Homepage}[http://code.simonecarletti.com/www-delicious]
|
24
|
-
* {API}[http://www-delicious.rubyforge.org/]
|
25
|
-
|
9
|
+
== Overview
|
26
10
|
|
27
|
-
|
11
|
+
WWW::Delicious maps all the original del.icio.us API calls and provides some
|
12
|
+
additional convenient methods to perform common tasks.
|
13
|
+
Please read the official documentation (http://del.icio.us/help/api/)
|
14
|
+
to learn more about del.icio.us API.
|
28
15
|
|
29
|
-
|
30
|
-
|
16
|
+
WWW::Delicious is 100% compatible with all del.icio.us API constraints,
|
17
|
+
including the requirement to set a valid user agent or wait at least
|
18
|
+
one second between queries.
|
19
|
+
Basically, the main benefit from using this library is that you don't need
|
20
|
+
to take care of all these low level details, if you don't want:
|
21
|
+
WWW::Delicious will try to give you the most with less efforts.
|
31
22
|
|
32
23
|
|
33
24
|
== Dependencies
|
@@ -53,36 +44,26 @@ If you need the latest development version you can download the source code
|
|
53
44
|
from one of the GIT repositories listed above.
|
54
45
|
Beware that the code might not be as stable as the official release.
|
55
46
|
|
47
|
+
== Plugin installation on Rails
|
56
48
|
|
57
|
-
|
58
|
-
|
59
|
-
WWW::Delicious maps all the original del.icio.us API calls and provides some
|
60
|
-
additional convenient methods to perform common tasks.
|
61
|
-
Please read the official documentation (http://del.icio.us/help/api/)
|
62
|
-
to learn more about del.icio.us API.
|
63
|
-
|
64
|
-
WWW::Delicious is 100% compatible with all del.icio.us API constraints,
|
65
|
-
including the requirement to set a valid user agent or wait at least
|
66
|
-
one second between queries.
|
67
|
-
Basically, the main benefit from using this library is that you don't need
|
68
|
-
to take care of all these low level details, if you don't want:
|
69
|
-
WWW::Delicious will try to give you the most with less efforts.
|
49
|
+
Since the version 0.2.1 WWW::Delicious can be installed via plugin,
|
50
|
+
running the following command :
|
70
51
|
|
52
|
+
$ ruby ./script/plugin install git://github.com/lgs/www-delicious.git
|
71
53
|
|
72
|
-
==
|
54
|
+
== Getting Started
|
73
55
|
|
74
56
|
In order to use this library you need a valid del.icio.us account.
|
75
|
-
Go to http://del.icio.us/ and register for a new account if you don't
|
76
|
-
already have one.
|
57
|
+
Go to http://del.icio.us/ and register for a new account if you don't already have one.
|
77
58
|
|
78
|
-
Then create a valid instance of WWW::Delicious
|
59
|
+
Then create a valid instance of WWW::Delicious providing your account credentials.
|
79
60
|
|
80
61
|
require 'www/delicious'
|
81
62
|
|
82
63
|
# create a new instance with given username and password
|
83
64
|
d = WWW::Delicious.new('username', 'password')
|
84
65
|
|
85
|
-
Now you can use your
|
66
|
+
Now you can use your instance to interact with the API interface.
|
86
67
|
|
87
68
|
|
88
69
|
=== Last account update
|
@@ -194,16 +175,32 @@ You can also create new bundles or delete existing ones.
|
|
194
175
|
d.bundles_delete('OldBundle')
|
195
176
|
|
196
177
|
|
178
|
+
== Author
|
179
|
+
|
180
|
+
{Simone Carletti}[http://www.simonecarletti.com/] <weppos@weppos.net>
|
181
|
+
|
182
|
+
|
183
|
+
== Resources
|
184
|
+
|
185
|
+
* {Homepage}[http://code.simonecarletti.com/www-delicious]
|
186
|
+
* {API}[http://www-delicious.rubyforge.org/]
|
187
|
+
* {GitHub}[http://github.com/weppos/www-delicious/]
|
188
|
+
* {RubyForge}[http://rubyforge.org/projects/www-delicious/]
|
189
|
+
|
190
|
+
|
197
191
|
== FeedBack and Bug reports
|
198
192
|
|
199
|
-
Feel free to email {Simone Carletti}[mailto:weppos@weppos.net]
|
200
|
-
with any questions or feedback.
|
193
|
+
Feel free to email {Simone Carletti}[mailto:weppos@weppos.net] with any questions or feedback.
|
201
194
|
|
202
|
-
Please
|
203
|
-
available at http://code.simonecarletti.com/www-delicious.
|
195
|
+
Please use the {Ticket System}[http://code.simonecarletti.com/projects/show/www-delicious] to submit bug reports or feature request.
|
204
196
|
|
205
197
|
|
206
198
|
== Changelog
|
207
199
|
|
208
|
-
See CHANGELOG for details.
|
200
|
+
See the CHANGELOG.rdoc file for details.
|
201
|
+
|
202
|
+
|
203
|
+
== License
|
204
|
+
|
205
|
+
Copyright (c) 2008 Simone Carletti, WWW::Delicious is released under the MIT license.
|
209
206
|
|
data/Rakefile
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'rake'
|
2
3
|
require 'echoe'
|
3
4
|
|
4
|
-
|
5
|
+
$:.unshift(File.dirname(__FILE__) + "/lib")
|
5
6
|
require 'www/delicious'
|
6
7
|
|
7
8
|
|
8
9
|
# Common package properties
|
9
|
-
PKG_NAME
|
10
|
+
PKG_NAME = ENV['PKG_NAME'] || WWW::Delicious::GEM
|
10
11
|
PKG_VERSION = ENV['PKG_VERSION'] || WWW::Delicious::VERSION
|
11
12
|
PKG_SUMMARY = "Ruby client for del.icio.us API."
|
12
|
-
PKG_FILES = FileList.new("{lib,test}/**/*.rb") do |
|
13
|
-
|
14
|
-
|
15
|
-
fl.include %w(Rakefile setup.rb)
|
13
|
+
PKG_FILES = FileList.new("{lib,test}/**/*.rb") do |files|
|
14
|
+
files.include %w(README.rdoc CHANGELOG.rdoc LICENSE.rdoc)
|
15
|
+
files.include %w(Rakefile setup.rb)
|
16
16
|
end
|
17
17
|
RUBYFORGE_PROJECT = 'www-delicious'
|
18
18
|
|
@@ -34,12 +34,12 @@ Echoe.new(PKG_NAME, PKG_VERSION) do |p|
|
|
34
34
|
p.project = RUBYFORGE_PROJECT
|
35
35
|
|
36
36
|
p.need_zip = true
|
37
|
-
p.rcov_options = ["-x Rakefile -x mocha -x rcov"]
|
37
|
+
p.rcov_options = ["--main << README.rdoc -x Rakefile -x mocha -x rcov"]
|
38
38
|
p.rdoc_pattern = /^(lib|CHANGELOG.rdoc|README.rdoc)/
|
39
39
|
|
40
|
-
p.development_dependencies
|
41
|
-
|
42
|
-
|
40
|
+
p.development_dependencies += ["rake >=0.8",
|
41
|
+
"echoe >=3.0",
|
42
|
+
"mocha >=0.9"]
|
43
43
|
end
|
44
44
|
|
45
45
|
|
data/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'www/delicious'
|
data/lib/www/delicious.rb
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
#++
|
15
15
|
|
16
16
|
|
17
|
+
require 'rubygems'
|
17
18
|
require 'net/https'
|
18
19
|
require 'rexml/document'
|
19
20
|
require 'time'
|
@@ -74,20 +75,12 @@ module WWW #:nodoc:
|
|
74
75
|
#
|
75
76
|
# datetime = d.update # => Wed Mar 12 08:41:20 UTC 2008
|
76
77
|
# datetime.strftime('%Y') # => 2008
|
77
|
-
#
|
78
|
-
#
|
79
|
-
# Category:: WWW
|
80
|
-
# Package:: WWW::Delicious
|
81
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
82
78
|
#
|
83
79
|
class Delicious
|
84
80
|
|
85
81
|
NAME = 'WWW::Delicious'
|
86
82
|
GEM = 'www-delicious'
|
87
83
|
AUTHOR = 'Simone Carletti <weppos@weppos.net>'
|
88
|
-
VERSION = defined?(Version) ? Version::STRING : nil
|
89
|
-
STATUS = 'alpha'
|
90
|
-
BUILD = ''.match(/(\d+)/).to_a.first
|
91
84
|
|
92
85
|
# del.icio.us account username
|
93
86
|
attr_reader :username
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#++
|
15
15
|
|
16
16
|
|
17
|
-
require
|
17
|
+
require 'test_helper'
|
18
18
|
|
19
19
|
|
20
20
|
class DeliciousTest < Test::Unit::TestCase
|
@@ -28,35 +28,35 @@ class DeliciousTest < Test::Unit::TestCase
|
|
28
28
|
end
|
29
29
|
|
30
30
|
|
31
|
-
def
|
31
|
+
def test_initialize_should_raise_without_account
|
32
32
|
assert_raise(ArgumentError) { WWW::Delicious.new() }
|
33
33
|
assert_raise(ArgumentError) { WWW::Delicious.new(TEST_USERNAME) }
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def test_initialize_should_set_account_credentials
|
37
37
|
assert_equal(TEST_USERNAME, @delicious.username)
|
38
38
|
assert_equal(TEST_PASSWORD, @delicious.password)
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def test_initialize_should_allow_option_user_agent
|
42
42
|
useragent = 'MyClass/1.0 (Foo/Bar +http://foo.com/)'
|
43
43
|
delicious = instance(:user_agent => useragent)
|
44
44
|
assert_equal(useragent, delicious.user_agent)
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def test_initialize_should_default_option_user_agent_unless_option
|
48
48
|
useragent = instance.user_agent
|
49
49
|
assert_match("Ruby/#{RUBY_VERSION}", useragent)
|
50
50
|
assert_match("#{WWW::Delicious::NAME}/#{WWW::Delicious::VERSION}", useragent)
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
53
|
+
def test_initialize_should_allow_option_base_uri
|
54
54
|
base_uri = 'https://ma.gnolia.com/api/mirrord'
|
55
55
|
delicious = instance(:base_uri => base_uri)
|
56
56
|
assert_equal(URI.parse(base_uri), delicious.base_uri)
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
59
|
+
def test_initialize_should_default_option_base_uri_unless_option
|
60
60
|
base_uri = instance.base_uri
|
61
61
|
assert_equal(URI.parse('https://api.del.icio.us'), base_uri)
|
62
62
|
end
|
@@ -248,7 +248,7 @@ class DeliciousTest < Test::Unit::TestCase
|
|
248
248
|
results = @delicious.posts_get
|
249
249
|
assert_instance_of(Array, results)
|
250
250
|
assert_equal(3, results.length)
|
251
|
-
assert_equal('New to Git?
|
251
|
+
assert_equal('New to Git? - GitHub', results.first.title)
|
252
252
|
assert_equal('.c( whytheluckystiff )o. -- The Fully Upturned Bin', results.last.title)
|
253
253
|
end
|
254
254
|
|
@@ -266,7 +266,7 @@ class DeliciousTest < Test::Unit::TestCase
|
|
266
266
|
results = @delicious.posts_recent
|
267
267
|
assert_instance_of(Array, results)
|
268
268
|
assert_equal(15, results.length)
|
269
|
-
assert_equal('New to Git?
|
269
|
+
assert_equal('New to Git? - GitHub', results.first.title)
|
270
270
|
assert_equal('RichText | Lightview for modal dialogs on Rails', results.last.title)
|
271
271
|
end
|
272
272
|
|
@@ -284,7 +284,7 @@ class DeliciousTest < Test::Unit::TestCase
|
|
284
284
|
results = @delicious.posts_all
|
285
285
|
assert_instance_of(Array, results)
|
286
286
|
assert_equal(8, results.length)
|
287
|
-
assert_equal('New to Git?
|
287
|
+
assert_equal('New to Git? - GitHub', results.first.title)
|
288
288
|
assert_equal('ASP 101 - Object Oriented ASP: Using Classes in Classic ASP', results.last.title)
|
289
289
|
end
|
290
290
|
|
@@ -14,11 +14,10 @@
|
|
14
14
|
#++
|
15
15
|
|
16
16
|
|
17
|
-
require
|
17
|
+
require 'test_helper'
|
18
18
|
|
19
19
|
|
20
|
-
|
21
|
-
RUN_ONLINE_TESTS = ($0 == __FILE__) unless defined? RUN_ONLINE_TESTS and RUN_ONLINE_TESTS
|
20
|
+
RUN_ONLINE_TESTS = ($0 == __FILE__) unless defined?(RUN_ONLINE_TESTS)
|
22
21
|
|
23
22
|
puts "Online test #{__FILE__} skipped.\n" +
|
24
23
|
"Use `ONLINE=1` to run online tests.\n" unless RUN_ONLINE_TESTS
|
data/test/test_all.rb
CHANGED
@@ -14,5 +14,6 @@
|
|
14
14
|
#++
|
15
15
|
|
16
16
|
|
17
|
-
require
|
18
|
-
|
17
|
+
require 'test_helper'
|
18
|
+
|
19
|
+
Dir.glob(File.dirname(__FILE__) + '/**/*_test.rb').sort.each { |unit| require unit }
|
@@ -14,36 +14,30 @@
|
|
14
14
|
#++
|
15
15
|
|
16
16
|
|
17
|
-
# prepend lib folder
|
18
17
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
19
18
|
|
20
19
|
require 'rubygems'
|
21
20
|
require 'test/unit'
|
22
|
-
require 'www/delicious'
|
23
|
-
|
24
|
-
gem 'mocha'
|
25
21
|
require 'mocha'
|
22
|
+
require 'www/delicious'
|
26
23
|
|
27
24
|
# testcase file path
|
28
25
|
TESTCASES_PATH = File.dirname(__FILE__) + '/testcases' unless defined?(TESTCASES_PATH)
|
29
26
|
FIXTURES_PATH = File.dirname(__FILE__) + '/fixtures' unless defined?(FIXTURES_PATH)
|
30
27
|
|
31
28
|
# prevent online tests to be run automatically
|
32
|
-
RUN_ONLINE_TESTS = (ENV['ONLINE'] ==
|
29
|
+
RUN_ONLINE_TESTS = (ENV['ONLINE'].to_i == 1) unless defined?(RUN_ONLINE_TESTS)
|
30
|
+
|
33
31
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
expected_mapping.each do |key, value|
|
43
|
-
assert_equal(value, instance.send(key.to_sym), "Expected `#{key}` to be `#{value}`")
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
32
|
+
class Test::Unit::TestCase
|
33
|
+
|
34
|
+
# asserts all given attributes match mapped value in +instance+.
|
35
|
+
# +instance+ is the instance to be tested,
|
36
|
+
# +expected_mapping+ is the attribute => value mapping.
|
37
|
+
def assert_attributes(instance, expected_mapping)
|
38
|
+
expected_mapping.each do |key, value|
|
39
|
+
assert_equal(value, instance.send(key.to_sym), "Expected `#{key}` to be `#{value}`")
|
47
40
|
end
|
48
41
|
end
|
42
|
+
|
49
43
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<posts user="weppos" update="2008-08-02T11:55:35Z" tag="" total="1702">
|
3
|
-
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git?
|
4
|
-
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration
|
3
|
+
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git? - GitHub" tag="scm git" time="2008-07-31T15:44:54Z" others="-1" extended=""/>
|
4
|
+
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration - Arthur Koziel’s Blog" tag="scm git" time="2008-07-31T15:44:19Z" others="-1" extended="Here are some useful configuration options for Git."/>
|
5
5
|
<post href="http://whytheluckystiff.net/articles/theFullyUpturnedBin.html" hash="02ae7e6473e6ad87d6d5a8fc254dd274" description=".c( whytheluckystiff )o. -- The Fully Upturned Bin" tag="programming ruby garbagecollection" time="2008-07-31T13:09:26Z" others="-1" extended="About memory management and Garbage Collection in Ruby."/>
|
6
6
|
<post href="http://www.learnasp.com/learn/subgetrows.asp" hash="14f798447ad0e8b3f98d6c89773ce345" description="dbtable" tag="programming asp vbscript database" time="2008-07-29T19:29:38Z" others="-1" extended=""/>
|
7
7
|
<post href="http://www.xmlfiles.com/articles/seth/xmldatatransfer/default.asp" hash="e3dfcc0f5cf9ce519783b7a9b1904998" description="XML Files - An ASP Class for XML Data Transfer" tag="programming asp vbscript classes xml" time="2008-07-29T19:29:17Z" others="-1" extended=""/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<posts user="weppos" dt="2008-07-31" tag="">
|
3
|
-
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git?
|
4
|
-
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration
|
3
|
+
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git? - GitHub" tag="scm git" time="2008-07-31T15:44:54Z" others="264" extended=""/>
|
4
|
+
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration - Arthur Koziel’s Blog" tag="scm git" time="2008-07-31T15:44:19Z" others="17" extended="Here are some useful configuration options for Git."/>
|
5
5
|
<post href="http://whytheluckystiff.net/articles/theFullyUpturnedBin.html" hash="02ae7e6473e6ad87d6d5a8fc254dd274" description=".c( whytheluckystiff )o. -- The Fully Upturned Bin" tag="programming ruby garbagecollection" time="2008-07-31T13:09:26Z" others="317" extended="About memory management and Garbage Collection in Ruby."/>
|
6
6
|
</posts>
|
7
7
|
<!-- fe02.api.del.ac4.yahoo.net uncompressed/chunked Sat Aug 2 13:37:09 PDT 2008 -->
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<posts user="weppos" tag="">
|
3
|
-
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git?
|
4
|
-
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration
|
3
|
+
<post href="http://github.com/blog/120-new-to-git" hash="eca1f8a028417349f71077adf64faee8" description="New to Git? - GitHub" tag="scm git" time="2008-07-31T15:44:54Z" others="265" extended=""/>
|
4
|
+
<post href="http://arthurkoziel.com/2008/05/02/git-configuration/" hash="fd68cebf1efc8267755fffdf83d34a65" description="Git Configuration - Arthur Koziel’s Blog" tag="scm git" time="2008-07-31T15:44:19Z" others="17" extended="Here are some useful configuration options for Git."/>
|
5
5
|
<post href="http://whytheluckystiff.net/articles/theFullyUpturnedBin.html" hash="02ae7e6473e6ad87d6d5a8fc254dd274" description=".c( whytheluckystiff )o. -- The Fully Upturned Bin" tag="programming ruby garbagecollection" time="2008-07-31T13:09:26Z" others="317" extended="About memory management and Garbage Collection in Ruby."/>
|
6
6
|
<post href="http://www.learnasp.com/learn/subgetrows.asp" hash="14f798447ad0e8b3f98d6c89773ce345" description="dbtable" tag="programming asp vbscript database" time="2008-07-29T19:29:38Z" others="0" extended=""/>
|
7
7
|
<post href="http://www.xmlfiles.com/articles/seth/xmldatatransfer/default.asp" hash="e3dfcc0f5cf9ce519783b7a9b1904998" description="XML Files - An ASP Class for XML Data Transfer" tag="programming asp vbscript classes xml" time="2008-07-29T19:29:17Z" others="14" extended=""/>
|
data/www-delicious.gemspec
CHANGED
@@ -1,146 +1,44 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{www-delicious}
|
5
|
+
s.version = "0.2.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Simone Carletti"]
|
9
|
+
s.date = %q{2009-02-08}
|
10
|
+
s.description = %q{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.}
|
11
|
+
s.email = %q{weppos@weppos.net}
|
12
|
+
s.extra_rdoc_files = ["lib/www/delicious/bundle.rb", "lib/www/delicious/tag.rb", "lib/www/delicious/element.rb", "lib/www/delicious/version.rb", "lib/www/delicious/post.rb", "lib/www/delicious/errors.rb", "lib/www/delicious.rb", "CHANGELOG.rdoc", "README.rdoc"]
|
13
|
+
s.files = ["lib/www/delicious/bundle.rb", "lib/www/delicious/tag.rb", "lib/www/delicious/element.rb", "lib/www/delicious/version.rb", "lib/www/delicious/post.rb", "lib/www/delicious/errors.rb", "lib/www/delicious.rb", "test/post_test.rb", "test/test_all.rb", "test/fixtures/net_response_success.yml", "test/fixtures/net_response_invalid_account.yml", "test/delicious_test.rb", "test/online_test.rb", "test/test_helper.rb", "test/bundle_test.rb", "test/tag_test.rb", "test/testcases/response/posts_get_with_tag.xml", "test/testcases/response/tags_get_empty.xml", "test/testcases/response/update.xml", "test/testcases/response/bundles_set.xml", "test/testcases/response/bundles_delete.xml", "test/testcases/response/posts_get.xml", "test/testcases/response/posts_add.xml", "test/testcases/response/bundles_set_error.xml", "test/testcases/response/posts_all.xml", "test/testcases/response/posts_dates_with_tag.xml", "test/testcases/response/posts_dates.xml", "test/testcases/response/bundles_all.xml", "test/testcases/response/posts_delete.xml", "test/testcases/response/posts_recent_with_tag.xml", "test/testcases/response/tags_get.xml", "test/testcases/response/bundles_all_empty.xml", "test/testcases/response/posts_recent.xml", "test/testcases/response/update.delicious1.xml", "test/testcases/response/tags_rename.xml", "test/testcases/element/invalid_root.xml", "test/testcases/element/tag.xml", "test/testcases/element/post.xml", "test/testcases/element/bundle.xml", "test/testcases/element/post_unshared.xml", "Manifest", "Rakefile", "LICENSE.rdoc", "CHANGELOG.rdoc", "www-delicious.gemspec", "setup.rb", "README.rdoc", "init.rb"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://code.simonecarletti.com/www-delicious}
|
16
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Www-delicious", "--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{www-delicious}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{Ruby client for del.icio.us API.}
|
21
|
+
s.test_files = ["test/test_all.rb"]
|
22
|
+
|
23
|
+
if s.respond_to? :specification_version then
|
24
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
|
+
s.specification_version = 2
|
26
|
+
|
27
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
+
s.add_development_dependency(%q<echoe>, [">= 0"])
|
29
|
+
s.add_development_dependency(%q<rake>, [">= 0.8"])
|
30
|
+
s.add_development_dependency(%q<echoe>, [">= 3.0"])
|
31
|
+
s.add_development_dependency(%q<mocha>, [">= 0.9"])
|
32
|
+
else
|
33
|
+
s.add_dependency(%q<echoe>, [">= 0"])
|
34
|
+
s.add_dependency(%q<rake>, [">= 0.8"])
|
35
|
+
s.add_dependency(%q<echoe>, [">= 3.0"])
|
36
|
+
s.add_dependency(%q<mocha>, [">= 0.9"])
|
37
|
+
end
|
38
|
+
else
|
39
|
+
s.add_dependency(%q<echoe>, [">= 0"])
|
40
|
+
s.add_dependency(%q<rake>, [">= 0.8"])
|
41
|
+
s.add_dependency(%q<echoe>, [">= 3.0"])
|
42
|
+
s.add_dependency(%q<mocha>, [">= 0.9"])
|
43
|
+
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,19 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ideaoforder-www-delicious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-02-08 00:00:00 -08:00
|
12
13
|
default_executable:
|
13
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: echoe
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
version:
|
14
24
|
- !ruby/object:Gem::Dependency
|
15
25
|
name: rake
|
16
|
-
type: :development
|
17
26
|
version_requirement:
|
18
27
|
version_requirements: !ruby/object:Gem::Requirement
|
19
28
|
requirements:
|
@@ -23,17 +32,15 @@ dependencies:
|
|
23
32
|
version:
|
24
33
|
- !ruby/object:Gem::Dependency
|
25
34
|
name: echoe
|
26
|
-
type: :development
|
27
35
|
version_requirement:
|
28
36
|
version_requirements: !ruby/object:Gem::Requirement
|
29
37
|
requirements:
|
30
38
|
- - ">="
|
31
39
|
- !ruby/object:Gem::Version
|
32
|
-
version: "3"
|
40
|
+
version: "3.0"
|
33
41
|
version:
|
34
42
|
- !ruby/object:Gem::Dependency
|
35
43
|
name: mocha
|
36
|
-
type: :development
|
37
44
|
version_requirement:
|
38
45
|
version_requirements: !ruby/object:Gem::Requirement
|
39
46
|
requirements:
|
@@ -41,73 +48,71 @@ dependencies:
|
|
41
48
|
- !ruby/object:Gem::Version
|
42
49
|
version: "0.9"
|
43
50
|
version:
|
44
|
-
description: WWW::Delicious is a del.icio.us API client implemented in Ruby.
|
51
|
+
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.
|
45
52
|
email: weppos@weppos.net
|
46
53
|
executables: []
|
47
54
|
|
48
55
|
extensions: []
|
49
56
|
|
50
57
|
extra_rdoc_files:
|
51
|
-
- CHANGELOG.rdoc
|
52
58
|
- lib/www/delicious/bundle.rb
|
53
|
-
- lib/www/delicious/element.rb
|
54
|
-
- lib/www/delicious/errors.rb
|
55
|
-
- lib/www/delicious/post.rb
|
56
59
|
- lib/www/delicious/tag.rb
|
60
|
+
- lib/www/delicious/element.rb
|
57
61
|
- lib/www/delicious/version.rb
|
62
|
+
- lib/www/delicious/post.rb
|
63
|
+
- lib/www/delicious/errors.rb
|
58
64
|
- lib/www/delicious.rb
|
65
|
+
- CHANGELOG.rdoc
|
59
66
|
- README.rdoc
|
60
67
|
files:
|
61
|
-
- CHANGELOG.rdoc
|
62
68
|
- lib/www/delicious/bundle.rb
|
63
|
-
- lib/www/delicious/element.rb
|
64
|
-
- lib/www/delicious/errors.rb
|
65
|
-
- lib/www/delicious/post.rb
|
66
69
|
- lib/www/delicious/tag.rb
|
70
|
+
- lib/www/delicious/element.rb
|
67
71
|
- lib/www/delicious/version.rb
|
72
|
+
- lib/www/delicious/post.rb
|
73
|
+
- lib/www/delicious/errors.rb
|
68
74
|
- lib/www/delicious.rb
|
69
|
-
-
|
70
|
-
- Rakefile
|
71
|
-
- README.rdoc
|
72
|
-
- setup.rb
|
73
|
-
- test/fixtures/net_response_invalid_account.yml
|
74
|
-
- test/fixtures/net_response_success.yml
|
75
|
-
- test/helper.rb
|
75
|
+
- test/post_test.rb
|
76
76
|
- test/test_all.rb
|
77
|
-
- test/
|
78
|
-
- test/
|
79
|
-
- test/
|
80
|
-
- test/
|
81
|
-
- test/
|
82
|
-
- test/
|
83
|
-
- test/
|
84
|
-
- test/testcases/response/
|
85
|
-
- test/testcases/response/
|
86
|
-
- test/testcases/response/
|
77
|
+
- test/fixtures/net_response_success.yml
|
78
|
+
- test/fixtures/net_response_invalid_account.yml
|
79
|
+
- test/delicious_test.rb
|
80
|
+
- test/online_test.rb
|
81
|
+
- test/test_helper.rb
|
82
|
+
- test/bundle_test.rb
|
83
|
+
- test/tag_test.rb
|
84
|
+
- test/testcases/response/posts_get_with_tag.xml
|
85
|
+
- test/testcases/response/tags_get_empty.xml
|
86
|
+
- test/testcases/response/update.xml
|
87
87
|
- test/testcases/response/bundles_set.xml
|
88
|
-
- test/testcases/response/
|
88
|
+
- test/testcases/response/bundles_delete.xml
|
89
|
+
- test/testcases/response/posts_get.xml
|
89
90
|
- test/testcases/response/posts_add.xml
|
91
|
+
- test/testcases/response/bundles_set_error.xml
|
90
92
|
- test/testcases/response/posts_all.xml
|
91
|
-
- test/testcases/response/posts_dates.xml
|
92
93
|
- test/testcases/response/posts_dates_with_tag.xml
|
94
|
+
- test/testcases/response/posts_dates.xml
|
95
|
+
- test/testcases/response/bundles_all.xml
|
93
96
|
- test/testcases/response/posts_delete.xml
|
94
|
-
- test/testcases/response/posts_get.xml
|
95
|
-
- test/testcases/response/posts_get_with_tag.xml
|
96
|
-
- test/testcases/response/posts_recent.xml
|
97
97
|
- test/testcases/response/posts_recent_with_tag.xml
|
98
98
|
- test/testcases/response/tags_get.xml
|
99
|
-
- test/testcases/response/
|
100
|
-
- test/testcases/response/
|
99
|
+
- test/testcases/response/bundles_all_empty.xml
|
100
|
+
- test/testcases/response/posts_recent.xml
|
101
101
|
- test/testcases/response/update.delicious1.xml
|
102
|
-
- test/testcases/response/
|
103
|
-
- test/
|
104
|
-
- test/
|
105
|
-
- test/
|
106
|
-
- test/
|
107
|
-
- test/
|
108
|
-
- TODO
|
102
|
+
- test/testcases/response/tags_rename.xml
|
103
|
+
- test/testcases/element/invalid_root.xml
|
104
|
+
- test/testcases/element/tag.xml
|
105
|
+
- test/testcases/element/post.xml
|
106
|
+
- test/testcases/element/bundle.xml
|
107
|
+
- test/testcases/element/post_unshared.xml
|
109
108
|
- Manifest
|
109
|
+
- Rakefile
|
110
|
+
- LICENSE.rdoc
|
111
|
+
- CHANGELOG.rdoc
|
110
112
|
- www-delicious.gemspec
|
113
|
+
- setup.rb
|
114
|
+
- README.rdoc
|
115
|
+
- init.rb
|
111
116
|
has_rdoc: true
|
112
117
|
homepage: http://code.simonecarletti.com/www-delicious
|
113
118
|
post_install_message:
|
@@ -128,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
133
|
version:
|
129
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
135
|
requirements:
|
131
|
-
- - "
|
136
|
+
- - ">="
|
132
137
|
- !ruby/object:Gem::Version
|
133
138
|
version: "1.2"
|
134
139
|
version:
|
data/test/test_offline.rb
DELETED
@@ -1,18 +0,0 @@
|
|
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
|
-
# License:: MIT License
|
11
|
-
#
|
12
|
-
#--
|
13
|
-
# SVN: $Id$
|
14
|
-
#++
|
15
|
-
|
16
|
-
|
17
|
-
require File.dirname(__FILE__) + '/helper'
|
18
|
-
Dir.glob(File.dirname(__FILE__) + '/unit/**/*_test.rb').sort.each { |unit| require unit }
|
data/test/test_online.rb
DELETED
@@ -1,20 +0,0 @@
|
|
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
|
-
# License:: MIT License
|
11
|
-
#
|
12
|
-
#--
|
13
|
-
# SVN: $Id$
|
14
|
-
#++
|
15
|
-
|
16
|
-
|
17
|
-
RUN_ONLINE_TESTS = true
|
18
|
-
|
19
|
-
require File.dirname(__FILE__) + '/helper'
|
20
|
-
Dir.glob(File.dirname(__FILE__) + '/unit/online/*_test.rb').sort.each { |unit| require unit }
|