string_tensions 0.0.1 → 0.0.2

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.
@@ -22,6 +22,10 @@ module StringTensions
22
22
  def self.g_m_to_lbs_inch(g)
23
23
  unit(g, 'g/m').to('lbs/inch').scalar.to_f
24
24
  end
25
+
26
+ def self.lbs_inch_to_g_m(lbs)
27
+ unit(lbs, 'lbs/inch').to('g/m').scalar.to_f
28
+ end
25
29
 
26
30
  def self.unit(qty, dim)
27
31
  ::Unit.new("#{qty} #{dim}")
@@ -1,3 +1,3 @@
1
1
  module StringTensions
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_tensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: 714457889
112
+ hash: -560509043
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  none: false
115
115
  requirements:
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  segments:
120
120
  - 0
121
- hash: 714457889
121
+ hash: -560509043
122
122
  requirements: []
123
123
  rubyforge_project:
124
124
  rubygems_version: 1.8.25