seetemap-client 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,10 +9,11 @@ require 'seetemap_client/version'
9
9
 
10
10
  module SeetemapClient
11
11
  SITEMAP_PATH = "tmp/sitemap.xml"
12
+ SEETEMAP_URL = 'https://seetemap.com'
12
13
 
13
14
  class Seetemap
14
15
  include HTTParty
15
- base_uri 'https://seetemap.com'
16
+ base_uri SEETEMAP_URL
16
17
 
17
18
  # hack: don't auto parse result
18
19
  NO_PARSER = Proc.new { |body, format| body }
@@ -103,11 +104,13 @@ module SeetemapClient
103
104
  end
104
105
 
105
106
  get '/seetemap/purge' do
107
+ headers 'Access-Control-Allow-Origin' => SEETEMAP_URL, 'Access-Control-Allow-Methods' => 'GET, OPTIONS'
106
108
  remove_sitemap_file
107
109
  nil
108
110
  end
109
111
 
110
112
  get '/seetemap/ping' do
113
+ headers 'Access-Control-Allow-Origin' => SEETEMAP_URL, 'Access-Control-Allow-Methods' => 'GET, OPTIONS'
111
114
  Seetemap.config(configuration["auth_token"], configuration["site_token"])
112
115
  code = Seetemap.fetch!
113
116
  unless code != 200
@@ -1,3 +1,3 @@
1
1
  module SeetemapClient
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seetemap-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra