chemistry_paradise 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chemistry_paradise might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +222 -0
- data/bin/chemistry_paradise +7 -0
- data/chemistry_paradise.gemspec +45 -0
- data/doc/BUGS.md +16 -0
- data/doc/README.gen +205 -0
- data/doc/TODO.md +13 -0
- data/lib/chemistry_paradise.rb +6 -0
- data/lib/chemistry_paradise/base/base.rb +101 -0
- data/lib/chemistry_paradise/base/colours.rb +65 -0
- data/lib/chemistry_paradise/calculate_atomic_mass.rb +487 -0
- data/lib/chemistry_paradise/combustion_analysis.rb +181 -0
- data/lib/chemistry_paradise/commandline/help.rb +35 -0
- data/lib/chemistry_paradise/commandline/menu.rb +80 -0
- data/lib/chemistry_paradise/commandline/parse_commandline.rb +94 -0
- data/lib/chemistry_paradise/constants/constants.rb +52 -0
- data/lib/chemistry_paradise/constants/file_constants.rb +27 -0
- data/lib/chemistry_paradise/constants/german_names_of_elements_to_element_symbol.rb +157 -0
- data/lib/chemistry_paradise/converters/celsius_to_fahrenheit.rb +134 -0
- data/lib/chemistry_paradise/converters/fahrenheit_to_celsius.rb +122 -0
- data/lib/chemistry_paradise/converters/shared.rb +15 -0
- data/lib/chemistry_paradise/electron_negativity_chart.rb +78 -0
- data/lib/chemistry_paradise/equalize_chemical_formula.rb +82 -0
- data/lib/chemistry_paradise/equation_solver.rb +130 -0
- data/lib/chemistry_paradise/interactive_chemistry_shell.rb +241 -0
- data/lib/chemistry_paradise/orbitals.rb +65 -0
- data/lib/chemistry_paradise/project/project_base_directory.rb +24 -0
- data/lib/chemistry_paradise/requires/common_external_requires.rb +17 -0
- data/lib/chemistry_paradise/shared.rb +162 -0
- data/lib/chemistry_paradise/show_electron_configuration.rb +243 -0
- data/lib/chemistry_paradise/show_electron_negativity_of_this_element.rb +101 -0
- data/lib/chemistry_paradise/show_element.rb +141 -0
- data/lib/chemistry_paradise/split_molecule_names.rb +185 -0
- data/lib/chemistry_paradise/toplevel_methods/atomgewichte.rb +31 -0
- data/lib/chemistry_paradise/toplevel_methods/display_where_the_molmasses_are_kept.rb +24 -0
- data/lib/chemistry_paradise/toplevel_methods/e.rb +16 -0
- data/lib/chemistry_paradise/toplevel_methods/kelvin.rb +34 -0
- data/lib/chemistry_paradise/toplevel_methods/language.rb +50 -0
- data/lib/chemistry_paradise/toplevel_methods/periodic_table.rb +16 -0
- data/lib/chemistry_paradise/toplevel_methods/remove_this_molecule_from.rb +63 -0
- data/lib/chemistry_paradise/toplevel_methods/show_electron_negativity_chart.rb +26 -0
- data/lib/chemistry_paradise/verbose_chemical_calculation.rb +21 -0
- data/lib/chemistry_paradise/version/version.rb +19 -0
- data/lib/chemistry_paradise/yaml/atomgewichte.yml +109 -0
- data/lib/chemistry_paradise/yaml/electron_negativity_chart.yml +109 -0
- data/lib/chemistry_paradise/yaml/molecular_formula_of_different_molecules.yml +12 -0
- data/test/testing_chemistry_paradise.rb +49 -0
- metadata +138 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# This file contains the "molecular mass" of different
|
3
|
+
# molecules.
|
4
|
+
#
|
5
|
+
# x = YAML.load_file('molecular_formula_of_different_molecules.yml')
|
6
|
+
#
|
7
|
+
# =========================================================================== #
|
8
|
+
|
9
|
+
harnstoff: CH₄N₂O
|
10
|
+
pyruvate: C₃H₄O₃ # CH3-CO-CO-O
|
11
|
+
lactic acid: C₃H6O₃
|
12
|
+
acetyl: C₂H₃O
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'chemistry_paradise/shared.rb'
|
6
|
+
require 'chemistry_paradise/chemistry_controller.rb'
|
7
|
+
require 'chemistry_paradise/calculate_atomic_mass.rb'
|
8
|
+
|
9
|
+
require 'colours/colours_e_autoinclude.rb'
|
10
|
+
|
11
|
+
# =========================================================================== #
|
12
|
+
# === s
|
13
|
+
# =========================================================================== #
|
14
|
+
def s(i)
|
15
|
+
opn; e i
|
16
|
+
end
|
17
|
+
s 'This file will run some tests to ensure that the'
|
18
|
+
s 'ChemistryParadise-Project works as intended.'
|
19
|
+
e
|
20
|
+
s 'Next testing '+Colours.slateblue('ChemistryController.berechne_atomgewicht()')
|
21
|
+
# ChemistryController.berechne_atomgewicht(:test_default_molecules)
|
22
|
+
# $RSRC/chemistry_paradise/test/testing_chemistry_paradise.rb
|
23
|
+
_ = 'C16H12N2'
|
24
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
25
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
26
|
+
e
|
27
|
+
|
28
|
+
_ = 'C2H2'
|
29
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
30
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
31
|
+
|
32
|
+
_ = ChemistryParadise::CalculateAtomicMass::DEFAULT_INPUT
|
33
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
34
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
35
|
+
|
36
|
+
_ = 'Ca(OH)2'
|
37
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
38
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
39
|
+
|
40
|
+
# =========================================================================== #
|
41
|
+
# We will report in the german language next.
|
42
|
+
# =========================================================================== #
|
43
|
+
ChemistryParadise::CalculateAtomicMass.new(_)
|
44
|
+
e
|
45
|
+
e 'And next, we will report the result in english again.'
|
46
|
+
ChemistryParadise.do_use_english
|
47
|
+
_ = 'Ca(OH)2'
|
48
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
49
|
+
ChemistryParadise::CalculateAtomicMass.new(_)
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chemistry_paradise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert A. Heiler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-11-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: opn
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cliner
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colours
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: "\n Chemistry-related tasks are gathered in this project.\n \n The
|
56
|
+
classes in this project may allow you to translate\n between celsius and fahrenheit
|
57
|
+
(and vice versa), show the\n mass of elements or compounds and several similar
|
58
|
+
things\n somewhat related to chemistry.\n\n For more extensive documentation,
|
59
|
+
see the link at the\n bottom right side of this webpage, called \"Documentation\".\n\n"
|
60
|
+
email: shevegen@gmail.com
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- README.md
|
66
|
+
- bin/chemistry_paradise
|
67
|
+
- chemistry_paradise.gemspec
|
68
|
+
- doc/BUGS.md
|
69
|
+
- doc/README.gen
|
70
|
+
- doc/TODO.md
|
71
|
+
- lib/chemistry_paradise.rb
|
72
|
+
- lib/chemistry_paradise/base/base.rb
|
73
|
+
- lib/chemistry_paradise/base/colours.rb
|
74
|
+
- lib/chemistry_paradise/calculate_atomic_mass.rb
|
75
|
+
- lib/chemistry_paradise/combustion_analysis.rb
|
76
|
+
- lib/chemistry_paradise/commandline/help.rb
|
77
|
+
- lib/chemistry_paradise/commandline/menu.rb
|
78
|
+
- lib/chemistry_paradise/commandline/parse_commandline.rb
|
79
|
+
- lib/chemistry_paradise/constants/constants.rb
|
80
|
+
- lib/chemistry_paradise/constants/file_constants.rb
|
81
|
+
- lib/chemistry_paradise/constants/german_names_of_elements_to_element_symbol.rb
|
82
|
+
- lib/chemistry_paradise/converters/celsius_to_fahrenheit.rb
|
83
|
+
- lib/chemistry_paradise/converters/fahrenheit_to_celsius.rb
|
84
|
+
- lib/chemistry_paradise/converters/shared.rb
|
85
|
+
- lib/chemistry_paradise/electron_negativity_chart.rb
|
86
|
+
- lib/chemistry_paradise/equalize_chemical_formula.rb
|
87
|
+
- lib/chemistry_paradise/equation_solver.rb
|
88
|
+
- lib/chemistry_paradise/interactive_chemistry_shell.rb
|
89
|
+
- lib/chemistry_paradise/orbitals.rb
|
90
|
+
- lib/chemistry_paradise/project/project_base_directory.rb
|
91
|
+
- lib/chemistry_paradise/requires/common_external_requires.rb
|
92
|
+
- lib/chemistry_paradise/shared.rb
|
93
|
+
- lib/chemistry_paradise/show_electron_configuration.rb
|
94
|
+
- lib/chemistry_paradise/show_electron_negativity_of_this_element.rb
|
95
|
+
- lib/chemistry_paradise/show_element.rb
|
96
|
+
- lib/chemistry_paradise/split_molecule_names.rb
|
97
|
+
- lib/chemistry_paradise/toplevel_methods/atomgewichte.rb
|
98
|
+
- lib/chemistry_paradise/toplevel_methods/display_where_the_molmasses_are_kept.rb
|
99
|
+
- lib/chemistry_paradise/toplevel_methods/e.rb
|
100
|
+
- lib/chemistry_paradise/toplevel_methods/kelvin.rb
|
101
|
+
- lib/chemistry_paradise/toplevel_methods/language.rb
|
102
|
+
- lib/chemistry_paradise/toplevel_methods/periodic_table.rb
|
103
|
+
- lib/chemistry_paradise/toplevel_methods/remove_this_molecule_from.rb
|
104
|
+
- lib/chemistry_paradise/toplevel_methods/show_electron_negativity_chart.rb
|
105
|
+
- lib/chemistry_paradise/verbose_chemical_calculation.rb
|
106
|
+
- lib/chemistry_paradise/version/version.rb
|
107
|
+
- lib/chemistry_paradise/yaml/atomgewichte.yml
|
108
|
+
- lib/chemistry_paradise/yaml/electron_negativity_chart.yml
|
109
|
+
- lib/chemistry_paradise/yaml/molecular_formula_of_different_molecules.yml
|
110
|
+
- test/testing_chemistry_paradise.rb
|
111
|
+
homepage: http://rubygems.org/gems/chemistry
|
112
|
+
licenses:
|
113
|
+
- GPL-2.0
|
114
|
+
metadata: {}
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.7.2
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 3.1.4
|
129
|
+
requirements: []
|
130
|
+
rubygems_version: 3.1.4
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: Chemistry-related tasks are gathered in this project. The classes in this
|
134
|
+
project may allow you to translate between celsius and fahrenheit (and vice versa),
|
135
|
+
show the mass of elements or compounds and several similar things somewhat related
|
136
|
+
to chemistry. For more extensive documentation, see the link at the bottom right
|
137
|
+
side of this webpage, called "Documentation".
|
138
|
+
test_files: []
|