station 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexmo_developer/app/models/blog/blogpost.rb +8 -2
- data/lib/nexmo_developer/app/views/blog/blogpost/index.html.erb +3 -1
- data/lib/nexmo_developer/app/views/layouts/partials/_header.html.erb +7 -9
- data/lib/nexmo_developer/app/views/static/_profile.html.erb +1 -1
- data/lib/nexmo_developer/app/views/static/default_landing/partials/_contact_community.html.erb +1 -1
- data/lib/nexmo_developer/app/views/static/default_landing/partials/_events.html.erb +1 -1
- data/lib/nexmo_developer/app/views/static/default_landing/partials/_write_for_nexmo.html.erb +4 -4
- data/lib/nexmo_developer/public/assets/{.sprockets-manifest-bf569d34955f2da54a8e430af607f369.json → .sprockets-manifest-e633f0c6fdf58e70e8d4fbb080ee72da.json} +1 -1
- data/lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz +0 -0
- data/lib/nexmo_developer/public/assets/application-e3c324ace3db5c0bf10139460f7f1efb017f04bbeb729bd8d34b308de0852c20.css.gz +0 -0
- data/lib/nexmo_developer/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.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: d36ca6eb4380f8d14c63d935691b696807b255a6bf6a3dd74b82800321d7784f
|
4
|
+
data.tar.gz: 8f0b7aad67b225725ff25e87ad043a3a433c07119e516297ff5c3c3ae411ff0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5df16b7dd6a924e970efa3492d8814439e08d9851b7ff2119cee880633acba6fd3cf263bff6b178ba21b92f69d15975f235da4c033d56c8c73c5b0ed715e5e5a
|
7
|
+
data.tar.gz: 55e154c6e61467f275f539a8bd155845d8a744d1d996de16e06416b09156675f92d185b06536cb060449eb60668bddf0235f4487f6fe6ae2088e8e378ba44bbb
|
@@ -36,10 +36,17 @@ class Blog::Blogpost
|
|
36
36
|
|
37
37
|
default_not_found_page(path) unless File.exist?(path)
|
38
38
|
|
39
|
-
|
39
|
+
# gsub Netlify - img urls to S3 Bucket
|
40
|
+
document = File.read(path).gsub('/content/blog/') do |match|
|
40
41
|
"#{Blog::Blogpost::CLOUDFRONT_BLOG_URL}blogposts/#{match.gsub('/content/blog/', '')}"
|
41
42
|
end
|
42
43
|
|
44
|
+
# gsub Netlify - embedded YOUTUBE Video
|
45
|
+
document = document.gsub(%r{<youtube id="(\w+)"></youtube>}) do |match|
|
46
|
+
youtube_id = match[/(?<=").*(?=")/]
|
47
|
+
"<center class='video'><br><iframe width='448' height='252' src='https://www.youtube-nocookie.com/embed/#{youtube_id}' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe><br><br></center>"
|
48
|
+
end
|
49
|
+
|
43
50
|
blogpost = new(BlogpostParser.build_show_with_locale(path, locale))
|
44
51
|
blogpost.content = Nexmo::Markdown::Renderer.new({}).call(document)
|
45
52
|
|
@@ -57,7 +64,6 @@ class Blog::Blogpost
|
|
57
64
|
end
|
58
65
|
|
59
66
|
url = Addressable::URI.parse(@thumbnail)
|
60
|
-
|
61
67
|
Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
|
62
68
|
if http.head(url.request_uri)['Content-Type'].start_with? 'image'
|
63
69
|
@thumbnail
|
@@ -24,7 +24,9 @@
|
|
24
24
|
<% @categories_with_blogposts.each do |category| %>
|
25
25
|
|
26
26
|
<div class="header-separator hr--tall Vlt-text-separator Vlt-text-separator--big">
|
27
|
-
<
|
27
|
+
<a href="<%= blog_category_path(category.slug)%>">
|
28
|
+
<span>< <%= category.plural.upcase %> /></span>
|
29
|
+
</a>
|
28
30
|
</div>
|
29
31
|
|
30
32
|
<div class="my-3col-grid">
|
@@ -32,11 +32,8 @@
|
|
32
32
|
<b><%= t(".#{header.sign_in_text}") %></b>
|
33
33
|
</a>
|
34
34
|
|
35
|
-
<a href=<%= header.sign_up_path %> target="_blank" rel="noopener" class="Vlt-btn--white Vlt-btn--app Vlt-btn--outline Vlt-btn--small" id="signup" data-ab="try_button_v2"
|
36
|
-
|
37
|
-
<%= s %>
|
38
|
-
<% end %>
|
39
|
-
</b>
|
35
|
+
<a href=<%= header.sign_up_path %> target="_blank" rel="noopener" class="Vlt-btn--white Vlt-btn--app Vlt-btn--outline Vlt-btn--small" id="signup" data-ab="try_button_v2">
|
36
|
+
<b>< Sign-up for free /></b>
|
40
37
|
</a>
|
41
38
|
</nav>
|
42
39
|
</header>
|
@@ -87,9 +84,6 @@
|
|
87
84
|
<div class="Vlt-topmenu__item">
|
88
85
|
<a href="/community"><p><b class="Vlt-white">Community hub</b></p></a>
|
89
86
|
</div>
|
90
|
-
<div class="Vlt-topmenu__item">
|
91
|
-
<a href="/devtv"><p><b class="Vlt-white">DevTV</b></p></a>
|
92
|
-
</div>
|
93
87
|
<div class="Vlt-topmenu__item">
|
94
88
|
<a href="/startups"><p><b class="Vlt-white">Startup program</b></p></a>
|
95
89
|
</div>
|
@@ -97,11 +91,15 @@
|
|
97
91
|
<a href="https://stackoverflow.com/questions/tagged/nexmo" target='_blank' rel='noopener noreferrer'><p><b class="Vlt-white">Stackoverflow</b></p></a>
|
98
92
|
</div>
|
99
93
|
<div class="Vlt-topmenu__item">
|
100
|
-
<a href="https://github.com/vonage" target='_blank' rel='noopener noreferrer'><p><b class="Vlt-white">
|
94
|
+
<a href="https://github.com/vonage" target='_blank' rel='noopener noreferrer'><p><b class="Vlt-white">GitHub</b></p></a>
|
101
95
|
</div>
|
102
96
|
</div>
|
103
97
|
</div>
|
104
98
|
</li>
|
99
|
+
|
100
|
+
<li class="Vlt-tabs__link">
|
101
|
+
<a href="/blog"><p><b class="Vlt-white">Blog</b></p></a>
|
102
|
+
</li>
|
105
103
|
</ul>
|
106
104
|
|
107
105
|
<svg class="Vlt-icon Vlt-icon--large Vlt-grey Vlt-S-only Adp-header__hamburger">
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="Nxd-profile Vlt-col Vlt-col--M-1of3">
|
2
|
-
<%= gravatar_image_tag email, gravatar: { size: 140 }, class: 'Nxd-profile__avatar avatar' %>
|
2
|
+
<%= gravatar_image_tag email, gravatar: { size: 140, secure: true }, class: 'Nxd-profile__avatar avatar' %>
|
3
3
|
<h3><%= name %></h3>
|
4
4
|
<p class="Vlt-grey-darker p-large"><%= local_assigns[:role] ? role : 'Developer Advocate' %>
|
5
5
|
<% if local_assigns[:twitter] %>
|
data/lib/nexmo_developer/app/views/static/default_landing/partials/_contact_community.html.erb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
<br><br>
|
11
11
|
|
12
|
-
Your data will be treated in accordance with our <a href="https://www.
|
12
|
+
Your data will be treated in accordance with our <a href="https://www.vonage.com/privacy-policy">Privacy Policy</a>, which sets out
|
13
13
|
the rights you have in respect of your data.
|
14
14
|
</p>
|
15
15
|
</div>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
<div id="community-events" class="Vlt-grid">
|
53
|
-
<% @upcoming_events.each do |event| %>
|
53
|
+
<% @upcoming_events.first(6).each do |event| %>
|
54
54
|
<div class="Vlt-col Vlt-col--1of3">
|
55
55
|
<div class="Vlt-card">
|
56
56
|
<h3><%= link_to event.title, event.url, target: '_blank' %></h3>
|
data/lib/nexmo_developer/app/views/static/default_landing/partials/_write_for_nexmo.html.erb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<div class="Vlt-grid">
|
2
2
|
<div class="Vlt-col" style="text-align: right">
|
3
|
-
<a href="/spotlight"><img src="/assets/images/
|
3
|
+
<a href="/spotlight"><img src="/assets/images/Developer-Spotlight-Graphic_200x200.png" /></a>
|
4
4
|
</div>
|
5
5
|
<div class="Vlt-col Vlt-col--3of4">
|
6
6
|
<br />
|
7
7
|
<br />
|
8
8
|
<br />
|
9
|
-
<h2 id="write-for-nexmo"><b>Write for
|
10
|
-
You don't have to be part of the team to write for
|
9
|
+
<h2 id="write-for-nexmo"><b>Write for Vonage</b></h2>
|
10
|
+
You don't have to be part of the team to write for Vonage. <br /> Thanks to our <a href="/spotlight">Developer Spotlight</a> program, you can get paid $500 to write for us.
|
11
11
|
</div>
|
12
|
-
</div>
|
12
|
+
</div>
|
@@ -1 +1 @@
|
|
1
|
-
{"files":{"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2022-03-
|
1
|
+
{"files":{"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2022-03-31T15:12:41+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2022-03-31T15:12:41+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-e3c324ace3db5c0bf10139460f7f1efb017f04bbeb729bd8d34b308de0852c20.css":{"logical_path":"application.css","mtime":"2022-03-31T15:12:41+00:00","size":16653,"digest":"7bba29977bdaa394d9d33788c5c59026cebf41f7290009d61391a0a645e2272b","integrity":"sha256-e7opl3vao5TZ0zeIxcWQJs6/QfcpAAnWE5GgpkXiJys="}},"assets":{"manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.js":"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js","application.css":"application-e3c324ace3db5c0bf10139460f7f1efb017f04bbeb729bd8d34b308de0852c20.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.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vonage DevRel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -731,7 +731,7 @@ files:
|
|
731
731
|
- "./lib/nexmo_developer/public/android-chrome-512x512.png"
|
732
732
|
- "./lib/nexmo_developer/public/apple-touch-icon-precomposed.png"
|
733
733
|
- "./lib/nexmo_developer/public/apple-touch-icon.png"
|
734
|
-
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-
|
734
|
+
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-e633f0c6fdf58e70e8d4fbb080ee72da.json"
|
735
735
|
- "./lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js"
|
736
736
|
- "./lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz"
|
737
737
|
- "./lib/nexmo_developer/public/assets/application-e3c324ace3db5c0bf10139460f7f1efb017f04bbeb729bd8d34b308de0852c20.css"
|