jektify 1.0.6 → 1.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2944a45af6d024772bfa18aa2762fb8bd5d495517aa53be533dc5260e3343beb
4
- data.tar.gz: 5133f2670cac35cd4531f87ea10c429370d334880884c42316c5fad4b0a685cd
3
+ metadata.gz: e427c70129721d0ee23091e5d501820f525e506f770a0839679a4d5c22d24822
4
+ data.tar.gz: 60fcf344b96433d2d4ae10fd053b032fbe517f55260dcd0dd239d7737d63888b
5
5
  SHA512:
6
- metadata.gz: 0d2ea97a4ddeedb214c1f4c3f60a995dd03da3eab1da6f3db3d19cc812509c0a10d7027ca7f3b2d0713262b93f82b1534a61b6d17dc10809bad897e49c49c2f5
7
- data.tar.gz: 52a8b0ce461874dcb51b3f37a339b1327768498e9a2390d4973df9b94c569b0c4f33e9d36117a7adecec355a4ece89c3cd7b193978cca7a20aad11fab275ead6
6
+ metadata.gz: 462b92aa20b607af28e5c6119ad151ed1b0d94a6d7ada54a74e27fb1a978ee8ec52f355f4ff99cead5d8b5409b15bcb72074a875b518e2e6866854fb0e839cd6
7
+ data.tar.gz: 6d0805bb8ae299946d32421686280ce027eda01a9db8f3e5732bb80a20c079269c4a124247716d810e003ad23b31c69924a6d94007c04c03785f331da8329f18
@@ -9,9 +9,9 @@ name: Ruby
9
9
 
10
10
  on:
11
11
  push:
12
- branches: [ master ]
12
+ branches: [ main ]
13
13
  pull_request:
14
- branches: [ master ]
14
+ branches: [ main ]
15
15
 
16
16
  jobs:
17
17
  test:
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Jektify
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/jektify.svg)](https://badge.fury.io/rb/jektify)
4
+ [![Ruby](https://github.com/jektify/jektify/actions/workflows/ruby.yml/badge.svg)](https://github.com/jektify/jektify/actions/workflows/ruby.yml)
4
5
  [![Build Status](https://travis-ci.org/jektify/jektify.svg?branch=master)](https://travis-ci.org/jektify/jektify)
5
6
  [![security](https://hakiri.io/github/jektify/jektify/master.svg)](https://hakiri.io/github/jektify/jektify/master)
6
7
 
@@ -105,9 +106,13 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jektif
105
106
 
106
107
  ## Donation
107
108
 
108
- If you liked my work, buy me a coffee <3
109
+ Click on the image below to be redirected the donation forms:
109
110
 
110
- [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YBK2HEEYG8V5W&source)
111
+ <div class="donate">
112
+ <a href="https://github.com/williamcanin/donations/blob/master/README.md">
113
+ <img width="160" height="100" src="https://raw.githubusercontent.com/williamcanin/donations/master/svg/donate/donate-hand.svg" alt="Donations"
114
+ </a>
115
+ </div>
111
116
 
112
117
  ## License
113
118
 
data/lib/jektify/main.rb CHANGED
@@ -96,8 +96,14 @@ module Jektify
96
96
 
97
97
  # Customizing Url Spotify
98
98
  # E.g: { % spotify [user]/[type]/[id]/[theme] % }
99
- spotify_embed_url = "https://embed.spotify.com/?uri=spotify:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}"
100
- spotify_embed_url = "https://embed.spotify.com/?uri=spotify:user:#{spotify_user}:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}" unless spotify_embed_category != "playlist"
99
+ # spotify_embed_url = "https://embed.spotify.com/?uri=spotify:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}"
100
+ # spotify_embed_url = "https://embed.spotify.com/?uri=spotify:user:#{spotify_user}:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}" unless spotify_embed_category != "playlist"
101
+
102
+ # Player color based on box theme.
103
+ spotify_embed_theme == "dark" ? player_color = "0" : player_color = "1"
104
+
105
+ # Spotify Open URL Base (Web Player)
106
+ spotify_embed_url = "https://open.spotify.com/embed/#{spotify_embed_category}/#{spotify_id}?theme=#{player_color}"
101
107
 
102
108
 
103
109
  # Checks a series of error values in the settings of Jektify in _config.yml
@@ -8,7 +8,7 @@ module Jektify
8
8
 
9
9
  MAJOR = 1
10
10
  MINOR = 0
11
- PATCH = 6
11
+ PATCH = 7
12
12
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
13
13
 
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jektify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - William C. Canin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-09 00:00:00.000000000 Z
11
+ date: 2021-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.2.15
147
+ rubygems_version: 3.2.18
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Jekyll plugin to generate HTML code fragments to incorporate music from Spotify