Skip to content

Commit

Permalink
chore: remove measured dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
newbthenewbd authored and ronaldtse committed Apr 10, 2024
1 parent 8e1844b commit 16f6812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion atmospheric.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")

spec.add_runtime_dependency "measured"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.0"
end
5 changes: 2 additions & 3 deletions lib/atmospheric/export/target.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "measured"
require "yaml"

module Atmospheric
Expand All @@ -10,11 +9,11 @@ def round_to_sig_figs(num, num_sig_figs)
end

def m_to_ft(meters)
Measured::Length.new(meters, "m").convert_to("ft").value.to_f
meters / 0.3048
end

def ft_to_m(feet)
Measured::Length.new(feet, "ft").convert_to("m").value.to_f
feet * 0.3048
end

def to_yaml
Expand Down

0 comments on commit 16f6812

Please sign in to comment.