www-delicious 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@
10
10
  # License:: MIT License
11
11
  #
12
12
  #--
13
- # SVN: $Id$
13
+ #
14
14
  #++
15
15
 
16
16
 
@@ -19,15 +19,14 @@ module WWW
19
19
 
20
20
  module Version
21
21
  MAJOR = 0
22
- MINOR = 3
23
- TINY = 0
22
+ MINOR = 4
23
+ PATCH = 0
24
+ BUILD = nil
24
25
 
25
- STRING = [MAJOR, MINOR, TINY].join('.')
26
+ STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
26
27
  end
27
28
 
28
- VERSION = Version::STRING
29
- STATUS = 'beta'
30
- BUILD = ''.match(/(\d+)/).to_a.first
29
+ VERSION = Version::STRING
31
30
 
32
31
  end
33
32
  end
@@ -1,19 +1,3 @@
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
1
  require 'test_helper'
18
2
 
19
3
 
@@ -1,19 +1,3 @@
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
1
  $:.unshift(File.dirname(__FILE__) + '/../lib')
18
2
 
19
3
  require 'rubygems'
@@ -1,19 +1,3 @@
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
1
  require 'test_helper'
18
2
  require 'www/delicious/bundle'
19
3
 
@@ -1,19 +1,3 @@
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
1
  require 'test_helper'
18
2
  require 'www/delicious/post'
19
3
 
@@ -1,19 +1,3 @@
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
1
  require 'test_helper'
18
2
  require 'www/delicious/tag'
19
3
 
@@ -1,19 +1,3 @@
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
1
  require 'test_helper'
18
2
 
19
3
 
@@ -78,7 +62,10 @@ class DeliciousTest < Test::Unit::TestCase
78
62
  lr = @delicious.instance_variable_get(:@last_request)
79
63
  @delicious.valid_account? # N request
80
64
  nr = @delicious.instance_variable_get(:@last_request)
81
- assert((nr - lr) > WWW::Delicious::SECONDS_BEFORE_NEW_REQUEST)
65
+ time_diff = (nr - lr)
66
+ assert !(time_diff < WWW::Delicious::SECONDS_BEFORE_NEW_REQUEST),
67
+ "Request ##{time} run after `#{time_diff}' seconds " +
68
+ "but it should wait at least `#{WWW::Delicious::SECONDS_BEFORE_NEW_REQUEST}' seconds"
82
69
  end
83
70
  end
84
71
 
@@ -4,38 +4,31 @@ Gem::Specification.new do |s|
4
4
  s.name = %q{www-delicious}
5
5
  s.version = "0.3.0"
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = %q{2009-02-10}
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.}
9
+ s.date = %q{2010-08-18}
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
+ }
11
12
  s.email = %q{weppos@weppos.net}
12
- s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/www/delicious/bundle.rb", "lib/www/delicious/element.rb", "lib/www/delicious/errors.rb", "lib/www/delicious/post.rb", "lib/www/delicious/tag.rb", "lib/www/delicious/version.rb", "lib/www/delicious.rb", "README.rdoc"]
13
- s.files = ["CHANGELOG.rdoc", "lib/www/delicious/bundle.rb", "lib/www/delicious/element.rb", "lib/www/delicious/errors.rb", "lib/www/delicious/post.rb", "lib/www/delicious/tag.rb", "lib/www/delicious/version.rb", "lib/www/delicious.rb", "LICENSE.rdoc", "Rakefile", "README.rdoc", "setup.rb", "test/bundle_test.rb", "test/delicious_test.rb", "test/fixtures/net_response_invalid_account.yml", "test/fixtures/net_response_success.yml", "test/online_test.rb", "test/post_test.rb", "test/tag_test.rb", "test/test_all.rb", "test/test_helper.rb", "test/testcases/element/bundle.xml", "test/testcases/element/invalid_root.xml", "test/testcases/element/post.xml", "test/testcases/element/post_unshared.xml", "test/testcases/element/tag.xml", "test/testcases/response/bundles_all.xml", "test/testcases/response/bundles_all_empty.xml", "test/testcases/response/bundles_delete.xml", "test/testcases/response/bundles_set.xml", "test/testcases/response/bundles_set_error.xml", "test/testcases/response/posts_add.xml", "test/testcases/response/posts_all.xml", "test/testcases/response/posts_dates.xml", "test/testcases/response/posts_dates_with_tag.xml", "test/testcases/response/posts_delete.xml", "test/testcases/response/posts_get.xml", "test/testcases/response/posts_get_with_tag.xml", "test/testcases/response/posts_recent.xml", "test/testcases/response/posts_recent_with_tag.xml", "test/testcases/response/tags_get.xml", "test/testcases/response/tags_get_empty.xml", "test/testcases/response/tags_rename.xml", "test/testcases/response/update.delicious1.xml", "test/testcases/response/update.xml", "Manifest", "www-delicious.gemspec"]
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"]
13
+ s.extra_rdoc_files = ["CHANGELOG.rdoc", "LICENSE.rdoc", "README.rdoc"]
14
+ s.files = ["CHANGELOG.rdoc", "LICENSE.rdoc", "README.rdoc", "lib/www", "lib/www/delicious", "lib/www/delicious/bundle.rb", "lib/www/delicious/element.rb", "lib/www/delicious/errors.rb", "lib/www/delicious/post.rb", "lib/www/delicious/tag.rb", "lib/www/delicious/version.rb", "lib/www/delicious.rb", "test/fixtures", "test/fixtures/net_response_invalid_account.yml", "test/fixtures/net_response_success.yml", "test/online_test.rb", "test/test_helper.rb", "test/testcases", "test/testcases/element", "test/testcases/element/bundle.xml", "test/testcases/element/invalid_root.xml", "test/testcases/element/post.xml", "test/testcases/element/post_unshared.xml", "test/testcases/element/tag.xml", "test/testcases/response", "test/testcases/response/bundles_all.xml", "test/testcases/response/bundles_all_empty.xml", "test/testcases/response/bundles_delete.xml", "test/testcases/response/bundles_set.xml", "test/testcases/response/bundles_set_error.xml", "test/testcases/response/posts_add.xml", "test/testcases/response/posts_all.xml", "test/testcases/response/posts_dates.xml", "test/testcases/response/posts_dates_with_tag.xml", "test/testcases/response/posts_delete.xml", "test/testcases/response/posts_get.xml", "test/testcases/response/posts_get_with_tag.xml", "test/testcases/response/posts_recent.xml", "test/testcases/response/posts_recent_with_tag.xml", "test/testcases/response/tags_get.xml", "test/testcases/response/tags_get_empty.xml", "test/testcases/response/tags_rename.xml", "test/testcases/response/update.delicious1.xml", "test/testcases/response/update.xml", "test/www", "test/www/delicious", "test/www/delicious/bundle_test.rb", "test/www/delicious/post_test.rb", "test/www/delicious/tag_test.rb", "test/www/delicious_test.rb"]
15
+ s.homepage = %q{http://www.simonecarletti.com/code/www-delicious}
16
+ s.rdoc_options = ["--main", "README.rdoc"]
17
17
  s.require_paths = ["lib"]
18
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"]
19
+ s.rubygems_version = %q{1.3.7}
20
+ s.summary = %q{Ruby client for delicious.com API.}
22
21
 
23
22
  if s.respond_to? :specification_version then
24
23
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
- s.specification_version = 2
24
+ s.specification_version = 3
26
25
 
27
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
- s.add_development_dependency(%q<rake>, [">= 0.8"])
29
- s.add_development_dependency(%q<echoe>, [">= 3.1"])
30
- s.add_development_dependency(%q<mocha>, [">= 0.9"])
26
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
+ s.add_development_dependency(%q<mocha>, [">= 0"])
31
28
  else
32
- s.add_dependency(%q<rake>, [">= 0.8"])
33
- s.add_dependency(%q<echoe>, [">= 3.1"])
34
- s.add_dependency(%q<mocha>, [">= 0.9"])
29
+ s.add_dependency(%q<mocha>, [">= 0"])
35
30
  end
36
31
  else
37
- s.add_dependency(%q<rake>, [">= 0.8"])
38
- s.add_dependency(%q<echoe>, [">= 3.1"])
39
- s.add_dependency(%q<mocha>, [">= 0.9"])
32
+ s.add_dependency(%q<mocha>, [">= 0"])
40
33
  end
41
34
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: www-delicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Simone Carletti
@@ -9,40 +15,24 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-02-10 00:00:00 +01:00
18
+ date: 2010-08-18 00:00:00 +02:00
13
19
  default_executable:
14
20
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rake
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0.8"
24
- version:
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.1"
34
- version:
35
21
  - !ruby/object:Gem::Dependency
36
22
  name: mocha
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
40
26
  requirements:
41
27
  - - ">="
42
28
  - !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.
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
35
+ 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.\n"
46
36
  email: weppos@weppos.net
47
37
  executables: []
48
38
 
@@ -50,16 +40,13 @@ extensions: []
50
40
 
51
41
  extra_rdoc_files:
52
42
  - 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
43
+ - LICENSE.rdoc
60
44
  - README.rdoc
61
45
  files:
62
46
  - CHANGELOG.rdoc
47
+ - LICENSE.rdoc
48
+ - README.rdoc
49
+ - www-delicious.gemspec
63
50
  - lib/www/delicious/bundle.rb
64
51
  - lib/www/delicious/element.rb
65
52
  - lib/www/delicious/errors.rb
@@ -67,18 +54,9 @@ files:
67
54
  - lib/www/delicious/tag.rb
68
55
  - lib/www/delicious/version.rb
69
56
  - lib/www/delicious.rb
70
- - LICENSE.rdoc
71
- - Rakefile
72
- - README.rdoc
73
- - setup.rb
74
- - test/bundle_test.rb
75
- - test/delicious_test.rb
76
57
  - test/fixtures/net_response_invalid_account.yml
77
58
  - test/fixtures/net_response_success.yml
78
59
  - test/online_test.rb
79
- - test/post_test.rb
80
- - test/tag_test.rb
81
- - test/test_all.rb
82
60
  - test/test_helper.rb
83
61
  - test/testcases/element/bundle.xml
84
62
  - test/testcases/element/invalid_root.xml
@@ -104,38 +82,44 @@ files:
104
82
  - test/testcases/response/tags_rename.xml
105
83
  - test/testcases/response/update.delicious1.xml
106
84
  - test/testcases/response/update.xml
107
- - Manifest
108
- - www-delicious.gemspec
85
+ - test/www/delicious/bundle_test.rb
86
+ - test/www/delicious/post_test.rb
87
+ - test/www/delicious/tag_test.rb
88
+ - test/www/delicious_test.rb
109
89
  has_rdoc: true
110
- homepage: http://code.simonecarletti.com/www-delicious
90
+ homepage: http://www.simonecarletti.com/code/www-delicious
91
+ licenses: []
92
+
111
93
  post_install_message:
112
94
  rdoc_options:
113
- - --line-numbers
114
- - --inline-source
115
- - --title
116
- - Www-delicious
117
95
  - --main
118
96
  - README.rdoc
119
97
  require_paths:
120
98
  - lib
121
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
122
101
  requirements:
123
102
  - - ">="
124
103
  - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
125
107
  version: "0"
126
- version:
127
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
+ none: false
128
110
  requirements:
129
111
  - - ">="
130
112
  - !ruby/object:Gem::Version
131
- version: "1.2"
132
- version:
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
133
117
  requirements: []
134
118
 
135
119
  rubyforge_project: www-delicious
136
- rubygems_version: 1.3.1
120
+ rubygems_version: 1.3.7
137
121
  signing_key:
138
- specification_version: 2
139
- summary: Ruby client for del.icio.us API.
140
- test_files:
141
- - test/test_all.rb
122
+ specification_version: 3
123
+ summary: Ruby client for delicious.com API.
124
+ test_files: []
125
+
data/Manifest DELETED
@@ -1,46 +0,0 @@
1
- CHANGELOG.rdoc
2
- lib/www/delicious/bundle.rb
3
- lib/www/delicious/element.rb
4
- lib/www/delicious/errors.rb
5
- lib/www/delicious/post.rb
6
- lib/www/delicious/tag.rb
7
- lib/www/delicious/version.rb
8
- lib/www/delicious.rb
9
- LICENSE.rdoc
10
- Rakefile
11
- README.rdoc
12
- setup.rb
13
- test/bundle_test.rb
14
- test/delicious_test.rb
15
- test/fixtures/net_response_invalid_account.yml
16
- test/fixtures/net_response_success.yml
17
- test/online_test.rb
18
- test/post_test.rb
19
- test/tag_test.rb
20
- test/test_all.rb
21
- test/test_helper.rb
22
- test/testcases/element/bundle.xml
23
- test/testcases/element/invalid_root.xml
24
- test/testcases/element/post.xml
25
- test/testcases/element/post_unshared.xml
26
- test/testcases/element/tag.xml
27
- test/testcases/response/bundles_all.xml
28
- test/testcases/response/bundles_all_empty.xml
29
- test/testcases/response/bundles_delete.xml
30
- test/testcases/response/bundles_set.xml
31
- test/testcases/response/bundles_set_error.xml
32
- test/testcases/response/posts_add.xml
33
- test/testcases/response/posts_all.xml
34
- test/testcases/response/posts_dates.xml
35
- test/testcases/response/posts_dates_with_tag.xml
36
- test/testcases/response/posts_delete.xml
37
- test/testcases/response/posts_get.xml
38
- test/testcases/response/posts_get_with_tag.xml
39
- test/testcases/response/posts_recent.xml
40
- test/testcases/response/posts_recent_with_tag.xml
41
- test/testcases/response/tags_get.xml
42
- test/testcases/response/tags_get_empty.xml
43
- test/testcases/response/tags_rename.xml
44
- test/testcases/response/update.delicious1.xml
45
- test/testcases/response/update.xml
46
- Manifest
data/Rakefile DELETED
@@ -1,57 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- gem 'echoe', '>= 3.1'
5
- require 'echoe'
6
-
7
- $:.unshift(File.dirname(__FILE__) + "/lib")
8
- require 'www/delicious'
9
-
10
-
11
- # Common package properties
12
- PKG_NAME = ENV['PKG_NAME'] || WWW::Delicious::GEM
13
- PKG_VERSION = ENV['PKG_VERSION'] || WWW::Delicious::VERSION
14
- PKG_SUMMARY = "Ruby client for del.icio.us API."
15
- PKG_FILES = FileList.new("{lib,test}/**/*.rb") do |files|
16
- files.include %w(README.rdoc CHANGELOG.rdoc LICENSE.rdoc)
17
- files.include %w(Rakefile setup.rb)
18
- end
19
- RUBYFORGE_PROJECT = 'www-delicious'
20
-
21
- if ENV['SNAPSHOT'].to_i == 1
22
- PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
23
- end
24
-
25
-
26
- Echoe.new(PKG_NAME, PKG_VERSION) do |p|
27
- p.author = "Simone Carletti"
28
- p.email = "weppos@weppos.net"
29
- p.summary = PKG_SUMMARY
30
- p.description = <<-EOD
31
- WWW::Delicious is a del.icio.us API client implemented in Ruby. \
32
- It provides access to all available del.icio.us API queries \
33
- and returns the original XML response as a friendly Ruby object.
34
- EOD
35
- p.url = "http://code.simonecarletti.com/www-delicious"
36
- p.project = RUBYFORGE_PROJECT
37
-
38
- p.need_zip = true
39
- p.rcov_options = ["--main << README.rdoc -x Rakefile -x mocha -x rcov"]
40
- p.rdoc_pattern = /^(lib|CHANGELOG.rdoc|README.rdoc)/
41
-
42
- p.development_dependencies += ["rake >=0.8",
43
- "echoe >=3.1",
44
- "mocha >=0.9"]
45
- end
46
-
47
-
48
- begin
49
- require 'code_statistics'
50
- desc "Show library's code statistics"
51
- task :stats do
52
- CodeStatistics.new(["WWW::Delicious", "lib"],
53
- ["Tests", "test"]).to_s
54
- end
55
- rescue LoadError
56
- puts "CodeStatistics (Rails) is not available"
57
- end