elementic 1.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02b8014482ef2cad4861892bb4a838a4b7064ceb
4
- data.tar.gz: 4fbcfd8b9b6dbb602380c600aebddbaa0c45f177
3
+ metadata.gz: d7c629bbc4ef20bee9644e2367df3e08e184d76b
4
+ data.tar.gz: 7bd5f8dca276ffb988b100a4df9049a340fafa3a
5
5
  SHA512:
6
- metadata.gz: ded51271c0e9486f1a1591fb9488441d8bcaae4953a45fccc55ccc10357ea578d0d4de3c958763efe1f52d16a0341f72717b76dff45217159304dd1f53477bd3
7
- data.tar.gz: 7d47d79ee635a3d4a40e7ced3f1f8b74d83129c15e6a23c38d43a942e8e7dde3564f4f05ec7687260fb0ef82fa22e775f850d8c1745eabed9bde83548628cfb3
6
+ metadata.gz: 96996646bef620e499d3f3b7613701a1248a87cbc034d89ca3cf7b344bb652e61d04d56e492a01633b9a7d43bdbc9f34c3dc2e5e62288f125ea9ad7c6d3abe22
7
+ data.tar.gz: 7446be036db3c618b11120fe8fd76279d4b94535d53f529c09398affff17d82f498f98545925665f300b3ed73553206e8ee7bd3c4be6d20d91b69143275cdade
data/README.md CHANGED
@@ -19,6 +19,6 @@ and ecetera ecetera
19
19
 
20
20
  or grab the version
21
21
 
22
- ```bash
22
+ ```ruby
23
23
  Elementic::VERSION # some version, idk i'm not going to update this every time there's a new version
24
24
  ```
@@ -1,22 +1,25 @@
1
1
  require_relative 'element'
2
2
 
3
+ # Elements Module
4
+ # Access elements with Elements::ELEMENT
3
5
  module Elements
4
6
  HYDROGEN = Element.new(
5
7
  name:'Hydrogen', symbol:'H', ion_charges:[+1, -1],
6
- atomic_number:1, atomic_mass:1.0
8
+ atomic_number:1, atomic_mass:1.008
7
9
  )
10
+
8
11
  HELIUM = Element.new(
9
12
  name: 'Helium', symbol:'He', ion_charges:[],
10
- atomic_number:2, atomic_mass:4.0
11
- )
13
+ atomic_number:HYDROGEN.atomic_number + 1, atomic_mass:4.002602
14
+ )
12
15
 
13
16
  LITHIUM = Element.new(
14
17
  name: 'Lithium', symbol: 'Li', ion_charges:[+1],
15
- atomic_number:3, atomic_mass:6.9
16
- )
18
+ atomic_number:HELIUM.atomic_number + 1, atomic_mass:6.94
19
+ )
17
20
 
18
21
  BERYLLIUM = Element.new(
19
22
  name: 'Beryllium', symbol: 'Be', ion_charges:[+2],
20
- atomic_number:4, atomic_mass:9.0
21
- )
23
+ atomic_number:LITHIUM.atomic_number + 1, atomic_mass:9.0121831
24
+ )
22
25
  end
@@ -1,3 +1,3 @@
1
1
  module Elementic
2
- VERSION = '1.1'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elementic
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh