spree_grid_feed 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,21 +1,21 @@
1
1
  xml.instruct! :xml, :version => "1.0"
2
- xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c" => "http://base.google.com/cns/1.0") do
2
+ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0") do
3
3
  xml.channel do
4
4
  xml.title("#{Spree::Config[:site_name]}")
5
- xml.link(products_url)
6
- xml.description("The latest products offered by #{Spree::Config[:site_name]}")
7
- xml.language('en-us')
8
- @products.each do |product|
9
- xml.item do
5
+ xml.link(products_url)
6
+ xml.description("The latest products offered by #{Spree::Config[:site_name]}")
7
+ xml.language('en-us')
8
+ @products.each do |product|
9
+ xml.item do
10
10
  xml.title(product.name)
11
- xml.description(simple_format(product.description))
12
- xml.author(Spree::Config[:site_url])
11
+ xml.description(product.description)
12
+ xml.author('webmaster@alarmgrid.com (AlarmGrid.com)')
13
13
  xml.pubDate((product.available_on || product.created_at).strftime("%a, %d %b %Y %H:%M:%S %z"))
14
14
  xml.link(product_url(product))
15
- xml.guid(product.id)
15
+ xml.guid(product_url(product))
16
16
 
17
17
  if product.images.count > 0
18
- xml.tag!('g:image_link', product.images.first.attachment.url(:product))
18
+ xml.tag!('g:image_link', "http:" + product.images.first.attachment.url(:product))
19
19
  end
20
20
 
21
21
  xml.tag!('g:price', product.price)
@@ -1,6 +1,6 @@
1
1
  xml.instruct! :xml, :version=>"1.0"
2
- xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c" => "http://base.google.com/cns/1.0"){
3
- xml.channel{
2
+ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0") do
3
+ xml.channel do
4
4
  xml.title("#{@taxon.name} Product Feed")
5
5
  xml.link(spree.nested_taxons_url(:id => @taxon.permalink))
6
6
  xml.description("The latest products offered by #{Spree::Config[:site_name]} in the #{@taxon.name} category.")
@@ -8,14 +8,14 @@ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c"
8
8
  @products.each do |product|
9
9
  xml.item do
10
10
  xml.title(product.name)
11
- xml.description(simple_format(product.description))
12
- xml.author(Spree::Config[:site_url])
11
+ xml.description(product.description)
12
+ xml.author('webmaster@alarmgrid.com')
13
13
  xml.pubDate((product.available_on || product.created_at).strftime("%a, %d %b %Y %H:%M:%S %z"))
14
14
  xml.link(product_url(product))
15
- xml.guid(product.id)
15
+ xml.guid(product_url(product))
16
16
 
17
17
  if product.images.count > 0
18
- xml.tag!('g:image_link', product.images.first.attachment.url(:product))
18
+ xml.tag!('g:image_link', "http:" + product.images.first.attachment.url(:product))
19
19
  end
20
20
 
21
21
  xml.tag!('g:price', product.price)
@@ -26,5 +26,5 @@ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c"
26
26
  xml.tag!('g:availability', 'in stock')
27
27
  end
28
28
  end
29
- }
30
- }
29
+ end
30
+ end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_grid_feed'
5
- s.version = '1.1.3'
5
+ s.version = '1.1.4'
6
6
  s.summary = 'Add a Google Base-optimized product rss to a spree store'
7
7
  s.description = 'Adds both /products.xml and /t/taxon.xml product feeds'
8
8
  s.required_ruby_version = '>= 1.8.7'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_grid_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: &70295814224400 !ruby/object:Gem::Requirement
16
+ requirement: &70104570798140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70295814224400
24
+ version_requirements: *70104570798140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capybara
27
- requirement: &70295814223820 !ruby/object:Gem::Requirement
27
+ requirement: &70104570797600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.1
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70295814223820
35
+ version_requirements: *70104570797600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: factory_girl
38
- requirement: &70295814223220 !ruby/object:Gem::Requirement
38
+ requirement: &70104570797000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70295814223220
46
+ version_requirements: *70104570797000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ffaker
49
- requirement: &70295814222720 !ruby/object:Gem::Requirement
49
+ requirement: &70104570796460 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70295814222720
57
+ version_requirements: *70104570796460
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec-rails
60
- requirement: &70295814221800 !ruby/object:Gem::Requirement
60
+ requirement: &70104570795480 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '2.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70295814221800
68
+ version_requirements: *70104570795480
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
- requirement: &70295814237180 !ruby/object:Gem::Requirement
71
+ requirement: &70104570810860 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70295814237180
79
+ version_requirements: *70104570810860
80
80
  description: Adds both /products.xml and /t/taxon.xml product feeds
81
81
  email: eric@alarmgrid.com
82
82
  executables: []