spree_api_content_type_rewriter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -4,7 +4,7 @@ module SpreeApiContentTypeRewriter
|
|
4
4
|
isolate_namespace Spree
|
5
5
|
engine_name 'spree_api_content_type_rewriter'
|
6
6
|
|
7
|
-
|
7
|
+
Spree::Core::Engine.middleware.use "SpreeApiContentTypeRewriter::Middleware::ContentTypeRewriter"
|
8
8
|
config.autoload_paths += %W(#{config.root}/lib)
|
9
9
|
|
10
10
|
# use rspec for tests
|
@@ -6,7 +6,6 @@ module SpreeApiContentTypeRewriter
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def call(env)
|
9
|
-
p 1
|
10
9
|
status, headers, response = @app.call(env)
|
11
10
|
#headers['Content-Type'] = 'application/json' if env['action_dispatch.request.path_parameters'][:format] == 'json'
|
12
11
|
headers['Content-Type'] = 'application/json'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_api_content_type_rewriter'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.2'
|
6
6
|
s.summary = 'Spree API rewirite response header Content-Type.'
|
7
7
|
s.description = 'Spree API rewirite response header Content-Type.'
|
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_api_content_type_rewriter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2012-08-
|
12
|
+
date: 2012-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
segments:
|
188
188
|
- 0
|
189
|
-
hash:
|
189
|
+
hash: 1091444558705843630
|
190
190
|
requirements:
|
191
191
|
- none
|
192
192
|
rubyforge_project:
|