noodall-ui 0.3.14 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,9 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
4
4
  # homepage
5
5
  xml.url do
6
6
  xml.loc root_path(:only_path => false)
7
- xml.lastmod File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime.strftime("%Y-%m-%dT%H:%M:%S") #w3c formatted string (#todo - add timezone)
7
+ #w3c formatted time
8
+ time = File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime
9
+ xml.lastmod "#{time.strftime("%Y-%m-%dT%H:%M:%S")}#{time.strftime("%z")[0..2]}:#{time.strftime("%z")[3..4]}"
8
10
  xml.changefreq "daily"
9
11
  xml.priority 1
10
12
  end
@@ -13,7 +15,9 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
13
15
  @nodes.each do |node|
14
16
  xml.url do
15
17
  xml.loc node_path(node,:only_path => false)
16
- xml.lastmod node.updated_at.strftime("%Y-%m-%dT%H:%M:%S") #w3c formatted string (#todo - add timezone)
18
+ #w3c formatted time
19
+ time = File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime
20
+ xml.lastmod "#{time.strftime("%Y-%m-%dT%H:%M:%S")}#{time.strftime("%z")[0..2]}:#{time.strftime("%z")[3..4]}"
17
21
  xml.changefreq "daily"
18
22
  xml.priority 1
19
23
  end
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.3.14"
3
+ VERSION = "0.3.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 14
10
- version: 0.3.14
9
+ - 15
10
+ version: 0.3.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England