m1key_gallery_generator 0.3.20 → 0.3.21

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: 7c09d388a3c3b545f582e17672a632e57e0ca5b5b6647e8ad44cab1c7a43c641
4
- data.tar.gz: d3bc410b9b687cf93abb0515d8523729a6dffd8a7d41dd2ca9fda521e85ad491
3
+ metadata.gz: 0b5f578d034150b3b6c684e054f984a7a775ed7444bc3d8d6847a2b44100d069
4
+ data.tar.gz: 0f64dcfbd43e25f91b02914e6d238a81ffb5fd529637dfaaec7c9d7e89acaaf9
5
5
  SHA512:
6
- metadata.gz: e64de5315392ed1e10e446f3407404dd8cf9dc07d4578da4b0e1775097620abcd7f95981ac5834b0954f5fddd34fb864430c9319cbe4a6d92fa0174578c5d32d
7
- data.tar.gz: 817f420b0da015118d017af98c854825f4ac0e7798c18836fc4b6f4413dbd2c07924dc04c00092700dc413a7b8161ffb1cc4a02cc6e17b2455fcbb2db3da4cdc
6
+ metadata.gz: 394630c56b6856d1f1d83cb51b5e73a7de3490a710a9573831ba62c5ec04f29613282e9d9ec2e635011f53de0cec4bc299fb24f88380223251ffadc5c93f2c58
7
+ data.tar.gz: 9d23e210cb291562b0c54be21814de74bf0268262efa9a1696fb9c4642e83ff173e36e80fc30447e369c8e2d583f06cd1488918abd2d382ecc0daa0bd3a1996a
data/README.md CHANGED
@@ -74,11 +74,11 @@ Build the gem.
74
74
 
75
75
  Install the gem.
76
76
 
77
- > gem install m1key_gallery_generator-0.3.20.gem
77
+ > gem install m1key_gallery_generator-0.3.21.gem
78
78
 
79
79
  In your gallery directory, have a file called generate.bat that looks like this:
80
80
 
81
- > ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.20\bin\console . wait_on_error
81
+ > ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.21\bin\console . wait_on_error
82
82
 
83
83
  ## Development
84
84
 
@@ -95,7 +95,7 @@ To build gem:
95
95
  > gem build m1key_gallery_generator.gemspec
96
96
 
97
97
  To install gem:
98
- > gem install m1key_gallery_generator-0.3.20.gem
98
+ > gem install m1key_gallery_generator-0.3.21.gem
99
99
 
100
100
  To test gem:
101
101
  > irb
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8" />
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1" />
7
- <title><%= title %> &mdash; Photography and Art Portfolio by Michal Huniewicz</title>
7
+ <title><%= HTMLEntities.new.encode(title) %> &mdash; Photography and Art Portfolio by Michal Huniewicz</title>
8
8
  <meta name="description" content="<%= blurb %>" />
9
9
  <meta name="author" content="Michal Huniewicz" />
10
10
  <meta name="robots" content="index, follow" />
@@ -120,7 +120,7 @@
120
120
  </nav>
121
121
 
122
122
  <header class="site-header">
123
- <h1 class="page-title"><%= title %> by Michal Huniewicz</h1>
123
+ <h1 class="page-title"><%= HTMLEntities.new.encode(title) %> by Michal Huniewicz</h1>
124
124
  </header>
125
125
 
126
126
  <section class="information" aria-labelledby="info-heading">
@@ -134,10 +134,10 @@
134
134
  <figure class="map">
135
135
  <a href="<%= map_url %>"
136
136
  target="_blank" rel="noopener noreferrer">
137
- <img src="<%= slug %>_map.png" alt="Map showing <%= map_title %> location (opens in OpenStreetMap)"
138
- title="<%= map_title %>" width="320" height="240" />
137
+ <img src="<%= slug %>_map.png" alt="Map showing <%= HTMLEntities.new.encode(map_title) %> location (opens in OpenStreetMap)"
138
+ title="<%= HTMLEntities.new.encode(map_title) %>" width="320" height="240" />
139
139
  </a>
140
- <figcaption class="visually-hidden">Map showing <%= map_title %> location (opens in OpenStreetMap)</figcaption>
140
+ <figcaption class="visually-hidden">Map showing <%= HTMLEntities.new.encode(map_title) %> location (opens in OpenStreetMap)</figcaption>
141
141
  </figure><% end %>
142
142
  <% photos.each_with_index do |photo, index| %>
143
143
  <article class="photo" id="<%= photo.id %>">
@@ -1,3 +1,3 @@
1
1
  module M1keyGalleryGenerator
2
- VERSION = '0.3.20'
2
+ VERSION = '0.3.21'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m1key_gallery_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Huniewicz