rbvimeo 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -38,7 +38,7 @@ h2. Documentation
38
38
 
39
39
  h2. Installation
40
40
 
41
- <pre>sudo gem install guitsaru-rbvimeo -s http://gems.github.com</pre>
41
+ <pre>sudo gem install rbvimeo</pre>
42
42
 
43
43
  h2. Contributing
44
44
 
data/Rakefile CHANGED
@@ -44,8 +44,7 @@ task :default => :test
44
44
  require 'rake/rdoctask'
45
45
  Rake::RDocTask.new do |rdoc|
46
46
  if File.exist?('VERSION.yml')
47
- config = YAML.load(File.read('VERSION.yml'))
48
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
49
48
  else
50
49
  version = ""
51
50
  end
data/VERSION.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 3
4
- :patch: 1
3
+ :minor: 4
4
+ :patch: 0
5
+ :build:
data/lib/rbvimeo/video.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module RBVIMEO
2
2
  class Video
3
- attr_reader :id, :title, :caption, :upload_date, :number_of_likes, :number_of_plays
3
+ attr_reader :id, :title, :description, :upload_date, :number_of_likes, :number_of_plays
4
4
  attr_reader :number_of_comments, :width, :height, :owner, :tags, :url
5
5
  attr_reader :thumbs, :duration
6
6
 
@@ -86,7 +86,7 @@ EOF
86
86
  return nil if xml_doc.at("title").nil?
87
87
  @id = id
88
88
 
89
- %w[title caption upload_date number_of_likes number_of_plays width height number_of_comments url duration].each do |attribute|
89
+ %w[title description upload_date number_of_likes number_of_plays width height number_of_comments url duration].each do |attribute|
90
90
  instance_variable_set("@#{attribute}", xml_doc.at(attribute).inner_html)
91
91
  end
92
92
 
data/rbvimeo.gemspec CHANGED
@@ -1,57 +1,54 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rbvimeo}
8
- s.version = "0.3.1"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Pruitt"]
12
- s.date = %q{2010-02-22}
12
+ s.date = %q{2011-04-28}
13
13
  s.email = %q{guitsaru@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
16
- "README.textile"
16
+ "README.textile"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "LICENSE",
21
- "README.textile",
22
- "Rakefile",
23
- "VERSION.yml",
24
- "lib/rbvimeo.rb",
25
- "lib/rbvimeo/comment.rb",
26
- "lib/rbvimeo/thumbnail.rb",
27
- "lib/rbvimeo/user.rb",
28
- "lib/rbvimeo/video.rb",
29
- "lib/rbvimeo/vimeo.rb",
30
- "rbvimeo.gemspec",
31
- "test/XML/339189.comments.xml",
32
- "test/XML/339189.xml",
33
- "test/XML/not_found.xml",
34
- "test/rbvimeo_test.rb",
35
- "test/test_helper.rb",
36
- "test/video_test.rb"
19
+ "LICENSE",
20
+ "README.textile",
21
+ "Rakefile",
22
+ "VERSION.yml",
23
+ "lib/rbvimeo.rb",
24
+ "lib/rbvimeo/comment.rb",
25
+ "lib/rbvimeo/thumbnail.rb",
26
+ "lib/rbvimeo/user.rb",
27
+ "lib/rbvimeo/video.rb",
28
+ "lib/rbvimeo/vimeo.rb",
29
+ "rbvimeo.gemspec",
30
+ "test/XML/339189.comments.xml",
31
+ "test/XML/339189.xml",
32
+ "test/XML/not_found.xml",
33
+ "test/rbvimeo_test.rb",
34
+ "test/test_helper.rb",
35
+ "test/video_test.rb"
37
36
  ]
38
37
  s.homepage = %q{http://github.com/guitsaru/rbvimeo}
39
- s.rdoc_options = ["--charset=UTF-8"]
40
38
  s.require_paths = ["lib"]
41
39
  s.rubyforge_project = %q{rbvimeo}
42
- s.rubygems_version = %q{1.3.5}
40
+ s.rubygems_version = %q{1.5.0}
43
41
  s.summary = %q{A ruby wrapper for the vimeo api.}
44
42
  s.test_files = [
45
43
  "test/rbvimeo_test.rb",
46
- "test/test_helper.rb",
47
- "test/video_test.rb"
44
+ "test/test_helper.rb",
45
+ "test/video_test.rb"
48
46
  ]
49
47
 
50
48
  if s.respond_to? :specification_version then
51
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
49
  s.specification_version = 3
53
50
 
54
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
52
  s.add_runtime_dependency(%q<hpricot>, [">= 0.6"])
56
53
  else
57
54
  s.add_dependency(%q<hpricot>, [">= 0.6"])
data/test/video_test.rb CHANGED
@@ -23,8 +23,8 @@ class VideoTest < Test::Unit::TestCase
23
23
  assert_equal("Upload Tutorial", @vid.title.chomp)
24
24
  end
25
25
 
26
- should "have a caption" do
27
- assert_equal("This is a tutorial about our new Uploader. Enjoy! \nNote- If you have problems uploading post a message here, http://www.vimeo.com/forum:known_issues under problems uploading and we'll help you.", @vid.caption.chomp)
26
+ should "have a description" do
27
+ assert_equal("This is a tutorial about our new Uploader. Enjoy! \nNote- If you have problems uploading post a message here, http://www.vimeo.com/forum:known_issues under problems uploading and we'll help you.", @vid.description.chomp)
28
28
  end
29
29
 
30
30
  should "have an upload date" do
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbvimeo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ prerelease:
5
+ version: 0.4.0
5
6
  platform: ruby
6
7
  authors:
7
8
  - Matt Pruitt
@@ -9,19 +10,20 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-02-22 00:00:00 -06:00
13
+ date: 2011-04-28 00:00:00 -05:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: hpricot
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
20
21
  requirements:
21
22
  - - ">="
22
23
  - !ruby/object:Gem::Version
23
24
  version: "0.6"
24
- version:
25
+ type: :runtime
26
+ version_requirements: *id001
25
27
  description:
26
28
  email: guitsaru@gmail.com
27
29
  executables: []
@@ -32,7 +34,6 @@ extra_rdoc_files:
32
34
  - LICENSE
33
35
  - README.textile
34
36
  files:
35
- - .gitignore
36
37
  - LICENSE
37
38
  - README.textile
38
39
  - Rakefile
@@ -55,26 +56,26 @@ homepage: http://github.com/guitsaru/rbvimeo
55
56
  licenses: []
56
57
 
57
58
  post_install_message:
58
- rdoc_options:
59
- - --charset=UTF-8
59
+ rdoc_options: []
60
+
60
61
  require_paths:
61
62
  - lib
62
63
  required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
63
65
  requirements:
64
66
  - - ">="
65
67
  - !ruby/object:Gem::Version
66
68
  version: "0"
67
- version:
68
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
69
71
  requirements:
70
72
  - - ">="
71
73
  - !ruby/object:Gem::Version
72
74
  version: "0"
73
- version:
74
75
  requirements: []
75
76
 
76
77
  rubyforge_project: rbvimeo
77
- rubygems_version: 1.3.5
78
+ rubygems_version: 1.5.0
78
79
  signing_key:
79
80
  specification_version: 3
80
81
  summary: A ruby wrapper for the vimeo api.
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage
4
- rdoc
5
- pkg