rails_sitemap 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ "%;�����.�&��o��;�v#�w8Qa ��f��
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+
3
+ class GeoControllerTest < ActionDispatch::IntegrationTest
4
+ test 'should return a success code' do
5
+ get '/geo-sitemap.xml'
6
+ assert_equal 200, status
7
+ end
8
+
9
+ test 'should return the right xml' do
10
+ get '/geo-sitemap.xml'
11
+ assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet type=\"text/xsl\" href=\"http://www.sportsandspineortho.com/wp-content/plugins/wpseo-local/styles/geo-sitemap.xsl\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:geo=\"http://www.google.com/geo/schemas/sitemap/1.0\">\n <url>\n <loc>http://www.example.com/locations.kml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <priority>1</priority>\n </url>\n</urlset>\n"
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+
3
+ class LocationsControllerTest < ActionDispatch::IntegrationTest
4
+ test 'should return a success code' do
5
+ get '/locations.kml'
6
+ assert_equal 200, status
7
+ end
8
+
9
+ test 'should return the right xml' do
10
+ get '/locations.kml'
11
+ assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<kml xmlns=\"http://earth.google.com/kml/2.2\">\n \n <Placemark>\n <name>NeonRoots Uruguay Office</name>\n <description>Zelmar Michelini 1290 Apto. 401 Esq. San José - Tel. 2909 0655</description>\n <Point>\n <coordinates>-56.19006872177124,-34.907047903278404,0</coordinates>\n </Point>\n </Placemark>\n[{:name=&gt;&quot;NeonRoots Uruguay Office&quot;, :description=&gt;&quot;Zelmar Michelini 1290 Apto. 401 Esq. San José - Tel. 2909 0655&quot;, :coordinates=&gt;&quot;-56.19006872177124,-34.907047903278404,0&quot;}]</kml>\n"
12
+ end
13
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,12 +52,16 @@ files:
52
52
  - app/controllers/concerns/rails_sitemap/act_as_sitemap.rb
53
53
  - app/controllers/rails_sitemap/application_controller.rb
54
54
  - app/controllers/rails_sitemap/attachment_controller.rb
55
+ - app/controllers/rails_sitemap/geo_controller.rb
56
+ - app/controllers/rails_sitemap/locations_controller.rb
55
57
  - app/controllers/rails_sitemap/sitemap_controller.rb
56
58
  - app/helpers/rails_sitemap/application_helper.rb
57
59
  - app/models/rails_sitemap/image_entry.rb
58
60
  - app/models/rails_sitemap/sitemap_entry.rb
59
61
  - app/views/layouts/rails_sitemap/application.html.erb
60
62
  - app/views/rails_sitemap/attachment/index.xml.erb
63
+ - app/views/rails_sitemap/geo/index.xml.erb
64
+ - app/views/rails_sitemap/locations/index.kml.erb
61
65
  - app/views/rails_sitemap/sitemap/index.xml.erb
62
66
  - config/routes.rb
63
67
  - lib/rails_sitemap.rb
@@ -130,6 +134,7 @@ files:
130
134
  - test/dummy/tmp/cache/assets/sprockets/v3.0/He/HejzCdLktfedD-ZTsKIagsZouxmsn4_Yp1JlnFr-h_A.cache
131
135
  - test/dummy/tmp/cache/assets/sprockets/v3.0/K8/K83q6k4k6om4EeaAI6zoyr18cIa9Rq-VTrWuBFB2T3c.cache
132
136
  - test/dummy/tmp/cache/assets/sprockets/v3.0/KV/KV3lBQ9miCC-LlUQD-Yt-fhgRgE61czw288XUC89gt0.cache
137
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/Ke2uoLIe6Z50WcigA-Me22kjqpwuji1epiPa0a3HwKY.cache
133
138
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeUNzCPPfAHJrB0WCcqBZ5zaCMNrnxJ9xePN_ZwWEC8.cache
134
139
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Kq/Kqc0vYjFtqxBgW2meu948AyDV2RZGtWFgEj-ISIjI4o.cache
135
140
  - test/dummy/tmp/cache/assets/sprockets/v3.0/N_/N_71YoQNFoHOIpWEVmi0amahcRR8Z_hhjwCaRe1A4ZM.cache
@@ -155,6 +160,8 @@ files:
155
160
  - test/dummy/tmp/cache/assets/sprockets/v3.0/y7/y7yxTnkSkaSxjkfb_8a2_o--Iw_azKSqgr2ox4byekA.cache
156
161
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zc/zc2SrosAQsf6pnQz_7x5zeolXSjd9tnoCdytHFozIFg.cache
157
162
  - test/integration/attachment_controller_test.rb
163
+ - test/integration/geo_controller_test.rb
164
+ - test/integration/locations_controller_test.rb
158
165
  - test/integration/sitemap_controller_test.rb
159
166
  - test/rails_sitemap_test.rb
160
167
  - test/test_helper.rb
@@ -254,6 +261,7 @@ test_files:
254
261
  - test/dummy/tmp/cache/assets/sprockets/v3.0/i9/i9qpeo4TsSIvtb2rgXTDygeLjCipJsLij9_sBTQFsWE.cache
255
262
  - test/dummy/tmp/cache/assets/sprockets/v3.0/k0/k00rvi3BY_27qBR874ynTJEtvNvM_HIslZTFoaVSzDc.cache
256
263
  - test/dummy/tmp/cache/assets/sprockets/v3.0/K8/K83q6k4k6om4EeaAI6zoyr18cIa9Rq-VTrWuBFB2T3c.cache
264
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/Ke2uoLIe6Z50WcigA-Me22kjqpwuji1epiPa0a3HwKY.cache
257
265
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeUNzCPPfAHJrB0WCcqBZ5zaCMNrnxJ9xePN_ZwWEC8.cache
258
266
  - test/dummy/tmp/cache/assets/sprockets/v3.0/kF/kFOirow-u7pv8_qiuBnZK5PT7g9wkxehVEgC9oMr6Oc.cache
259
267
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Kq/Kqc0vYjFtqxBgW2meu948AyDV2RZGtWFgEj-ISIjI4o.cache
@@ -274,6 +282,8 @@ test_files:
274
282
  - test/dummy/tmp/cache/assets/sprockets/v3.0/y7/y7yxTnkSkaSxjkfb_8a2_o--Iw_azKSqgr2ox4byekA.cache
275
283
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zc/zc2SrosAQsf6pnQz_7x5zeolXSjd9tnoCdytHFozIFg.cache
276
284
  - test/integration/attachment_controller_test.rb
285
+ - test/integration/geo_controller_test.rb
286
+ - test/integration/locations_controller_test.rb
277
287
  - test/integration/sitemap_controller_test.rb
278
288
  - test/rails_sitemap_test.rb
279
289
  - test/test_helper.rb