watir_model 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 274dcadc9cddab4d7cacdd063b01a37327679463
4
- data.tar.gz: 75988bb4db16b6908a81d763640ce34baa35989e
3
+ metadata.gz: 893ea85121e2e3fef48f38feb5a8606855affd2f
4
+ data.tar.gz: 9ef57cee6fc71209a8a2cb01007165eb128a70d7
5
5
  SHA512:
6
- metadata.gz: c1ad427cd4b8b9dcc630205b7ff80db52c1249bd8413c79173b629849b06d58616b8c745aaf067c36b50d0b78489d853a88745555f558fcaf9247002167f1069
7
- data.tar.gz: cfca5bbf471cb2f19841dab263d8f42366991b7f01b5ccc93ac892debe1dd205b8da4f8dd9285628794da7610d1066a3cd9a9188f798e6ce5ff2d693344d3496
6
+ metadata.gz: e0e58137900a8488a47bafbe2894def115239e41577813da38a9f750a329cb4df5fb7ea2caaaa1143b96dd59ab0698f1776ea4065f973bef77654c9926182924
7
+ data.tar.gz: 070b630aa0d8d68fd0318aee5d7f1bfa8c0f87cecae6a8e9d7c3a17bcfaf67204b1cf5aaf6ce832fd3b15c4bf9824e3a41e2556acec18a7652ad239e1d5ca53d
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.5.3 (2018-01-06)
2
+
3
+ * fix default value for create method when no value in yaml
4
+
1
5
  ### 0.5.2 (2018-01-06)
2
6
 
3
7
  * implement create method for ConfigModel to populate from yaml via ENV variable
data/lib/config_model.rb CHANGED
@@ -2,7 +2,7 @@ class ConfigModel < WatirModel
2
2
  def self.create(hash = {})
3
3
  file = factory_file(self)
4
4
  env = ENV[self.to_s.underscore.upcase]
5
- data = data_from_yaml(file, env)
5
+ data = data_from_yaml(file, env) || {}
6
6
  new(data.merge hash)
7
7
  end
8
8
 
data/watir_model.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "watir_model"
5
- spec.version = "0.5.2"
5
+ spec.version = "0.5.3"
6
6
  spec.authors = ["Titus Fortner"]
7
7
  spec.email = ["titusfortner@gmail.com"]
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner