chemistry-element 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +14 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +14 -0
  6. data/chemistry-element.gemspec +21 -0
  7. data/lib/chemistry-element/version.rb +5 -0
  8. data/lib/chemistry/element.rb +22 -0
  9. data/lib/chemistry/element/actinium.rb +8 -0
  10. data/lib/chemistry/element/aluminium.rb +8 -0
  11. data/lib/chemistry/element/americium.rb +8 -0
  12. data/lib/chemistry/element/antimony.rb +8 -0
  13. data/lib/chemistry/element/argon.rb +8 -0
  14. data/lib/chemistry/element/arsenic.rb +8 -0
  15. data/lib/chemistry/element/astatine.rb +8 -0
  16. data/lib/chemistry/element/atom.rb +41 -0
  17. data/lib/chemistry/element/barium.rb +8 -0
  18. data/lib/chemistry/element/berkelium.rb +8 -0
  19. data/lib/chemistry/element/beryllium.rb +8 -0
  20. data/lib/chemistry/element/bismuth.rb +8 -0
  21. data/lib/chemistry/element/bohrium.rb +8 -0
  22. data/lib/chemistry/element/boron.rb +8 -0
  23. data/lib/chemistry/element/bromine.rb +8 -0
  24. data/lib/chemistry/element/cadmium.rb +8 -0
  25. data/lib/chemistry/element/caesium.rb +8 -0
  26. data/lib/chemistry/element/calcium.rb +8 -0
  27. data/lib/chemistry/element/californium.rb +8 -0
  28. data/lib/chemistry/element/carbon.rb +8 -0
  29. data/lib/chemistry/element/cerium.rb +8 -0
  30. data/lib/chemistry/element/chlorine.rb +8 -0
  31. data/lib/chemistry/element/chromium.rb +8 -0
  32. data/lib/chemistry/element/cobalt.rb +8 -0
  33. data/lib/chemistry/element/copernicium.rb +8 -0
  34. data/lib/chemistry/element/copper.rb +8 -0
  35. data/lib/chemistry/element/curium.rb +8 -0
  36. data/lib/chemistry/element/darmstadtium.rb +8 -0
  37. data/lib/chemistry/element/dubnium.rb +8 -0
  38. data/lib/chemistry/element/dysprosium.rb +8 -0
  39. data/lib/chemistry/element/einsteinium.rb +8 -0
  40. data/lib/chemistry/element/erbium.rb +8 -0
  41. data/lib/chemistry/element/europium.rb +8 -0
  42. data/lib/chemistry/element/fermium.rb +8 -0
  43. data/lib/chemistry/element/flerovium.rb +8 -0
  44. data/lib/chemistry/element/fluorine.rb +8 -0
  45. data/lib/chemistry/element/francium.rb +8 -0
  46. data/lib/chemistry/element/gadolinium.rb +8 -0
  47. data/lib/chemistry/element/gallium.rb +8 -0
  48. data/lib/chemistry/element/germanium.rb +8 -0
  49. data/lib/chemistry/element/gold.rb +8 -0
  50. data/lib/chemistry/element/hafnium.rb +8 -0
  51. data/lib/chemistry/element/hassium.rb +8 -0
  52. data/lib/chemistry/element/helium.rb +8 -0
  53. data/lib/chemistry/element/holmium.rb +8 -0
  54. data/lib/chemistry/element/hydrogen.rb +8 -0
  55. data/lib/chemistry/element/indium.rb +8 -0
  56. data/lib/chemistry/element/iodine.rb +8 -0
  57. data/lib/chemistry/element/iridium.rb +8 -0
  58. data/lib/chemistry/element/iron.rb +8 -0
  59. data/lib/chemistry/element/krypton.rb +8 -0
  60. data/lib/chemistry/element/lanthanum.rb +8 -0
  61. data/lib/chemistry/element/lawrencium.rb +8 -0
  62. data/lib/chemistry/element/lead.rb +8 -0
  63. data/lib/chemistry/element/lithium.rb +8 -0
  64. data/lib/chemistry/element/livermorium.rb +8 -0
  65. data/lib/chemistry/element/lutetium.rb +8 -0
  66. data/lib/chemistry/element/magnesium.rb +8 -0
  67. data/lib/chemistry/element/manganese.rb +8 -0
  68. data/lib/chemistry/element/meitnerium.rb +8 -0
  69. data/lib/chemistry/element/mendelevium.rb +8 -0
  70. data/lib/chemistry/element/mercury.rb +8 -0
  71. data/lib/chemistry/element/molybdenum.rb +8 -0
  72. data/lib/chemistry/element/neodymium.rb +8 -0
  73. data/lib/chemistry/element/neon.rb +8 -0
  74. data/lib/chemistry/element/neptunium.rb +8 -0
  75. data/lib/chemistry/element/nickel.rb +8 -0
  76. data/lib/chemistry/element/niobium.rb +8 -0
  77. data/lib/chemistry/element/nitrogen.rb +8 -0
  78. data/lib/chemistry/element/nobelium.rb +8 -0
  79. data/lib/chemistry/element/osmium.rb +8 -0
  80. data/lib/chemistry/element/oxygen.rb +8 -0
  81. data/lib/chemistry/element/palladium.rb +8 -0
  82. data/lib/chemistry/element/phosphorus.rb +8 -0
  83. data/lib/chemistry/element/platinum.rb +8 -0
  84. data/lib/chemistry/element/plutonium.rb +8 -0
  85. data/lib/chemistry/element/polonium.rb +8 -0
  86. data/lib/chemistry/element/potassium.rb +8 -0
  87. data/lib/chemistry/element/praseodymium.rb +8 -0
  88. data/lib/chemistry/element/promethium.rb +8 -0
  89. data/lib/chemistry/element/protactinium.rb +8 -0
  90. data/lib/chemistry/element/radium.rb +8 -0
  91. data/lib/chemistry/element/radon.rb +8 -0
  92. data/lib/chemistry/element/rhenium.rb +8 -0
  93. data/lib/chemistry/element/rhodium.rb +8 -0
  94. data/lib/chemistry/element/roentgenium.rb +8 -0
  95. data/lib/chemistry/element/rubidium.rb +8 -0
  96. data/lib/chemistry/element/ruthenium.rb +8 -0
  97. data/lib/chemistry/element/rutherfordium.rb +8 -0
  98. data/lib/chemistry/element/samarium.rb +8 -0
  99. data/lib/chemistry/element/scandium.rb +8 -0
  100. data/lib/chemistry/element/seaborgium.rb +8 -0
  101. data/lib/chemistry/element/selenium.rb +8 -0
  102. data/lib/chemistry/element/silicon.rb +8 -0
  103. data/lib/chemistry/element/silver.rb +8 -0
  104. data/lib/chemistry/element/sodium.rb +8 -0
  105. data/lib/chemistry/element/strontium.rb +8 -0
  106. data/lib/chemistry/element/sulfur.rb +8 -0
  107. data/lib/chemistry/element/tantalum.rb +8 -0
  108. data/lib/chemistry/element/technetium.rb +8 -0
  109. data/lib/chemistry/element/tellurium.rb +8 -0
  110. data/lib/chemistry/element/terbium.rb +8 -0
  111. data/lib/chemistry/element/thallium.rb +8 -0
  112. data/lib/chemistry/element/thorium.rb +8 -0
  113. data/lib/chemistry/element/thulium.rb +8 -0
  114. data/lib/chemistry/element/tin.rb +8 -0
  115. data/lib/chemistry/element/titanium.rb +8 -0
  116. data/lib/chemistry/element/tungsten.rb +8 -0
  117. data/lib/chemistry/element/ununoctium.rb +8 -0
  118. data/lib/chemistry/element/ununpentium.rb +8 -0
  119. data/lib/chemistry/element/ununseptium.rb +8 -0
  120. data/lib/chemistry/element/ununtrium.rb +8 -0
  121. data/lib/chemistry/element/uranium.rb +8 -0
  122. data/lib/chemistry/element/vanadium.rb +8 -0
  123. data/lib/chemistry/element/xenon.rb +8 -0
  124. data/lib/chemistry/element/ytterbium.rb +8 -0
  125. data/lib/chemistry/element/yttrium.rb +8 -0
  126. data/lib/chemistry/element/zinc.rb +8 -0
  127. data/lib/chemistry/element/zirconium.rb +8 -0
  128. data/test/chemistry/element/test_atom.rb +103 -0
  129. data/test/chemistry/test_element.rb +42 -0
  130. data/test/test_chemistry.rb +0 -0
  131. data/test/test_helper.rb +2 -0
  132. metadata +202 -0
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Curium" do
4
+ symbol "Cm"
5
+ atomic_number 96
6
+ atomic_weight 247
7
+ melting_point '1340K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Ds" do
4
+ symbol "Ds"
5
+ atomic_number 110
6
+ atomic_weight 271
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Db" do
4
+ symbol "Db"
5
+ atomic_number 105
6
+ atomic_weight 262
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Dysprosium" do
4
+ symbol "Dy"
5
+ atomic_number 66
6
+ atomic_weight 162.500
7
+ melting_point '1685K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Einsteinium" do
4
+ symbol "Es"
5
+ atomic_number 99
6
+ atomic_weight 252
7
+ melting_point '1133K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Erbium" do
4
+ symbol "Er"
5
+ atomic_number 68
6
+ atomic_weight 167.259
7
+ melting_point '1795K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Europium" do
4
+ symbol "Eu"
5
+ atomic_number 63
6
+ atomic_weight 151.964
7
+ melting_point '1095K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Fm" do
4
+ symbol "Fm"
5
+ atomic_number 100
6
+ atomic_weight 257
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Fl" do
4
+ symbol "Fl"
5
+ atomic_number 114
6
+ atomic_weight 289
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Fluorine" do
4
+ symbol "F"
5
+ atomic_number 9
6
+ atomic_weight 18.9984032
7
+ melting_point '53.63K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Francium" do
4
+ symbol "Fr"
5
+ atomic_number 87
6
+ atomic_weight 223
7
+ melting_point '300K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Gadolinium" do
4
+ symbol "Gd"
5
+ atomic_number 64
6
+ atomic_weight 157.25
7
+ melting_point '1585K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Gallium" do
4
+ symbol "Ga"
5
+ atomic_number 31
6
+ atomic_weight 69.723
7
+ melting_point '303.05K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Germanium" do
4
+ symbol "Ge"
5
+ atomic_number 32
6
+ atomic_weight 72.64
7
+ melting_point '1210.55K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Gold" do
4
+ symbol "Au"
5
+ atomic_number 79
6
+ atomic_weight 196.966569
7
+ melting_point '1337.73K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Hafnium" do
4
+ symbol "Hf"
5
+ atomic_number 72
6
+ atomic_weight 178.49
7
+ melting_point '2500K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Hs" do
4
+ symbol "Hs"
5
+ atomic_number 108
6
+ atomic_weight 277
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Helium" do
4
+ symbol "He"
5
+ atomic_number 2
6
+ atomic_weight 4.002602
7
+ melting_point '1.1K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Holmium" do
4
+ symbol "Ho"
5
+ atomic_number 67
6
+ atomic_weight 164.93032
7
+ melting_point '1743K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Hydrogen" do
4
+ symbol "H"
5
+ atomic_number 1
6
+ atomic_weight 1.00794
7
+ melting_point '14.175K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Indium" do
4
+ symbol "In"
5
+ atomic_number 49
6
+ atomic_weight 114.818
7
+ melting_point '429.91K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Iodine" do
4
+ symbol "I"
5
+ atomic_number 53
6
+ atomic_weight 126.90447
7
+ melting_point '386.65K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Iridium" do
4
+ symbol "Ir"
5
+ atomic_number 77
6
+ atomic_weight 192.217
7
+ melting_point '2716K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Iron" do
4
+ symbol "Fe"
5
+ atomic_number 26
6
+ atomic_weight 55.845
7
+ melting_point '1808K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Krypton" do
4
+ symbol "Kr"
5
+ atomic_number 36
6
+ atomic_weight 83.798
7
+ melting_point '115.93K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Lanthanum" do
4
+ symbol "La"
5
+ atomic_number 57
6
+ atomic_weight 138.90547
7
+ melting_point '1193K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Lr" do
4
+ symbol "Lr"
5
+ atomic_number 103
6
+ atomic_weight 262
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Lead" do
4
+ symbol "Pb"
5
+ atomic_number 82
6
+ atomic_weight 207.2
7
+ melting_point '600.75K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Lithium" do
4
+ symbol "Li"
5
+ atomic_number 3
6
+ atomic_weight 6.941
7
+ melting_point '453.85K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Lv" do
4
+ symbol "Lv"
5
+ atomic_number 116
6
+ atomic_weight 292
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Lutetium" do
4
+ symbol "Lu"
5
+ atomic_number 71
6
+ atomic_weight 174.967
7
+ melting_point '1936K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Magnesium" do
4
+ symbol "Mg"
5
+ atomic_number 12
6
+ atomic_weight 24.3050
7
+ melting_point '922K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Manganese" do
4
+ symbol "Mn"
5
+ atomic_number 25
6
+ atomic_weight 54.938045
7
+ melting_point '1517K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Mt" do
4
+ symbol "Mt"
5
+ atomic_number 109
6
+ atomic_weight 268
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Md" do
4
+ symbol "Md"
5
+ atomic_number 101
6
+ atomic_weight 258
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Mercury" do
4
+ symbol "Hg"
5
+ atomic_number 80
6
+ atomic_weight 200.59
7
+ melting_point '234.43K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Molybdenum" do
4
+ symbol "Mo"
5
+ atomic_number 42
6
+ atomic_weight 95.94
7
+ melting_point '2890K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Neodymium" do
4
+ symbol "Nd"
5
+ atomic_number 60
6
+ atomic_weight 144.242
7
+ melting_point '1289K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Neon" do
4
+ symbol "Ne"
5
+ atomic_number 10
6
+ atomic_weight 20.1797
7
+ melting_point '24.703K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Neptunium" do
4
+ symbol "Np"
5
+ atomic_number 93
6
+ atomic_weight 237
7
+ melting_point '913K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Nickel" do
4
+ symbol "Ni"
5
+ atomic_number 28
6
+ atomic_weight 58.6934
7
+ melting_point '1726K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Niobium" do
4
+ symbol "Nb"
5
+ atomic_number 41
6
+ atomic_weight 92.90638
7
+ melting_point '2741K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Nitrogen" do
4
+ symbol "N"
5
+ atomic_number 7
6
+ atomic_weight 14.0067
7
+ melting_point '63.29K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "No" do
4
+ symbol "No"
5
+ atomic_number 102
6
+ atomic_weight 259
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Osmium" do
4
+ symbol "Os"
5
+ atomic_number 76
6
+ atomic_weight 190.23
7
+ melting_point '3300K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Oxygen" do
4
+ symbol "O"
5
+ atomic_number 8
6
+ atomic_weight 15.9994
7
+ melting_point '50.5K'
8
+ end