pinch_hitter 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a07d8b15885e322b473cf824585faf54473862b
4
- data.tar.gz: 1bfba8f4dffaa81e60cc2bae5325cef59e79445e
3
+ metadata.gz: 351d287c33f0a63055aa89e9e33dcc0cd5bf8843
4
+ data.tar.gz: 7373585ec0c9cc3c70767d2bdfae3d9c66b91df8
5
5
  SHA512:
6
- metadata.gz: b5b3592e1e21c957249755c8f4e41ae7c0f6856eab80c98fc25f4df232687440ebd8a8784eb04ef0948d0b97d7c0aa33356b3d6361887a4a5c3d3df1f3b11b3e
7
- data.tar.gz: de14c1e5363e41c60f8e8e426ceb143176dcf878477fc79550cf0de91d86cd3a9ef73bcc71cbbdd4c6cb7280ddc321563182fb03692eeb1283b7bf858f236016
6
+ metadata.gz: 4e52306f9da1c7daaccdcb18cfe84444902dd5820e1f5f09cb921e89a39436057795a08b7206e8015ae1610bbf05ba8f79debe1750dfed54a2d0d83d1b7a462c
7
+ data.tar.gz: 47d3972f594e178de665e4b021943b326e33d1bad41e921ccba42495b6adaeaccdbf5c6ef86e3c025b875c748d882178b8997b82fc1539fdbda47adfbea3a5a6
data/Changelog CHANGED
@@ -29,3 +29,6 @@ test logs.
29
29
  * Add require for Net::HTTP as some rubies can't resolve it properly - Thanks
30
30
  @kumichou!
31
31
  * Convert JSON back to JSON after applying overrides - Thanks Tim Conner!
32
+
33
+ === Release 0.5.5 / 2015-11-5
34
+ * Allow Cross-Origin requests
@@ -1,5 +1,6 @@
1
1
  require 'bundler/setup'
2
2
  require 'sinatra/base'
3
+ require 'sinatra/cross_origin'
3
4
  require 'nokogiri'
4
5
  require 'json'
5
6
 
@@ -10,7 +11,10 @@ module PinchHitter::Service
10
11
  class ReplayWs < Sinatra::Base
11
12
  include PinchHitter::Message::ContentType
12
13
 
14
+ register Sinatra::CrossOrigin
15
+
13
16
  configure do
17
+ enable :cross_origin
14
18
  @@handlers = EndpointHandlers.new
15
19
  #SOAP expects a mime_type of text/xml
16
20
  mime_type :xml, "text/xml"
@@ -1,3 +1,3 @@
1
1
  module PinchHitter
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
data/pinch_hitter.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency 'sinatra', '>= 1.3.3'
21
21
  gem.add_dependency 'nokogiri', '>= 1.5.6'
22
22
  gem.add_dependency 'json', '>= 1.7.6'
23
+ gem.add_dependency 'sinatra-cross_origin', '~> 0.3.1'
23
24
 
24
25
  gem.add_development_dependency 'minitest', '>= 4.3.3'
25
26
  gem.add_development_dependency 'rack-test', '>= 0.6.2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinch_hitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Jackson
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.7.6
55
+ - !ruby/object:Gem::Dependency
56
+ name: sinatra-cross_origin
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.3.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: minitest
57
71
  requirement: !ruby/object:Gem::Requirement