Skip to content

Commit

Permalink
T-21 Active development Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Mar 4, 2020
1 parent 828bbaf commit f8e98dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Add this line to your application's Gemfile:
gem 'basic_temperature'
```

#### Warning

Since this gem is under active development and there are often backward-incompatible changes between minor releases, you might want to use a conservative version lock in your Gemfile:

```ruby
gem 'basic_temperature', '~> 0.2.1'
```

And then execute:

$ bundle install
Expand All @@ -41,8 +49,10 @@ temperature = BasicTemperature.new(degrees: 20, scale: :celcius)

temperature.to_celcius
# => 20 Celcius

temperature.to_kelvin
# => 293 Kelvin

temperature.to_fahrenheit
# => 68 Fahrenheit
```
Expand All @@ -57,6 +67,7 @@ Temperatures can be compared between each other.

```ruby
temperature = BasicTemperature.new(degress: 0, scale: :celcius)

other = BasicTemperature.new(degress: 0, scale: :celcius)

temperature == other
Expand All @@ -66,6 +77,7 @@ temperature == other
When temperatures have different scales - conversion to common scale is handled under the hood.
```ruby
temperature = BasicTemperature.new(degress: 0, scale: :celcius)

other = BasicTemperature.new(degress: 273.15, scale: :kelvin)

temperature == other
Expand Down

0 comments on commit f8e98dd

Please sign in to comment.