station 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -5
- data/lib/nexmo_developer/public/assets/{.sprockets-manifest-683c14488d53559d0bffc83e6a567eab.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>
|
@@ -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"
|