eulim 0.0.11 → 0.0.12

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.
data/lib/eulim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
- module Eulim
2
- VERSION = '0.0.11'.freeze
3
- end
1
+ module Eulim
2
+ VERSION = '0.0.12'.freeze
3
+ end
data/lib/string.rb ADDED
@@ -0,0 +1,16 @@
1
+ # Custom enhancements
2
+ class String
3
+ def underscore
4
+ gsub(/::/, '/')
5
+ .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
6
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
7
+ .tr('-', '_')
8
+ .downcase
9
+ end
10
+
11
+ def humanize(options = { capitalize: true })
12
+ s = underscore.tr('_', ' ')
13
+ s = s.capitalize if options[:capitalize]
14
+ s
15
+ end
16
+ end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eulim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syed Fazil Basheer
8
+ - Somesh Choudhary
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-06-20 00:00:00.000000000 Z
12
+ date: 2017-06-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -97,6 +98,7 @@ dependencies:
97
98
  description: A gem for scientific data.
98
99
  email:
99
100
  - fazil.basheer@quester.xyz
101
+ - c.somesh5@gmail.com
100
102
  executables: []
101
103
  extensions: []
102
104
  extra_rdoc_files: []
@@ -113,16 +115,25 @@ files:
113
115
  - bin/console
114
116
  - bin/setup
115
117
  - eulim.gemspec
118
+ - lib/class.rb
116
119
  - lib/eulim.rb
120
+ - lib/eulim/chemical.rb
121
+ - lib/eulim/chemical/reactors.rb
122
+ - lib/eulim/chemical/reactors/batch_reactor.rb
123
+ - lib/eulim/chemical/reactors/continuous_stirred_tank_reactor.rb
124
+ - lib/eulim/chemical/reactors/plug_flow_reactor.rb
125
+ - lib/eulim/chemical/reactors/reactor.rb
117
126
  - lib/eulim/chemistry.rb
118
127
  - lib/eulim/chemistry/compound.rb
119
128
  - lib/eulim/chemistry/element.rb
120
129
  - lib/eulim/chemistry/elements.csv
121
130
  - lib/eulim/chemistry/reaction.rb
131
+ - lib/eulim/chemistry/substance.rb
122
132
  - lib/eulim/structures.rb
123
133
  - lib/eulim/structures/pipe.rb
124
134
  - lib/eulim/structures/structure.rb
125
135
  - lib/eulim/version.rb
136
+ - lib/string.rb
126
137
  homepage: https://github.com/syedfazilbasheer-quester/eulim-gem
127
138
  licenses:
128
139
  - MIT
@@ -143,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
154
  version: '0'
144
155
  requirements: []
145
156
  rubyforge_project:
146
- rubygems_version: 2.6.11
157
+ rubygems_version: 2.5.1
147
158
  signing_key:
148
159
  specification_version: 4
149
160
  summary: A gem for scientific data.