cyberweb 0.13.11 → 0.13.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/cyberweb/html_template/html_template.rb +70 -7
- data/lib/cyberweb/utility_scripts/obtain_files_and_directories_from_this_path/obtain_files_and_directories_from_this_path.rb +1 -1
- data/lib/cyberweb/utility_scripts/pdf_to_html/pdf_to_html.rb +2 -1
- data/lib/cyberweb/version/version.rb +2 -2
- data/lib/cyberweb/web_object/web_object.rb +3 -47
- 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: 12ff841d011b8294776122340546a96d633f05166b424d12e9b2867551bebed6
|
4
|
+
data.tar.gz: 765d1c3d3914d44e3d4197a1ebbf6f8fc5d6bff2029c9b7c5ac5081d687acc31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03fa010ce39ce743510fae459cde8786c5f60318e61677ff5fc7b6cee60d0028caa88ef1853dffd5823e6e0355939d2e50aa8ab488cf5d243f4bab7dd703e123
|
7
|
+
data.tar.gz: 4866876f3e15a6d72de9b5a7759730debd00c9b5a2004f9738186dee75a8f830df72dd0e6a815c68298d000fa44dfd4f718d95cd38fa78e398a44c694cb7fd90
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
[![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/cyberweb.svg)](https://badge.fury.io/rb/cyberweb)
|
4
4
|
|
5
|
-
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">
|
5
|
+
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">10.03.2024</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">15:36:44</span> o'clock.
|
6
6
|
|
7
7
|
<img src="https://i.imgur.com/r7tRkFl.png" style="margin-left: 1.2em">
|
8
8
|
|
@@ -1834,13 +1834,6 @@ function popup_open(name_of_the_id = "popup_element") {
|
|
1834
1834
|
append_onto_the_body_tag_nl(i)
|
1835
1835
|
end; alias eenl ee_nl # === eenl
|
1836
1836
|
|
1837
|
-
# ========================================================================= #
|
1838
|
-
# === hspacer
|
1839
|
-
# ========================================================================= #
|
1840
|
-
def hspacer
|
1841
|
-
spacer(:center)
|
1842
|
-
end
|
1843
|
-
|
1844
1837
|
# ========================================================================= #
|
1845
1838
|
# === get_all_files_from
|
1846
1839
|
# ========================================================================= #
|
@@ -4796,6 +4789,76 @@ a:hover {
|
|
4796
4789
|
alias pretty_hsep hr_stars # === pretty_hsep
|
4797
4790
|
alias pretty_separator hr_stars # === pretty_separator
|
4798
4791
|
|
4792
|
+
# ========================================================================= #
|
4793
|
+
# === hspacer
|
4794
|
+
#
|
4795
|
+
# Usage example:
|
4796
|
+
#
|
4797
|
+
# hspacer css_class: 'marb1em'
|
4798
|
+
#
|
4799
|
+
# ========================================================================= #
|
4800
|
+
def hspacer(
|
4801
|
+
optional_css_class = nil
|
4802
|
+
)
|
4803
|
+
spacer(:center, optional_css_class)
|
4804
|
+
end
|
4805
|
+
|
4806
|
+
# ========================================================================= #
|
4807
|
+
# === spacer (spacer tag)
|
4808
|
+
# ========================================================================= #
|
4809
|
+
def spacer(
|
4810
|
+
i = :middle,
|
4811
|
+
optional_css_class = ''
|
4812
|
+
)
|
4813
|
+
if optional_css_class and optional_css_class.is_a?(Hash)
|
4814
|
+
_ = optional_css_class
|
4815
|
+
# ===================================================================== #
|
4816
|
+
# === :css_class
|
4817
|
+
# ===================================================================== #
|
4818
|
+
if _.has_key? :css_class
|
4819
|
+
optional_css_class = _.delete(:css_class)
|
4820
|
+
end
|
4821
|
+
end
|
4822
|
+
case i
|
4823
|
+
# ======================================================================= #
|
4824
|
+
# === :left
|
4825
|
+
# ======================================================================= #
|
4826
|
+
when :left
|
4827
|
+
result = sg(
|
4828
|
+
:spacer,
|
4829
|
+
optional_css_class,
|
4830
|
+
'',
|
4831
|
+
'display: block;
|
4832
|
+
margin-left: auto;
|
4833
|
+
margin-right: auto;'.delete("\n").squeeze(' ')
|
4834
|
+
)
|
4835
|
+
# ======================================================================= #
|
4836
|
+
# === :middle
|
4837
|
+
# ======================================================================= #
|
4838
|
+
when :middle,
|
4839
|
+
:center,
|
4840
|
+
:default
|
4841
|
+
result = sg(
|
4842
|
+
:spacer,
|
4843
|
+
optional_css_class,
|
4844
|
+
'',
|
4845
|
+
'text-align: center;
|
4846
|
+
display: block;
|
4847
|
+
margin-left: auto;
|
4848
|
+
margin-right: auto;'.delete("\n").squeeze(' ')
|
4849
|
+
)
|
4850
|
+
end
|
4851
|
+
append_onto_the_body_tag_nl(
|
4852
|
+
result
|
4853
|
+
)
|
4854
|
+
end; alias trenner spacer # === trenner
|
4855
|
+
alias spalter spacer # === spalter
|
4856
|
+
alias space spacer # === space
|
4857
|
+
alias spacer_center spacer # === spacer_center
|
4858
|
+
alias beautiful_spacer spacer # === beautiful_spacer
|
4859
|
+
alias fancy_spacer spacer # === fancy_spacer
|
4860
|
+
alias fancy_separator spacer # === fancy_separator
|
4861
|
+
|
4799
4862
|
# ========================================================================= #
|
4800
4863
|
# === unicode_plus_minus
|
4801
4864
|
# ========================================================================= #
|
@@ -497,7 +497,7 @@ a:hover {
|
|
497
497
|
# =================================================================== #
|
498
498
|
when :multimedia_files
|
499
499
|
begin
|
500
|
-
require 'multimedia_paradise/toplevel_methods/
|
500
|
+
require 'multimedia_paradise/toplevel_methods/is_audio_file_is_video_file_is_image_file_is_multimedia_file.rb'
|
501
501
|
::MultimediaParadise.is_a_multimedia_file?(entry)
|
502
502
|
rescue LoadError; end
|
503
503
|
# =================================================================== #
|
@@ -136,7 +136,7 @@ class PdfToHtml < ::Cyberweb::ObtainFilesAndDirectoriesFromThisPath # === Cyberw
|
|
136
136
|
'<a href="'+possible_name_for_the_html_file_below+'">
|
137
137
|
<img src="'+REMOTE_PATH_TO_THE_PDF_LOGO+'" style="margin-right: 0.35em">
|
138
138
|
</a>'+
|
139
|
-
title_to_use?+' ('+files.size.to_s+' in total)
|
139
|
+
title_to_use?+' ('+files.size.to_s+' in total)<br><span class="smaller lightblue">'+
|
140
140
|
return_the_pretty_name_of_the_webpage+'</span>',
|
141
141
|
'lightgreen pad12px BG_Black rounded_border'
|
142
142
|
)
|
@@ -196,6 +196,7 @@ class PdfToHtml < ::Cyberweb::ObtainFilesAndDirectoriesFromThisPath # === Cyberw
|
|
196
196
|
_ << '<tr><td colspan="4">'+HtmlTags.a(
|
197
197
|
target_to_use,
|
198
198
|
css_style: USE_THIS_CSS_STYLE_FOR_THE_HREF_LINK,
|
199
|
+
open_in_new_tab: true,
|
199
200
|
description: RIGHT_ARROW+' '+
|
200
201
|
shortened_description
|
201
202
|
)+'</td></tr>'+"\n"
|
@@ -9,12 +9,12 @@ module Cyberweb
|
|
9
9
|
# ========================================================================= #
|
10
10
|
# === VERSION
|
11
11
|
# ========================================================================= #
|
12
|
-
VERSION = '0.13.
|
12
|
+
VERSION = '0.13.12'
|
13
13
|
|
14
14
|
# ========================================================================= #
|
15
15
|
# === LAST_UPDATE
|
16
16
|
# ========================================================================= #
|
17
|
-
LAST_UPDATE = '
|
17
|
+
LAST_UPDATE = '10.03.2024'
|
18
18
|
|
19
19
|
# ========================================================================= #
|
20
20
|
# === URL_TO_THE_DOCUMENTATION
|
@@ -1615,53 +1615,6 @@ function simple_clock_timer() {
|
|
1615
1615
|
) { :counter_is_bold }
|
1616
1616
|
end
|
1617
1617
|
|
1618
|
-
# ========================================================================= #
|
1619
|
-
# === spacer (spacer tag)
|
1620
|
-
# ========================================================================= #
|
1621
|
-
def spacer(
|
1622
|
-
i = :middle,
|
1623
|
-
optional_css_class = ''
|
1624
|
-
)
|
1625
|
-
case i
|
1626
|
-
# ======================================================================= #
|
1627
|
-
# === :left
|
1628
|
-
# ======================================================================= #
|
1629
|
-
when :left
|
1630
|
-
result = sg(
|
1631
|
-
:spacer,
|
1632
|
-
optional_css_class,
|
1633
|
-
'',
|
1634
|
-
'display: block;
|
1635
|
-
margin-left: auto;
|
1636
|
-
margin-right: auto;'.delete("\n").squeeze(' ')
|
1637
|
-
)
|
1638
|
-
# ======================================================================= #
|
1639
|
-
# === :middle
|
1640
|
-
# ======================================================================= #
|
1641
|
-
when :middle,
|
1642
|
-
:center,
|
1643
|
-
:default
|
1644
|
-
result = sg(
|
1645
|
-
:spacer,
|
1646
|
-
optional_css_class,
|
1647
|
-
'',
|
1648
|
-
'text-align: center;
|
1649
|
-
display: block;
|
1650
|
-
margin-left: auto;
|
1651
|
-
margin-right: auto;'.delete("\n").squeeze(' ')
|
1652
|
-
)
|
1653
|
-
end
|
1654
|
-
append_onto_the_body_tag_nl(
|
1655
|
-
result
|
1656
|
-
)
|
1657
|
-
end; alias trenner spacer # === trenner
|
1658
|
-
alias spalter spacer # === spalter
|
1659
|
-
alias space spacer # === space
|
1660
|
-
alias spacer_center spacer # === spacer_center
|
1661
|
-
alias beautiful_spacer spacer # === beautiful_spacer
|
1662
|
-
alias fancy_spacer spacer # === fancy_spacer
|
1663
|
-
alias fancy_separator spacer # === fancy_separator
|
1664
|
-
|
1665
1618
|
# ========================================================================= #
|
1666
1619
|
# === return_name_of_the_images_directory
|
1667
1620
|
#
|
@@ -5039,6 +4992,9 @@ EOF
|
|
5039
4992
|
optional_the_id = optional_css_class.delete(:id)
|
5040
4993
|
end
|
5041
4994
|
end
|
4995
|
+
if optional_css_class.is_a?(Hash) and optional_css_class.empty?
|
4996
|
+
optional_css_class = ''
|
4997
|
+
end
|
5042
4998
|
if use_fancy_id
|
5043
4999
|
method_name = "#{use_this_tag}_fancy_id".to_sym # For instance, h1_fancy_id().
|
5044
5000
|
send(method_name,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyberweb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert A. Heiler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colours
|
@@ -1356,7 +1356,7 @@ post_install_message: |2+
|
|
1356
1356
|
|
1357
1357
|
For more information, consider visiting the following webpage:
|
1358
1358
|
|
1359
|
-
https://www.rubydoc.info/gems/cyberweb/0.13.
|
1359
|
+
https://www.rubydoc.info/gems/cyberweb/0.13.12
|
1360
1360
|
|
1361
1361
|
rdoc_options: []
|
1362
1362
|
require_paths:
|