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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 436bcb7132123dda9ae681a8f181c03664e95fa9
4
- data.tar.gz: 5b1abd757d804a285bc2cdf1eade8c2515314794
3
+ metadata.gz: 837714324b4fdbd6e423732f981f5fee595ccdbd
4
+ data.tar.gz: 2a624362c3b9c414aa4d9ac37f601a47c9cc858a
5
5
  SHA512:
6
- metadata.gz: 5d6ac84492f14b7180b34ae3ee017f941905ee1d8abba66f33838bc6c3bb29cb751b02f1587b7a70931001aecf14206040f2e97295fa5d243010fe34dcc91128
7
- data.tar.gz: 7129479cb9d1be56e27b61224d66666cc46d12097cda845bc1bcdcecbc6a90282282b29d96a702094ee58c2e7713d4b1d89eb386765ccb615455b2f7d4136ca7
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
@@ -1,5 +1,5 @@
1
1
  module Quintype
2
2
  module Routes
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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-30 00:00:00.000000000 Z
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