facts_by_date 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +2 -0
  3. data/.travis.yml +2 -0
  4. data/CHANGELOG.md +4 -1
  5. data/README.md +5 -2
  6. data/Rakefile +5 -0
  7. data/data/10/1.json +39 -0
  8. data/data/10/10.json +25 -0
  9. data/data/10/11.json +28 -0
  10. data/data/10/12.json +27 -0
  11. data/data/10/13.json +28 -0
  12. data/data/10/14.json +29 -0
  13. data/data/10/15.json +32 -0
  14. data/data/10/16.json +25 -0
  15. data/data/10/17.json +24 -0
  16. data/data/10/18.json +24 -0
  17. data/data/10/19.json +29 -0
  18. data/data/10/2.json +23 -0
  19. data/data/10/20.json +26 -0
  20. data/data/10/21.json +28 -0
  21. data/data/10/22.json +27 -0
  22. data/data/10/23.json +25 -0
  23. data/data/10/24.json +31 -0
  24. data/data/10/25.json +24 -0
  25. data/data/10/26.json +25 -0
  26. data/data/10/27.json +30 -0
  27. data/data/10/28.json +30 -0
  28. data/data/10/29.json +27 -0
  29. data/data/10/3.json +28 -0
  30. data/data/10/30.json +28 -0
  31. data/data/10/31.json +19 -0
  32. data/data/10/4.json +27 -0
  33. data/data/10/5.json +32 -0
  34. data/data/10/6.json +24 -0
  35. data/data/10/7.json +21 -0
  36. data/data/10/8.json +31 -0
  37. data/data/10/9.json +23 -0
  38. data/data/6/10.json +29 -0
  39. data/data/6/11.json +24 -0
  40. data/data/6/12.json +24 -0
  41. data/data/6/13.json +19 -0
  42. data/data/6/14.json +32 -0
  43. data/data/6/15.json +34 -0
  44. data/data/6/16.json +21 -0
  45. data/data/6/17.json +34 -0
  46. data/data/6/18.json +26 -0
  47. data/data/6/19.json +32 -0
  48. data/data/6/20.json +25 -0
  49. data/data/6/21.json +27 -0
  50. data/data/6/22.json +29 -0
  51. data/data/6/23.json +23 -0
  52. data/data/6/24.json +30 -0
  53. data/data/6/25.json +26 -0
  54. data/data/6/26.json +30 -0
  55. data/data/6/27.json +24 -0
  56. data/data/6/28.json +34 -0
  57. data/data/6/29.json +26 -0
  58. data/data/6/30.json +15 -0
  59. data/data/6/6.json +22 -0
  60. data/data/6/7.json +21 -0
  61. data/data/6/8.json +23 -0
  62. data/data/6/9.json +20 -0
  63. data/data/7/1.json +25 -0
  64. data/data/7/10.json +29 -0
  65. data/data/7/11.json +18 -0
  66. data/data/7/12.json +15 -0
  67. data/data/7/13.json +23 -0
  68. data/data/7/14.json +21 -0
  69. data/data/7/15.json +19 -0
  70. data/data/7/16.json +17 -0
  71. data/data/7/17.json +21 -0
  72. data/data/7/18.json +17 -0
  73. data/data/7/19.json +15 -0
  74. data/data/7/2.json +22 -0
  75. data/data/7/20.json +19 -0
  76. data/data/7/21.json +23 -0
  77. data/data/7/22.json +18 -0
  78. data/data/7/23.json +22 -0
  79. data/data/7/24.json +19 -0
  80. data/data/7/25.json +27 -0
  81. data/data/7/26.json +22 -0
  82. data/data/7/27.json +26 -0
  83. data/data/7/28.json +25 -0
  84. data/data/7/29.json +22 -0
  85. data/data/7/3.json +19 -0
  86. data/data/7/30.json +21 -0
  87. data/data/7/31.json +26 -0
  88. data/data/7/4.json +26 -0
  89. data/data/7/5.json +18 -0
  90. data/data/7/6.json +21 -0
  91. data/data/7/7.json +23 -0
  92. data/data/7/8.json +26 -0
  93. data/data/7/9.json +19 -0
  94. data/data/8/1.json +39 -0
  95. data/data/8/10.json +29 -0
  96. data/data/8/11.json +31 -0
  97. data/data/8/12.json +33 -0
  98. data/data/8/13.json +24 -0
  99. data/data/8/14.json +22 -0
  100. data/data/8/15.json +26 -0
  101. data/data/8/16.json +24 -0
  102. data/data/8/17.json +22 -0
  103. data/data/8/18.json +36 -0
  104. data/data/8/19.json +30 -0
  105. data/data/8/2.json +30 -0
  106. data/data/8/20.json +40 -0
  107. data/data/8/21.json +32 -0
  108. data/data/8/22.json +33 -0
  109. data/data/8/23.json +37 -0
  110. data/data/8/24.json +32 -0
  111. data/data/8/25.json +31 -0
  112. data/data/8/26.json +20 -0
  113. data/data/8/27.json +30 -0
  114. data/data/8/28.json +26 -0
  115. data/data/8/29.json +32 -0
  116. data/data/8/3.json +28 -0
  117. data/data/8/30.json +24 -0
  118. data/data/8/31.json +32 -0
  119. data/data/8/4.json +25 -0
  120. data/data/8/5.json +29 -0
  121. data/data/8/6.json +26 -0
  122. data/data/8/7.json +26 -0
  123. data/data/8/8.json +33 -0
  124. data/data/8/9.json +31 -0
  125. data/data/9/1.json +31 -0
  126. data/data/9/10.json +26 -0
  127. data/data/9/11.json +27 -0
  128. data/data/9/12.json +29 -0
  129. data/data/9/13.json +28 -0
  130. data/data/9/14.json +27 -0
  131. data/data/9/15.json +31 -0
  132. data/data/9/16.json +28 -0
  133. data/data/9/17.json +28 -0
  134. data/data/9/18.json +29 -0
  135. data/data/9/19.json +27 -0
  136. data/data/9/2.json +26 -0
  137. data/data/9/20.json +30 -0
  138. data/data/9/21.json +29 -0
  139. data/data/9/22.json +28 -0
  140. data/data/9/23.json +30 -0
  141. data/data/9/24.json +27 -0
  142. data/data/9/25.json +27 -0
  143. data/data/9/26.json +32 -0
  144. data/data/9/27.json +26 -0
  145. data/data/9/28.json +28 -0
  146. data/data/9/29.json +30 -0
  147. data/data/9/3.json +30 -0
  148. data/data/9/30.json +35 -0
  149. data/data/9/4.json +30 -0
  150. data/data/9/5.json +30 -0
  151. data/data/9/6.json +31 -0
  152. data/data/9/7.json +31 -0
  153. data/data/9/8.json +32 -0
  154. data/data/9/9.json +35 -0
  155. data/facts_by_date.gemspec +4 -1
  156. data/lib/facts_by_date/version.rb +1 -1
  157. data/lib/facts_by_date.rb +6 -6
  158. data/spec/lib/facts_by_date_spec.rb +33 -0
  159. data/spec/spec_helper.rb +81 -0
  160. metadata +174 -6
data/data/9/27.json ADDED
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"27", "month":"9", "year":"1540", "text": "The Society of Jesus, a religious order under Ignatius Loyola, is approved by the Pope." },
5
+ { "day":"27", "month":"9", "year":"1669", "text": "The island of Crete in the Mediterranean Sea falls to the Ottoman Turks after a 21-year siege." },
6
+ { "day":"27", "month":"9", "year":"1791", "text": "Jews in France are granted French citizenship." },
7
+ { "day":"27", "month":"9", "year":"1864", "text": "Confederate guerrilla Bloody Bill Anderson and his henchmen, including a teenage Jesse James, massacre 20 unarmed Union soldiers at Centralia, Missouri. The event becomes known as the Centralia Massacre." },
8
+ { "day":"27", "month":"9", "year":"1869", "text": "Wild Bill Hickok, sheriff of Hays City, Kan., shoots down Samuel Strawhim, a drunken teamster causing trouble." },
9
+ { "day":"27", "month":"9", "year":"1916", "text": "Constance of Greece declares war on Bulgaria." },
10
+ { "day":"27", "month":"9", "year":"1918", "text": "President Woodrow Wilson opens his fourth Liberty Loan campaign to support men and machines for World War I." },
11
+ { "day":"27", "month":"9", "year":"1920", "text": "Eight Chicago White Sox players are charged with fixing the 1919 World Series." },
12
+ { "day":"27", "month":"9", "year":"1939", "text": "Germany occupies Warsaw as Poland falls to Germany and the Soviet Union." },
13
+ { "day":"27", "month":"9", "year":"1942", "text": "Australian forces defeat the Japanese on New Guinea in the South Pacific." },
14
+ { "day":"27", "month":"9", "year":"1944", "text": "Thousands of British troops are killed as German forces rebuff their massive effort to capture the Arnhem Bridge across the Rhine River in Holland." },
15
+ { "day":"27", "month":"9", "year":"1950", "text": "U.S. Army and Marine troops liberate Seoul, South Korea." },
16
+ { "day":"27", "month":"9", "year":"1956", "text": "The U.S. Air Force Bell X-2, the world’s fastest and highest-flying plane, crashes, killing the test pilot." },
17
+ { "day":"27", "month":"9", "year":"1964", "text": "The Warren Commission, investigating the assassination of President John F. Kennedy, issues its report, stating its conclusion that Lee Harvey Oswald was the sole gunman." },
18
+ { "day":"27", "month":"9", "year":"1979", "text": "US Congress approves Department of Education as the 13th agency in the US Cabinet." },
19
+ { "day":"27", "month":"9", "year":"1983", "text": "Sukhumi massacre: Abkhaz separatist forces and their allies commit widespread atrocities against the civilian population in the USSR state of Georgia." },
20
+ { "day":"27", "month":"9", "year":"1996", "text": "The Taliban capture Afghanistan’s capital city, Kabul." },
21
+ { "day":"27", "month":"9", "year":"2003", "text": "European Space Agency launches SMART-1 satellite to orbit the moon." },
22
+ { "day":"27", "month":"9", "year":"2007", "text": "NASA launches Dawn probe to explore and study the two larges objects of the asteroid belt, Vesta and Ceres." },
23
+ { "day":"27", "month":"9", "year":"2008", "text": "Shai Shigang becomes the first Chinese to walk in space; he was part of the Shenzhou 7 crew." }
24
+ ]
25
+ }
26
+ ]
data/data/9/28.json ADDED
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"28", "month":"9", "year":"48 BC", "text": "On landing in Egypt, Pompey is murdered on the orders of Ptolemy." },
5
+ { "day":"28", "month":"9", "year":"855", "text": "The Emperor Lothar dies in Gaul, and his kingdom is divided between his three sons." },
6
+ { "day":"28", "month":"9", "year":"1066", "text": "William, Duke of Normandy, soon to be known as William the Conqueror invades England." },
7
+ { "day":"28", "month":"9", "year":"1106", "text": "King Henry of England defeats his brother Robert at the Battle of Tinchebrai and reunites England and Normandy." },
8
+ { "day":"28", "month":"9", "year":"1238", "text": "James of Aragon retakes Valencia, Spain, from the Arabs." },
9
+ { "day":"28", "month":"9", "year":"1607", "text": "Samuel de Champlain and his colonists return to France from Port Royal Nova Scotia." },
10
+ { "day":"28", "month":"9", "year":"1794", "text": "The Anglo-Russian-Austrian Alliance of St. Petersburg, which is directed against France, is signed." },
11
+ { "day":"28", "month":"9", "year":"1864", "text": "Union General William Rosecrans blames his defeat at Chickamauga on two of his subordinate generals. They are later exonerated by a court of inquiry." },
12
+ { "day":"28", "month":"9", "year":"1874", "text": "Colonel Ronald Mackenzie raids a war camp of Comanche and Kiowa at the Battle of Palo Duro Canyon, Texas, slaughtering 2,000 of their horses." },
13
+ { "day":"28", "month":"9", "year":"1904", "text": "A woman is placed under arrest for smoking a cigarette on New York’s Fifth Avenue." },
14
+ { "day":"28", "month":"9", "year":"1912", "text": "W.C. Handy’s \"Memphis Blues\" is published." },
15
+ { "day":"28", "month":"9", "year":"1913", "text": "Race riots in Harriston, Mississippi, kill 10 people." },
16
+ { "day":"28", "month":"9", "year":"1924", "text": "Three U.S. Army aircraft arrive in Seattle, Washington after completing a 22-day round-the-world flight." },
17
+ { "day":"28", "month":"9", "year":"1928", "text": "Sir Alexander Fleming discovers penicillin when he notices a bacteria-killing mold growing in his laboratory; it remained for Howard Florey and Ernst Chain to isolate the active ingredient, allowing the \"miracle drug\" to be developed in the 1940s." },
18
+ { "day":"28", "month":"9", "year":"1939", "text": "Nazi Germany and the Soviet Union agree on a division of Poland; Warsaw surrenders to German troops." },
19
+ { "day":"28", "month":"9", "year":"1958", "text": "France ratifies a new constitution." },
20
+ { "day":"28", "month":"9", "year":"1959", "text": "Explorer VI, the U.S. satellite, takes the first video pictures of earth." },
21
+ { "day":"28", "month":"9", "year":"1961", "text": "Military coup in Damacus ends the Egypt-Syria union known as the United Arab Republic that was formed Feb. 1, 1958." },
22
+ { "day":"28", "month":"9", "year":"1963", "text": "Roy Lichtenstein’s pop art work Whaam!, depicting in comic-book style a US jet shooting down an enemy fighter, is exhibited for the first time; it will become one of the best known examples of pop art." },
23
+ { "day":"28", "month":"9", "year":"1995", "text": "Israel’s Prime Minister Yitzhak Rabin and Palestinian Liberation Organization (PLO) leader Yasser Arafat sign an interim agreement concerning settlement on the Gaza Strip." },
24
+ { "day":"28", "month":"9", "year":"1996", "text": "Afghanistan’s former president (1986-92) Mohammad Najibullah tortured and murdered by the Taliban." },
25
+ { "day":"28", "month":"9", "year":"2008", "text": "SpaceX launches the first private spacecraft, Falcon 1." }
26
+ ]
27
+ }
28
+ ]
data/data/9/29.json ADDED
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"29", "month":"9", "year":"1197", "text": "Emperor Henry VI dies in Messina, Sicily." },
5
+ { "day":"29", "month":"9", "year":"1399", "text": "Richard II of England is deposed. His cousin, Henry of Lancaster, declares himself king under the name Henry IV." },
6
+ { "day":"29", "month":"9", "year":"1493", "text": "Christopher Columbus leaves Cadiz, Spain, on his second voyage to the new world." },
7
+ { "day":"29", "month":"9", "year":"1513", "text": "Spanish explorer Vasco Nunez de Balboa discovers the Pacific Ocean." },
8
+ { "day":"29", "month":"9", "year":"1789", "text": "Congress votes to create a U.S. army." },
9
+ { "day":"29", "month":"9", "year":"1833", "text": "A civil war breaks out in Spain between Carlisists, who believe Don Carlos deserves the throne, and supporters of Queen Isabella." },
10
+ { "day":"29", "month":"9", "year":"1850", "text": "Mormon leader Brigham Young is named the first governor of the Utah Territory." },
11
+ { "day":"29", "month":"9", "year":"1864", "text": "Union troops capture the Confederate Fort Harrison, outside Petersburg, Virginia." },
12
+ { "day":"29", "month":"9", "year":"1879", "text": "Dissatisfied Ute Indians kill Agent Nathan Meeker and nine others in the \"Meeker Massacre.\"" },
13
+ { "day":"29", "month":"9", "year":"1932", "text": "A five-day work week is established for General Motors workers." },
14
+ { "day":"29", "month":"9", "year":"1939", "text": "Germany and the Soviet Union reach an agreement on the division of Poland." },
15
+ { "day":"29", "month":"9", "year":"1941", "text": "30,000 Jews are gunned down in Kiev when Henrich Himmler sends four strike squads to exterminate Soviet Jewish civilians and other \"undesirables.\"" },
16
+ { "day":"29", "month":"9", "year":"1943", "text": "Adolf Hitler’s book Mein Kampf is published in the United States." },
17
+ { "day":"29", "month":"9", "year":"1950", "text": "Soviet Premier Nikita Krushchev repeatedly disrupts a UN General Assembly meeting with his violent outbursts over intervention in the Belgian Congo, US U2 spy planes, and arms control." },
18
+ { "day":"29", "month":"9", "year":"1960", "text": "General Douglas MacArthur officially returns Seoul, South Korea, to President Syngman Rhee." },
19
+ { "day":"29", "month":"9", "year":"1962", "text": "Canada launches its first satellite, Alouette 1." },
20
+ { "day":"29", "month":"9", "year":"1962", "text": "The popular Argentinian comic strip Mafalda beings publication, in the weekly Primera Plana; focusing on a six-year-old girl (Mafalda) and her friends, it has been called the Argentinian Peanuts." },
21
+ { "day":"29", "month":"9", "year":"1966", "text": "Chevrolet introduces the Camaro, which will become an iconic car." },
22
+ { "day":"29", "month":"9", "year":"1971", "text": "Oman joins the Arab League." },
23
+ { "day":"29", "month":"9", "year":"1979", "text": "John Paul II becomes the first pope ever to visit Ireland." },
24
+ { "day":"29", "month":"9", "year":"1990", "text": "The YF-22, later named F-22 Raptor, flies for the first time." },
25
+ { "day":"29", "month":"9", "year":"1992", "text": "Brazilian President Fernando Collor de Mello impeached for corruptions; he was the youngest president in the nation’s history, taking office at age 40 in 1990." },
26
+ { "day":"29", "month":"9", "year":"2008", "text": "Dow Jones Industrial Average plummets 777.68 points in the wake of Lehman Brothers and Washington Mutual bankruptcies, the largest single-day point loss in Wall Street history." },
27
+ { "day":"29", "month":"9", "year":"2009", "text": "An 8.1 earthquake causes a tidal wave that claims 189 lives in Samoa, American Samoa, and Tonga." }
28
+ ]
29
+ }
30
+ ]
data/data/9/3.json ADDED
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"3", "month":"9", "year":"1189", "text": "After the death of Henry II, Richard Lionheart is crowned king of England." },
5
+ { "day":"3", "month":"9", "year":"1260", "text": "Mamelukes under Sultan Qutuz defeat Mongols and Crusaders at Ain Jalut." },
6
+ { "day":"3", "month":"9", "year":"1346", "text": "Edward III of England begins the siege of Calais, along the coast of France." },
7
+ { "day":"3", "month":"9", "year":"1650", "text": "The English under Cromwell defeat a superior Scottish army under David Leslie at the Battle of Dunbar." },
8
+ { "day":"3", "month":"9", "year":"1777", "text": "The American flag (stars & stripes), approved by Congress on June 14th, is carried into battle for the first time by a force under General William Maxwell." },
9
+ { "day":"3", "month":"9", "year":"1783", "text": "The Treaty of Paris is signed by Great Britain and the new United States, formally bringing the American Revolution to an end." },
10
+ { "day":"3", "month":"9", "year":"1838", "text": "Frederick Douglass escapes slavery disguised as a sailor. He would later write The Narrative Life of Frederick Douglass, his memoirs about slave life." },
11
+ { "day":"3", "month":"9", "year":"1855", "text": "General William Harney defeats Little Thunder’s Brule Sioux at the Battle of Blue Water in Nebraska." },
12
+ { "day":"3", "month":"9", "year":"1895", "text": "The first professional American football game is played in Latrobe, Pennsylvania between the Latrobe Young Men’s Christian Association and the Jeannette Athletic Club. Latrobe wins 12-0." },
13
+ { "day":"3", "month":"9", "year":"1914", "text": "The French capital is moved from Paris to Bordeaux as the Battle of the Marne begins." },
14
+ { "day":"3", "month":"9", "year":"1916", "text": "The German Somme front is broken by an Allied offensive." },
15
+ { "day":"3", "month":"9", "year":"1918", "text": "The United States recognizes the nation of Czechoslovakia." },
16
+ { "day":"3", "month":"9", "year":"1939", "text": "After Germany ignores Great Britain’s ultimatum to stop the invasion of Poland, Great Britain declares war on Germany, marking the beginning of World War II in Europe." },
17
+ { "day":"3", "month":"9", "year":"1939", "text": "The British passenger ship Athenia is sunk by a German submarine in the Atlantic, with 30 Americans among those killed. American Secretary of State Cordell Hull warns Americans to avoid travel to Europe unless absolutely necessary." },
18
+ { "day":"3", "month":"9", "year":"1943", "text": "British troops invade Italy, landing at Calabria." },
19
+ { "day":"3", "month":"9", "year":"1944", "text": "The U.S. Seventh Army captures Lyons, France." },
20
+ { "day":"3", "month":"9", "year":"1945", "text": "General Tomoyuki Yamashita, the Japanese commander of the Philippines, surrenders to Lieutenant General Jonathan Wainwright at Baguio." },
21
+ { "day":"3", "month":"9", "year":"1967", "text": "Lieutenant General Ngyuen Van Thieu is elected president of South Vietnam." },
22
+ { "day":"3", "month":"9", "year":"1969", "text": "Ho Chi Minh, the leader of North Vietnam, dies." },
23
+ { "day":"3", "month":"9", "year":"1976", "text": "The unmanned US spacecraft Viking 2 lands on Mars, takes first close-up, color photos of the planet’s surface." },
24
+ { "day":"3", "month":"9", "year":"1981", "text": "Egypt arrests some 1,500 opponents of the government." },
25
+ { "day":"3", "month":"9", "year":"1989", "text": "US begins shipping military aircraft and weapons to Columbia for use against that country’s drug lords." },
26
+ { "day":"3", "month":"9", "year":"1994", "text": "Russia and China sign a demarcation agreement to end dispute over a stretch of their border and agree they will no longer target each other with nuclear weapons." },
27
+ { "day":"3", "month":"9", "year":"2001", "text": "Protestant loyalists in Belfast, Ireland, begin an 11-week picket of the Holy Cross Catholic school for girls, sparking rioting." }
28
+ ]
29
+ }
30
+ ]
data/data/9/30.json ADDED
@@ -0,0 +1,35 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"30", "month":"9", "year":"1399", "text": "Richard II is deposed." },
5
+ { "day":"30", "month":"9", "year":"1568", "text": "Eric XIV, king of Sweden, is deposed after showing signs of madness." },
6
+ { "day":"30", "month":"9", "year":"1630", "text": "John Billington, one of the original pilgrims who sailed to the New World on the Mayflower, becomes the first man executed in the English colonies. He is hanged for having shot another man during a quarrel" },
7
+ { "day":"30", "month":"9", "year":"1703", "text": "The French, at Hochstadt in the War of the Spanish Succession, suffer only 1,000 casualties to the 11,000 of their opponents, the Austrians of Holy Roman Emperor Leopold I." },
8
+ { "day":"30", "month":"9", "year":"1791", "text": "Mozart’s opera The Magic Flute is performed for the first time in Vienna" },
9
+ { "day":"30", "month":"9", "year":"1846", "text": "The first anesthetized tooth extraction is performed by Dr. William Morton in Charleston, Massachusetts." },
10
+ { "day":"30", "month":"9", "year":"1864", "text": "Confederate troops fail to retake Fort Harrison from the Union forces during the siege of Petersburg." },
11
+ { "day":"30", "month":"9", "year":"1911", "text": "Italy declares war on Turkey over control of Tripoli." },
12
+ { "day":"30", "month":"9", "year":"1918", "text": "Bulgaria pulls out of World War I." },
13
+ { "day":"30", "month":"9", "year":"1927", "text": "Babe Ruth hits his 60th homerun of the season off Tom Zachary in Yankee Stadium, New York City." },
14
+ { "day":"30", "month":"9", "year":"1935", "text": "George Gershwin’s opera Porgy and Bess opens at the Colonial Theatre in Boston." },
15
+ { "day":"30", "month":"9", "year":"1938", "text": "Under German threats of war, Britain, France, Germany and Italy sign an accord permitting Germany to take control of Sudetenland–a region of Czechoslovakia inhabited by a German-speaking minority." },
16
+ { "day":"30", "month":"9", "year":"1939", "text": "The French Army is called back into France from its invasion of Germany. The attack, code named Operation Saar, only penetrated five miles." },
17
+ { "day":"30", "month":"9", "year":"1943", "text": "The Women’s Army Auxiliary Corps becomes the Women’s Army Corps, a regular contingent of the U.S. Army with the same status as other army service corps." },
18
+ { "day":"30", "month":"9", "year":"1949", "text": "The Berlin Airlift is officially halted after 277,264 flights." },
19
+ { "day":"30", "month":"9", "year":"1950", "text": "U.N. forces cross the 38th parallel separating North and South Korea as they pursue the retreating North Korean Army." },
20
+ { "day":"30", "month":"9", "year":"1954", "text": "The first atomic-powered submarine, the Nautilus, is commissioned in Groton, Connecticut." },
21
+ { "day":"30", "month":"9", "year":"1954", "text": "NATO nations agree to arm and admit West Germany." },
22
+ { "day":"30", "month":"9", "year":"1955", "text": "Actor and teen idol James Dean is killed in a car crash while driving his Porsche on his way to enter it into a race in Salinas, California." },
23
+ { "day":"30", "month":"9", "year":"1960", "text": "Fifteen African nations are admitted to the United Nations." },
24
+ { "day":"30", "month":"9", "year":"1962", "text": "U.S. Marshals escort James H. Meredith into the University of Mississippi; two die in the mob violence that follows." },
25
+ { "day":"30", "month":"9", "year":"1965", "text": "President Lyndon Johnson signs legislation that establishes the National Foundation for the Arts and the Humanities." },
26
+ { "day":"30", "month":"9", "year":"1965", "text": "The 30 September Movement unsuccessfully attempts coup against Indonesian government; an anti-communist purge in the aftermath results in over 500,000 deaths." },
27
+ { "day":"30", "month":"9", "year":"1966", "text": "Bechuanaland ceases to be a British protectorate and becomes the independent Republic of Botswana." },
28
+ { "day":"30", "month":"9", "year":"1972", "text": "Pro baseball great Roberto Clemente hits his 3,000th—and final—hit of his career." },
29
+ { "day":"30", "month":"9", "year":"1975", "text": "The AH-64 Apache attack helicopter makes its first flight." },
30
+ { "day":"30", "month":"9", "year":"1994", "text": "Aldwych tube station (originally Strand Station) of the London Underground transit system closes after 88 years." },
31
+ { "day":"30", "month":"9", "year":"1999", "text": "Japan’s second-worst nuclear accident occurs at a uranium processing facility in Tokai-mura, killing two technicians." },
32
+ { "day":"30", "month":"9", "year":"2009", "text": "Earthquakes in Sumatra kill more than 1,115 people." }
33
+ ]
34
+ }
35
+ ]
data/data/9/4.json ADDED
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"4", "month":"9", "year":"1260", "text": "At the Battle of Montaperto in Italy, the Tuscan Ghibellines, who support the emperor, defeat the Florentine Guelfs, who support papal power." },
5
+ { "day":"4", "month":"9", "year":"1479", "text": "After four years of war, Spain agrees to allow a Portuguese monopoly of trade along Africa’s west coast and Portugal acknowledges Spain’s rights in the Canary Islands." },
6
+ { "day":"4", "month":"9", "year":"1781", "text": "Los Angeles, first an Indian village Yangma, is founded by Spanish decree." },
7
+ { "day":"4", "month":"9", "year":"1787", "text": "Louis XVI of France recalls parliament." },
8
+ { "day":"4", "month":"9", "year":"1790", "text": "Jacques Necker is forced to resign as finance minister in France." },
9
+ { "day":"4", "month":"9", "year":"1804", "text": "USS Intrepid explodes while entering Tripoli harbor on a mission to destroy the enemy fleet there during the First Barbary War." },
10
+ { "day":"4", "month":"9", "year":"1820", "text": "Czar Alexander declares that Russian influence in North America extends as far south as Oregon and closes Alaskan waters to foreigners." },
11
+ { "day":"4", "month":"9", "year":"1862", "text": "Robert E. Lee’s Confederate army invades Maryland, starting the Antietam Campaign." },
12
+ { "day":"4", "month":"9", "year":"1870", "text": "A republic is proclaimed in Paris and a government of national defense is formed." },
13
+ { "day":"4", "month":"9", "year":"1881", "text": "The Edison electric lighting system goes into operation as a generator serving 85 paying customers is switched on." },
14
+ { "day":"4", "month":"9", "year":"1886", "text": "Elusive Apache leader Geronimo surrenders to General Nelson A. Miles at Skeleton Canyon, Ariz." },
15
+ { "day":"4", "month":"9", "year":"1893", "text": "Beatrix Potter sends a note to her governess’ son with the first drawing of Peter Rabbit, Cottontail and others. The Tale of Petter Rabbit is published eight years later." },
16
+ { "day":"4", "month":"9", "year":"1915", "text": "The U.S. military places Haiti under martial law to quell a rebellion in its capital Port-au-Prince." },
17
+ { "day":"4", "month":"9", "year":"1941", "text": "German submarine U-652 fires at the U.S. destroyer Greer off Iceland, beginning an undeclared shooting war." },
18
+ { "day":"4", "month":"9", "year":"1942", "text": "Soviet planes bomb Budapest in the war’s first air raid on the Hungarian capital." },
19
+ { "day":"4", "month":"9", "year":"1943", "text": "Allied troops capture Lae-Salamaua, in New Guinea." },
20
+ { "day":"4", "month":"9", "year":"1944", "text": "British troops liberate Antwerp, Belgium." },
21
+ { "day":"4", "month":"9", "year":"1945", "text": "The American flag is raised on Wake Island after surrender ceremonies there." },
22
+ { "day":"4", "month":"9", "year":"1951", "text": "The first transcontinental television broadcast in America is carried by 94 stations." },
23
+ { "day":"4", "month":"9", "year":"1957", "text": "Arkansas governor Orval Faubus calls out the National Guard to bar African-American students from entering a Little Rock high school." },
24
+ { "day":"4", "month":"9", "year":"1967", "text": "Operation Swift begins as US Marines engage North Vietnamese Army troops in Que Son Valley." },
25
+ { "day":"4", "month":"9", "year":"1972", "text": "Mark Spitz becomes first Olympic competitor to win 7 medals during a single Olympics Games." },
26
+ { "day":"4", "month":"9", "year":"1975", "text": "Sinai II Agreement between Egypt and Israel pledges that conflicts between the two countries \"shall not be resolved by military force but by peaceful means.\"" },
27
+ { "day":"4", "month":"9", "year":"1998", "text": "Google founded by Stanford University students Larry Page and Sergey Brin." }
28
+ ]
29
+ }
30
+ ]
data/data/9/5.json ADDED
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"5", "month":"9", "year":"1666", "text": "The Fire of London is extinguished after two days." },
5
+ { "day":"5", "month":"9", "year":"1664", "text": "After days of negotiation, the Dutch settlement of New Amsterdam surrenders to the British, who will rename it New York." },
6
+ { "day":"5", "month":"9", "year":"1792", "text": "Maximilien Robespierre is elected to the National Convention in France." },
7
+ { "day":"5", "month":"9", "year":"1804", "text": "US Navy lieutenant Richard Somers and members of his crew are buried at Tripoli; they died when USS Intrepid exploded while entering Tripoli harbor on a mission to destroy the enemy fleet there during the First Barbary War." },
8
+ { "day":"5", "month":"9", "year":"1816", "text": "Louis XVIII of France dissolves the chamber of deputies, which has been challenging his authority." },
9
+ { "day":"5", "month":"9", "year":"1859", "text": "Harriot E. Wilson’s Our Nig, is published, the first U.S. novel by an African American woman." },
10
+ { "day":"5", "month":"9", "year":"1867", "text": "The first shipment of cattle leaves Abilene, Kansas, on a Union Pacific train headed to Chicago." },
11
+ { "day":"5", "month":"9", "year":"1870", "text": "Author Victor Hugo returns to Paris from the Isle of Guernsey where he had lived in exile for almost 20 years." },
12
+ { "day":"5", "month":"9", "year":"1877", "text": "The great Sioux warrior Crazy Horse is fatally bayoneted at age 36 by a soldier at Fort Robinson, Nebraska." },
13
+ { "day":"5", "month":"9", "year":"1878", "text": "Bat Masterson, Wyatt Earp, Bill Tilghman and Clay Allison, four of the West’s most famous gunmen, meet in Dodge City, Kansas." },
14
+ { "day":"5", "month":"9", "year":"1905", "text": "The Russian-Japanese War ends as representatives of the combating empires, meeting in New Hampshire, sign the Treaty of Portsmouth. Japan achieves virtually all of its original war aims." },
15
+ { "day":"5", "month":"9", "year":"1910", "text": "Marie Curie demonstrates the transformation of radium ore to metal at the Academy of Sciences in France." },
16
+ { "day":"5", "month":"9", "year":"1944", "text": "Germany launches its first V-2 missile at Paris, France." },
17
+ { "day":"5", "month":"9", "year":"1958", "text": "Martin Luther King is arrested in an Alabama protest for loitering and fined $14 for refusing to obey police." },
18
+ { "day":"5", "month":"9", "year":"1960", "text": "Leopold Sedar Sengingor, poet and politician, is elected president of Senegal, Africa." },
19
+ { "day":"5", "month":"9", "year":"1969", "text": "Charges brought against US lieutenant William Calley in the March 1968 My Lai Massacre during Vietnam War." },
20
+ { "day":"5", "month":"9", "year":"1972", "text": "\"Black September,\" a Palestinian terrorist group take 11 Israeli athletes hostage at the Olympic Games in Munich; by midnight all hostages and all but 3 terrorists are dead." },
21
+ { "day":"5", "month":"9", "year":"1975", "text": "President Gerald Ford evades an assassination attempt in Sacramento, California." },
22
+ { "day":"5", "month":"9", "year":"1977", "text": "Hanns-Martin Schleyer, a German business executive who headed to powerful organization and had been an SS officer during WW2, is abducted by the left-wing extremist group Red Army Faction, who execute him on Oct. 18." },
23
+ { "day":"5", "month":"9", "year":"1977", "text": "Voyager 1 space probe launched." },
24
+ { "day":"5", "month":"9", "year":"1978", "text": "Israel’s Menachem Begin and Egypt’s Anwar Sadat begin discussions on a peace process, at Camp David, Md." },
25
+ { "day":"5", "month":"9", "year":"1980", "text": "World’s longest tunnel opens; Switzerland’s St. Gotthard Tunnel stretches 10.14 miles (16.224 km) from Goschenen to Airolo." },
26
+ { "day":"5", "month":"9", "year":"1984", "text": "Space Shuttle Discovery lands afters its maiden voyage." },
27
+ { "day":"5", "month":"9", "year":"1996", "text": "Hurricane Fran comes ashore near Cape Fear, No. Car. It will kill 27 people and cause more than $3 billion in damage." }
28
+ ]
29
+ }
30
+ ]
data/data/9/6.json ADDED
@@ -0,0 +1,31 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"6", "month":"9", "year":"394", "text": "Theodosius becomes sole ruler of Italy after defeating Eugenius at the Battle of the River Frigidus." },
5
+ { "day":"6", "month":"9", "year":"1422", "text": "Sultan Murat II ends a vain siege of Constantinople." },
6
+ { "day":"6", "month":"9", "year":"1522", "text": "One of the five ships that set out in Ferdinand Magellan’s trip around the world makes it back to Spain. Only 15 of the original 265 men that set out survived. Magellan was killed by natives in the Philippines." },
7
+ { "day":"6", "month":"9", "year":"1688", "text": "Imperial troops defeat the Turks and take Belgrade, Serbia." },
8
+ { "day":"6", "month":"9", "year":"1793", "text": "French General Jean Houchard and his 40,000 men begin a three-day battle against an Anglo-Hanoveraian army at Hondschoote, southwest Belgium, in the wars of the French Revolution." },
9
+ { "day":"6", "month":"9", "year":"1847", "text": "Henry David Thoreau leaves Walden Pond and moves back into town, to Concord, Massachusetts." },
10
+ { "day":"6", "month":"9", "year":"1861", "text": "Union General Ulysses S. Grant’s forces capture Paducah, Kentucky from Confederate forces." },
11
+ { "day":"6", "month":"9", "year":"1870", "text": "The last British troops to serve in Austria are withdrawn." },
12
+ { "day":"6", "month":"9", "year":"1901", "text": "President William McKinley is shot while attending a reception at the Pan-American Exposition in Buffalo, New York, by 28-year-old anarchist Leon Czolgosz. McKinley dies eight days later, the third American president assassinated." },
13
+ { "day":"6", "month":"9", "year":"1907", "text": "The luxury liner Lusitania leaves London for New York on her maiden voyage." },
14
+ { "day":"6", "month":"9", "year":"1918", "text": "The German Army begins a general retreat across the Aisne, with British troops in pursuit." },
15
+ { "day":"6", "month":"9", "year":"1936", "text": "Aviator Beryl Markham flies the first east-to-west solo flight across the Atlantic Ocean." },
16
+ { "day":"6", "month":"9", "year":"1937", "text": "The Soviet Union accuses Italy of torpedoing two Russian ships in the Mediterranean." },
17
+ { "day":"6", "month":"9", "year":"1941", "text": "Germany announces that all Jews living in the country will have to begin wearing a Star of David." },
18
+ { "day":"6", "month":"9", "year":"1943", "text": "The United States asks the Chinese Nationals to join with the Communists to present a common front to the Japanese." },
19
+ { "day":"6", "month":"9", "year":"1953", "text": "The last American and Korean prisoners are exchanged in Operation Big Switch, the last official act of the Korean War." },
20
+ { "day":"6", "month":"9", "year":"1965", "text": "Indian troops invade Lahore; Pakistan paratroopers raid Punjab." },
21
+ { "day":"6", "month":"9", "year":"1972", "text": "The world learns an earlier announcement that all Israeli athletes taken hostage at the Munich Olympics had been rescued was erroneous; all had killed by their captors from the Black September terrorist group; all but 3 terrorists also died in shootout around midnight." },
22
+ { "day":"6", "month":"9", "year":"1976", "text": "A Soviet pilot lands his MIG-25 in Tokyo and asks for political asylum in the United States." },
23
+ { "day":"6", "month":"9", "year":"1976", "text": "Lieutenant Viktor Belenko, a Soviet air force pilot defects, flying a MiG-25 jet fighter to Japan and requesting political asylum in US." },
24
+ { "day":"6", "month":"9", "year":"1988", "text": "Lee Roy Young becomes the first African-American Texas Ranger in the force’s 165-year history." },
25
+ { "day":"6", "month":"9", "year":"1991", "text": "USSR officially recognizes independence for the Baltic States of Estonia, Latvia and Lithuania." },
26
+ { "day":"6", "month":"9", "year":"1991", "text": "Leningrad, second-largest city in the USSR, is changed to Saint Petersburg, which had been the city’s name prior to 1924." },
27
+ { "day":"6", "month":"9", "year":"1995", "text": "Baltimore Orioles’ Cal Ripken Jr. plays in his 2,131st consecutive game, breaking a 56-year MLB record held by Lou Gehrig; in 2007 fans voted this achievement the most memorable moment in MLB history." },
28
+ { "day":"6", "month":"9", "year":"1997", "text": "Funeral of Diana, Princess of Wales: over 1 million people line London’s streets to honor her and 2.5 billion watched the event on TV." }
29
+ ]
30
+ }
31
+ ]
data/data/9/7.json ADDED
@@ -0,0 +1,31 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"7", "month":"9", "year":"1571", "text": "At the Battle of Lepanto in the Mediterranean Sea, the Christian galley fleet destroys the Turkish galley fleet." },
5
+ { "day":"7", "month":"9", "year":"1630", "text": "The town of Trimountaine in Massachusetts is renamed Boston. It became the state capital." },
6
+ { "day":"7", "month":"9", "year":"1701", "text": "England, Austria, and the Netherlands form an Alliance against France." },
7
+ { "day":"7", "month":"9", "year":"1778", "text": "Shawnee Indians attack and lay siege to Boonesborough, Kentucky." },
8
+ { "day":"7", "month":"9", "year":"1812", "text": "On the road to Moscow, Napoleon wins a costly victory over the Russians at Borodino." },
9
+ { "day":"7", "month":"9", "year":"1813", "text": "The earliest known printed reference to the United States by the nickname “Uncle Sam” occurs in the Troy Post." },
10
+ { "day":"7", "month":"9", "year":"1864", "text": "Union General Phil Sheridan’s troops skirmish with the Confederates under Jubal Early outside Winchester, Virginia." },
11
+ { "day":"7", "month":"9", "year":"1876", "text": "The James-Younger gang botches an attempt to rob the First National Bank of Northfield, Minnesota." },
12
+ { "day":"7", "month":"9", "year":"1888", "text": "An incubator is used for the first time on a premature infant." },
13
+ { "day":"7", "month":"9", "year":"1892", "text": "The first heavyweight-title boxing match fought with gloves under Marquis of Queensbury rules ends when James J. Corbett knocks out John L. Sullivan in the 21st round." },
14
+ { "day":"7", "month":"9", "year":"1912", "text": "French aviator Roland Garros sets an altitude record of 13,200 feet." },
15
+ { "day":"7", "month":"9", "year":"1916", "text": "The U.S. Congress passes the Workman’s Compensation Act." },
16
+ { "day":"7", "month":"9", "year":"1940", "text": "Germany’s blitz against London begins during the Battle of Britain." },
17
+ { "day":"7", "month":"9", "year":"1942", "text": "The Red Army pushes back the German line northwest of Stalingrad." },
18
+ { "day":"7", "month":"9", "year":"1953", "text": "Nikita Krushchev elected first secretary of the Communist Party of the Soviet Union." },
19
+ { "day":"7", "month":"9", "year":"1954", "text": "Integration of public schools begins in Washington D.C. and Maryland." },
20
+ { "day":"7", "month":"9", "year":"1965", "text": "Pro Football Hall of Fame opens in Canton, Ohio." },
21
+ { "day":"7", "month":"9", "year":"1970", "text": "Jockey Blll Shoemaker earns 6,033rd win, breaking Johnny Longden’s record for most lifetime wins; Shoemaker’s record would stand for 29 years." },
22
+ { "day":"7", "month":"9", "year":"1977", "text": "Panama and US sign Torrios-Carter Treaties to transfer control of the Panama Canal from the US to Panama at the end of the 20th century." },
23
+ { "day":"7", "month":"9", "year":"1978", "text": "Secret police agent Francesco Giullino assassinates Bulgarian dissident Georgi Markov in London by firing a ricin pellet from a specially designed umbrella." },
24
+ { "day":"7", "month":"9", "year":"1979", "text": "ESPN, the Entertainment and Sports Programig Network, debuts." },
25
+ { "day":"7", "month":"9", "year":"1986", "text": "Desmond Tutu becomes first black leader of the Church of the Province of Southern Africa (now the Anglican Church of South Africa)." },
26
+ { "day":"7", "month":"9", "year":"1988", "text": "Pilot and cosmonaut Abdul Ahad Mohmand, the first Afghan to travel to outer space, returns to earth after 9 days aboard the Soviet space station Mir." },
27
+ { "day":"7", "month":"9", "year":"2004", "text": "Hurricane Ivan damages 90% of buildings on the island of Grenada; 39 die in the Category 5 storm." },
28
+ { "day":"7", "month":"9", "year":"2008", "text": "US Government assumes conservatorship of Fannie Mae and Freddie Mac, the country’s two largest mortgage financing companies, during the subprime mortgage crisis." },
29
+ ]
30
+ }
31
+ ]
data/data/9/8.json ADDED
@@ -0,0 +1,32 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"8", "month":"9", "year":"1504", "text": "Michelangelo’s 13-foot marble statue of David is unveiled in Florence, Italy." },
5
+ { "day":"8", "month":"9", "year":"1529", "text": "The Ottoman Sultan Suleiman re-enters Buda and establishes John Zapolyai as the puppet king of Hungary." },
6
+ { "day":"8", "month":"9", "year":"1565", "text": "Spanish explorers found St. Augustine, Florida, the first permanent European settlement in what is now the United States." },
7
+ { "day":"8", "month":"9", "year":"1628", "text": "John Endecott arrives with colonists at Salem, Massachusetts, where he will become the governor." },
8
+ { "day":"8", "month":"9", "year":"1644", "text": "The Dutch colony of New Amsterdam surrenders to the British fleet that sails into its harbor. Five years later, the British change the name to New York." },
9
+ { "day":"8", "month":"9", "year":"1755", "text": "British forces under William Johnson defeat the French and the Indians at the Battle of Lake George." },
10
+ { "day":"8", "month":"9", "year":"1760", "text": "The French surrender the city of Montreal to the British." },
11
+ { "day":"8", "month":"9", "year":"1845", "text": "A French column surrenders at Sidi Brahim in the Algerian War." },
12
+ { "day":"8", "month":"9", "year":"1863", "text": "Confederate Lieutenant Dick Dowling thwarts a Union naval landing at Sabine Pass, northeast of Galveston, Texas." },
13
+ { "day":"8", "month":"9", "year":"1903", "text": "Between 30,000 and 50,000 Bulgarian men, women and children are massacred in Monastir by Turkish troops seeking to check a threatened Macedonian uprising." },
14
+ { "day":"8", "month":"9", "year":"1906", "text": "Robert Turner invents the automatic typewriter return carriage." },
15
+ { "day":"8", "month":"9", "year":"1915", "text": "Germany begins a new offensive in Argonne on the Western Front." },
16
+ { "day":"8", "month":"9", "year":"1921", "text": "Margaret Gorman of Washington, D.C., is named the first Miss America." },
17
+ { "day":"8", "month":"9", "year":"1925", "text": "Germany is admitted into the League of Nations." },
18
+ { "day":"8", "month":"9", "year":"1935", "text": "Senator Huey Long of Louisiana is shot to death in the state capitol, allegedly by Dr. Carl Austin Weiss, Jr." },
19
+ { "day":"8", "month":"9", "year":"1944", "text": "Germany’s V-2 offensive against England begins." },
20
+ { "day":"8", "month":"9", "year":"1945", "text": "Korea is partitioned by the Soviet Union and the United States." },
21
+ { "day":"8", "month":"9", "year":"1951", "text": "Japanese representatives sign a peace treaty in San Francisco." },
22
+ { "day":"8", "month":"9", "year":"1955", "text": "The United States, Australia, France, Great Britain, New Zealand, the Philippines, Pakistan, and Thailand sign the mutual defense treaty that established the Southeast Asia Treaty Organization (SEATO)." },
23
+ { "day":"8", "month":"9", "year":"1960", "text": "Penguin Books in Britain is charged with obscenity for trying to publish the D.H. Lawrence novel Lady Chatterly’s Lover." },
24
+ { "day":"8", "month":"9", "year":"1960", "text": "President Eisenhower dedicates NASA’s Marshall Space Flight Center in Huntsville, Alabama." },
25
+ { "day":"8", "month":"9", "year":"1971", "text": "The Kennedy Center opens in Washington, DC with a performance of Leonard Bernstein’s Mass." },
26
+ { "day":"8", "month":"9", "year":"1974", "text": "President Gerald Ford pardons former President Richard M. Nixon for any crimes arising from the Watergate scandal he may have committed while in office." },
27
+ { "day":"8", "month":"9", "year":"1988", "text": "Wildfires in Yellowstone National Park in the US, the world’s first national park, force evacuation of the historic Old Faithful Inn; visitors and employees evacuated but the inn is saved." },
28
+ { "day":"8", "month":"9", "year":"1991", "text": "Macedonian Independence Day; voters overwhelmingly approve referendum to form the Republic of Macedonia, independent of Yugoslavia." },
29
+ { "day":"8", "month":"9", "year":"1994", "text": "USAir Flight 427 crashes on approach to Pittsburgh International Airport, killing all 132 people aboard; subsequent investigation leads to changes in manufacturing practices and pilot training." }
30
+ ]
31
+ }
32
+ ]
data/data/9/9.json ADDED
@@ -0,0 +1,35 @@
1
+ [
2
+ {
3
+ "facts":[
4
+ { "day":"9", "month":"9", "year":"337", "text": "Constantine’s three sons, already Caesars, each take the title of Augustus. Constantine II and Constans share the west while Constantius II takes control of the east." },
5
+ { "day":"9", "month":"9", "year":"1087", "text": "William the Conquerer, Duke of Normandy and King of England, dies in Rouen while conducting a war which began when the French king made fun of him for being fat." },
6
+ { "day":"9", "month":"9", "year":"1513", "text": "King James IV of Scotland is defeated and killed by English at Flodden." },
7
+ { "day":"9", "month":"9", "year":"1585", "text": "Pope Sixtus V deprives Henry of Navarre of his rights to the French crown." },
8
+ { "day":"9", "month":"9", "year":"1776", "text": "The term \"United States\" is adopted by the Continental Congress to be used instead of the \"United Colonies.\"" },
9
+ { "day":"9", "month":"9", "year":"1786", "text": "George Washington calls for the abolition of slavery." },
10
+ { "day":"9", "month":"9", "year":"1791", "text": "French Royalists take control of Arles and barricade themselves inside the town." },
11
+ { "day":"9", "month":"9", "year":"1834", "text": "Parliament passes the Municipal Corporations Act, reforming city and town governments in England." },
12
+ { "day":"9", "month":"9", "year":"1850", "text": "California, in the midst of a gold rush, enters the Union as the 31st state." },
13
+ { "day":"9", "month":"9", "year":"1863", "text": "The Union Army of the Cumberland passes through Chattanooga as they chase after the retreating Confederates. The Union troops will soon be repulsed at the Battle of Chickamauga." },
14
+ { "day":"9", "month":"9", "year":"1886", "text": "The Berne International Copyright Convention takes place." },
15
+ { "day":"9", "month":"9", "year":"1911", "text": "An airmail route opens between London and Windsor." },
16
+ { "day":"9", "month":"9", "year":"1915", "text": "A German zeppelin bombs London for the first time, causing little damage." },
17
+ { "day":"9", "month":"9", "year":"1926", "text": "The Radio Corporation of America creates the National Broadcasting Co." },
18
+ { "day":"9", "month":"9", "year":"1942", "text": "A Japanese float plane, launched from a submarine, makes its first bombing run on a U.S. forest near Brookings, Oregon." },
19
+ { "day":"9", "month":"9", "year":"1943", "text": "Allied troops land at Salerno, Italy and encounter strong resistance from German troops." },
20
+ { "day":"9", "month":"9", "year":"1948", "text": "Kim Il-sung declares the establishment of the Democratic People’s Republic of Korea." },
21
+ { "day":"9", "month":"9", "year":"1956", "text": "Elvis Presley makes his first appearance on The Ed Sullivan Show; cameras focus on his upper torso and legs to avoid showing his pelvis gyrations, which many Americans—including Ed Sullivan—thought unfit for a family show." },
22
+ { "day":"9", "month":"9", "year":"1965", "text": "US Department of Housing and Urban Development established." },
23
+ { "day":"9", "month":"9", "year":"1965", "text": "Hurricane Betsy, the first hurricane to exceed $1 billion in damages (unadjusted), makes its second landfall, near New Orleans." },
24
+ { "day":"9", "month":"9", "year":"1969", "text": "Canada’s Official Languages Act takes effect, making French equal to English as a language within the nation’s government." },
25
+ { "day":"9", "month":"9", "year":"1970", "text": "U.S. Marines launch Operation Dubois Square, a 10-day search for North Vietnamese troops near DaNang." },
26
+ { "day":"9", "month":"9", "year":"1971", "text": "Attica Prison Riot; the 4-day riot leaves 39 dead." },
27
+ { "day":"9", "month":"9", "year":"1976", "text": "Communist Chinese leader Mao Tse-tung dies in Beijing at age 82." },
28
+ { "day":"9", "month":"9", "year":"1990", "text": "Sri Lankan Army massacres 184 civilians of the Tamil minority in the Batticaloa District of Sri Lanka." },
29
+ { "day":"9", "month":"9", "year":"1991", "text": "Tajikstan declares independence from USSR." },
30
+ { "day":"9", "month":"9", "year":"1993", "text": "The Palestine Liberation Organization (PLO) officially recognizes Israel as a legitimate state." },
31
+ { "day":"9", "month":"9", "year":"2001", "text": "Two al Qaeda assassins kill Ahmed Shah Massoud, leader of the Northern Alliance in Afghanistan." },
32
+ { "day":"9", "month":"9", "year":"2001", "text": "A car bomb explodes outside the Australian embassy in Jakarta, killing 10 people." }
33
+ ]
34
+ }
35
+ ]
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["billkall@gmail.com"]
11
11
  spec.summary = %q{A generator of facts for a specific date}
12
12
  spec.description = %q{Generate facts of what happened today or for a given date}
13
- spec.homepage = ""
13
+ spec.homepage = "https://rubygems.org/gems/facts_by_date"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -21,4 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.7'
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
23
  spec.add_development_dependency 'rspec'
24
+ spec.add_development_dependency 'timecop'
25
+
26
+ spec.required_ruby_version = '~> 2.2.3'
24
27
  end
@@ -1,3 +1,3 @@
1
1
  module FactsByDate
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/facts_by_date.rb CHANGED
@@ -15,10 +15,10 @@ module FactsByDate
15
15
  facts = data_hash[0]['facts']
16
16
 
17
17
  # if size option is provided retrieve information only for that size
18
- if options[:size].present?
19
- facts.take(options[:size])
20
- else
18
+ if options[:size].nil?
21
19
  facts
20
+ else
21
+ facts.take(options[:size])
22
22
  end
23
23
  else
24
24
  []
@@ -36,10 +36,10 @@ module FactsByDate
36
36
  facts = data_hash[0]['facts']
37
37
 
38
38
  # if size option is provided retrieve information only for that size
39
- if options[:size].present?
40
- facts.take(options[:size])
41
- else
39
+ if options[:size].nil?
42
40
  facts
41
+ else
42
+ facts.take(options[:size])
43
43
  end
44
44
  else
45
45
  []
@@ -0,0 +1,33 @@
1
+ require 'spec_helper'
2
+
3
+ describe FactsByDate::Generator do
4
+ describe '#facts_for_today' do
5
+ it 'should respond with full list when no option is given' do
6
+ Timecop.freeze('02-01-2116')
7
+ output = FactsByDate::Generator.facts_for_today
8
+ output.should be_kind_of Array
9
+ output.size.should == 14
10
+ Timecop.return
11
+ end
12
+
13
+ it 'should respond with proper list when size option is given' do
14
+ output = FactsByDate::Generator.facts_for_today({:size => 2})
15
+ output.should be_kind_of Array
16
+ output.size.should == 2
17
+ end
18
+ end
19
+
20
+ describe '#facts_for_specific_date' do
21
+ it 'should respond with proper list when no option is given' do
22
+ output = FactsByDate::Generator.facts_for_specific_date('22-12-2015')
23
+ output.should be_kind_of Array
24
+ output.size.should == 20
25
+ end
26
+
27
+ it 'should respond with proper list when size option is given' do
28
+ output = FactsByDate::Generator.facts_for_specific_date('22-12-2015', { :size => 2 })
29
+ output.should be_kind_of Array
30
+ output.size.should == 2
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,81 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ require 'facts_by_date' # and any other gems you need
5
+ require 'timecop' # and any other gems you need
6
+ require 'json'
7
+
8
+ RSpec.configure do |config|
9
+ # rspec-expectations config goes here. You can use an alternate
10
+ # assertion/expectation library such as wrong or the stdlib/minitest
11
+ # assertions if you prefer.
12
+ config.expect_with :rspec do |expectations|
13
+ # This option will default to `true` in RSpec 4. It makes the `description`
14
+ # and `failure_message` of custom matchers include text for helper methods
15
+ # defined using `chain`, e.g.:
16
+ # be_bigger_than(2).and_smaller_than(4).description
17
+ # # => "be bigger than 2 and smaller than 4"
18
+ # ...rather than:
19
+ # # => "be bigger than 2"
20
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
21
+ end
22
+
23
+ # rspec-mocks config goes here. You can use an alternate test double
24
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
25
+ config.mock_with :rspec do |mocks|
26
+ # Prevents you from mocking or stubbing a method that does not exist on
27
+ # a real object. This is generally recommended, and will default to
28
+ # `true` in RSpec 4.
29
+ mocks.verify_partial_doubles = true
30
+ end
31
+
32
+ # The settings below are suggested to provide a good initial experience
33
+ # with RSpec, but feel free to customize to your heart's content.
34
+ =begin
35
+ # These two settings work together to allow you to limit a spec run
36
+ # to individual examples or groups you care about by tagging them with
37
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
38
+ # get run.
39
+ config.filter_run :focus
40
+ config.run_all_when_everything_filtered = true
41
+
42
+ # Allows RSpec to persist some state between runs in order to support
43
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
44
+ # you configure your source control system to ignore this file.
45
+ config.example_status_persistence_file_path = "spec/examples.txt"
46
+
47
+ # Limits the available syntax to the non-monkey patched syntax that is
48
+ # recommended. For more details, see:
49
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
50
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
51
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
52
+ config.disable_monkey_patching!
53
+
54
+ # Many RSpec users commonly either run the entire suite or an individual
55
+ # file, and it's useful to allow more verbose output when running an
56
+ # individual spec file.
57
+ if config.files_to_run.one?
58
+ # Use the documentation formatter for detailed output,
59
+ # unless a formatter has already been configured
60
+ # (e.g. via a command-line flag).
61
+ config.default_formatter = 'doc'
62
+ end
63
+
64
+ # Print the 10 slowest examples and example groups at the
65
+ # end of the spec run, to help surface which specs are running
66
+ # particularly slow.
67
+ config.profile_examples = 10
68
+
69
+ # Run specs in random order to surface order dependencies. If you find an
70
+ # order dependency and want to debug it, you can fix the order by providing
71
+ # the seed, which is printed after each run.
72
+ # --seed 1234
73
+ config.order = :random
74
+
75
+ # Seed global randomization in this process using the `--seed` CLI option.
76
+ # Setting this allows you to use `--seed` to deterministically reproduce
77
+ # test failures related to randomization by passing the same `--seed` value
78
+ # as the one that triggered the failure.
79
+ Kernel.srand config.seed
80
+ =end
81
+ end