ski_binding_calculator 0.5.0 → 0.5.1

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.
@@ -1,7 +1,7 @@
1
1
  require 'calculator/config_loader'
2
2
 
3
3
  class SkiBinding::Calculator
4
- extend ConfigLoader
4
+ extend SkiBinding::ConfigLoader
5
5
 
6
6
  def self.setting(person)
7
7
  code = self.binding_code(person)
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
2
 
3
- module ConfigLoader
3
+ module SkiBinding::ConfigLoader
4
4
  extend self
5
5
 
6
6
  def load_binding_codes
data/lib/person.rb CHANGED
@@ -1,6 +1,4 @@
1
1
  class SkiBinding::Person
2
- include ConfigLoader
3
-
4
2
  attr_reader :type, :weight, :height, :shoe_size, :age
5
3
 
6
4
  def initialize(values_hash)
@@ -1,10 +1,11 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'ski_binding_calculator'
4
- s.version = '0.5.0'
4
+ s.version = '0.5.1'
5
5
  s.date = '2013-08-04'
6
6
  s.summary = "Ski Binding Calculator"
7
- s.description = "A little gem to calculate the z-value accord to the iso 11088 norm."
7
+ s.description = "calculate the z-value, forward pressure and turing
8
+ moment according to ISO 11088."
8
9
  s.authors = ["Jonas Ruef, Felix Langenegger"]
9
10
  s.email = 'support@fadendaten.ch'
10
11
  s.homepage = 'http://fadendaten.ch'
@@ -5,7 +5,7 @@ describe "ConfigLoader" do
5
5
  before(:all) do
6
6
  @range = 0..14 #cause 14 codes
7
7
  @dummy_class = DummyClass.new
8
- @dummy_class.extend(ConfigLoader)
8
+ @dummy_class.extend(SkiBinding::ConfigLoader)
9
9
  end
10
10
 
11
11
  describe "loading binding codes:" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ski_binding_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,7 +59,8 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.7.1
62
- description: A little gem to calculate the z-value accord to the iso 11088 norm.
62
+ description: ! "calculate the z-value, forward pressure and turing\n moment
63
+ according to ISO 11088."
63
64
  email: support@fadendaten.ch
64
65
  executables: []
65
66
  extensions: []