test_server 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,7 @@ module TestServer
31
31
  configure :production do
32
32
  use Rack::CommonLogger, TestServer::AccessLogger.new(TestServer.config.access_log)
33
33
  set :raise_errors, false
34
+ set :digest_assets, true
34
35
 
35
36
  assets.js_compressor = :uglify
36
37
  assets.css_compressor = :scss
@@ -2,12 +2,12 @@
2
2
  module TestServer
3
3
  module App
4
4
  class JavascriptController < ApplicationController
5
- use Rack::Cors do
6
- allow do
7
- origins '*'
8
- resource '*', :headers => :any, :methods => [:get, :post]
9
- end
10
- end
5
+ #use Rack::Cors do
6
+ # allow do
7
+ # origins '*'
8
+ # resource '*', :headers => :any, :methods => [:get, :post]
9
+ # end
10
+ #end
11
11
 
12
12
  before do
13
13
  param :no_cache, Boolean, default: false
@@ -23,7 +23,8 @@ module TestServer
23
23
  I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
24
24
  I18n.load_path = Dir[::File.join(TestServer.root_path, 'lib', 'test_server', 'locales', '*.yml')]
25
25
  I18n.backend.load_translations
26
- I18n.enforce_available_locales = true
26
+ I18n.available_locales = [:en]
27
+ I18n.enforce_available_locales = false
27
28
  end
28
29
  end
29
30
  end
@@ -1,4 +1,4 @@
1
1
  #main TestServer
2
2
  module TestServer
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: