m1key_gallery_generator 0.3.17 → 0.3.18

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: 4cd772c1af6e19c48d082f17536def8be40ea19c7a0b20b8f3c2fb1c5d8bdee2
4
- data.tar.gz: fb6758969ffce21f3369210c82ec6f68704d23701dc79e48fe0c212aace956a8
3
+ metadata.gz: 2e0e45ad657eb87c9ea82179edb3cba400410989b360ebf0ede7602aaf7d2cfd
4
+ data.tar.gz: ed2ededcb2880116e9ce1aea00bb3143c9e92a567a1e0ec16c44be4a14498b43
5
5
  SHA512:
6
- metadata.gz: 75bd61dcc687aea0ce3fd4ab292d9a1c6202da5c1d15685883920a1b8189259ee015da02064811dd1576e13fb3d9ec839ca0948a276b18980bf213e4dbea88e1
7
- data.tar.gz: 0e54f68eaa92ddac99be88734f54cf1616c92391c148b389a754ccf607f6d9f230cccc67103bd41921b1ba32ad466878b7a3f7a0b253a6181e2bc2ea0b304772
6
+ metadata.gz: 65839c427e7aae1565c2f12d7163adfcbfd99d5e7edd369265dc904a0275a5a5809fe484eb93cd6f1d0b2b27a51b44b7214d72c21af5fc6798c3ac9f04dd6f32
7
+ data.tar.gz: 724b33ee318b25eb25d53ebe24fda147661cbacad398d404c34be67e4fc524de6c58b2fc5e20d7de70516d80a0033f4a852da6eafa1c4ab431baf1f0b168361a
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.17.gem
77
+ > gem install m1key_gallery_generator-0.3.18.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.17\bin\console . wait_on_error
81
+ > ruby c:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\m1key_gallery_generator-0.3.18\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.17.gem
98
+ > gem install m1key_gallery_generator-0.3.18.gem
99
99
 
100
100
  To test gem:
101
101
  > irb
@@ -51,15 +51,15 @@
51
51
  "name": "Michal Huniewicz"
52
52
  },
53
53
  "image": [<% photos.each_with_index do |photo, index| %>
54
- {
54
+ {
55
55
  "@type": "ImageObject",
56
56
  "contentUrl" : "https://www.m1key.me/<%= genre %>/<%= slug %>/<%= slug %>_<%= photo.id %>.jpg",
57
57
  "caption": "<%= HTMLEntities.new.decode(photo.title) %>",
58
58
  "width": <%= photo.metadata.width %>,
59
59
  "height": <%= photo.metadata.height %>
60
- }<% if (index + 1) == photos.size %><% else %>,<% end -%>
61
- <% end %>
62
- ],
60
+ }<% if (index + 1) == photos.size %><% else %>,<% end -%>
61
+ <% end %>
62
+ ],
63
63
  "description": "<%= blurb %>",
64
64
  "keywords": "photography, art, portfolio, Michal Huniewicz, m1key.me, <%= title %>"
65
65
  }
@@ -123,7 +123,7 @@
123
123
  </a>
124
124
  <figcaption class="visually-hidden">Map showing <%= map_title %> location (opens in OpenStreetMap)</figcaption>
125
125
  </figure><% end %>
126
- <% photos.each_with_index do |photo, index| %>
126
+ <% photos.each_with_index do |photo, index| %>
127
127
  <article class="photo" id="<%= photo.id %>">
128
128
  <header>
129
129
  <h2 class="title"><a href="#<%= photo.id %>" title="Link to this photo"><%= photo.title %></a></h2>
@@ -137,12 +137,12 @@
137
137
  </figcaption>
138
138
  </figure>
139
139
  </article>
140
- <% end -%>
140
+ <% end -%>
141
141
  <% if sources %>
142
142
  <details class="sources" id="sources">
143
143
  <summary>Sources</summary>
144
144
  <ul class="smallprint"><% sources.each_with_index do |source, index| %>
145
- <li><%= index + 1 %>: <a href="<%= source %>" rel="noopener noreferrer" class="nav-link"><% if source.length > 100 %><%= source[0..50] %>[...]<%= source[-30..-1] %><% else %><%= source %><% end -%></a></li><% end %>
145
+ <li><%= index + 1 %>: <a href="<%= source %>" rel="noopener noreferrer" class="nav-link"><% if source.length > 100 %><%= source[0..50] %>[...]<%= source[-30..-1] %><% else %><%= source %><% end -%></a></li><% end %>
146
146
  </ul>
147
147
  </details>
148
148
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module M1keyGalleryGenerator
2
- VERSION = '0.3.17'
2
+ VERSION = '0.3.18'
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.17
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Huniewicz