station 0.0.134 → 0.0.135

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
  SHA256:
3
- metadata.gz: 1430340bc53d02b901ff52d0e0a8d5f5691297fd0f9495eff24eda22133c553f
4
- data.tar.gz: f5117c588ae60c5080767b47afa24c0e8823a01070e34f8903406935d8103b4a
3
+ metadata.gz: 51757a2f4f831622b831edeafc2d6828cf08453800ba2d2c8e6470aabbfbaad9
4
+ data.tar.gz: 3dab4408ec81fb3a52a850162c52f9665c6f175675d7cb972f092d4c0a4b8ebc
5
5
  SHA512:
6
- metadata.gz: 0b48dbb64005f060adea66df0b886aac613a5b258a110878119a8b619eda9384ad69fe54913b7b360f26147428d11fca4b150cac13c1f1de2fa1b6d4b97059f4
7
- data.tar.gz: b238d1910c947592cdaef8dc5da698961c4980c56d4c557be07c462e322472ae41fb410eb8b2e719a6a1b68351880e9c7d25610afb7fa19585c99106a7644e5e
6
+ metadata.gz: d2bee9e9c8bbf3020c180cc8a335245154c58bb008af40a8ffb4e2c669848fe069ba8f9f5e793dbb3c530e75439208bf6ba2cf92c0ecfdaae264874e5c25d7ab
7
+ data.tar.gz: 8241415c7542fa20e3898a9cae105882a158c794674b0778569685879f9af7c8be7af423cb0a51d97bdb6d6f74e9f12eab92a9042e264407cd96b625cb5d0b0e
data/.gitignore CHANGED
@@ -19,7 +19,7 @@
19
19
  lib/nexmo_developer/.env
20
20
  lib/nexmo_developer/node_modules
21
21
  lib/nexmo_developer/public/packs
22
- lib/nexmo_developer/public/packs-test/media
22
+ lib/nexmo_developer/public/packs-test
23
23
  ib/nexmo_developer/config/algolia.yml
24
24
  lib/nexmo_developer/tmp/*
25
25
  lib/nexmo_developer/tmp
@@ -39,3 +39,5 @@ lib/nexmo_developer/public/assets
39
39
  .vscode/*
40
40
  coverage
41
41
  .DS_Store
42
+
43
+ node_modules
@@ -1,2 +1,3 @@
1
1
  --color
2
2
  --require spec_helper
3
+ --format doc
@@ -1,6 +1,8 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  include ApplicationHelper
3
3
 
4
+ before_action :redirect_vonage_domain
5
+
4
6
  helper_method :page_title
5
7
 
6
8
  rescue_from Errno::ENOENT, with: :not_found
@@ -32,6 +34,19 @@ class ApplicationController < ActionController::Base
32
34
  redirect_to root_path unless current_user.admin?
33
35
  end
34
36
 
37
+ def redirect_vonage_domain
38
+ case request.host
39
+ when 'developer.nexmo.com'
40
+ redirect_to("https://developer.vonage.com#{request.fullpath}", status: :moved_permanently) and return
41
+ when 'developer.nexmocn.com'
42
+ if request.fullpath.include?('?')
43
+ redirect_to("https://developer.vonage.com#{request.fullpath}&locale=cn", status: :moved_permanently) and return
44
+ end
45
+
46
+ redirect_to("https://developer.vonage.com#{request.fullpath}?locale=cn", status: :moved_permanently) and return
47
+ end
48
+ end
49
+
35
50
  private
36
51
 
37
52
  def requires_authentication?
@@ -1 +1 @@
1
- {"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-11-10T15:33:37+00:00","size":1,"digest":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","integrity":"sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2021-11-10T15:33:37+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css":{"logical_path":"application.css","mtime":"2021-11-10T15:33:37+00:00","size":8704,"digest":"99228d4019121f891ee008e4db5fb0ffa736bada427f4996d15c9c95d1af58b3","integrity":"sha256-mSKNQBkSH4ke4Ajk21+w/6c2utpCf0mW0VycldGvWLM="}},"assets":{"manifest.js":"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js","application.js":"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js","application.css":"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css"}}
1
+ {"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-11-15T15:34:20+00:00","size":1,"digest":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","integrity":"sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2021-11-15T15:34:20+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css":{"logical_path":"application.css","mtime":"2021-11-15T15:34:20+00:00","size":8704,"digest":"99228d4019121f891ee008e4db5fb0ffa736bada427f4996d15c9c95d1af58b3","integrity":"sha256-mSKNQBkSH4ke4Ajk21+w/6c2utpCf0mW0VycldGvWLM="}},"assets":{"manifest.js":"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js","application.js":"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js","application.css":"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css"}}
@@ -1,3 +1,3 @@
1
1
  module NexmoDeveloper
2
- VERSION = '0.0.134'.freeze
2
+ VERSION = '0.0.135'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.134
4
+ version: 0.0.135
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vonage DevRel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-10 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -717,7 +717,7 @@ files:
717
717
  - "./lib/nexmo_developer/public/android-chrome-512x512.png"
718
718
  - "./lib/nexmo_developer/public/apple-touch-icon-precomposed.png"
719
719
  - "./lib/nexmo_developer/public/apple-touch-icon.png"
720
- - "./lib/nexmo_developer/public/assets/.sprockets-manifest-35ccff49dde5df6fe219d1347909aa99.json"
720
+ - "./lib/nexmo_developer/public/assets/.sprockets-manifest-846f0e795d26b5c4150e52277fbd47a9.json"
721
721
  - "./lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css"
722
722
  - "./lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css.gz"
723
723
  - "./lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js"