temperature_convert_gem 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/temperature_convert_gem/version.rb +1 -1
- data/lib/temperature_convert_gem.rb +13 -1
- data/temperature_convert_gem-0.1.0.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63290a5b8caa930e840160807ab074aa1ba242d7194d365fb968ffff6cc916f0
|
4
|
+
data.tar.gz: 3bb4d9a68d52a339a375c18545777c000c5c6ef63238677a86384739bb0437d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25142fbcd2d3afcae63b25be29fee2f64e7a400c46ea42b601af6344873ad56433094d70a5343437177e08ed09108464c9ecede574c960ef6e0265890e60f156
|
7
|
+
data.tar.gz: 95afa305b6b2b3ce4b6fe43f47b2eed3d29351e15ed5906cb2a94ab210a7c57b08644249da671025ee638cee6e40ff8516d1040abd39b4f93eb5480182a917b2
|
data/README.md
CHANGED
@@ -11,18 +11,18 @@ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_O
|
|
11
11
|
Install the gem and add to the application's Gemfile by executing:
|
12
12
|
|
13
13
|
```bash
|
14
|
-
bundle add
|
14
|
+
bundle add temperature_convert_gem
|
15
15
|
```
|
16
16
|
|
17
17
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
18
|
|
19
19
|
```bash
|
20
|
-
gem install
|
20
|
+
gem install temperature_convert_gem
|
21
21
|
```
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
User can convert the different temperature unit
|
26
26
|
|
27
27
|
## Development
|
28
28
|
|
@@ -5,7 +5,19 @@ require_relative "temperature_convert_gem/version"
|
|
5
5
|
module TemperatureConvertGem
|
6
6
|
class Error < StandardError; end
|
7
7
|
|
8
|
-
def self.
|
8
|
+
def self.degreeFtoC(input)
|
9
|
+
puts "#{(input.to_f-32)*5/9}"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.degreeCtoF(input)
|
9
13
|
puts "#{input.to_f * 9 / 5 + 32}"
|
10
14
|
end
|
15
|
+
|
16
|
+
def self.degreeCtoKelvin(input)
|
17
|
+
puts "#{input.to_f+273.15}"
|
18
|
+
end
|
19
|
+
|
20
|
+
# def self.convert_temperature(input)
|
21
|
+
# puts "#{input.to_f * 9 / 5 + 32}"
|
22
|
+
# end
|
11
23
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: temperature_convert_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yuzanakyaw26
|
@@ -25,6 +25,7 @@ files:
|
|
25
25
|
- lib/temperature_convert_gem.rb
|
26
26
|
- lib/temperature_convert_gem/version.rb
|
27
27
|
- sig/temperature_convert_gem.rbs
|
28
|
+
- temperature_convert_gem-0.1.0.gem
|
28
29
|
homepage: https://github.com/mtm-YuzanaKyaw/temperature_convert_gem.git
|
29
30
|
licenses:
|
30
31
|
- MIT
|