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 +4 -4
- data/.gitignore +3 -1
- data/lib/nexmo_developer/.rspec +1 -0
- data/lib/nexmo_developer/app/controllers/application_controller.rb +15 -0
- data/lib/nexmo_developer/app/views/layouts/partials/_header.html.erb +1 -1
- data/lib/nexmo_developer/public/assets/{.sprockets-manifest-a6503940eee975b194f25ec022c63408.json → .sprockets-manifest-846f0e795d26b5c4150e52277fbd47a9.json} +1 -1
- data/lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css.gz +0 -0
- data/lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz +0 -0
- data/lib/nexmo_developer/public/assets/manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js.gz +0 -0
- data/lib/nexmo_developer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51757a2f4f831622b831edeafc2d6828cf08453800ba2d2c8e6470aabbfbaad9
|
4
|
+
data.tar.gz: 3dab4408ec81fb3a52a850162c52f9665c6f175675d7cb972f092d4c0a4b8ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/nexmo_developer/.rspec
CHANGED
@@ -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-
|
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-
|
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"}}
|
Binary file
|
Binary file
|
Binary file
|
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.
|
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-
|
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-
|
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"
|