watir_model 0.5.3 → 0.5.4

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: 893ea85121e2e3fef48f38feb5a8606855affd2f
4
- data.tar.gz: 9ef57cee6fc71209a8a2cb01007165eb128a70d7
3
+ metadata.gz: e8a8ae5db6acadd7242a30cb2e94465d89836ef2
4
+ data.tar.gz: a73eb288f801a25317cb7990989df7a962cb41d0
5
5
  SHA512:
6
- metadata.gz: e0e58137900a8488a47bafbe2894def115239e41577813da38a9f750a329cb4df5fb7ea2caaaa1143b96dd59ab0698f1776ea4065f973bef77654c9926182924
7
- data.tar.gz: 070b630aa0d8d68fd0318aee5d7f1bfa8c0f87cecae6a8e9d7c3a17bcfaf67204b1cf5aaf6ce832fd3b15c4bf9824e3a41e2556acec18a7652ad239e1d5ca53d
6
+ metadata.gz: 973516b9347349f12845c957a131274c1245b06d65d2b6cc84b16c1d23807aa44bf0566f6fce24e0441f6b90776679a6e9dbbaf428e5d08d63bf59e9e0b2914a
7
+ data.tar.gz: 1f970b12adc1ed24e006a23207f555335b728cdccdcea796f4813c4398eab1c9b725ba7e0df48fbf4a8198b43b014f095cca1a504ad6a5ea7e7fdb920396debc
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.5.4 (2018-01-06)
2
+
3
+ * fix bug in create method for namespaced classes
4
+
1
5
  ### 0.5.3 (2018-01-06)
2
6
 
3
7
  * fix default value for create method when no value in yaml
data/lib/config_model.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class ConfigModel < WatirModel
2
2
  def self.create(hash = {})
3
3
  file = factory_file(self)
4
- env = ENV[self.to_s.underscore.upcase]
4
+ env = ENV[self.to_s[/[^:]*$/].underscore.upcase]
5
5
  data = data_from_yaml(file, env) || {}
6
6
  new(data.merge hash)
7
7
  end
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.3"
5
+ spec.version = "0.5.4"
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.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner