quintype-routes 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quintype/routes/railtie.rb +2 -5
- data/lib/quintype/routes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 837714324b4fdbd6e423732f981f5fee595ccdbd
|
4
|
+
data.tar.gz: 2a624362c3b9c414aa4d9ac37f601a47c9cc858a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 884a3092d8183d811afb72d47254d4828645d3d6f5316cfeb5961eb9d0d0a2f3ee4bf81cced02c688de0c2de2c85e32b4d497cf54de6f21ee7c6e2cccece0edb
|
7
|
+
data.tar.gz: 19857606325534b739654866825df5fd0a9caed2c26a8b9ce441acaf35a6963e74080c3e655b6e111c2b68e93657dac04bef9ed755dc2f121b6baab75892ca4b
|
@@ -3,11 +3,8 @@ module Quintype::Routes
|
|
3
3
|
config.quintype_routes = ActiveSupport::OrderedOptions.new
|
4
4
|
|
5
5
|
initializer "quintype-routes.register_routes" do |app|
|
6
|
+
api_host = app.config.quintype_routes.quintype_host
|
6
7
|
app.config.middleware.insert_before(Rack::Runtime, Rack::ReverseProxy) do
|
7
|
-
api_host = app.config.quintype_routes.quintype_host
|
8
|
-
|
9
|
-
raise "Please set config.quintype_routes.quintype_host" unless app.config.quintype_routes.quintype_host
|
10
|
-
|
11
8
|
reverse_proxy '/api', api_host
|
12
9
|
reverse_proxy '/login', api_host
|
13
10
|
reverse_proxy '/auth.form', api_host
|
@@ -18,7 +15,7 @@ module Quintype::Routes
|
|
18
15
|
reverse_proxy '/rss-feed', api_host
|
19
16
|
reverse_proxy '/stories.rss', api_host
|
20
17
|
reverse_proxy '/news_sitemap.xml', api_host
|
21
|
-
end
|
18
|
+
end if api_host
|
22
19
|
end
|
23
20
|
end
|
24
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quintype-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tejas Dinkar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack-reverse-proxy
|