spree_api_content_type_rewriter 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ \#*
2
+ *~
3
+ .#*
4
+ .DS_Store
5
+ .idea
6
+ .project
7
+ tmp
8
+ nbproject
9
+ *.swp
10
+ spec/dummy
11
+ pkg
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'http://rubygems.org'
2
+
3
+ if RUBY_VERSION < '1.9'
4
+ gem 'ruby-debug'
5
+ else
6
+ gem 'debugger'
7
+ end
8
+
9
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,214 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ spree_api_content_type_rewriter (0.0.1)
5
+ spree_api
6
+ spree_auth
7
+ spree_core
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ actionmailer (3.2.8)
13
+ actionpack (= 3.2.8)
14
+ mail (~> 2.4.4)
15
+ actionpack (3.2.8)
16
+ activemodel (= 3.2.8)
17
+ activesupport (= 3.2.8)
18
+ builder (~> 3.0.0)
19
+ erubis (~> 2.7.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.0)
22
+ rack-cache (~> 1.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.1.3)
25
+ active_utils (1.0.4)
26
+ activesupport (>= 2.3.11)
27
+ i18n
28
+ activemerchant (1.27.0)
29
+ active_utils (>= 1.0.2)
30
+ activesupport (>= 2.3.11)
31
+ builder (>= 2.0.0)
32
+ i18n
33
+ json (>= 1.5.1)
34
+ money
35
+ nokogiri
36
+ activemodel (3.2.8)
37
+ activesupport (= 3.2.8)
38
+ builder (~> 3.0.0)
39
+ activerecord (3.2.8)
40
+ activemodel (= 3.2.8)
41
+ activesupport (= 3.2.8)
42
+ arel (~> 3.0.2)
43
+ tzinfo (~> 0.3.29)
44
+ activeresource (3.2.8)
45
+ activemodel (= 3.2.8)
46
+ activesupport (= 3.2.8)
47
+ activesupport (3.2.8)
48
+ i18n (~> 0.6)
49
+ multi_json (~> 1.0)
50
+ acts_as_list (0.1.8)
51
+ addressable (2.3.2)
52
+ arel (3.0.2)
53
+ bcrypt-ruby (2.1.4)
54
+ builder (3.0.0)
55
+ cancan (1.6.8)
56
+ capybara (1.0.1)
57
+ mime-types (>= 1.16)
58
+ nokogiri (>= 1.3.3)
59
+ rack (>= 1.0.0)
60
+ rack-test (>= 0.5.4)
61
+ selenium-webdriver (~> 2.0)
62
+ xpath (~> 0.1.4)
63
+ childprocess (0.3.5)
64
+ ffi (~> 1.0, >= 1.0.6)
65
+ cocaine (0.2.1)
66
+ columnize (0.3.6)
67
+ debugger (1.2.0)
68
+ columnize (>= 0.3.1)
69
+ debugger-linecache (~> 1.1.1)
70
+ debugger-ruby_core_source (~> 1.1.3)
71
+ debugger-linecache (1.1.2)
72
+ debugger-ruby_core_source (>= 1.1.1)
73
+ debugger-ruby_core_source (1.1.3)
74
+ devise (1.2.rc)
75
+ bcrypt-ruby (~> 2.1.2)
76
+ orm_adapter (~> 0.0.2)
77
+ warden (~> 1.0.2)
78
+ diff-lcs (1.1.3)
79
+ erubis (2.7.0)
80
+ factory_girl (2.6.4)
81
+ activesupport (>= 2.3.9)
82
+ faker (1.0.1)
83
+ i18n (~> 0.4)
84
+ ffaker (1.15.0)
85
+ ffi (1.1.5)
86
+ highline (1.6.13)
87
+ hike (1.2.1)
88
+ i18n (0.6.0)
89
+ journey (1.0.4)
90
+ jquery-rails (2.1.1)
91
+ railties (>= 3.1.0, < 5.0)
92
+ thor (~> 0.14)
93
+ json (1.7.5)
94
+ libwebsocket (0.1.5)
95
+ addressable
96
+ mail (2.4.4)
97
+ i18n (>= 0.4.0)
98
+ mime-types (~> 1.16)
99
+ treetop (~> 1.4.8)
100
+ mime-types (1.19)
101
+ money (5.0.0)
102
+ i18n (~> 0.4)
103
+ json
104
+ multi_json (1.3.6)
105
+ nokogiri (1.5.5)
106
+ orm_adapter (0.0.7)
107
+ paperclip (3.1.4)
108
+ activemodel (>= 3.0.0)
109
+ activerecord (>= 3.0.0)
110
+ activesupport (>= 3.0.0)
111
+ cocaine (>= 0.0.2)
112
+ mime-types
113
+ polyglot (0.3.3)
114
+ rack (1.4.1)
115
+ rack-cache (1.2)
116
+ rack (>= 0.4)
117
+ rack-ssl (1.3.2)
118
+ rack
119
+ rack-test (0.6.1)
120
+ rack (>= 1.0)
121
+ rails (3.2.8)
122
+ actionmailer (= 3.2.8)
123
+ actionpack (= 3.2.8)
124
+ activerecord (= 3.2.8)
125
+ activeresource (= 3.2.8)
126
+ activesupport (= 3.2.8)
127
+ bundler (~> 1.0)
128
+ railties (= 3.2.8)
129
+ railties (3.2.8)
130
+ actionpack (= 3.2.8)
131
+ activesupport (= 3.2.8)
132
+ rack-ssl (~> 1.3.2)
133
+ rake (>= 0.8.7)
134
+ rdoc (~> 3.4)
135
+ thor (>= 0.14.6, < 2.0)
136
+ rake (0.9.2.2)
137
+ rd_awesome_nested_set (1.4.4)
138
+ activerecord (>= 1.1)
139
+ rd_resource_controller (1.0.1)
140
+ rd_searchlogic (3.0.1)
141
+ activerecord (>= 3.0.0)
142
+ rd_unobtrusive_date_picker (0.1.0)
143
+ rdoc (3.12)
144
+ json (~> 1.4)
145
+ rspec (2.11.0)
146
+ rspec-core (~> 2.11.0)
147
+ rspec-expectations (~> 2.11.0)
148
+ rspec-mocks (~> 2.11.0)
149
+ rspec-core (2.11.1)
150
+ rspec-expectations (2.11.2)
151
+ diff-lcs (~> 1.1.3)
152
+ rspec-mocks (2.11.2)
153
+ rspec-rails (2.11.0)
154
+ actionpack (>= 3.0)
155
+ activesupport (>= 3.0)
156
+ railties (>= 3.0)
157
+ rspec (~> 2.11.0)
158
+ rubyzip (0.9.9)
159
+ selenium-webdriver (2.25.0)
160
+ childprocess (>= 0.2.5)
161
+ libwebsocket (~> 0.1.3)
162
+ multi_json (~> 1.0)
163
+ rubyzip
164
+ spree_api (0.40.0)
165
+ spree_core (= 0.40.0)
166
+ spree_auth (0.40.0)
167
+ cancan (>= 1.3.3)
168
+ devise (= 1.2.rc)
169
+ spree_core (= 0.40.0)
170
+ spree_core (0.40.0)
171
+ activemerchant (>= 1.7.1)
172
+ acts_as_list (>= 0.1.2)
173
+ faker (>= 0.3.1)
174
+ highline (>= 1.5.1)
175
+ jquery-rails (>= 0.2.2)
176
+ paperclip (>= 2.3.1.1)
177
+ rails (>= 3.0.3)
178
+ rd_awesome_nested_set (>= 1.4.4)
179
+ rd_resource_controller
180
+ rd_searchlogic (>= 3.0.0)
181
+ rd_unobtrusive_date_picker (>= 0.1.0)
182
+ state_machine (>= 0.9.4)
183
+ stringex (>= 1.0.3)
184
+ will_paginate (>= 3.0.pre2)
185
+ sprockets (2.1.3)
186
+ hike (~> 1.2)
187
+ rack (~> 1.0)
188
+ tilt (~> 1.1, != 1.3.0)
189
+ sqlite3 (1.3.6)
190
+ state_machine (1.1.2)
191
+ stringex (1.4.0)
192
+ thor (0.16.0)
193
+ tilt (1.3.3)
194
+ treetop (1.4.10)
195
+ polyglot
196
+ polyglot (>= 0.3.1)
197
+ tzinfo (0.3.33)
198
+ warden (1.0.6)
199
+ rack (>= 1.0)
200
+ will_paginate (3.0.3)
201
+ xpath (0.1.4)
202
+ nokogiri (~> 1.3)
203
+
204
+ PLATFORMS
205
+ ruby
206
+
207
+ DEPENDENCIES
208
+ capybara (= 1.0.1)
209
+ debugger
210
+ factory_girl (~> 2.6.4)
211
+ ffaker
212
+ rspec-rails (~> 2.9)
213
+ spree_api_content_type_rewriter!
214
+ sqlite3
data/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2012 [name of plugin creator]
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ * Neither the name Spree nor the names of its contributors may be used to
13
+ endorse or promote products derived from this software without specific
14
+ prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ SpreeApiContentTypeRewriter
2
+ ===========================
3
+
4
+ Introduction goes here.
5
+
6
+
7
+ Example
8
+ =======
9
+
10
+ Example goes here.
11
+
12
+ Testing
13
+ -------
14
+
15
+ Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
16
+
17
+ $ bundle
18
+ $ bundle exec rake test_app
19
+ $ bundle exec rspec spec
20
+
21
+ Copyright (c) 2012 [name of extension creator], released under the New BSD License
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/packagetask'
4
+ require 'rubygems/package_task'
5
+ require 'rspec/core/rake_task'
6
+ #require 'spree/core/testing_support/common_rake'
7
+
8
+ RSpec::Core::RakeTask.new
9
+
10
+ task :default => [:spec]
11
+
12
+ spec = eval(File.read('spree_api_content_type_rewriter.gemspec'))
13
+
14
+ Gem::PackageTask.new(spec) do |p|
15
+ p.gem_spec = spec
16
+ end
17
+
18
+ desc 'Release to gemcutter'
19
+ task :release => :package do
20
+ require 'rake/gemcutter'
21
+ Rake::Gemcutter::Tasks.new(spec).define
22
+ Rake::Task['gem:push'].invoke
23
+ end
24
+
25
+ desc 'Generates a dummy app for testing'
26
+ task :test_app do
27
+ ENV['LIB_NAME'] = 'spree_api_content_type_rewriter'
28
+ Rake::Task['common:test_app'].invoke
29
+ end
data/Versionfile ADDED
@@ -0,0 +1,11 @@
1
+ # This file is used to designate compatibilty with different versions of Spree
2
+ # Please see http://spreecommerce.com/documentation/extensions.html#versionfile for details
3
+
4
+ # Examples
5
+ #
6
+ # '1.2.x' => { :branch => 'master' }
7
+ # '1.1.x' => { :branch => '1-1-stable' }
8
+ # '1.0.x' => { :branch => '1-0-stable' }
9
+ # '0.70.x' => { :branch => '0-70-stable' }
10
+ # '0.40.x' => { :tag => 'v1.0.0', :version => '1.0.0' }
11
+
@@ -0,0 +1 @@
1
+ //= require admin/spree_core
@@ -0,0 +1 @@
1
+ //= require store/spree_core
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require admin/spree_core
3
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require store/spree_core
3
+ */
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Spree::Core::Engine.routes.draw do
2
+ # Add your extension routes here
3
+ end
@@ -0,0 +1,29 @@
1
+ module SpreeApiContentTypeRewriter
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+
5
+ def add_javascripts
6
+ append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_api_content_type_rewriter\n"
7
+ append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_api_content_type_rewriter\n"
8
+ end
9
+
10
+ def add_stylesheets
11
+ inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_api_content_type_rewriter\n", :before => /\*\//, :verbose => true
12
+ inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_api_content_type_rewriter\n", :before => /\*\//, :verbose => true
13
+ end
14
+
15
+ def add_migrations
16
+ run 'bundle exec rake railties:install:migrations FROM=spree_api_content_type_rewriter'
17
+ end
18
+
19
+ def run_migrations
20
+ res = ask 'Would you like to run the migrations now? [Y/n]'
21
+ if res == '' || res.downcase == 'y'
22
+ run 'bundle exec rake db:migrate'
23
+ else
24
+ puts 'Skipping rake db:migrate, don\'t forget to run it!'
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,3 @@
1
+ require 'spree_core'
2
+ require 'spree_api_content_type_rewriter/middleware/content_type_rewriter'
3
+ require 'spree_api_content_type_rewriter/engine'
@@ -0,0 +1,23 @@
1
+ module SpreeApiContentTypeRewriter
2
+ class Engine < Rails::Engine
3
+ require 'spree/core'
4
+ isolate_namespace Spree
5
+ engine_name 'spree_api_content_type_rewriter'
6
+
7
+ config.middleware.use "SpreeApiContentTypeRewriter::Middleware::ContentTypeRewriter"
8
+ config.autoload_paths += %W(#{config.root}/lib)
9
+
10
+ # use rspec for tests
11
+ config.generators do |g|
12
+ g.test_framework :rspec
13
+ end
14
+
15
+ def self.activate
16
+ Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
17
+ Rails.configuration.cache_classes ? require(c) : load(c)
18
+ end
19
+ end
20
+
21
+ config.to_prepare &method(:activate).to_proc
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ module SpreeApiContentTypeRewriter
2
+ module Middleware
3
+ class ContentTypeRewriter
4
+ def initialize(app)
5
+ @app = app
6
+ end
7
+
8
+ def call(env)
9
+ p 1
10
+ status, headers, response = @app.call(env)
11
+ #headers['Content-Type'] = 'application/json' if env['action_dispatch.request.path_parameters'][:format] == 'json'
12
+ headers['Content-Type'] = 'application/json'
13
+ [status, headers, response]
14
+ end
15
+ end
16
+ end
17
+ end
data/script/rails ADDED
@@ -0,0 +1,7 @@
1
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
2
+
3
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
4
+ ENGINE_PATH = File.expand_path('../../lib/spree_api_content_type_rewriter/engine', __FILE__)
5
+
6
+ require 'rails/all'
7
+ require 'rails/engine/commands'
@@ -0,0 +1,44 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
+
6
+ require 'rspec/rails'
7
+ require 'ffaker'
8
+
9
+ # Requires supporting ruby files with custom matchers and macros, etc,
10
+ # in spec/support/ and its subdirectories.
11
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
12
+
13
+ # Requires factories defined in spree_core
14
+ require 'spree/core/testing_support/factories'
15
+ require 'spree/core/url_helpers'
16
+
17
+ RSpec.configure do |config|
18
+ config.include FactoryGirl::Syntax::Methods
19
+
20
+ # == URL Helpers
21
+ #
22
+ # Allows access to Spree's routes in specs:
23
+ #
24
+ # visit spree.admin_path
25
+ # current_path.should eql(spree.products_path)
26
+ config.include Spree::Core::UrlHelpers
27
+
28
+ # == Mock Framework
29
+ #
30
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
31
+ #
32
+ # config.mock_with :mocha
33
+ # config.mock_with :flexmock
34
+ # config.mock_with :rr
35
+ config.mock_with :rspec
36
+
37
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
38
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
39
+
40
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
41
+ # examples within a transaction, remove the following line or assign false
42
+ # instead of true.
43
+ config.use_transactional_fixtures = true
44
+ end
@@ -0,0 +1,28 @@
1
+ # encoding: UTF-8
2
+ Gem::Specification.new do |s|
3
+ s.platform = Gem::Platform::RUBY
4
+ s.name = 'spree_api_content_type_rewriter'
5
+ s.version = '0.0.1'
6
+ s.summary = 'Spree API rewirite response header Content-Type.'
7
+ s.description = 'Spree API rewirite response header Content-Type.'
8
+ s.required_ruby_version = '>= 1.8.7'
9
+
10
+ s.author = 'Masahiro Saito'
11
+ s.email = 'camelmasa@gmail.com'
12
+ s.homepage = "https://github.com/camelmasa/#{s.name}"
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ #s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.require_path = 'lib'
17
+ s.requirements << 'none'
18
+
19
+ s.add_dependency 'spree_core'
20
+ s.add_dependency 'spree_api'
21
+ s.add_dependency 'spree_auth'
22
+
23
+ s.add_development_dependency 'capybara', '1.0.1'
24
+ s.add_development_dependency 'factory_girl', '~> 2.6.4'
25
+ s.add_development_dependency 'ffaker'
26
+ s.add_development_dependency 'rspec-rails', '~> 2.9'
27
+ s.add_development_dependency 'sqlite3'
28
+ end
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_api_content_type_rewriter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Masahiro Saito
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: spree_api
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: spree_auth
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capybara
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.1
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.1
78
+ - !ruby/object:Gem::Dependency
79
+ name: factory_girl
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 2.6.4
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.6.4
94
+ - !ruby/object:Gem::Dependency
95
+ name: ffaker
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '2.9'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '2.9'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sqlite3
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ description: Spree API rewirite response header Content-Type.
143
+ email: camelmasa@gmail.com
144
+ executables: []
145
+ extensions: []
146
+ extra_rdoc_files: []
147
+ files:
148
+ - .gitignore
149
+ - .rspec
150
+ - Gemfile
151
+ - Gemfile.lock
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - Versionfile
156
+ - app/assets/javascripts/admin/spree_api_content_type_rewriter.js
157
+ - app/assets/javascripts/store/spree_api_content_type_rewriter.js
158
+ - app/assets/stylesheets/admin/spree_api_content_type_rewriter.css
159
+ - app/assets/stylesheets/store/spree_api_content_type_rewriter.css
160
+ - config/locales/en.yml
161
+ - config/routes.rb
162
+ - lib/generators/spree_api_content_type_rewriter/install/install_generator.rb
163
+ - lib/spree_api_content_type_rewriter.rb
164
+ - lib/spree_api_content_type_rewriter/engine.rb
165
+ - lib/spree_api_content_type_rewriter/middleware/content_type_rewriter.rb
166
+ - script/rails
167
+ - spec/spec_helper.rb
168
+ - spree_api_content_type_rewriter.gemspec
169
+ homepage: https://github.com/camelmasa/spree_api_content_type_rewriter
170
+ licenses: []
171
+ post_install_message:
172
+ rdoc_options: []
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ none: false
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: 1.8.7
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ segments:
188
+ - 0
189
+ hash: -3705296684363846967
190
+ requirements:
191
+ - none
192
+ rubyforge_project:
193
+ rubygems_version: 1.8.23
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: Spree API rewirite response header Content-Type.
197
+ test_files: []