freya 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/freya.rb +1 -1
  3. data/lib/freya/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c20cb87d4dc89671f64c5d80b08cf92cc777c8d7
4
- data.tar.gz: 2506895aa7760277dcb486689d611f327f02dba9
3
+ metadata.gz: 56ca392d18f089dd99808244f2eebc719f236647
4
+ data.tar.gz: 22ff53ee7d34047b9ea72f6119f3aeae18cd84f4
5
5
  SHA512:
6
- metadata.gz: 4264622b00d019bbac7e21e3d13d57dee027d5013313f90a4402d18ade324853ca0858ee9e3961f101f0cb030cac7bdd88cf9d6bd46fb2d0123f5542abce7b15
7
- data.tar.gz: 8409d899a05477de3e8381b94e05c3d92d8c3c986539f35ee229555a3e1d38df851eeb48538d799d418ee8066acbb32fcde2e25cc7408554adc42383aebdd723
6
+ metadata.gz: 6f8b9d3c721c411d38cc7c7b745eedae14345832d4c3afb42e0e9837351b98c365f15bff46965450188d98d1e15898f52b66831f611fa06330ff94ad91377683
7
+ data.tar.gz: 51c344d8d175c8365701ac0430300699aa00563c4589df45f0fc3f9d761ec4fe945e228090207a1a8baa5ad044e57187340b3044473bb33448565f461c614c5e
@@ -19,7 +19,7 @@ module Freya
19
19
  end
20
20
 
21
21
  def [](name)
22
- name.to_s.split(' ').inject(self.class.config) { |result, n| result.fetch(n) }
22
+ name.present? ? name.to_s.split(' ').inject(self.class.config) { |result, n| result.fetch(n) } : nil
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Freya
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Depalo