timequiz 1.1 → 1.2
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 +4 -4
- data/changes.txt +6 -0
- data/lib/events.rb +4 -2
- data/lib/extstring.rb +7 -6
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a0517e2a94d008d80ebd5127361bbdabf479cedd87815c7237e7139d94afdf6
|
|
4
|
+
data.tar.gz: 9a08de0793bb656b9496ce192158f5f418ef5516ffdc4719a25efed61e668f1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c44ef9a1ebab50745bde35f83a5189bebab1ef735b5ca9529d2ca3927f9e44aa9250ad449c9c4b9047414fbfc359e160e905a783b34c42744421209264c684ca
|
|
7
|
+
data.tar.gz: 33a3622ca2894f89d2134f0588d9aebdeec60dfbf7008540d2d9ba00d98245e5130d8cadc462dfbaa19df3a9c35c88c4dc5a1f88ea64450e5cd0780ce9846575
|
data/changes.txt
CHANGED
data/lib/events.rb
CHANGED
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
=end
|
|
16
16
|
|
|
17
17
|
# All events known.
|
|
18
|
+
$events << ['The Liberation of Dachau Concentration Camp', 1945, 'The 42nd and 45th Infantry Divisions, as well as the 20th Armored Division of the US Army liberate approximately 32,000 prisoners at Dachau on April 29, 1945. Unprepared for the situation, the smell of decaying bodies and human excrement and the sight of naked, emaciated bodies induced vomiting, crying, disbelief, and rage in the advancing troops. Some of the SS-men who were in charge of the camp were killed by US soldiers after having surrendered, which is considered a war crime. But any charges against the men involved in the killings were dismissed by General George S. Patton.']
|
|
19
|
+
$events << ['The Massacre of Béziers', 1209, 'At the beginning of the Albigensian Crusade against the Cathar movement in the Longuedoc (France), Béziers was the first town that was besieged and conquered by the Crusader army, commanded by the papal legate Arnaud Almaric on 22 July 1209. Almarics own receit of the siege and massacre includes this passage: "Our men spared no one, irrespective of rank, sex or age, and put to the sword almost 20,000 people. After this great slaughter the whole city was despoiled and burnt, as divine vengeance miraculously raged against it."']
|
|
18
20
|
$events << ['Ibn Battuta visits the sultanate of Mali', 1352, 'Ibn Battuta, the great Morrocan voyager, in his journal described many of the territories under Muslim domination and became, thus, the only eyewitness of West-African societies and their political organization at that time. His writings contrast with that of later authors who – often in a colonial context – deny the existence of developped societies in this part of the world and, thus, imposed that “Africa has had no history”.']
|
|
19
|
-
$events << ['Obligations towards Britain as the colonial Power create a huge famine in Bengal (India)', 1943, 'Following the Japanese occupation of Burma, Britain demanded material support for its war efforts from the Indian colonies and
|
|
21
|
+
$events << ['Obligations towards Britain as the colonial Power create a huge famine in Bengal (India)', 1943, 'Following the Japanese occupation of Burma, Britain demanded material support for its war efforts from the Indian colonies and – at the same time – refused its care for an already suffering population. When the extend of the resulting famine began to get known, feeble counter-measures were sufficient to downplay the the catastrophy.']
|
|
20
22
|
$events << ['Howard Hughes founds his own aircraft company', 1932,'Hughes was an American manufacturer, aviator, and motion-picture producer and director who acquired enormous wealth and celebrity from his various ventures but was perhaps better known for his eccentricities, especially his reclusiveness (britannica.com).' ]
|
|
21
23
|
$events << ['Destruction of the German town Dresden', 1945,'The bombing on February 1945 caused a firestorm which left the town ablaze for weeks and killed about 35000 people although the precise number will probably never be established.' ]
|
|
22
24
|
$events << ['The aviator Charles Lindbergh dies', 1974,'Charles Lindbergh was the first aviator to complete a solo transatlantic flight in May 1927.' ]
|
|
@@ -32,7 +34,7 @@ $events << ['Christian Huygens is born', 1629, 'Christiaan Huygens was a Dutch m
|
|
|
32
34
|
$events << ['Foundation of the Royal Society in London', 1660, 'From its first meeting, on 28 November 1660, following a lecture by the Professor of Astronomy at Gresham College in London, Christopher Wren, the new Fellowship would concern itself with natural philosophy – what we would now term science. Wren considered that it should act to transform knowledge, profit, and health and the conveniences of life.']
|
|
33
35
|
$events << ['Galileo Galilée observes the first known satellites of Jupiter', 1610, 'A few weeks after his observations, Galileo determined that he was observing not stars, but objects in orbit around Jupiter. Today, Jupiter’s four largest satellites—Io, Europa, Ganymede, and Callisto—are named the Galilean moons in honor of their discoverer.']
|
|
34
36
|
$events << ['The Persian astronomer Al Soufi is born', 903, 'Abd-al-Rahman Al Sufi published his famous "Book of Fixed Stars" in 964 describing much of his work, both in textual descriptions and pictures. In his descriptions and pictures of Andromeda, he included "A Little Cloud" which is actually the Andromeda Galaxy M31.']
|
|
35
|
-
$events << ["Failed British Macartney Embassy in China",1793, 'The British mission traveled to China in 1792
|
|
37
|
+
$events << ["Failed British Macartney Embassy in China",1793, 'The British mission traveled to China in 1792-93 in an attempt to secure more favourable trade and diplomatic relations for the United Kingdom. Macartney was expected by his hosts to kneel three times and to touch his head several times on the ground in acknowledgment of the emperor as the “son of heaven” (tianzi) and of China as the Central Kingdom (Zhongguo). He refused to kowtow, however, and instead went down on only one knee, as he would before a British monarch. The whole mission was marked by misunderstandings, and the Embassy failed to achieve its goals.']
|
|
36
38
|
$events << ['Copernicus publishes “De revolutionibus orbium coelestium”', 1543,"Copernicus' major work, first edition 1543 in Nuremberg, was a compendium of six books published during the year of his death, though he had arrived at his theory several decades earlier: Copernicus held that the Earth is another planet revolving around the fixed Sun once a year and turning on its axis once a day."]
|
|
37
39
|
$events << ['First universal time, “Greenich Meen Time”', 1884, 'People had been trying to standardise time for years, but nobody could agree. And so, to settle the subject once and for all, in 1884 a conference was called by the president of the USA, Chester Arthur. On 13 October 1884, the International Meridian Conference resolved by 22 votes to one, and two abstentions (one of which was France, obviously), that Greenwich would be the prime meridian of longitude.']
|
|
38
40
|
$events << ['Begining of the Islamic Calendar', 622, 'The Islamic Calendar, also known as the Hijri or lunar calendar, began on July 16, 622 CE, marking the first day of the first year of the Hegira (Hijra). This significant event commemorates the migration of the Prophet Muhammad from Mecca to Medina, a pivotal moment in Islamic history that not only shaped the early Muslim community but also established a new chronological framework for Muslims.']
|
data/lib/extstring.rb
CHANGED
|
@@ -110,11 +110,12 @@ class String
|
|
|
110
110
|
|
|
111
111
|
# A wrap-function which works here, but may fail everywhere else.
|
|
112
112
|
def wrap(width, delimiter = "\n")
|
|
113
|
-
|
|
114
|
-
#
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
|
|
114
|
+
#words = self.scan(/\p{P}*[\wöÖüÜ-äÄßéèàôûùîçÇœæŒÆ]+\p{P}*/)
|
|
115
|
+
|
|
116
|
+
# Use Unicode character classes
|
|
117
|
+
words = self.scan(/\p{P}*[\w\p{Alpha}\p{Pd}]+\p{P}*/)
|
|
118
|
+
|
|
118
119
|
lines = []
|
|
119
120
|
lines << ''
|
|
120
121
|
li = 0
|
|
@@ -141,7 +142,7 @@ if __FILE__ == $0
|
|
|
141
142
|
|
|
142
143
|
s = "1) Ein Koenig mit Krone ist besser als ohne,\n\n(du Nase)!!\n2) We are not in Kansas anymore.\n3) Toto? Ich glaub, der Köter hieß Toto... ".wrap(12, /^\d/)
|
|
143
144
|
puts s
|
|
144
|
-
|
|
145
|
+
|
|
145
146
|
|
|
146
147
|
# puts "Ein Koenig mit Krone ist besser als ohne,\n\ndu Nase!!".box(:padding=>2)
|
|
147
148
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: timequiz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Uplawski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-09-
|
|
10
|
+
date: 2026-09-09 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: A game that makes you put historical events in chronological order.
|
|
13
13
|
email: michael.uplawski@uplawski.eu
|