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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01f10c0e269c19ed13b15322bc3a9313e27ca0b5962d0afd8ac433b520c99fc2
4
- data.tar.gz: c3450312f4305059493104817e42cdb5481e70520604808f1d65470d3b20fce0
3
+ metadata.gz: d36ca6eb4380f8d14c63d935691b696807b255a6bf6a3dd74b82800321d7784f
4
+ data.tar.gz: 8f0b7aad67b225725ff25e87ad043a3a433c07119e516297ff5c3c3ae411ff0a
5
5
  SHA512:
6
- metadata.gz: 0d241e80b4005a26cdf6bbbc54279500f6618a3b9e4e1df91330dcd8381d7b88ff4eaffbad14fde942c2a41bacdc5a329fc57b4d9f7b5d1e67fba2a8bdeb71f3
7
- data.tar.gz: 6dd2538b0e11774fae691769bc7e1f17fb0f7409f2709eeaf7a5d0832bd9afd8a9845282e4f3c397add02fb52a4555e8cb57f5437e9be9c0535d70e34b3ab8cb
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
- document = File.read(path).gsub('/content/blog/') do |match| # gsub Netlify img urls
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
- <span>< <%= category.plural.upcase %> /></span>
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"><b>
36
- <% ab_test(:try_button_v2, header.sign_up_text.map { |s| ["{ #{t(".#{s}")} }", "< #{t(".#{s}")} />"] }.flatten) do |s| %>
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">Github</b></p></a>
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] %>
@@ -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.nexmo.com/privacy-policy">Privacy Policy</a>, which sets out
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>
@@ -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/developer_spotlight_logo.png" /></a>
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 Nexmo</b></h2>
10
- You don't have to be part of the team to write for Nexmo. <br /> Thanks to our <a href="/spotlight">Developer Spotlight</a> program, you can get paid $400 to write for us.
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-11T18:14:40+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2022-03-11T18:14:40+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-e3c324ace3db5c0bf10139460f7f1efb017f04bbeb729bd8d34b308de0852c20.css":{"logical_path":"application.css","mtime":"2022-03-11T18:14:40+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"}}
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"}}
@@ -1,3 +1,3 @@
1
1
  module NexmoDeveloper
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.8'.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.1.5
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 00:00:00.000000000 Z
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-bf569d34955f2da54a8e430af607f369.json"
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"