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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 329cbfcf1ecfa2d58c00db4eb7d6c0dc934e8705a791b58b50879d9f55364eef
4
- data.tar.gz: 8ad03dbab014c274ca407fdd066e5f64c9548575e2ec58d6f634c588b3fed30e
3
+ metadata.gz: 63290a5b8caa930e840160807ab074aa1ba242d7194d365fb968ffff6cc916f0
4
+ data.tar.gz: 3bb4d9a68d52a339a375c18545777c000c5c6ef63238677a86384739bb0437d5
5
5
  SHA512:
6
- metadata.gz: 77da439fd7f60ac54319023fe89fd7c9e5ad31fdc0fa70039ae57fb4bc53969c59f90f478540362c216f2347496303b828ceb7115b9b03a3fbe764682d06b32c
7
- data.tar.gz: 86a3f69594a5caea7de0c9a05e9852d8f9e29904e6c7661ff50ff8e71b7780497b7ab0f6a2446b3817874cc84306acee7fdf5b89e06337edcc85f922fb089e89
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
20
+ gem install temperature_convert_gem
21
21
  ```
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ User can convert the different temperature unit
26
26
 
27
27
  ## Development
28
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TemperatureConvertGem
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -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.convert_temperature(input)
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.1.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