sitemap_generator 1.3.8 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ./
3
3
  specs:
4
- sitemap_generator (1.3.7)
4
+ sitemap_generator (1.3.8)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -139,6 +139,7 @@ Supported video options include:
139
139
  * `tag` A single tag. See `tags`
140
140
  * `category`
141
141
  * `gallery_loc`
142
+ * `uploader` (use `uploader_info` to set the info attribute)
142
143
 
143
144
  Configuration
144
145
  ======
data/Rakefile CHANGED
@@ -96,7 +96,7 @@ task :test => ['test:gem']
96
96
 
97
97
  Spec::Rake::SpecTask.new(:spec) do |spec|
98
98
  spec.libs << 'lib' << 'spec'
99
- spec.spec_files = FileList['spec/**/*_spec.rb']
99
+ spec.spec_files = FileList['spec/sitemap_generator/**/*_spec.rb']
100
100
  end
101
101
  task :spec => :check_dependencies
102
102
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.8
1
+ 1.3.9
@@ -52,13 +52,13 @@ module SitemapGenerator
52
52
  unless self[:video].blank?
53
53
  video = self[:video]
54
54
  builder.video :video do
55
+ builder.video :thumbnail_loc, video[:thumbnail_loc]
56
+ builder.video :title, video[:title]
57
+ builder.video :description, video[:description]
55
58
  builder.video :content_loc, video[:content_loc] if video[:content_loc]
56
59
  if video[:player_loc]
57
60
  builder.video :player_loc, video[:player_loc], :allow_embed => (video[:allow_embed] ? 'yes' : 'no'), :autoplay => video[:autoplay]
58
61
  end
59
- builder.video :thumbnail_loc, video[:thumbnail_loc]
60
- builder.video :title, video[:title]
61
- builder.video :description, video[:description]
62
62
 
63
63
  builder.video :rating, video[:rating] if video[:rating]
64
64
  builder.video :view_count, video[:view_count] if video[:view_count]
@@ -70,6 +70,10 @@ module SitemapGenerator
70
70
  builder.video :tag, video[:tag] if video[:tag]
71
71
  builder.video :category, video[:category] if video[:category]
72
72
  builder.video :gallery_loc, video[:gallery_loc] if video[:gallery_loc]
73
+
74
+ if video[:uploader]
75
+ builder.video :uploader, video[:uploader], video[:uploader_info] ? { :info => video[:uploader_info] } : {}
76
+ end
73
77
  end
74
78
  end
75
79
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitemap_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 8
10
- version: 1.3.8
9
+ - 9
10
+ version: 1.3.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Karl Varga
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-05 00:00:00 -08:00
19
+ date: 2011-02-26 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -117,7 +117,6 @@ files:
117
117
  - MIT-LICENSE
118
118
  - README.md
119
119
  - Rakefile
120
- - Rakefile.working
121
120
  - VERSION
122
121
  - lib/sitemap_generator.rb
123
122
  - lib/sitemap_generator/builder.rb
data/Rakefile.working DELETED
@@ -1,146 +0,0 @@
1
- require "rubygems"
2
- require 'rake'
3
- require 'rake/rdoctask'
4
-
5
- require 'rubygems'
6
-
7
- require 'github'
8
- require 'git'
9
- #require 'jeweler'
10
- gem 'jeweler', '1.4.0'
11
- gem 'rspec', '1.3.0'
12
- #gem 'rspec-rails', '1.3.2'
13
- require 'spec'
14
- #require 'spec/rails'
15
- require 'spec/rake/spectask'
16
- require 'rake'
17
- require 'rake/testtask'
18
- require 'rake/rdoctask'
19
-
20
- #require 'rails'
21
-
22
- begin
23
- require 'jeweler'
24
- Jeweler::Tasks.new do |gem|
25
- gem.name = "sitemap_generator"
26
- gem.summary = %Q{Easily generate enterprise class Sitemaps for your Rails site using a familiar Rails Routes-like DSL}
27
- gem.description = %Q{SitemapGenerator is a Rails gem that makes it easy to generate enterprise-class Sitemaps readable by all search engines. Generated Sitemaps adhere to the Sitemap protocol specification. When you generate new Sitemaps, SitemapGenerator can automatically ping the major search engines (including Google, Yahoo and Bing) to notify them. SitemapGenerator includes rake tasks to easily manage your sitemaps.}
28
- gem.email = "kjvarga@gmail.com"
29
- gem.homepage = "http://github.com/kjvarga/sitemap_generator"
30
- gem.authors = ["Karl Varga", "Adam Salter"]
31
- gem.files = FileList["[A-Z]*", "{bin,lib,rails,templates,tasks}/**/*"]
32
- gem.test_files = []
33
- gem.add_development_dependency "rspec"
34
- gem.add_development_dependency "nokogiri"
35
- gem.add_development_dependency "sqlite3-ruby"
36
- gem.add_development_dependency "jeweler"
37
- gem.add_development_dependency "github"
38
- gem.add_development_dependency "git"
39
- end
40
- Jeweler::GemcutterTasks.new
41
- rescue LoadError
42
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
43
- end
44
-
45
- #
46
- # Helper methods
47
- #
48
- module Helpers
49
- extend self
50
-
51
- # Return a full local path to path fragment <tt>path</tt>
52
- def local_path(path)
53
- File.join(File.dirname(__FILE__), path)
54
- end
55
-
56
- # Copy all of the local files into <tt>path</tt> after completely cleaning it
57
- def prepare_path(path)
58
- rm_rf path
59
- mkdir_p path
60
- cp_r(FileList["[A-Z]*", "{bin,lib,rails,templates,tasks}"], path)
61
- end
62
- end
63
-
64
- #
65
- # Tasks
66
- #
67
- task :default => :test
68
-
69
- desc "Run specs"
70
- namespace :test do
71
- #desc "Test as a gem, plugin and Rails 3 gem"
72
- #task :all => ['test:gem', 'test:plugin']
73
-
74
- desc "Run specs on a gem install"
75
- task :gem => ['test:prepare:gem', 'multi_spec']
76
- desc "Run specs on a plugin install"
77
- task :plugin => ['test:prepare:plugin', 'multi_spec']
78
- desc "Run specs on a rails3 install"
79
- task :rails3 => ['test:prepare:rails3', 'multi_spec']
80
-
81
- task :multi_spec do
82
- Rake::Task['spec'].invoke
83
- Rake::Task['spec'].reenable
84
- end
85
-
86
- namespace :prepare do
87
- desc "Prepare the gem install for testing"
88
- task :gem do
89
- ENV["SITEMAP_RAILS"] = 'gem'
90
- rm_rf(Helpers.local_path('spec/mock_app_gem/public/sitemap*'))
91
- end
92
-
93
- desc "Prepare the plugin install for testing"
94
- task :plugin do
95
- ENV["SITEMAP_RAILS"] = 'plugin'
96
- Helpers.prepare_path(Helpers.local_path('spec/mock_app_plugin/vendor/plugins/sitemap_generator-1.2.3'))
97
- rm_rf(Helpers.local_path('spec/mock_app_plugin/public/sitemap*'))
98
- end
99
-
100
- desc "Prepare the rails3 install for testing"
101
- task :rails3 do
102
- ENV["SITEMAP_RAILS"] = 'rails3'
103
- rm_rf(Helpers.local_path('spec/mock_rails3_gem/public/sitemap*'))
104
- end
105
- end
106
- end
107
-
108
- desc "Run tests as a gem install"
109
- task :test => ['test:gem']
110
-
111
- Spec::Rake::SpecTask.new(:spec) do |spec|
112
- spec.libs << 'lib' << 'spec'
113
- spec.spec_files = FileList['spec/**/*_spec.rb']
114
- end
115
- task :spec => :check_dependencies
116
-
117
- Spec::Rake::SpecTask.new(:rcov) do |spec|
118
- spec.libs << 'lib' << 'spec'
119
- spec.pattern = 'spec/**/*_spec.rb'
120
- spec.rcov = true
121
- end
122
-
123
- desc 'Generate documentation'
124
- Rake::RDocTask.new(:rdoc) do |rdoc|
125
- rdoc.rdoc_dir = 'rdoc'
126
- rdoc.title = 'SitemapGenerator'
127
- rdoc.options << '--line-numbers' << '--inline-source'
128
- rdoc.rdoc_files.include('README.md')
129
- rdoc.rdoc_files.include('lib/**/*.rb')
130
- end
131
-
132
- namespace :release do
133
-
134
- desc "Release a new patch version"
135
- task :patch do
136
- Rake::Task['version:bump:patch'].invoke
137
- Rake::Task['release:current'].invoke
138
- end
139
-
140
- desc "Release the current version (e.g. after a version bump). This rebuilds the gemspec, pushes the updated code, tags it and releases to RubyGems"
141
- task :current do
142
- Rake::Task['github:release'].invoke
143
- Rake::Task['git:release'].invoke
144
- Rake::Task['gemcutter:release'].invoke
145
- end
146
- end