station 0.0.131 → 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: 5bdcd7f7e910e68d5d5f4eca5ca83a8c42b646ab0e46b314683c91a9af7f4a5d
4
- data.tar.gz: 9043c70c5f6a5e22f30f31fe7ab67d0d6169fad82f4d579113c1c18b23a5ed2b
3
+ metadata.gz: 51757a2f4f831622b831edeafc2d6828cf08453800ba2d2c8e6470aabbfbaad9
4
+ data.tar.gz: 3dab4408ec81fb3a52a850162c52f9665c6f175675d7cb972f092d4c0a4b8ebc
5
5
  SHA512:
6
- metadata.gz: 466a60a2db75bb4357a3fa27a4af142bf6723f0353366369be3f2eea63fddbc56e2457bc2a885c33b2b7079434e34f77a60587a51ed360214d9255b8f04e34a3
7
- data.tar.gz: d15fcf8250187535ed8712eeb254cdec6b152372a969bed72988679fb5a789f7ca2831eb604c3a24b61925d956592dc99a09bd29fd90a77142a8f95406e8b4d1
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?
@@ -28,7 +28,7 @@
28
28
 
29
29
  <%= render partial: 'layouts/partials/locale_switcher' %>
30
30
 
31
- <a href=<%= header.sign_in_path %> target="_blank" rel="noopener" class="Vlt-btn Vlt-btn--white Vlt-btn--outline Vlt-btn--app Vlt-margin--A-top2" id="signin" data-ab="try_button_v2">
31
+ <a href=<%= header.sign_in_path %> target="_blank" rel="noopener" class="Vlt-btn Vlt-btn--white Vlt-btn--outline Vlt-btn--app Vlt-btn--small" id="signin">
32
32
  <b><%= t(".#{header.sign_in_text}") %></b>
33
33
  </a>
34
34
 
@@ -1 +1 @@
1
- {"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-11-04T13:07:38+00:00","size":1,"digest":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","integrity":"sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2021-11-04T13:07:38+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css":{"logical_path":"application.css","mtime":"2021-11-04T13:07:38+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.131'.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.131
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-04 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-a6503940eee975b194f25ec022c63408.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"