station 0.0.132 → 0.0.136
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/public/assets/{.sprockets-manifest-5e1272991386791ef087632ac38231cc.json → .sprockets-manifest-0eca22bebbdaf202e585797eba0999df.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: 0ab93ea0397714188de4aeb3813dc22776e2a15c0005ed835726560586a2a9a6
|
4
|
+
data.tar.gz: 8509cb2da1077c75d92852b01abe3e375cac1fed1aabce7ebd35be9fd8973b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba6a1a08cb410b1f608fd94655182d984d680cd0dda8bb4b71b635d16227665ed4524c54d6287791556dca402f049bc9bda9a2ec0cb19776e42eac622c27b5c
|
7
|
+
data.tar.gz: c26f0db1b6146a202722efc47971edafd777998b0267599b804352a8eb7313b16010526f7e3c198a4c9971ac6fd52e40fab6686dae81283f7de7d85634068521
|
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?
|
@@ -1 +1 @@
|
|
1
|
-
{"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-
|
1
|
+
{"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-12-03T12:36:14+00:00","size":1,"digest":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","integrity":"sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2021-12-03T12:36:14+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css":{"logical_path":"application.css","mtime":"2021-12-03T12:36:14+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.136
|
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
|
+
date: 2021-12-03 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-0eca22bebbdaf202e585797eba0999df.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"
|